/[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.1 - (hide annotations) (download)
Fri Nov 18 10:19:30 2005 UTC (14 years, 2 months ago) by uberlord
Branch: MAIN
Fixed gcc4 compilation warnings
(Portage version: 2.0.51.22-r3)

1 uberlord 1.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-r7.ebuild,v 1.7 2005/09/24 04:34:07 vapier 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    
42     src_compile() {
43     make DEB_CFLAGS="-fPIC ${CFLAGS}" pump || die
44     }
45    
46     src_install() {
47     into /
48     dosbin pump || die
49    
50     doman pump.8
51     dodoc CREDITS
52    
53     into /usr/
54     dolib.a libpump.a
55     insinto /usr/include/
56     doins pump.h
57    
58     make -C po install datadir="${D}/usr/share/"
59     }

  ViewVC Help
Powered by ViewVC 1.1.20