/[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.3 - (show annotations) (download)
Fri Nov 18 14:06:22 2005 UTC (14 years, 2 months ago) by uberlord
Branch: MAIN
Changes since 1.2: +2 -1 lines
Really fix LINGUAS installing correct po files
(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.2 2005/11/18 13:05:48 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 cd "${S}"
27
28 # Apply Debians pump patchset - they fix things good :)
29 epatch "${DISTDIR}/${PN}_${PV}-${PATCHLEVEL}.diff.gz"
30
31 # Enable the -e (--etc-dir) option to specify where to make
32 # resolv.conf - default /etc
33 # Enable the -m (--route-metric) option to specify the default
34 # metric applied to routes
35 # Enable the --keep-up option to keep interfaces up when we release
36 # Enable the creation of /etc/ntp.conf and the --no-ntp option
37 epatch "${FILESDIR}/pump-${PV}-gentoo.diff"
38
39 # Clean compile on GCC4
40 epatch "${FILESDIR}/pump-${PV}-gcc4.patch"
41
42 # Only install specific po files if LINGUAS is set
43 if [[ -n ${LINGUAS} ]]; then
44 cd po
45 local p
46 for l in $(ls *.po) ; do
47 [[ " ${LINGUAS} " != *" ${l%%.po} "* ]] && rm -f "${l}"
48 done
49 fi
50 }
51
52 src_compile() {
53 make DEB_CFLAGS="-fPIC ${CFLAGS}" pump || die
54 }
55
56 src_install() {
57 into /
58 dosbin pump || die
59
60 doman pump.8
61 dodoc CREDITS
62
63 into /usr/
64 dolib.a libpump.a
65 insinto /usr/include/
66 doins pump.h
67
68 make -C po install datadir="${D}/usr/share/"
69 }

  ViewVC Help
Powered by ViewVC 1.1.20