diff options
Diffstat (limited to 'app-emulation/conmon/conmon-0.3.0.ebuild')
-rw-r--r-- | app-emulation/conmon/conmon-0.3.0.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/app-emulation/conmon/conmon-0.3.0.ebuild b/app-emulation/conmon/conmon-0.3.0.ebuild new file mode 100644 index 000000000000..72995a2d2822 --- /dev/null +++ b/app-emulation/conmon/conmon-0.3.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +KEYWORDS="~amd64" +DESCRIPTION="An OCI container runtime monitor" +HOMEPAGE="https://github.com/containers/conmon" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="systemd" +EGIT_COMMIT="8455ce1ef385120deb827d0f0588c04357bad4c4" +SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +RDEPEND="dev-libs/glib:= + systemd? ( sys-apps/systemd:= )" +DEPEND="${RDEPEND}" + +src_prepare() { + default + + if ! use systemd; then + sed -e 's| pkg-config --exists libsystemd-journal | false |' \ + -e 's| pkg-config --exists libsystemd | false |' \ + -i Makefile || die + fi +} + +src_compile() { + emake GIT_COMMIT="${EGIT_COMMIT}" \ + all +} + +src_install() { + emake DESTDIR="${D}" \ + PREFIX="/usr" \ + install + dodir /usr/libexec/podman + ln "${ED}/usr/"{bin,libexec/podman}/conmon || die + dodoc README.md +} |