gentoo-ebuilds/net-misc/pingu/pingu-1.5.1.ebuild
Vladimir Pavljuchenkov f8014ba6a6
net-misc/pingu: add 1.5.1, wrt 937095
Closes: https://bugs.gentoo.org/937095

Signed-off-by: Vladimir Pavljuchenkov <spiderx@spiderx.dp.ua>
Closes: https://github.com/gentoo/gentoo/pull/38220
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
2024-08-22 22:03:14 -04:00

55 lines
1.2 KiB
Bash

# Copyright 1999-2024 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}"/"${PN}"-1.5-makefile.patch )
QA_CONFIG_IMPL_DECL_SKIP=( 'strlcpy' )
src_configure() {
local myconf=(
--prefix=/usr
"$(use_enable debug)"
"$(use_enable doc)"
)
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
}