1 |
chutzpah 15/04/28 18:16:54 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: dnsmasq-2.72-r1.ebuild |
5 |
Removed: dnsmasq-2.71-r1.ebuild dnsmasq-2.71.ebuild |
6 |
Log: |
7 |
Revision bump, pull in a couple of crasher fixes from upstream including one that could lead to an information leak (bug #547966). Update dependency on lua to include slot operator. Clean out a couple of old versions. |
8 |
|
9 |
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0xE3F69979BB4B8928DA78E3D17CBF44EF) |
10 |
|
11 |
Revision Changes Path |
12 |
1.265 net-dns/dnsmasq/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/dnsmasq/ChangeLog?rev=1.265&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/dnsmasq/ChangeLog?rev=1.265&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/dnsmasq/ChangeLog?r1=1.264&r2=1.265 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-dns/dnsmasq/ChangeLog,v |
21 |
retrieving revision 1.264 |
22 |
retrieving revision 1.265 |
23 |
diff -u -r1.264 -r1.265 |
24 |
--- ChangeLog 4 Dec 2014 08:32:02 -0000 1.264 |
25 |
+++ ChangeLog 28 Apr 2015 18:16:54 -0000 1.265 |
26 |
@@ -1,6 +1,16 @@ |
27 |
# ChangeLog for net-dns/dnsmasq |
28 |
-# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-dns/dnsmasq/ChangeLog,v 1.264 2014/12/04 08:32:02 ago Exp $ |
30 |
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
31 |
+# $Header: /var/cvsroot/gentoo-x86/net-dns/dnsmasq/ChangeLog,v 1.265 2015/04/28 18:16:54 chutzpah Exp $ |
32 |
+ |
33 |
+*dnsmasq-2.72-r1 (28 Apr 2015) |
34 |
+ |
35 |
+ 28 Apr 2015; Patrick McLean <chutzpah@g.o> +dnsmasq-2.72-r1.ebuild, +fi |
36 |
+ les/dnsmasq-2.72-Fix-crash-caused-by-looking-up-servers.bind-when-many-servers |
37 |
+ -defined.patch, +files/dnsmasq-2.72-Fix-crash-on-receipt-of-certain-malformed- |
38 |
+ DNS-requests.patch, -dnsmasq-2.71-r1.ebuild, -dnsmasq-2.71.ebuild: |
39 |
+ Revision bump, pull in a couple of crasher fixes from upstream including one |
40 |
+ that could lead to an information leak (bug #547966). Update dependency on lua |
41 |
+ to include slot operator. Clean out a couple of old versions. |
42 |
|
43 |
04 Dec 2014; Agostino Sarubbo <ago@g.o> dnsmasq-2.72.ebuild: |
44 |
Stable for ppc64, wrt bug #527536 |
45 |
|
46 |
|
47 |
|
48 |
1.1 net-dns/dnsmasq/dnsmasq-2.72-r1.ebuild |
49 |
|
50 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/dnsmasq/dnsmasq-2.72-r1.ebuild?rev=1.1&view=markup |
51 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/dnsmasq/dnsmasq-2.72-r1.ebuild?rev=1.1&content-type=text/plain |
52 |
|
53 |
Index: dnsmasq-2.72-r1.ebuild |
54 |
=================================================================== |
55 |
# Copyright 1999-2015 Gentoo Foundation |
56 |
# Distributed under the terms of the GNU General Public License v2 |
57 |
# $Header: /var/cvsroot/gentoo-x86/net-dns/dnsmasq/dnsmasq-2.72-r1.ebuild,v 1.1 2015/04/28 18:16:54 chutzpah Exp $ |
58 |
|
59 |
EAPI=5 |
60 |
|
61 |
inherit eutils toolchain-funcs flag-o-matic user systemd |
62 |
|
63 |
DESCRIPTION="Small forwarding DNS server" |
64 |
HOMEPAGE="http://www.thekelleys.org.uk/dnsmasq/" |
65 |
SRC_URI="http://www.thekelleys.org.uk/dnsmasq/${P}.tar.xz" |
66 |
|
67 |
LICENSE="|| ( GPL-2 GPL-3 )" |
68 |
SLOT="0" |
69 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
70 |
IUSE="auth-dns conntrack dbus +dhcp dhcp-tools dnssec idn ipv6 lua nls script selinux static tftp" |
71 |
DM_LINGUAS="de es fi fr id it no pl pt_BR ro" |
72 |
for dm_lingua in ${DM_LINGUAS}; do |
73 |
IUSE+=" linguas_${dm_lingua}" |
74 |
done |
75 |
|
76 |
CDEPEND="dbus? ( sys-apps/dbus ) |
77 |
idn? ( net-dns/libidn ) |
78 |
lua? ( dev-lang/lua:0 ) |
79 |
conntrack? ( !s390? ( net-libs/libnetfilter_conntrack ) ) |
80 |
nls? ( |
81 |
sys-devel/gettext |
82 |
net-dns/libidn |
83 |
) |
84 |
" |
85 |
|
86 |
DEPEND="${CDEPEND} |
87 |
app-arch/xz-utils |
88 |
dnssec? ( |
89 |
dev-libs/nettle[gmp] |
90 |
static? ( |
91 |
dev-libs/nettle[static-libs(+)] |
92 |
) |
93 |
) |
94 |
virtual/pkgconfig" |
95 |
|
96 |
RDEPEND="${CDEPEND} |
97 |
dnssec? ( |
98 |
!static? ( |
99 |
dev-libs/nettle[gmp] |
100 |
) |
101 |
) |
102 |
selinux? ( sec-policy/selinux-dnsmasq ) |
103 |
" |
104 |
|
105 |
REQUIRED_USE="dhcp-tools? ( dhcp ) |
106 |
lua? ( script ) |
107 |
s390? ( !conntrack )" |
108 |
|
109 |
use_have() { |
110 |
local useflag no_only uword |
111 |
if [[ $1 == '-n' ]]; then |
112 |
no_only=1 |
113 |
shift |
114 |
fi |
115 |
useflag="${1}" |
116 |
shift |
117 |
|
118 |
uword="${1:-${useflag}}" |
119 |
shift |
120 |
|
121 |
while [[ ${uword} ]]; do |
122 |
uword=${uword^^*} |
123 |
|
124 |
if ! use "${useflag}"; then |
125 |
echo -n " -DNO_${uword}" |
126 |
elif [[ -z "${no_only}" ]]; then |
127 |
echo -n " -DHAVE_${uword}" |
128 |
fi |
129 |
uword="${1}" |
130 |
shift |
131 |
done |
132 |
} |
133 |
|
134 |
pkg_pretend() { |
135 |
if use static; then |
136 |
einfo "Only sys-libs/gmp and dev-libs/nettle are statically linked." |
137 |
use dnssec || einfo "Thus, ${P}[!dnssec,static] makes no sense; the static USE flag is ignored." |
138 |
fi |
139 |
} |
140 |
|
141 |
pkg_setup() { |
142 |
enewgroup dnsmasq |
143 |
enewuser dnsmasq -1 -1 /dev/null dnsmasq |
144 |
} |
145 |
|
146 |
src_prepare() { |
147 |
sed -i -r 's:lua5.[0-9]+:lua:' Makefile |
148 |
sed -i "s:%%PREFIX%%:${EPREFIX}/usr:" dnsmasq.conf.example |
149 |
|
150 |
epatch "${FILESDIR}"/${P}-Fix-crash-on-receipt-of-certain-malformed-DNS-requests.patch |
151 |
epatch "${FILESDIR}"/${P}-Fix-crash-caused-by-looking-up-servers.bind-when-many-servers-defined.patch |
152 |
} |
153 |
|
154 |
src_configure() { |
155 |
COPTS="$(use_have -n auth-dns auth)" |
156 |
COPTS+="$(use_have conntrack)" |
157 |
COPTS+="$(use_have dbus)" |
158 |
COPTS+="$(use_have idn)" |
159 |
COPTS+="$(use_have -n dhcp dhcp dhcp6)" |
160 |
COPTS+="$(use_have -n ipv6 ipv6 dhcp6)" |
161 |
COPTS+="$(use_have lua luascript)" |
162 |
COPTS+="$(use_have -n script)" |
163 |
COPTS+="$(use_have -n tftp)" |
164 |
COPTS+="$(use_have dnssec)" |
165 |
COPTS+="$(use_have static dnssec_static)" |
166 |
} |
167 |
|
168 |
src_compile() { |
169 |
emake \ |
170 |
PREFIX=/usr \ |
171 |
CC="$(tc-getCC)" \ |
172 |
CFLAGS="${CFLAGS}" \ |
173 |
LDFLAGS="${LDFLAGS}" \ |
174 |
COPTS="${COPTS}" \ |
175 |
CONFFILE="/etc/${PN}.conf" \ |
176 |
all$(use nls && echo "-i18n") |
177 |
|
178 |
use dhcp-tools && emake -C contrib/wrt \ |
179 |
PREFIX=/usr \ |
180 |
CC="$(tc-getCC)" \ |
181 |
CFLAGS="${CFLAGS}" \ |
182 |
LDFLAGS="${LDFLAGS}" \ |
183 |
all |
184 |
} |
185 |
|
186 |
src_install() { |
187 |
local lingua puid |
188 |
emake \ |
189 |
PREFIX=/usr \ |
190 |
MANDIR=/usr/share/man \ |
191 |
DESTDIR="${D}" \ |
192 |
install$(use nls && echo "-i18n") |
193 |
|
194 |
for lingua in ${DM_LINGUAS}; do |
195 |
use linguas_${lingua} || rm -rf "${D}"/usr/share/locale/${lingua} |
196 |
done |
197 |
[[ -d "${D}"/usr/share/locale/ ]] && rmdir --ignore-fail-on-non-empty "${D}"/usr/share/locale/ |
198 |
|
199 |
dodoc CHANGELOG CHANGELOG.archive FAQ dnsmasq.conf.example |
200 |
dodoc -r logo |
201 |
|
202 |
dodoc CHANGELOG FAQ |
203 |
dohtml *.html |
204 |
|
205 |
newinitd "${FILESDIR}"/dnsmasq-init-r2 ${PN} |
206 |
newconfd "${FILESDIR}"/dnsmasq.confd-r1 ${PN} |
207 |
|
208 |
insinto /etc |
209 |
newins dnsmasq.conf.example dnsmasq.conf |
210 |
|
211 |
insinto /usr/share/dnsmasq |
212 |
doins trust-anchors.conf |
213 |
|
214 |
if use dhcp; then |
215 |
dodir /var/lib/misc |
216 |
newinitd "${FILESDIR}"/dnsmasq-init-dhcp-r1 ${PN} |
217 |
fi |
218 |
if use dbus; then |
219 |
insinto /etc/dbus-1/system.d |
220 |
doins dbus/dnsmasq.conf |
221 |
fi |
222 |
|
223 |
if use dhcp-tools; then |
224 |
dosbin contrib/wrt/{dhcp_release,dhcp_lease_time} |
225 |
doman contrib/wrt/{dhcp_release,dhcp_lease_time}.1 |
226 |
fi |
227 |
|
228 |
systemd_newunit "${FILESDIR}"/${PN}.service-r1 ${PN}.service |
229 |
|
230 |
} |
231 |
|
232 |
pkg_preinst() { |
233 |
# temporary workaround to (hopefully) prevent leases file from being removed |
234 |
[[ -f /var/lib/misc/dnsmasq.leases ]] && cp /var/lib/misc/dnsmasq.leases "${T}" |
235 |
} |
236 |
|
237 |
pkg_postinst() { |
238 |
# temporary workaround to (hopefully) prevent leases file from being removed |
239 |
[[ -f "${T}"/dnsmasq.leases ]] && cp "${T}"/dnsmasq.leases /var/lib/misc/dnsmasq.leases |
240 |
} |