/[gentoo-x86]/net-misc/pump/pump-0.8.21-r8.ebuild
Gentoo

Contents of /net-misc/pump/pump-0.8.21-r8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Nov 18 13:05:48 2005 UTC (14 years, 2 months ago) by uberlord
Branch: MAIN
Changes since 1.1: +10 -1 lines
Only install specific po files if LINGUAS is set
(Portage version: 2.0.51.22-r3)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/pump/pump-0.8.21-r8.ebuild,v 1.1 2005/11/18 10:19:30 uberlord Exp $
4
5 inherit eutils
6
7 PATCHLEVEL="2"
8
9 DESCRIPTION="This is the DHCP/BOOTP client written by RedHat"
10 HOMEPAGE="http://ftp.debian.org/debian/pool/main/p/pump/"
11 SRC_URI="mirror://debian/pool/main/p/${PN}/${PN}_${PV}.orig.tar.gz
12 mirror://debian/pool/main/p/${PN}/${PN}_${PV}-${PATCHLEVEL}.diff.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~sparc ~x86"
17 IUSE=""
18
19 DEPEND=">=dev-libs/popt-1.5"
20
21 PROVIDE="virtual/dhcpc"
22
23 src_unpack() {
24 cd "${WORKDIR}"
25 unpack "${PN}_${PV}.orig.tar.gz"
26
27 # Apply Debians pump patchset - they fix things good :)
28 epatch "${DISTDIR}/${PN}_${PV}-${PATCHLEVEL}.diff.gz"
29
30 # Enable the -e (--etc-dir) option to specify where to make
31 # resolv.conf - default /etc
32 # Enable the -m (--route-metric) option to specify the default
33 # metric applied to routes
34 # Enable the --keep-up option to keep interfaces up when we release
35 # Enable the creation of /etc/ntp.conf and the --no-ntp option
36 epatch "${FILESDIR}/pump-${PV}-gentoo.diff"
37
38 # Clean compile on GCC4
39 epatch "${FILESDIR}/pump-${PV}-gcc4.patch"
40
41 # Only install specific po files if LINGUAS is set
42 if [[ -n ${LINGUAS} ]]; then
43 cd po
44 local p
45 for l in $(ls *.po) ; do
46 [[ " ${LINGUAS} " != *" ${l%%.po} "* ]] && rm -f "${l}"
47 done
48 fi
49 }
50
51 src_compile() {
52 make DEB_CFLAGS="-fPIC ${CFLAGS}" pump || die
53 }
54
55 src_install() {
56 into /
57 dosbin pump || die
58
59 doman pump.8
60 dodoc CREDITS
61
62 into /usr/
63 dolib.a libpump.a
64 insinto /usr/include/
65 doins pump.h
66
67 make -C po install datadir="${D}/usr/share/"
68 }

  ViewVC Help
Powered by ViewVC 1.1.20