1 |
uberlord 07/10/17 09:45:54 |
2 |
|
3 |
Modified: ChangeLog dhcpcd-3.1.6-r1.ebuild |
4 |
Log: |
5 |
Add zeroconf use flag and document behaviour, #196088 |
6 |
(Portage version: 2.1.3.12) |
7 |
|
8 |
Revision Changes Path |
9 |
1.167 net-misc/dhcpcd/ChangeLog |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dhcpcd/ChangeLog?rev=1.167&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dhcpcd/ChangeLog?rev=1.167&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dhcpcd/ChangeLog?r1=1.166&r2=1.167 |
14 |
|
15 |
Index: ChangeLog |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/ChangeLog,v |
18 |
retrieving revision 1.166 |
19 |
retrieving revision 1.167 |
20 |
diff -u -r1.166 -r1.167 |
21 |
--- ChangeLog 11 Oct 2007 09:48:53 -0000 1.166 |
22 |
+++ ChangeLog 17 Oct 2007 09:45:54 -0000 1.167 |
23 |
@@ -1,6 +1,9 @@ |
24 |
# ChangeLog for net-misc/dhcpcd |
25 |
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 |
26 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/ChangeLog,v 1.166 2007/10/11 09:48:53 uberlord Exp $ |
27 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/ChangeLog,v 1.167 2007/10/17 09:45:54 uberlord Exp $ |
28 |
+ |
29 |
+ 17 Oct 2007; Roy Marples <uberlord@g.o> dhcpcd-3.1.6-r1.ebuild: |
30 |
+ Add zeroconf use flag and document behaviour, #196088 |
31 |
|
32 |
*dhcpcd-3.1.6-r1 (11 Oct 2007) |
33 |
*dhcpcd-3.1.5-r1 (11 Oct 2007) |
34 |
|
35 |
|
36 |
|
37 |
1.2 net-misc/dhcpcd/dhcpcd-3.1.6-r1.ebuild |
38 |
|
39 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dhcpcd/dhcpcd-3.1.6-r1.ebuild?rev=1.2&view=markup |
40 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dhcpcd/dhcpcd-3.1.6-r1.ebuild?rev=1.2&content-type=text/plain |
41 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dhcpcd/dhcpcd-3.1.6-r1.ebuild?r1=1.1&r2=1.2 |
42 |
|
43 |
Index: dhcpcd-3.1.6-r1.ebuild |
44 |
=================================================================== |
45 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/dhcpcd-3.1.6-r1.ebuild,v |
46 |
retrieving revision 1.1 |
47 |
retrieving revision 1.2 |
48 |
diff -u -r1.1 -r1.2 |
49 |
--- dhcpcd-3.1.6-r1.ebuild 11 Oct 2007 09:28:01 -0000 1.1 |
50 |
+++ dhcpcd-3.1.6-r1.ebuild 17 Oct 2007 09:45:54 -0000 1.2 |
51 |
@@ -1,17 +1,19 @@ |
52 |
# Copyright 1999-2007 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/dhcpcd-3.1.6-r1.ebuild,v 1.1 2007/10/11 09:28:01 uberlord Exp $ |
55 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/dhcpcd-3.1.6-r1.ebuild,v 1.2 2007/10/17 09:45:54 uberlord Exp $ |
56 |
|
57 |
inherit toolchain-funcs |
58 |
|
59 |
DESCRIPTION="A DHCP client" |
60 |
HOMEPAGE="http://dhcpcd.berlios.de" |
61 |
SRC_URI="http://download.berlios.de/${PN}/${P}.tar.bz2" |
62 |
- |
63 |
LICENSE="GPL-2" |
64 |
-SLOT="0" |
65 |
+ |
66 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
67 |
-IUSE="vram" |
68 |
+ |
69 |
+SLOT="0" |
70 |
+EAPI="1" |
71 |
+IUSE="vram +zeroconf" |
72 |
|
73 |
DEPEND="" |
74 |
PROVIDE="virtual/dhcpc" |
75 |
@@ -28,10 +30,21 @@ |
76 |
echo "#define NTPDRIFTFILE \"/var/lib/ntp/ntp.drift\"" |
77 |
} >> config.h |
78 |
|
79 |
+ if use zeroconf; then |
80 |
+ einfo "ZeroConf support enabled" |
81 |
+ else |
82 |
+ einfo "Disabling zeroconf support" |
83 |
+ { |
84 |
+ echo |
85 |
+ echo "/* User indicated no zeroconf support */" |
86 |
+ echo "#undef ENABLE_IPV4LL" |
87 |
+ } >> config.h |
88 |
+ fi |
89 |
+ |
90 |
# Disable DUID support if we have volatile storage. |
91 |
# LiveCD's *should* enable this USE flag |
92 |
if use vram; then |
93 |
- einfo "Disabling DUID support in dhcpcd" |
94 |
+ einfo "Disabling DUID support" |
95 |
{ |
96 |
echo |
97 |
echo "/* User indicated volatile ram storage */" |
98 |
@@ -52,17 +65,27 @@ |
99 |
} |
100 |
|
101 |
pkg_postinst() { |
102 |
- use vram && return 0 |
103 |
+ if use zeroconf; then |
104 |
+ ewarn "You have installed dhcpcd with zeroconf support." |
105 |
+ einfo "This means that it will always obtain an IP address even if no" |
106 |
+ einfo "DHCP server can be contacted, which will break any existing" |
107 |
+ einfo "failover support you may have configured in your net configuration." |
108 |
+ einfo "This behaviour can be controlled with the -L flag." |
109 |
+ einfo "See the dhcpcd man page for more details." |
110 |
+ fi |
111 |
|
112 |
- ewarn "You have installed dhcpcd with DUID support." |
113 |
- einfo "This means that we will generate a DUID in /var/lib/dhcpcd/dhcpcd.duid" |
114 |
- einfo "This is generated from a MAC address of the card and a timestamp." |
115 |
- einfo "It will be used in every subsequent DHCP transaction, along with a IAID" |
116 |
- einfo "in the ClientID option. This is required by RFC 4361." |
117 |
- echo |
118 |
- ewarn "Some DHCP server implementations require a MAC address only in the" |
119 |
- ewarn "ClientID field. These DHCP servers should be updated to be RFC" |
120 |
- ewarn "conformant. If you cannot do this, you can revert to the old" |
121 |
- ewarn "behaviour by using the -I '' option OR building dhcpcd with the" |
122 |
- ewarn "vram USE flag enabled." |
123 |
+ if ! use vram; then |
124 |
+ use zeroconf && echo |
125 |
+ ewarn "You have installed dhcpcd with DUID support." |
126 |
+ einfo "This means that we will generate a DUID in /var/lib/dhcpcd/dhcpcd.duid" |
127 |
+ einfo "This is generated from a MAC address of the card and a timestamp." |
128 |
+ einfo "It will be used in every subsequent DHCP transaction, along with a IAID" |
129 |
+ einfo "in the ClientID option. This is required by RFC 4361." |
130 |
+ echo |
131 |
+ ewarn "Some DHCP server implementations require a MAC address only in the" |
132 |
+ ewarn "ClientID field. These DHCP servers should be updated to be RFC" |
133 |
+ ewarn "conformant. If you cannot do this, you can revert to the old" |
134 |
+ ewarn "behaviour by using the -I '' option OR building dhcpcd with the" |
135 |
+ ewarn "vram USE flag enabled." |
136 |
+ fi |
137 |
} |
138 |
|
139 |
|
140 |
|
141 |
-- |
142 |
gentoo-commits@g.o mailing list |