diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2023-09-10 21:29:14 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2023-09-10 21:29:20 +0300 |
commit | c4aa7bbe97926427b1b94057d6acf6f8ae4eafa1 (patch) | |
tree | 43e9268927201e7b9fe8517f1a325ed944633d49 /net-misc/pingu | |
parent | media-libs/esdl: drop 1.3.1, --EAPI6 (diff) | |
download | gentoo-c4aa7bbe97926427b1b94057d6acf6f8ae4eafa1.tar.gz gentoo-c4aa7bbe97926427b1b94057d6acf6f8ae4eafa1.tar.bz2 gentoo-c4aa7bbe97926427b1b94057d6acf6f8ae4eafa1.zip |
net-misc/pingu: EAPI=8, fix implicit warning, cleanup
Closes: https://bugs.gentoo.org/900306
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'net-misc/pingu')
-rw-r--r-- | net-misc/pingu/pingu-1.5-r1.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/net-misc/pingu/pingu-1.5-r1.ebuild b/net-misc/pingu/pingu-1.5-r1.ebuild new file mode 100644 index 000000000000..95ee72e03c46 --- /dev/null +++ b/net-misc/pingu/pingu-1.5-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit edo systemd tmpfiles toolchain-funcs + +DESCRIPTION="Policy routing daemon with failover and load-balancing" +HOMEPAGE="https://github.com/ncopa/pingu" +SRC_URI="https://github.com/ncopa/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug doc" + +RDEPEND="dev-libs/libev" +DEPEND="${RDEPEND} + sys-kernel/linux-headers" +BDEPEND=" + virtual/pkgconfig + doc? ( app-text/asciidoc ) +" + +# Fix QA with install into path /run/pingu must be created at runtime +PATCHES=( "${FILESDIR}"/"${P}"-makefile.patch ) + +QA_CONFIG_IMPL_DECL_SKIP=( 'strlcpy' ) + +src_prepare() { + default + + # Fix compilation issue + sed -e '/icp->un.frag.__unused = 0;/d' -i src/icmp.c || die +} + +src_configure() { + local myconf=( + $(use_enable debug) + $(use_enable doc) + --prefix=/usr + ) + edo ./configure "${myconf[@]}" +} + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + default + + newtmpfiles "${FILESDIR}"/pingu.tmpfile pingu.conf + newinitd "${FILESDIR}"/pingu.initd pingu + newconfd "${FILESDIR}"/pingu.confd pingu + systemd_dounit "${FILESDIR}"/pingu.service + keepdir /var/lib/pingu + insinto /etc/pingu + newins pingu.conf pingu.conf.example +} + +pkg_postinst() { + tmpfiles_process pingu.conf +} |