diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-02-22 02:26:51 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-02-22 02:26:51 +0000 |
commit | 1b013d9d13c304bf66a4a6c16d272d25bc480b83 (patch) | |
tree | 8748fc5fde3f3f10b81d81c07be105dbe75b1339 /app-containers/conmon/conmon-2.1.6.ebuild | |
parent | d37f8725bb68034ef10d8882fb4411a49f2f666e (diff) |
gentoo auto-resync : 22:02:2023 - 02:26:50
Diffstat (limited to 'app-containers/conmon/conmon-2.1.6.ebuild')
-rw-r--r-- | app-containers/conmon/conmon-2.1.6.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/app-containers/conmon/conmon-2.1.6.ebuild b/app-containers/conmon/conmon-2.1.6.ebuild new file mode 100644 index 000000000000..e595091b3668 --- /dev/null +++ b/app-containers/conmon/conmon-2.1.6.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="An OCI container runtime monitor" +HOMEPAGE="https://github.com/containers/conmon" +SRC_URI="https://github.com/containers/conmon/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv" +IUSE="systemd" +RESTRICT="test" + +RDEPEND="dev-libs/glib:= + sys-libs/libseccomp + systemd? ( sys-apps/systemd:= )" +DEPEND="${RDEPEND} + dev-go/go-md2man" + +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 + sed -e 's|make -C tools|$(MAKE) -C tools|' -i Makefile || die + sed -e 's|^GOMD2MAN = .*|GOMD2MAN = go-md2man|' -i docs/Makefile || die +} + +src_compile() { + tc-export CC + emake GIT_COMMIT="v${PV}" \ + all +} + +src_install() { + emake DESTDIR="${D}" \ + PREFIX="${EPREFIX}/usr" \ + install + dodir /usr/libexec/podman + ln "${ED}/usr/"{bin,libexec/podman}/conmon || die + dodoc README.md +} |