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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue May 6 14:35:07 2008 UTC (11 years, 7 months ago) by drac
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.5_rc6)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/dhcpcd-3.1.7.ebuild,v 1.2 2007/10/22 08:26:14 uberlord Exp $
4
5 inherit toolchain-funcs
6
7 DESCRIPTION="A DHCP client"
8 HOMEPAGE="http://dhcpcd.berlios.de"
9 SRC_URI="http://download.berlios.de/${PN}/${P}.tar.bz2"
10 LICENSE="GPL-2"
11
12 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
13
14 SLOT="0"
15 IUSE="vram zeroconf"
16
17 DEPEND=""
18 PROVIDE="virtual/dhcpc"
19
20 src_unpack() {
21 unpack ${A}
22 cd "${S}"
23
24 # Redefine the location of ntp.drift
25 {
26 echo
27 echo "/* Gentoo stores ntpd drift file here */"
28 echo "#undef NTPDRIFTFILE"
29 echo "#define NTPDRIFTFILE \"/var/lib/ntp/ntp.drift\""
30 } >> config.h
31
32 if use zeroconf; then
33 einfo "ZeroConf support enabled"
34 else
35 einfo "Disabling zeroconf support"
36 {
37 echo
38 echo "/* User indicated no zeroconf support */"
39 echo "#undef ENABLE_IPV4LL"
40 } >> config.h
41 fi
42
43 # Disable DUID support if we have volatile storage.
44 # LiveCD's *should* enable this USE flag
45 if use vram; then
46 einfo "Disabling DUID support"
47 {
48 echo
49 echo "/* User indicated volatile ram storage */"
50 echo "#undef ENABLE_DUID"
51 } >> config.h
52 else
53 einfo "DUID support enabled"
54 fi
55 }
56
57 src_compile() {
58 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die
59 }
60
61 src_install() {
62 emake DESTDIR="${D}" install || die
63 dodoc ChangeLog
64 }
65
66 pkg_postinst() {
67 if use zeroconf; then
68 ewarn "You have installed dhcpcd with zeroconf support."
69 elog "This means that it will always obtain an IP address even if no"
70 elog "DHCP server can be contacted, which will break any existing"
71 elog "failover support you may have configured in your net configuration."
72 elog "This behaviour can be controlled with the -L flag."
73 elog "See the dhcpcd man page for more details."
74 fi
75
76 if ! use vram; then
77 use zeroconf && echo
78 ewarn "You have installed dhcpcd with DUID support."
79 elog "This means that we will generate a DUID in /var/lib/dhcpcd/dhcpcd.duid"
80 elog "This is generated from a MAC address of the card and a timestamp."
81 elog "It will be used in every subsequent DHCP transaction, along with a IAID"
82 elog "in the ClientID option. This is required by RFC 4361."
83 echo
84 ewarn "Some DHCP server implementations require a MAC address only in the"
85 ewarn "ClientID field. These DHCP servers should be updated to be RFC"
86 ewarn "conformant. If you cannot do this, you can revert to the old"
87 ewarn "behaviour by using the -I '' option OR building dhcpcd with the"
88 ewarn "vram USE flag enabled."
89 fi
90 }

  ViewVC Help
Powered by ViewVC 1.1.20