Gentoo Archives: gentoo-commits

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