Gentoo Archives: gentoo-commits

From: "Lars Wendler (polynomial-c)" <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/dhcpcd: ChangeLog dhcpcd-6.7.1.ebuild dhcpcd-6.6.5.ebuild dhcpcd-6.6.2.ebuild dhcpcd-6.6.4.ebuild dhcpcd-6.6.1.ebuild dhcpcd-6.6.0.ebuild
Date: Fri, 30 Jan 2015 11:10:00
Message-Id: 20150130110954.40BC810AC5@oystercatcher.gentoo.org
1 polynomial-c 15/01/30 11:09:54
2
3 Modified: ChangeLog
4 Added: dhcpcd-6.7.1.ebuild
5 Removed: dhcpcd-6.6.5.ebuild dhcpcd-6.6.2.ebuild
6 dhcpcd-6.6.4.ebuild dhcpcd-6.6.1.ebuild
7 dhcpcd-6.6.0.ebuild
8 Log:
9 Version bump. Removed old
10
11 (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)
12
13 Revision Changes Path
14 1.442 net-misc/dhcpcd/ChangeLog
15
16 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/dhcpcd/ChangeLog?rev=1.442&view=markup
17 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/dhcpcd/ChangeLog?rev=1.442&content-type=text/plain
18 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/dhcpcd/ChangeLog?r1=1.441&r2=1.442
19
20 Index: ChangeLog
21 ===================================================================
22 RCS file: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/ChangeLog,v
23 retrieving revision 1.441
24 retrieving revision 1.442
25 diff -u -r1.441 -r1.442
26 --- ChangeLog 10 Jan 2015 21:06:54 -0000 1.441
27 +++ ChangeLog 30 Jan 2015 11:09:54 -0000 1.442
28 @@ -1,6 +1,13 @@
29 # ChangeLog for net-misc/dhcpcd
30 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
31 -# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/ChangeLog,v 1.441 2015/01/10 21:06:54 klausman Exp $
32 +# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/ChangeLog,v 1.442 2015/01/30 11:09:54 polynomial-c Exp $
33 +
34 +*dhcpcd-6.7.1 (30 Jan 2015)
35 +
36 + 30 Jan 2015; Lars Wendler <polynomial-c@g.o> -dhcpcd-6.6.0.ebuild,
37 + -dhcpcd-6.6.1.ebuild, -dhcpcd-6.6.2.ebuild, -dhcpcd-6.6.4.ebuild,
38 + -dhcpcd-6.6.5.ebuild, +dhcpcd-6.7.1.ebuild:
39 + Version bump. Removed old.
40
41 10 Jan 2015; Tobias Klausmann <klausman@g.o> dhcpcd-6.4.7.ebuild:
42 Stable on alpha, bug 523900
43
44
45
46 1.1 net-misc/dhcpcd/dhcpcd-6.7.1.ebuild
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/dhcpcd/dhcpcd-6.7.1.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/dhcpcd/dhcpcd-6.7.1.ebuild?rev=1.1&content-type=text/plain
50
51 Index: dhcpcd-6.7.1.ebuild
52 ===================================================================
53 # Copyright 1999-2015 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/dhcpcd-6.7.1.ebuild,v 1.1 2015/01/30 11:09:54 polynomial-c Exp $
56
57 EAPI=5
58
59 if [[ ${PV} == "9999" ]]; then
60 FOSSIL_URI="http://roy.marples.name/projects/dhcpcd"
61 else
62 MY_P="${P/_alpha/-alpha}"
63 MY_P="${MY_P/_beta/-beta}"
64 MY_P="${MY_P/_rc/-rc}"
65 SRC_URI="http://roy.marples.name/downloads/${PN}/${MY_P}.tar.bz2"
66 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
67 S="${WORKDIR}/${MY_P}"
68 fi
69
70 inherit eutils systemd toolchain-funcs
71
72 DESCRIPTION="A fully featured, yet light weight RFC2131 compliant DHCP client"
73 HOMEPAGE="http://roy.marples.name/projects/dhcpcd/"
74 LICENSE="BSD-2"
75 SLOT="0"
76 IUSE="elibc_glibc ipv6 kernel_linux +udev"
77
78 COMMON_DEPEND="udev? ( virtual/udev )"
79 DEPEND="${COMMON_DEPEND}"
80 RDEPEND="${COMMON_DEPEND}"
81
82 if [[ ${PV} == "9999" ]]; then
83 DEPEND+=" dev-vcs/fossil"
84
85 src_unpack()
86 {
87 local distdir=${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}
88 local repo=${distdir}/fossil/${PN}.fossil
89
90 addwrite "${distdir}"
91
92 if [[ -e "${repo}" ]]; then
93 fossil pull "${FOSSIL_URI}" -R "${repo}" || die
94 else
95 mkdir -p "${distdir}/fossil" || die
96 fossil clone "${FOSSIL_URI}" "${repo}" || die
97 fi
98
99 mkdir -p "${S}" || die
100 cd "${S}" || die
101 fossil open "${repo}" || die
102 }
103 fi
104
105 src_prepare()
106 {
107 epatch_user
108 }
109
110 src_configure()
111 {
112 local dev hooks rundir
113 use udev || dev="--without-dev --without-udev"
114 hooks="--with-hook=ntp.conf"
115 use elibc_glibc && hooks="${hooks} --with-hook=yp.conf"
116 use kernel_linux && rundir="--rundir=${EPREFIX}/run"
117 econf \
118 --prefix="${EPREFIX}" \
119 --libexecdir="${EPREFIX}/lib/dhcpcd" \
120 --dbdir="${EPREFIX}/var/lib/dhcpcd" \
121 --localstatedir="${EPREFIX}/var" \
122 ${rundir} \
123 $(use_enable ipv6) \
124 ${dev} \
125 CC="$(tc-getCC)" \
126 ${hooks}
127 }
128
129 src_install()
130 {
131 default
132 newinitd "${FILESDIR}"/${PN}.initd ${PN}
133 systemd_dounit "${FILESDIR}"/${PN}.service
134 }
135
136 pkg_postinst()
137 {
138 # Upgrade the duid file to the new format if needed
139 local old_duid="${ROOT}"/var/lib/dhcpcd/dhcpcd.duid
140 local new_duid="${ROOT}"/etc/dhcpcd.duid
141 if [ -e "${old_duid}" ] && ! grep -q '..:..:..:..:..:..' "${old_duid}"; then
142 sed -i -e 's/\(..\)/\1:/g; s/:$//g' "${old_duid}"
143 fi
144
145 # Move the duid to /etc, a more sensible location
146 if [ -e "${old_duid}" -a ! -e "${new_duid}" ]; then
147 cp -p "${old_duid}" "${new_duid}"
148 fi
149
150 if [ -z "$REPLACING_VERSIONS" ]; then
151 elog
152 elog "dhcpcd has zeroconf support active by default."
153 elog "This means it will always obtain an IP address even if no"
154 elog "DHCP server can be contacted, which will break any existing"
155 elog "failover support you may have configured in your net configuration."
156 elog "This behaviour can be controlled with the noipv4ll configuration"
157 elog "file option or the -L command line switch."
158 elog "See the dhcpcd and dhcpcd.conf man pages for more details."
159
160 elog
161 elog "Dhcpcd has duid enabled by default, and this may cause issues"
162 elog "with some dhcp servers. For more information, see"
163 elog "https://bugs.gentoo.org/show_bug.cgi?id=477356"
164 fi
165
166 if ! has_version net-dns/bind-tools; then
167 elog
168 elog "If you activate the lookup-hostname hook to look up your hostname"
169 elog "using the dns, you need to install net-dns/bind-tools."
170 fi
171 }