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