/[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.1 - (show annotations) (download)
Tue Nov 18 16:18:17 2003 UTC (16 years, 2 months ago) by gmsoft
Branch: MAIN
Added the -o options which prevents dhcpcd to bring the interface down on exit.

1 # Copyright 1999-2003 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-r2.ebuild,v 1.1 2003/11/04 01:03:01 vapier 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 ~arm ~mips ~amd64 ~ia64"
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
29 cd ${S}
30 #Started working on this patch from an older version I found; then
31 #discovered that LFS had an updated one. We're using a patch that is
32 #identical to theirs. It makes dhcpcd FHS-compliant. (drobbins, 06
33 #Sep 2003)
34 epatch ${DISTDIR}/${P}.diff.bz2
35 #This next patch from Alwyn Schoeman <alwyn@smart.com.ph> is great;
36 #it adds a -z (shutdown, keep cache) and various other little tweaks.
37 #See http://bugs.gentoo.org/show_bug.cgi?id=23428 for more info.
38 epatch ${DISTDIR}/${P}-keepCacheAndResolv.diff.bz2
39 #This patch remove the iface down instruction from dhcpcd allowing us
40 #to have physical iface scripts (gmsoft, 11 Nov 2003)
41 epatch ${FILESDIR}/${P}-no-iface-down.diff
42 #remove hard-coded arch stuff (drobbins, 06 Sep 2003)
43 sed -i "s/ -march=i.86//g" configure
44 sed -i 's:/etc/ntp\.drift:/var/lib/ntp/ntp.drift:' dhcpconfig.c
45 }
46
47 src_compile() {
48 use static && append-flags -static
49
50 ./configure --prefix="" --sysconfdir=/var/lib --mandir=/usr/share/man || die
51 emake || die
52 }
53
54 src_install() {
55 einstall sbindir=${D}/sbin || die "Install failed"
56 if [ -z "`use build`" ]
57 then
58 dodoc AUTHORS COPYING ChangeLog NEWS README
59 else
60 rm -rf ${D}/usr/share
61 fi
62 }

  ViewVC Help
Powered by ViewVC 1.1.20