Gentoo Archives: gentoo-commits

From: "Remi Cardona (remi)" <remi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/dhcpcd: ChangeLog dhcpcd-4.0.1.ebuild
Date: Mon, 25 Aug 2008 10:17:43
Message-Id: E1KXZ8m-0006Gu-Dc@stork.gentoo.org
1 remi 08/08/25 10:17:40
2
3 Modified: ChangeLog
4 Added: dhcpcd-4.0.1.ebuild
5 Log:
6 net-misc/dhcpcd: bump to 4.0.1 as per Roy's comments in bug #235643
7 (Portage version: 2.2_rc8/cvs/Linux 2.6.25-gentoo-r6 x86_64)
8
9 Revision Changes Path
10 1.204 net-misc/dhcpcd/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dhcpcd/ChangeLog?rev=1.204&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dhcpcd/ChangeLog?rev=1.204&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dhcpcd/ChangeLog?r1=1.203&r2=1.204
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/ChangeLog,v
19 retrieving revision 1.203
20 retrieving revision 1.204
21 diff -u -r1.203 -r1.204
22 --- ChangeLog 24 Aug 2008 20:57:10 -0000 1.203
23 +++ ChangeLog 25 Aug 2008 10:17:39 -0000 1.204
24 @@ -1,6 +1,11 @@
25 # ChangeLog for net-misc/dhcpcd
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/ChangeLog,v 1.203 2008/08/24 20:57:10 armin76 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/ChangeLog,v 1.204 2008/08/25 10:17:39 remi Exp $
29 +
30 +*dhcpcd-4.0.1 (25 Aug 2008)
31 +
32 + 25 Aug 2008; RĂ©mi Cardona <remi@g.o> +dhcpcd-4.0.1.ebuild:
33 + bump to 4.0.1 as per Roy's comments in bug #235643
34
35 *dhcpcd-4.0.0 (24 Aug 2008)
36
37
38
39
40 1.1 net-misc/dhcpcd/dhcpcd-4.0.1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dhcpcd/dhcpcd-4.0.1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dhcpcd/dhcpcd-4.0.1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: dhcpcd-4.0.1.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/dhcpcd-4.0.1.ebuild,v 1.1 2008/08/25 10:17:39 remi Exp $
50
51 EAPI=1
52
53 inherit toolchain-funcs
54
55 MY_P="${P/_alpha/-alpha}"
56 MY_P="${MY_P/_beta/-beta}"
57 MY_P="${MY_P/_rc/-rc}"
58 S="${WORKDIR}/${MY_P}"
59
60 DESCRIPTION="A DHCP client"
61 HOMEPAGE="http://roy.marples.name/dhcpcd"
62 SRC_URI="http://roy.marples.name/${PN}/${MY_P}.tar.bz2"
63 LICENSE="BSD-2"
64
65 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
66
67 SLOT="0"
68 IUSE="+compat zeroconf"
69
70 DEPEND=""
71 PROVIDE="virtual/dhcpc"
72
73 src_unpack() {
74 unpack ${A}
75 cd "${S}"
76
77 if ! use zeroconf; then
78 elog "Disabling zeroconf support"
79 {
80 echo
81 echo "# dhcpcd ebuild requested no zeroconf"
82 echo "noipv4ll"
83 } >> dhcpcd.conf
84 fi
85
86 if use compat; then
87 elog "dhcpcd-3 command line support enabled"
88 {
89 echo
90 echo "/* User indicated command line compatability */"
91 echo "#define CMDLINE_COMPAT"
92 } >> config.h
93 fi
94 }
95
96 pkg_setup() {
97 MAKE_ARGS="DBDIR=/var/lib/dhcpcd LIBEXECDIR=/lib/dhcpcd"
98 }
99
100 src_compile() {
101 [ -z "${MAKE_ARGS}" ] && die "MAKE_ARGS is empty"
102 emake CC="$(tc-getCC)" ${MAKE_ARGS} || die
103 }
104
105 src_install() {
106 local hooks="50-ntp.conf"
107 use elibc_glibc && hooks="${hooks} 50-yp.conf"
108 emake ${MAKE_ARGS} HOOKSCRIPTS="${hooks}" DESTDIR="${D}" install || die
109 }
110
111 pkg_postinst() {
112 # Upgrade the duid file to the new format if needed
113 local old_duid="${ROOT}"/var/lib/dhcpcd/dhcpcd.duid
114 local new_duid="${ROOT}"/etc/dhcpcd.duid
115 if [ -e "${old_duid}" ] && ! grep -q '..:..:..:..:..:..' "${old_duid}"; then
116 sed -i -e 's/\(..\)/\1:/g; s/:$//g' "${old_duid}"
117 fi
118
119 # Move the duid to /etc, a more sensible location
120 if [ -e "${old_duid}" -a ! -e "${new_duid}" ]; then
121 cp -p "${old_duid}" "${new_duid}"
122 fi
123
124 if use zeroconf; then
125 elog "You have installed dhcpcd with zeroconf support."
126 elog "This means that it will always obtain an IP address even if no"
127 elog "DHCP server can be contacted, which will break any existing"
128 elog "failover support you may have configured in your net configuration."
129 elog "This behaviour can be controlled with the -L flag."
130 elog "See the dhcpcd man page for more details."
131 fi
132 }