diff options
Diffstat (limited to 'net-analyzer/arping/arping-2.15.ebuild')
-rw-r--r-- | net-analyzer/arping/arping-2.15.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/net-analyzer/arping/arping-2.15.ebuild b/net-analyzer/arping/arping-2.15.ebuild new file mode 100644 index 000000000000..c2cdc98995dc --- /dev/null +++ b/net-analyzer/arping/arping-2.15.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="A utility to see if a specific IP address is taken and what MAC address owns it" +HOMEPAGE="http://www.habets.pp.se/synscan/programs.php?prog=arping" +SRC_URI="http://www.habets.pp.se/synscan/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="2" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos" + +DEPEND=" + net-libs/libpcap + net-libs/libnet:1.1 +" +RDEPEND="${DEPEND}" + +src_prepare() { + rm -f Makefile + + # since we install as arping2, use arping2 in documentation + sed -i \ + -e "s|\(${PN}\)|\12|g" \ + -e "s|\(${PN}\)\(\W\)|\12\2|g" \ + -e "s|${PN}2-|${PN}-|g" \ + -e "s|(${PN}2 2.*\.x only)||g" \ + doc/${PN}.8 || die + sed -i \ + -e "s|\(${PN}\) |\12 |g" \ + extra/${PN}-scan-net.sh || die +} + +src_install() { + # since we install as arping2, we cannot use emake install + newsbin src/${PN} ${PN}2 + newman doc/${PN}.8 ${PN}2.8 + dodoc README extra/arping-scan-net.sh +} |