diff options
author | 2020-01-07 15:04:41 +0100 | |
---|---|---|
committer | 2020-01-07 15:05:12 +0100 | |
commit | b8508cdd4c06d6195c6ce4ad87b6d01f9ef9153a (patch) | |
tree | 05b80300d5b8b2515e04f69ce6ca0c6ddde6b96a /net-analyzer/ipguard | |
parent | net-misc/connman-notify: update PYTHON_COMPAT (diff) | |
download | gentoo-b8508cdd4c06d6195c6ce4ad87b6d01f9ef9153a.tar.gz gentoo-b8508cdd4c06d6195c6ce4ad87b6d01f9ef9153a.tar.bz2 gentoo-b8508cdd4c06d6195c6ce4ad87b6d01f9ef9153a.zip |
net-analyzer/ipguard: Depend on net-libs/libnet:1.1
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Closes: https://bugs.gentoo.org/show_bug.cgi?id=599162
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'net-analyzer/ipguard')
-rw-r--r-- | net-analyzer/ipguard/ipguard-1.04-r1.ebuild (renamed from net-analyzer/ipguard/ipguard-1.04.ebuild) | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/net-analyzer/ipguard/ipguard-1.04.ebuild b/net-analyzer/ipguard/ipguard-1.04-r1.ebuild index 0de7e748f4a2..914a239c8206 100644 --- a/net-analyzer/ipguard/ipguard-1.04.ebuild +++ b/net-analyzer/ipguard/ipguard-1.04-r1.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=7 inherit toolchain-funcs DESCRIPTION="Tool designed to protect LAN IP adress space by ARP spoofing" @@ -13,12 +13,16 @@ SLOT="0" KEYWORDS="~amd64 ~x86" DEPEND=" - net-libs/libnet + net-libs/libnet:1.1 net-libs/libpcap " -RDEPEND="${DEPEND}" +RDEPEND=" + ${DEPEND} +" src_prepare() { + default + sed -i \ -e 's|-g ||g' \ -e 's| @$(CC)| $(CC)|g' \ @@ -38,11 +42,19 @@ src_prepare() { } src_compile() { - emake LIBNET_CONFIG=libnet-config CC=$(tc-getCC) PREFIX=\"${EPREFIX:-/usr}\" + emake \ + CC=$(tc-getCC) \ + LIBNET_CONFIG="$(tc-getPKG_CONFIG) libnet" \ + PREFIX=\"${EPREFIX:-/usr}\" } src_install() { - emake LIBNET_CONFIG=libnet-config DESTDIR="${D}" PREFIX=\"${EPREFIX:-/usr}\" install + emake \ + DESTDIR="${D}" \ + LIBNET_CONFIG="$(tc-getPKG_CONFIG) libnet" \ + PREFIX=\"${EPREFIX:-/usr}\" \ + install + newinitd doc/${PN}.gentoo ${PN} newconfd "${FILESDIR}"/${PN}.confd ${PN} dodoc doc/{NEWS,README*,ethers.sample} |