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_beta2.ebuild |
Date: | Thu, 08 May 2008 21:02:49 |
Message-Id: | E1JuDGI-0004Ym-1v@stork.gentoo.org |
1 | armin76 08/05/08 21:02:46 |
2 | |
3 | Modified: ChangeLog |
4 | Added: dhcpcd-4.0.0_beta2.ebuild |
5 | Log: |
6 | Version bump |
7 | (Portage version: 2.1.4.4) |
8 | |
9 | Revision Changes Path |
10 | 1.188 net-misc/dhcpcd/ChangeLog |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dhcpcd/ChangeLog?rev=1.188&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dhcpcd/ChangeLog?rev=1.188&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dhcpcd/ChangeLog?r1=1.187&r2=1.188 |
15 | |
16 | Index: ChangeLog |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/ChangeLog,v |
19 | retrieving revision 1.187 |
20 | retrieving revision 1.188 |
21 | diff -u -r1.187 -r1.188 |
22 | --- ChangeLog 6 May 2008 14:28:55 -0000 1.187 |
23 | +++ ChangeLog 8 May 2008 21:02:45 -0000 1.188 |
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.187 2008/05/06 14:28:55 drac Exp $ |
28 | +# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/ChangeLog,v 1.188 2008/05/08 21:02:45 armin76 Exp $ |
29 | + |
30 | +*dhcpcd-4.0.0_beta2 (08 May 2008) |
31 | + |
32 | + 08 May 2008; Raúl Porcel <armin76@g.o> +dhcpcd-4.0.0_beta2.ebuild: |
33 | + Version bump |
34 | |
35 | *dhcpcd-4.0.0_beta1 (06 May 2008) |
36 | |
37 | |
38 | |
39 | |
40 | 1.1 net-misc/dhcpcd/dhcpcd-4.0.0_beta2.ebuild |
41 | |
42 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dhcpcd/dhcpcd-4.0.0_beta2.ebuild?rev=1.1&view=markup |
43 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dhcpcd/dhcpcd-4.0.0_beta2.ebuild?rev=1.1&content-type=text/plain |
44 | |
45 | Index: dhcpcd-4.0.0_beta2.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.0_beta2.ebuild,v 1.1 2008/05/08 21:02:45 armin76 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 | S="${WORKDIR}/${MY_P}" |
58 | |
59 | DESCRIPTION="A DHCP client" |
60 | HOMEPAGE="http://roy.marples.name/dhcpcd" |
61 | SRC_URI="http://roy.marples.name/${PN}/${MY_P}.tar.bz2" |
62 | LICENSE="BSD-2" |
63 | |
64 | KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
65 | |
66 | SLOT="0" |
67 | IUSE="+compat zeroconf" |
68 | |
69 | DEPEND="" |
70 | PROVIDE="virtual/dhcpc" |
71 | |
72 | src_unpack() { |
73 | unpack ${A} |
74 | cd "${S}" |
75 | |
76 | if ! use zeroconf; then |
77 | elog "Disabling zeroconf support" |
78 | { |
79 | echo |
80 | echo "# dhcpcd ebuild requested no zeroconf" |
81 | echo "noipv4ll" |
82 | } >> dhcpcd.conf |
83 | fi |
84 | |
85 | if use compat; then |
86 | elog "dhcpcd-3 command line support enabled" |
87 | { |
88 | echo |
89 | echo "/* User indicated command line compatability */" |
90 | echo "#define CMDLINE_COMPAT" |
91 | } >> config.h |
92 | fi |
93 | } |
94 | |
95 | src_compile() { |
96 | emake CC="$(tc-getCC)" DBDIR=/var/lib/dhcpcd || die |
97 | } |
98 | |
99 | src_install() { |
100 | emake DESTDIR="${D}" install || die |
101 | |
102 | dodir /etc/dhcpcd/dhcpcd-exit-hook.d |
103 | insinto /etc/dhcpcd/dhcpcd-exit-hook.d |
104 | # The sample ntp script only works with with NTP, not openntp |
105 | doins hook-samples/ntp.sh |
106 | # The sample ypbind script only works with linux |
107 | use elibc_glibc && doins hook-samples/ypbind.sh |
108 | } |
109 | |
110 | pkg_postinst() { |
111 | # Upgrade the duid file to the new format if needed |
112 | local old_duid="${ROOT}"/var/lib/dhcpcd/dhcpcd.duid |
113 | local new_duid="${ROOT}"/etc/dhcpcd/dhcpcd.duid |
114 | if [ -e "${old_duid}" ] && ! grep -q '..:..:..:..:..:..' "${old_duid}"; then |
115 | sed -i -e 's/\(..\)/\1:/g; s/:$//g' "${old_duid}" |
116 | fi |
117 | |
118 | # Move the duid to /etc, a more sensible location |
119 | if [ -e "${old_duid}" -a ! -e "${new_duid}" ]; then |
120 | cp -p "${old_duid}" "${new_duid}" |
121 | fi |
122 | |
123 | if use zeroconf; then |
124 | elog "You have installed dhcpcd with zeroconf support." |
125 | elog "This means that it will always obtain an IP address even if no" |
126 | elog "DHCP server can be contacted, which will break any existing" |
127 | elog "failover support you may have configured in your net configuration." |
128 | elog "This behaviour can be controlled with the -L flag." |
129 | elog "See the dhcpcd man page for more details." |
130 | fi |
131 | } |
132 | |
133 | |
134 | |
135 | -- |
136 | gentoo-commits@l.g.o mailing list |