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