diff options
author | Jeroen Roovers <jer@gentoo.org> | 2020-01-07 15:04:41 +0100 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2020-01-07 15:05:12 +0100 |
commit | b8508cdd4c06d6195c6ce4ad87b6d01f9ef9153a (patch) | |
tree | 05b80300d5b8b2515e04f69ce6ca0c6ddde6b96a /net-analyzer/ipguard/ipguard-1.04-r1.ebuild | |
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/ipguard-1.04-r1.ebuild')
-rw-r--r-- | net-analyzer/ipguard/ipguard-1.04-r1.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/net-analyzer/ipguard/ipguard-1.04-r1.ebuild b/net-analyzer/ipguard/ipguard-1.04-r1.ebuild new file mode 100644 index 000000000000..914a239c8206 --- /dev/null +++ b/net-analyzer/ipguard/ipguard-1.04-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit toolchain-funcs + +DESCRIPTION="Tool designed to protect LAN IP adress space by ARP spoofing" +HOMEPAGE="http://ipguard.deep.perm.ru/" +SRC_URI="${HOMEPAGE}files/${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND=" + net-libs/libnet:1.1 + net-libs/libpcap +" +RDEPEND=" + ${DEPEND} +" + +src_prepare() { + default + + sed -i \ + -e 's|-g ||g' \ + -e 's| @$(CC)| $(CC)|g' \ + -e 's| -s | |g' \ + -e 's| -o | $(CFLAGS) $(LDFLAGS)&|g' \ + -e 's|$(PREFIX)|${D}&|g' \ + -e 's|/man/|/share&|g' \ + Makefile || die + sed -i \ + -e 's|opts=|extra_commands=|g' \ + -e 's|/var/run/|/run/|g' \ + -e 's|-u 300 -xz|${OPTS} ${IFACE}|g' \ + doc/${PN}.gentoo || die + sed -i \ + -e 's|/var/run/|/run/|g' \ + doc/${PN}.8 ${PN}.h || die +} + +src_compile() { + emake \ + CC=$(tc-getCC) \ + LIBNET_CONFIG="$(tc-getPKG_CONFIG) libnet" \ + PREFIX=\"${EPREFIX:-/usr}\" +} + +src_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} +} |