Gentoo Archives: gentoo-commits

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