Gentoo Archives: gentoo-commits

From: "William Hubbs (williamh)" <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/dhcpcd: dhcpcd-5.99.6.ebuild ChangeLog dhcpcd-9999.ebuild
Date: Tue, 04 Jun 2013 01:30:45
Message-Id: 20130604013039.04CF52171D@flycatcher.gentoo.org
1 williamh 13/06/04 01:30:38
2
3 Modified: ChangeLog dhcpcd-9999.ebuild
4 Added: dhcpcd-5.99.6.ebuild
5 Log:
6 version bump and sync live ebuild. Also drop the zeroconf use flag since I was advised that use flags should not manipulate configuration files.
7
8 (Portage version: 2.2.0_alpha177/cvs/Linux i686, signed Manifest commit with key 0x30C46538)
9
10 Revision Changes Path
11 1.356 net-misc/dhcpcd/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/dhcpcd/ChangeLog?rev=1.356&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/dhcpcd/ChangeLog?rev=1.356&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/dhcpcd/ChangeLog?r1=1.355&r2=1.356
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/ChangeLog,v
20 retrieving revision 1.355
21 retrieving revision 1.356
22 diff -u -r1.355 -r1.356
23 --- ChangeLog 23 Apr 2013 22:58:25 -0000 1.355
24 +++ ChangeLog 4 Jun 2013 01:30:38 -0000 1.356
25 @@ -1,6 +1,13 @@
26 # ChangeLog for net-misc/dhcpcd
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/ChangeLog,v 1.355 2013/04/23 22:58:25 williamh Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/ChangeLog,v 1.356 2013/06/04 01:30:38 williamh Exp $
30 +
31 +*dhcpcd-5.99.6 (04 Jun 2013)
32 +
33 + 04 Jun 2013; William Hubbs <williamh@g.o> +dhcpcd-5.99.6.ebuild,
34 + dhcpcd-9999.ebuild:
35 + version bump and sync live ebuild. Also drop the zeroconf use flag since I
36 + was advised that use flags should not manipulate configuration files.
37
38 *dhcpcd-5.6.8 (23 Apr 2013)
39
40
41
42
43 1.4 net-misc/dhcpcd/dhcpcd-9999.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/dhcpcd/dhcpcd-9999.ebuild?rev=1.4&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/dhcpcd/dhcpcd-9999.ebuild?rev=1.4&content-type=text/plain
47 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/dhcpcd/dhcpcd-9999.ebuild?r1=1.3&r2=1.4
48
49 Index: dhcpcd-9999.ebuild
50 ===================================================================
51 RCS file: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/dhcpcd-9999.ebuild,v
52 retrieving revision 1.3
53 retrieving revision 1.4
54 diff -u -r1.3 -r1.4
55 --- dhcpcd-9999.ebuild 23 Apr 2013 22:58:25 -0000 1.3
56 +++ dhcpcd-9999.ebuild 4 Jun 2013 01:30:38 -0000 1.4
57 @@ -1,6 +1,6 @@
58 # Copyright 1999-2013 Gentoo Foundation
59 # Distributed under the terms of the GNU General Public License v2
60 -# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/dhcpcd-9999.ebuild,v 1.3 2013/04/23 22:58:25 williamh Exp $
61 +# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/dhcpcd-9999.ebuild,v 1.4 2013/06/04 01:30:38 williamh Exp $
62
63 EAPI=5
64
65 @@ -22,7 +22,7 @@
66 HOMEPAGE="http://roy.marples.name/projects/dhcpcd/"
67 LICENSE="BSD-2"
68 SLOT="0"
69 -IUSE="+zeroconf elibc_glibc"
70 +IUSE="elibc_glibc"
71
72 DEPEND=""
73 RDEPEND=""
74 @@ -30,14 +30,6 @@
75 src_prepare()
76 {
77 epatch_user
78 - if ! use zeroconf; then
79 - elog "Disabling zeroconf support"
80 - {
81 - echo
82 - echo "# dhcpcd ebuild requested no zeroconf"
83 - echo "noipv4ll"
84 - } >> dhcpcd.conf
85 - fi
86 }
87
88 src_configure()
89 @@ -59,11 +51,6 @@
90 systemd_dounit "${FILESDIR}"/${PN}.service
91 }
92
93 -pkg_preinst()
94 -{
95 - has_version 'net-misc/dhcpcd[zeroconf]' && prev_zero=true || prev_zero=false
96 -}
97 -
98 pkg_postinst()
99 {
100 # Upgrade the duid file to the new format if needed
101 @@ -78,12 +65,18 @@
102 cp -p "${old_duid}" "${new_duid}"
103 fi
104
105 - if use zeroconf && ! $prev_zero; then
106 - elog "You have installed dhcpcd with zeroconf support."
107 - elog "This means that it will always obtain an IP address even if no"
108 - elog "DHCP server can be contacted, which will break any existing"
109 - elog "failover support you may have configured in your net configuration."
110 - elog "This behaviour can be controlled with the -L flag."
111 - elog "See the dhcpcd man page for more details."
112 + elog
113 + elog "dhcpcd has zeroconf support active by default."
114 + elog "This means it will always obtain an IP address even if no"
115 + elog "DHCP server can be contacted, which will break any existing"
116 + elog "failover support you may have configured in your net configuration."
117 + elog "This behaviour can be controlled with the noipv4ll configuration"
118 + elog "file option or the -L command line switch."
119 + elog "See the dhcpcd and dhcpcd.conf man pages for more details."
120 +
121 + if ! has_version net-dns/bind-tools; then
122 + elog
123 + elog "If you activate the lookup-hostname hook to look up your hostname"
124 + elog "using the dns, you need to install net-dns/bind-tools."
125 fi
126 }
127
128
129
130 1.1 net-misc/dhcpcd/dhcpcd-5.99.6.ebuild
131
132 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/dhcpcd/dhcpcd-5.99.6.ebuild?rev=1.1&view=markup
133 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/dhcpcd/dhcpcd-5.99.6.ebuild?rev=1.1&content-type=text/plain
134
135 Index: dhcpcd-5.99.6.ebuild
136 ===================================================================
137 # Copyright 1999-2013 Gentoo Foundation
138 # Distributed under the terms of the GNU General Public License v2
139 # $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/dhcpcd-5.99.6.ebuild,v 1.1 2013/06/04 01:30:38 williamh Exp $
140
141 EAPI=5
142
143 if [[ ${PV} == "9999" ]]; then
144 EGIT_REPO_URI="git://roy.marples.name/${PN}.git"
145 inherit git-2
146 else
147 MY_P="${P/_alpha/-alpha}"
148 MY_P="${MY_P/_beta/-beta}"
149 MY_P="${MY_P/_rc/-rc}"
150 SRC_URI="http://roy.marples.name/downloads/${PN}/${MY_P}.tar.bz2"
151 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
152 S="${WORKDIR}/${MY_P}"
153 fi
154
155 inherit eutils systemd
156
157 DESCRIPTION="A fully featured, yet light weight RFC2131 compliant DHCP client"
158 HOMEPAGE="http://roy.marples.name/projects/dhcpcd/"
159 LICENSE="BSD-2"
160 SLOT="0"
161 IUSE="elibc_glibc"
162
163 DEPEND=""
164 RDEPEND=""
165
166 src_prepare()
167 {
168 epatch_user
169 }
170
171 src_configure()
172 {
173 local hooks="--with-hook=ntp.conf"
174 use elibc_glibc && hooks="${hooks} --with-hook=yp.conf"
175 econf \
176 --prefix="${EPREFIX}" \
177 --libexecdir="${EPREFIX}/lib/dhcpcd" \
178 --dbdir="${EPREFIX}/var/lib/dhcpcd" \
179 --localstatedir="${EPREFIX}/var" \
180 ${hooks}
181 }
182
183 src_install()
184 {
185 default
186 newinitd "${FILESDIR}"/${PN}.initd ${PN}
187 systemd_dounit "${FILESDIR}"/${PN}.service
188 }
189
190 pkg_postinst()
191 {
192 # Upgrade the duid file to the new format if needed
193 local old_duid="${ROOT}"/var/lib/dhcpcd/dhcpcd.duid
194 local new_duid="${ROOT}"/etc/dhcpcd.duid
195 if [ -e "${old_duid}" ] && ! grep -q '..:..:..:..:..:..' "${old_duid}"; then
196 sed -i -e 's/\(..\)/\1:/g; s/:$//g' "${old_duid}"
197 fi
198
199 # Move the duid to /etc, a more sensible location
200 if [ -e "${old_duid}" -a ! -e "${new_duid}" ]; then
201 cp -p "${old_duid}" "${new_duid}"
202 fi
203
204 elog
205 elog "dhcpcd has zeroconf support active by default."
206 elog "This means it will always obtain an IP address even if no"
207 elog "DHCP server can be contacted, which will break any existing"
208 elog "failover support you may have configured in your net configuration."
209 elog "This behaviour can be controlled with the noipv4ll configuration"
210 elog "file option or the -L command line switch."
211 elog "See the dhcpcd and dhcpcd.conf man pages for more details."
212
213 if ! has_version net-dns/bind-tools; then
214 elog
215 elog "If you activate the lookup-hostname hook to look up your hostname"
216 elog "using the dns, you need to install net-dns/bind-tools."
217 fi
218 }