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: ChangeLog dhcpcd-5.1.3-r1.ebuild
Date: Mon, 26 Oct 2009 03:01:48
Message-Id: E1N2Fq6-0002fN-Qq@stork.gentoo.org
1 williamh 09/10/26 03:01:46
2
3 Modified: ChangeLog
4 Added: dhcpcd-5.1.3-r1.ebuild
5 Log:
6 rev bump for #288588.
7 (Portage version: 2.2_rc46/cvs/Linux i686)
8
9 Revision Changes Path
10 1.263 net-misc/dhcpcd/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dhcpcd/ChangeLog?rev=1.263&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dhcpcd/ChangeLog?rev=1.263&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dhcpcd/ChangeLog?r1=1.262&r2=1.263
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/ChangeLog,v
19 retrieving revision 1.262
20 retrieving revision 1.263
21 diff -u -r1.262 -r1.263
22 --- ChangeLog 26 Oct 2009 02:38:33 -0000 1.262
23 +++ ChangeLog 26 Oct 2009 03:01:46 -0000 1.263
24 @@ -1,6 +1,13 @@
25 # ChangeLog for net-misc/dhcpcd
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/ChangeLog,v 1.262 2009/10/26 02:38:33 darkside Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/ChangeLog,v 1.263 2009/10/26 03:01:46 williamh Exp $
29 +
30 +*dhcpcd-5.1.3-r1 (26 Oct 2009)
31 +
32 + 26 Oct 2009; William Hubbs <williamh@g.o> +dhcpcd-5.1.3-r1.ebuild,
33 + files/dhcpcd.initd:
34 + Rev bump for #288588.
35 + This adds network to the use line in the init script.
36
37 *dhcpcd-5.1.3 (26 Oct 2009)
38
39
40
41
42 1.1 net-misc/dhcpcd/dhcpcd-5.1.3-r1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dhcpcd/dhcpcd-5.1.3-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dhcpcd/dhcpcd-5.1.3-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: dhcpcd-5.1.3-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/dhcpcd-5.1.3-r1.ebuild,v 1.1 2009/10/26 03:01:46 williamh Exp $
52
53 EAPI=1
54
55 inherit eutils
56
57 MY_P="${P/_alpha/-alpha}"
58 MY_P="${MY_P/_beta/-beta}"
59 MY_P="${MY_P/_rc/-rc}"
60 S="${WORKDIR}/${MY_P}"
61
62 DESCRIPTION="A fully featured, yet light weight RFC2131 compliant DHCP client"
63 HOMEPAGE="http://roy.marples.name/projects/dhcpcd/"
64 SRC_URI="http://roy.marples.name/downloads/${PN}/${MY_P}.tar.bz2"
65 LICENSE="BSD-2"
66
67 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
68
69 SLOT="0"
70 IUSE="+zeroconf"
71
72 DEPEND=""
73 PROVIDE="virtual/dhcpc"
74
75 src_unpack() {
76 unpack ${A}
77 cd "${S}"
78
79 if ! use zeroconf; then
80 elog "Disabling zeroconf support"
81 {
82 echo
83 echo "# dhcpcd ebuild requested no zeroconf"
84 echo "noipv4ll"
85 } >> dhcpcd.conf
86 fi
87 }
88
89 src_compile() {
90 local hooks="--with-hook=ntp.conf"
91 use elibc_glibc && hooks="${hooks} --with-hook=yp.conf"
92 econf --prefix= --libexecdir=/lib/dhcpcd --dbdir=/var/lib/dhcpcd \
93 --localstatedir=/var ${hooks}
94 emake || die
95 }
96
97 src_install() {
98 emake DESTDIR="${D}" install || die
99 newinitd "${FILESDIR}"/${PN}.initd ${PN}
100 }
101
102 pkg_postinst() {
103 # Upgrade the duid file to the new format if needed
104 local old_duid="${ROOT}"/var/lib/dhcpcd/dhcpcd.duid
105 local new_duid="${ROOT}"/etc/dhcpcd.duid
106 if [ -e "${old_duid}" ] && ! grep -q '..:..:..:..:..:..' "${old_duid}"; then
107 sed -i -e 's/\(..\)/\1:/g; s/:$//g' "${old_duid}"
108 fi
109
110 # Move the duid to /etc, a more sensible location
111 if [ -e "${old_duid}" -a ! -e "${new_duid}" ]; then
112 cp -p "${old_duid}" "${new_duid}"
113 fi
114
115 if use zeroconf; then
116 elog "You have installed dhcpcd with zeroconf support."
117 elog "This means that it will always obtain an IP address even if no"
118 elog "DHCP server can be contacted, which will break any existing"
119 elog "failover support you may have configured in your net configuration."
120 elog "This behaviour can be controlled with the -L flag."
121 elog "See the dhcpcd man page for more details."
122 fi
123
124 elog
125 elog "Users transfering from 4.0 series should pay attention to removal"
126 elog "of compat useflag. This changes behavior of dhcp in wide manner:"
127 elog "dhcpcd no longer sends a default ClientID for ethernet interfaces."
128 elog "This is so we can re-use the address the kernel DHCP client found."
129 elog "To retain the old behaviour of sending a default ClientID based on the"
130 elog "hardware address for interface, simply add the keyword clientid"
131 elog "to dhcpcd.conf or use commandline parameter -I ''"
132 }