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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Jul 10 10:02:13 2005 UTC (14 years, 5 months ago) by uberlord
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
  Fixed a potential security hole #98394
  Taken from the Debian patchset by Simon Kelly
  Punted old ebuilds. r5 becomes r11, r10 becomes r12 - both have fix

(Portage version: 2.0.51.22-r1)

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/dhcpcd/dhcpcd-1.3.22_p4-r10.ebuild,v 1.2 2005/06/30 22:45:02 vapier Exp $
4
5 inherit 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="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
16 IUSE="build static"
17
18 DEPEND=""
19 PROVIDE="virtual/dhcpc"
20
21 S=${WORKDIR}/${P/_p/-pl}
22
23 src_unpack() {
24 unpack ${A}
25
26 cd "${S}"
27 #Started working on this patch from an older version I found; then
28 #discovered that LFS had an updated one. We're using a patch that is
29 #identical to theirs. It makes dhcpcd FHS-compliant. (drobbins, 06
30 #Sep 2003)
31 epatch "${DISTDIR}"/${P}.diff.bz2
32 #This next patch from Alwyn Schoeman <alwyn@smart.com.ph> is great;
33 #it adds a -z (shutdown, keep cache) and various other little tweaks.
34 #See http://bugs.gentoo.org/show_bug.cgi?id=23428 for more info.
35 epatch "${DISTDIR}"/${P}-keepCacheAndResolv.diff.bz2
36 #This patch remove the iface down instruction from dhcpcd allowing us
37 #to have physical iface scripts (gmsoft, 11 Nov 2003)
38 epatch "${FILESDIR}"/${P}-no-iface-down.diff
39 #remove hard-coded arch stuff (drobbins, 06 Sep 2003)
40 sed -i "s/ -march=i.86//g" configure
41 sed -i 's:/etc/ntp\.drift:/var/lib/ntp/ntp.drift:' dhcpconfig.c
42
43 # Add route metric option -m - fixes #76694 thanks to Andy Dustman
44 epatch "${FILESDIR}"/${P}-routemetric.patch
45
46 # man page buglet caused by drobbins patch - fixes #78839
47 epatch "${FILESDIR}"/${P}-man.patch
48
49 # Allow dhcpcd to use the FQDN option - fixes #64307
50 epatch "${FILESDIR}"/${P}-optionFQDN.patch
51
52 # Make dhcpcd mirror baselayout-1.11.x /etc/{resolv,ntp,yp}.conf files
53 # Also enables the -e option to specify the /etc dir where dhcpcd
54 # creates {resolv,ntp,yp}.conf
55 epatch "${FILESDIR}"/${P}-gentoo-config.patch
56
57 # Make sure we use paths from configure rather than hardcoded crap
58 sed -i \
59 -e '/^mandir/s:=.*:=@mandir@:' \
60 -e "/^docdir/s:=.*:=@datadir@/doc/${PF}:" \
61 Makefile.in || die
62
63 # Brand dhcpcd with the gentoo version
64 sed -i '/^#define VERSION/s/"$/-gentoo-'"${PR}"'"/' dhcpcd.h
65 sed -i '/^DHCPCD_REL=/s/$/-gentoo-'"${PR}"'/' configure
66 }
67
68 src_compile() {
69 use static && append-flags -static
70 append-flags -DDRAFT_OPTION_FQDN
71 econf --prefix=/ || die
72 emake || die
73 }
74
75 src_install() {
76 make install DESTDIR="${D}" || die "Install failed"
77 rm -r "${D}"/etc
78 if ! use build ; then
79 dodoc AUTHORS ChangeLog NEWS README
80 else
81 rm -r "${D}"/usr/share
82 fi
83 }

  ViewVC Help
Powered by ViewVC 1.1.20