1 |
the_paya 09/02/04 09:37:47 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: dhcpcd-4.0.10.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
(Portage version: 2.2_rc23/cvs/FreeBSD i386) |
8 |
|
9 |
Revision Changes Path |
10 |
1.236 net-misc/dhcpcd/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dhcpcd/ChangeLog?rev=1.236&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dhcpcd/ChangeLog?rev=1.236&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dhcpcd/ChangeLog?r1=1.235&r2=1.236 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/ChangeLog,v |
19 |
retrieving revision 1.235 |
20 |
retrieving revision 1.236 |
21 |
diff -u -r1.235 -r1.236 |
22 |
--- ChangeLog 28 Jan 2009 08:45:19 -0000 1.235 |
23 |
+++ ChangeLog 4 Feb 2009 09:37:47 -0000 1.236 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for net-misc/dhcpcd |
26 |
# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/ChangeLog,v 1.235 2009/01/28 08:45:19 armin76 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/ChangeLog,v 1.236 2009/02/04 09:37:47 the_paya Exp $ |
29 |
+ |
30 |
+*dhcpcd-4.0.10 (04 Feb 2009) |
31 |
+ |
32 |
+ 04 Feb 2009; Javier Villavicencio <the_paya@g.o> |
33 |
+ +dhcpcd-4.0.10.ebuild: |
34 |
+ Version bump. |
35 |
|
36 |
*dhcpcd-4.99.12 (28 Jan 2009) |
37 |
*dhcpcd-4.0.8 (28 Jan 2009) |
38 |
|
39 |
|
40 |
|
41 |
1.1 net-misc/dhcpcd/dhcpcd-4.0.10.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dhcpcd/dhcpcd-4.0.10.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dhcpcd/dhcpcd-4.0.10.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: dhcpcd-4.0.10.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2009 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/dhcpcd-4.0.10.ebuild,v 1.1 2009/02/04 09:37:47 the_paya Exp $ |
51 |
|
52 |
EAPI=1 |
53 |
|
54 |
inherit toolchain-funcs 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="+compat 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 |
if use compat; then |
88 |
elog "dhcpcd-3 command line support enabled" |
89 |
{ |
90 |
echo |
91 |
echo "/* User indicated command line compatability */" |
92 |
echo "#define CMDLINE_COMPAT" |
93 |
} >> config.h |
94 |
fi |
95 |
} |
96 |
|
97 |
pkg_setup() { |
98 |
MAKE_ARGS="DBDIR=/var/lib/dhcpcd LIBEXECDIR=/lib/dhcpcd" |
99 |
} |
100 |
|
101 |
src_compile() { |
102 |
[ -z "${MAKE_ARGS}" ] && die "MAKE_ARGS is empty" |
103 |
emake CC="$(tc-getCC)" ${MAKE_ARGS} || die |
104 |
} |
105 |
|
106 |
src_install() { |
107 |
local hooks="50-ntp.conf" |
108 |
use elibc_glibc && hooks="${hooks} 50-yp.conf" |
109 |
use compat && hooks="${hooks} 50-dhcpcd-compat" |
110 |
emake ${MAKE_ARGS} HOOKSCRIPTS="${hooks}" DESTDIR="${D}" install || die |
111 |
} |
112 |
|
113 |
pkg_postinst() { |
114 |
# Upgrade the duid file to the new format if needed |
115 |
local old_duid="${ROOT}"/var/lib/dhcpcd/dhcpcd.duid |
116 |
local new_duid="${ROOT}"/etc/dhcpcd.duid |
117 |
if [ -e "${old_duid}" ] && ! grep -q '..:..:..:..:..:..' "${old_duid}"; then |
118 |
sed -i -e 's/\(..\)/\1:/g; s/:$//g' "${old_duid}" |
119 |
fi |
120 |
|
121 |
# Move the duid to /etc, a more sensible location |
122 |
if [ -e "${old_duid}" -a ! -e "${new_duid}" ]; then |
123 |
cp -p "${old_duid}" "${new_duid}" |
124 |
fi |
125 |
|
126 |
if use zeroconf; then |
127 |
elog "You have installed dhcpcd with zeroconf support." |
128 |
elog "This means that it will always obtain an IP address even if no" |
129 |
elog "DHCP server can be contacted, which will break any existing" |
130 |
elog "failover support you may have configured in your net configuration." |
131 |
elog "This behaviour can be controlled with the -L flag." |
132 |
elog "See the dhcpcd man page for more details." |
133 |
fi |
134 |
if ! use compat; then |
135 |
elog |
136 |
elog "dhcpcd no longer sends a default ClientID for ethernet interfaces." |
137 |
elog "This is so we can re-use the address the kernel DHCP client found." |
138 |
elog "To retain the old behaviour of sending a default ClientID based on the" |
139 |
elog "hardware address for interface, simply add the keyword clientid" |
140 |
elog "to dhcpcd.conf or use commandline parameter -I ''" |
141 |
fi |
142 |
} |