/[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.2 - (hide annotations) (download)
Wed Dec 17 04:30:10 2003 UTC (16 years, 1 month ago) by brad_mssw
Branch: MAIN
Changes since 1.1: +2 -2 lines
ppc64

1 gmsoft 1.1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2     # Distributed under the terms of the GNU General Public License v2
3 brad_mssw 1.2 # $Header: /home/cvsroot/gentoo-x86/net-misc/dhcpcd/dhcpcd-1.3.22_p4-r3.ebuild,v 1.1 2003/11/18 16:18:17 gmsoft Exp $
4 gmsoft 1.1
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 brad_mssw 1.2 KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~arm ~mips ~amd64 ~ia64 ppc64"
16 gmsoft 1.1 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