blob: 91b774af25dc512c56640754f1eb992b42970302 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/arping/arping-2.13.ebuild,v 1.7 2013/02/15 22:45:51 ago Exp $
EAPI="4"
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"
IUSE=""
DEPEND="net-libs/libpcap
net-libs/libnet:1.1"
RDEPEND="${DEPEND}"
src_prepare() {
rm -f Makefile
# since we install as arping2, use arping2 in the man page
sed \
-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" \
-i doc/${PN}.8 || die "sed ${PN}.8 failed"
sed \
-e "s|\(${PN}\) |\12 |g" \
-i extra/${PN}-scan-net.sh || die "sed ${PN}-scan-net.sh failed"
}
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
}
|