/[gentoo-x86]/net-misc/dhcpcd/dhcpcd-1.3.22_p4-r3.ebuild
Gentoo

Contents of /net-misc/dhcpcd/dhcpcd-1.3.22_p4-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Mon Mar 8 23:49:00 2004 UTC (15 years, 9 months ago) by seemant
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Forced a version bump on these ebuilds.  Basically, -r2 is now -r4 and -r3 is now -r5.  The reason for the revision bump was to make this package PROVIDE virtual/dhcp.  Closes a long-standing bloat-reduction request made on gentoo-dev mailing list by:  William Hubbs <kc5eiv@kc5eiv.homeip.net> at http://article.gmane.org/gmane.linux.gentoo.devel/11579

1 # Copyright 1999-2004 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/net-misc/dhcpcd/dhcpcd-1.3.22_p4-r3.ebuild,v 1.6 2004/03/02 16:44:08 iggy Exp $
4
5 inherit gnuconfig flag-o-matic eutils
6
7 DESCRIPTION="A dhcp client only"
8 HOMEPAGE="http://www.phystech.com/download/"
9 SRC_URI="ftp://ftp.phystech.com/pub/${P/_p/-pl}.tar.gz
10 http://dev.gentoo.org/~drobbins/${P}.diff.bz2
11 http://dev.gentoo.org/~drobbins/${P}-keepCacheAndResolv.diff.bz2"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~mips ~amd64 ~ia64 ppc64 s390"
16 IUSE="build static"
17
18 DEPEND="virtual/glibc"
19
20 S=${WORKDIR}/${P/_p/-pl}
21
22 src_unpack() {
23 unpack ${A} || die "unpack failed"
24 use alpha && gnuconfig_update
25 use amd64 && gnuconfig_update
26 use hppa && gnuconfig_update
27 use ia64 && gnuconfig_update
28 use ppc64 && gnuconfig_update
29
30 cd ${S}
31 #Started working on this patch from an older version I found; then
32 #discovered that LFS had an updated one. We're using a patch that is
33 #identical to theirs. It makes dhcpcd FHS-compliant. (drobbins, 06
34 #Sep 2003)
35 epatch ${DISTDIR}/${P}.diff.bz2
36 #This next patch from Alwyn Schoeman <alwyn@smart.com.ph> is great;
37 #it adds a -z (shutdown, keep cache) and various other little tweaks.
38 #See http://bugs.gentoo.org/show_bug.cgi?id=23428 for more info.
39 epatch ${DISTDIR}/${P}-keepCacheAndResolv.diff.bz2
40 #This patch remove the iface down instruction from dhcpcd allowing us
41 #to have physical iface scripts (gmsoft, 11 Nov 2003)
42 epatch ${FILESDIR}/${P}-no-iface-down.diff
43 #remove hard-coded arch stuff (drobbins, 06 Sep 2003)
44 sed -i "s/ -march=i.86//g" configure
45 sed -i 's:/etc/ntp\.drift:/var/lib/ntp/ntp.drift:' dhcpconfig.c
46 }
47
48 src_compile() {
49 use static && append-flags -static
50
51 ./configure --prefix="" --sysconfdir=/var/lib --mandir=/usr/share/man || die
52 emake || die
53 }
54
55 src_install() {
56 einstall sbindir=${D}/sbin || die "Install failed"
57 rmdir ${D}/etc/dhcpc
58 if [ -z "`use build`" ]
59 then
60 dodoc AUTHORS COPYING ChangeLog NEWS README
61 else
62 rm -rf ${D}/usr/share
63 fi
64 }

  ViewVC Help
Powered by ViewVC 1.1.20