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