blob: 60a97769b999f3e8c340dfb9b92ddb6a1e962689 (
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
40
41
42
43
44
45
46
47
48
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/dhcp_probe/dhcp_probe-1.3.0-r1.ebuild,v 1.1 2009/11/19 17:34:00 jer Exp $
EAPI="2"
inherit eutils
DESCRIPTION="dhcp_probe attempts to discover DHCP and BootP servers on a directly-attached Ethernet network"
HOMEPAGE="http://www.net.princeton.edu/software/dhcp_probe/"
SRC_URI="http://www.net.princeton.edu/software/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND="
net-libs/libpcap
>=net-libs/libnet-1.1.2.1-r2
"
RDEPEND="${DEPEND}"
src_prepare() {
epatch "${FILESDIR}"/${PV}/*.patch
}
src_configure() {
STRIP=true econf || die "econf failed"
}
src_install() {
newinitd "${FILESDIR}/${PN}.initd" ${PN}
newconfd "${FILESDIR}/${PN}.confd" ${PN}
dobin src/dhcp_probe "${FILESDIR}"/dhcp_probe_mail || die "dobin failed"
dodoc \
extras/dhcp_probe.cf.sample \
NEWS \
README \
ChangeLog \
AUTHORS \
TODO \
|| die "dodoc failed"
doman \
doc/dhcp_probe.8 \
doc/dhcp_probe.cf.5 \
|| die "doman failed"
}
|