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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Thu Oct 2 18:13:32 2003 UTC (16 years, 2 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
old

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_p3-r3.ebuild,v 1.5 2003/02/26 10:58:06 gmsoft Exp $
4
5 inherit gnuconfig
6
7 S=${WORKDIR}/${P/_p/-pl}
8 DESCRIPTION="A dhcp client only"
9 SRC_URI="ftp://ftp.phystech.com/pub/${P/_p/-pl}.tar.gz"
10 HOMEPAGE="http://www.phystech.com/download/"
11 DEPEND=""
12 SLOT="0"
13 KEYWORDS="x86 ppc sparc alpha hppa mips"
14 LICENSE="GPL-2"
15 IUSE="alpha build"
16
17 src_unpack() {
18 unpack ${A} || die "unpack failed"
19 use alpha && gnuconfig_update
20
21 #make the pidfile always goto /var/run (woodchip Dec 4 2002)
22 cd ${S}
23 cp client.c client.c.orig
24 sed -e 's%\(PID_FILE_PATH,\)ConfigDir\(,IfNameExt\)%\1"/var/run"\2%' \
25 client.c.orig >client.c
26 cp signals.c signals.c.orig
27 sed -e 's%\(PID_FILE_PATH,\)ConfigDir\(,IfNameExt\)%\1"/var/run"\2%' \
28 signals.c.orig >signals.c
29 }
30
31 src_compile() {
32 [ "${ARCH}" = "hppa" ] && CBUILD="${CHOST}"
33 econf || die "Configure failed"
34 emake || die "Make failed"
35 }
36
37 src_install () {
38 einstall sbindir=${D}/sbin || die "Install failed"
39 if [ -z "`use build`" ]
40 then
41 dodoc AUTHORS COPYING ChangeLog NEWS README
42 else
43 rm -rf ${D}/usr/share
44 fi
45 }

  ViewVC Help
Powered by ViewVC 1.1.20