/[gentoo-x86]/net-misc/dhcpcd/dhcpcd-2.0.1.ebuild
Gentoo

Contents of /net-misc/dhcpcd/dhcpcd-2.0.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Apr 21 19:12:14 2006 UTC (13 years, 7 months ago) by uberlord
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Punt old versions
(Portage version: 2.1_pre7-r5)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/dhcpcd-2.0.1.ebuild,v 1.1 2006/01/22 01:25:56 uberlord Exp $
4
5 inherit flag-o-matic eutils
6
7 DESCRIPTION="A DHCP client only"
8 HOMEPAGE="http://developer.berlios.de/projects/dhcpcd/"
9 SRC_URI="http://download.berlios.de/${PN}/${P}.tar.bz2"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
14 IUSE="build debug static"
15
16 DEPEND=""
17 PROVIDE="virtual/dhcpc"
18
19 pkg_setup() {
20 if use debug ; then
21 ewarn "WARNING: dhcpcd will provide good debugging output with the"
22 ewarn "debug USE flag enabled but will not actually configure the"
23 ewarn "interface or setup /etc/resolv.conf"
24 fi
25 }
26
27 src_unpack() {
28 unpack "${A}"
29 cd "${S}"
30
31 # Redefine the location of ntp.drift
32 sed -i 's:/etc/ntp\.drift:/var/lib/ntp/ntp.drift:' src/dhcpconfig.c
33 }
34
35 src_compile() {
36 local myconf="$( use_enable debug )"
37 use static && append-flags -static
38
39 econf ${myconf} || die
40 emake || die
41 }
42
43 src_install() {
44 into /
45 dosbin src/dhcpcd || die
46
47 if ! use build ; then
48 dodoc AUTHORS ChangeLog NEWS README
49 doman src/dhcpcd.8
50 fi
51 }

  ViewVC Help
Powered by ViewVC 1.1.20