blob: 8c16e66cabdf3c11c866e7682827c2f03bf194ef (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/pump/pump-0.8.24.ebuild,v 1.10 2007/12/29 20:05:38 phreak Exp $
inherit eutils
PATCHLEVEL="1"
DESCRIPTION="This is the DHCP/BOOTP client written by RedHat"
HOMEPAGE="http://ftp.debian.org/debian/pool/main/p/pump/"
SRC_URI="mirror://debian/pool/main/p/${PN}/${PN}_${PV}.orig.tar.gz
mirror://debian/pool/main/p/${PN}/${PN}_${PV}-${PATCHLEVEL}.diff.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 arm hppa ia64 ppc sparc x86"
IUSE=""
DEPEND=">=dev-libs/popt-1.5"
PROVIDE="virtual/dhcpc"
src_unpack() {
cd "${WORKDIR}"
unpack "${PN}_${PV}.orig.tar.gz"
cd "${S}"
# Apply Debians pump patchset - they fix things good :)
epatch "${DISTDIR}/${PN}_${PV}-${PATCHLEVEL}.diff.gz"
# Enable the -m (--route-metric) option to specify the default
# metric applied to routes
# Enable the --keep-up option to keep interfaces up when we release
# Enable the creation of /etc/ntp.conf and the --no-ntp option
epatch "${FILESDIR}/pump-${PV}-gentoo.patch"
# Add an if defined around the definition of foo, just like in popt.h
epatch "${FILESDIR}/${P}-redefinition.patch"
# Only install specific po files if LINGUAS is set
if [[ -n ${LINGUAS} ]]; then
cd po
local p
for l in $(ls *.po) ; do
[[ " ${LINGUAS} " != *" ${l%%.po} "* ]] && rm -f "${l}"
done
fi
}
src_compile() {
make DEB_CFLAGS="-fPIC ${CFLAGS}" pump || die
}
src_install() {
into /
dosbin pump || die
doman pump.8
dodoc CREDITS
into /usr
dolib.a libpump.a || die
insinto /usr/include
doins pump.h || die
make -C po install datadir="${D}/usr/share/"
}
|