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-fs/samba: ChangeLog samba-4.0.21.ebuild samba-4.1.11.ebuild samba-4.0.18.ebuild samba-4.1.8.ebuild
Date: Fri, 01 Aug 2014 23:30:27
Message-Id: 20140801233022.32B2C2004E@flycatcher.gentoo.org
1 polynomial-c 14/08/01 23:30:21
2
3 Modified: ChangeLog
4 Added: samba-4.0.21.ebuild samba-4.1.11.ebuild
5 Removed: samba-4.0.18.ebuild samba-4.1.8.ebuild
6 Log:
7 Security bump (bug #518766). Removed old
8
9 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)
10
11 Revision Changes Path
12 1.678 net-fs/samba/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/ChangeLog?rev=1.678&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/ChangeLog?rev=1.678&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/ChangeLog?r1=1.677&r2=1.678
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v
21 retrieving revision 1.677
22 retrieving revision 1.678
23 diff -u -r1.677 -r1.678
24 --- ChangeLog 28 Jul 2014 13:48:41 -0000 1.677
25 +++ ChangeLog 1 Aug 2014 23:30:20 -0000 1.678
26 @@ -1,6 +1,13 @@
27 # ChangeLog for net-fs/samba
28 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.677 2014/07/28 13:48:41 ago Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.678 2014/08/01 23:30:20 polynomial-c Exp $
31 +
32 +*samba-4.1.11 (01 Aug 2014)
33 +*samba-4.0.21 (01 Aug 2014)
34 +
35 + 01 Aug 2014; Lars Wendler <polynomial-c@g.o> -samba-4.0.18.ebuild,
36 + +samba-4.0.21.ebuild, -samba-4.1.8.ebuild, +samba-4.1.11.ebuild:
37 + Security bump (bug #518766). Removed old.
38
39 28 Jul 2014; Agostino Sarubbo <ago@g.o> samba-3.6.23-r1.ebuild:
40 Stable for ppc, wrt bug #512012
41
42
43
44 1.1 net-fs/samba/samba-4.0.21.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/samba-4.0.21.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/samba-4.0.21.ebuild?rev=1.1&content-type=text/plain
48
49 Index: samba-4.0.21.ebuild
50 ===================================================================
51 # Copyright 1999-2014 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/net-fs/samba/samba-4.0.21.ebuild,v 1.1 2014/08/01 23:30:20 polynomial-c Exp $
54
55 EAPI=5
56 PYTHON_COMPAT=( python2_{6,7} )
57
58 inherit python-r1 waf-utils multilib linux-info systemd
59
60 MY_PV="${PV/_rc/rc}"
61 MY_P="${PN}-${MY_PV}"
62
63 if [ "${PV}" = "4.9999" ]; then
64 EGIT_REPO_URI="git://git.samba.org/samba.git"
65 KEYWORDS=""
66 inherit git-2
67 else
68 SRC_URI="mirror://samba/stable/${MY_P}.tar.gz"
69 KEYWORDS="~amd64 ~hppa ~x86"
70 fi
71
72 DESCRIPTION="Samba Suite Version 4"
73 HOMEPAGE="http://www.samba.org/"
74 LICENSE="GPL-3"
75
76 SLOT="0"
77
78 IUSE="acl addns ads aio avahi client cluster cups dmapi fam gnutls iprint
79 ldap quota selinux swat syslog test winbind"
80
81 # sys-apps/attr is an automagic dependency (see bug #489748)
82 # sys-libs/pam is an automagic dependency (see bug #489770)
83 CDEPEND="${PYTHON_DEPS}
84 >=app-crypt/heimdal-1.5[-ssl]
85 dev-libs/iniparser
86 dev-libs/popt
87 sys-libs/readline
88 virtual/libiconv
89 dev-python/subunit
90 sys-apps/attr
91 sys-libs/libcap
92 >=sys-libs/ldb-1.1.16
93 >=sys-libs/tdb-1.2.11[python]
94 >=sys-libs/talloc-2.0.8[python]
95 >=sys-libs/tevent-0.9.18
96 sys-libs/zlib
97 virtual/pam
98 acl? ( virtual/acl )
99 addns? ( net-dns/bind-tools[gssapi] )
100 aio? ( dev-libs/libaio )
101 cluster? ( >=dev-db/ctdb-1.0.114_p1 )
102 cups? ( net-print/cups )
103 dmapi? ( sys-apps/dmapi )
104 fam? ( virtual/fam )
105 gnutls? ( dev-libs/libgcrypt:0
106 >=net-libs/gnutls-1.4.0 )
107 ldap? ( net-nds/openldap )
108 selinux? ( sec-policy/selinux-samba )"
109 DEPEND="${CDEPEND}
110 virtual/pkgconfig"
111 RDEPEND="${CDEPEND}
112 client? ( net-fs/cifs-utils[ads?] )"
113
114 REQUIRED_USE="ads? ( acl ldap )"
115
116 RESTRICT="mirror"
117
118 S="${WORKDIR}/${MY_P}"
119
120 CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
121
122 # sys-apps/dmapi is an automagic dependency (see bug #474492)
123 PATCHES=(
124 "${FILESDIR}/${PN}-4.1.0-remove-dmapi-automagic.patch"
125 "${FILESDIR}/named.conf.dlz.patch"
126 "${FILESDIR}/${PN}-4.0.19-automagic_aio_fix.patch"
127 )
128
129 WAF_BINARY="${S}/buildtools/bin/waf"
130
131 pkg_setup() {
132 python_export_best
133 if use aio; then
134 if ! linux_config_exists || ! linux_chkconfig_present AIO; then
135 ewarn "You must enable AIO support in your kernel config, "
136 ewarn "to be able to support asynchronous I/O. "
137 ewarn "You can find it at"
138 ewarn
139 ewarn "General Support"
140 ewarn " Enable AIO support "
141 ewarn
142 ewarn "and recompile your kernel..."
143 fi
144 fi
145 }
146
147 src_configure() {
148 local myconf=''
149 use "cluster" && myconf+=" --with-ctdb-dir=/usr"
150 use "test" && myconf+=" --enable-selftest"
151 myconf="${myconf} \
152 --enable-fhs \
153 --sysconfdir=/etc \
154 --localstatedir=/var \
155 --with-modulesdir=/usr/$(get_libdir)/samba \
156 --with-pammodulesdir=/$(get_libdir)/security \
157 --with-piddir=/var/run/${PN} \
158 --disable-rpath \
159 --disable-rpath-install \
160 --nopyc \
161 --nopyo \
162 --disable-ntdb \
163 --bundled-libraries=NONE \
164 --builtin-libraries=NONE \
165 $(use_with addns dnsupdate) \
166 $(use_with acl acl-support) \
167 $(use_with ads) \
168 $(use_with aio aio-support) \
169 $(use_enable avahi) \
170 $(use_with cluster cluster-support) \
171 $(use_enable cups) \
172 $(use_with dmapi) \
173 $(use_with fam) \
174 $(use_enable gnutls) \
175 $(use_enable iprint) \
176 $(use_with ldap) \
177 --with-pam \
178 --with-pam_smbpass \
179 $(use_with quota quotas) \
180 $(use_with syslog) \
181 $(use_with swat) \
182 $(use_with winbind)
183 "
184 use "ads" && myconf+=" --with-shared-modules=idmap_ad"
185
186 CPPFLAGS="-I/usr/include/et ${CPPFLAGS}" \
187 waf-utils_src_configure ${myconf}
188 }
189
190 src_install() {
191 waf-utils_src_install
192
193 # install ldap schema for server (bug #491002)
194 if use ldap ; then
195 insinto /etc/openldap/schema
196 doins examples/LDAP/samba.schema
197 fi
198
199 # Make all .so files executable
200 find "${D}" -type f -name "*.so" -exec chmod +x {} +
201
202 # Install init script and conf.d file
203 newinitd "${CONFDIR}/samba4.initd-r1" samba
204 newconfd "${CONFDIR}/samba4.confd" samba
205
206 systemd_dotmpfilesd "${FILESDIR}"/samba.conf
207 systemd_dounit "${FILESDIR}"/nmbd.service
208 systemd_dounit "${FILESDIR}"/smbd.{service,socket}
209 systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service'
210 systemd_dounit "${FILESDIR}"/winbindd.service
211 }
212
213 src_test() {
214 "${WAF_BINARY}" test || die "test failed"
215 }
216
217 pkg_postinst() {
218 elog "This is is the first stable release of Samba 4.0"
219
220 ewarn "Be aware the this release contains the best of all of Samba's"
221 ewarn "technology parts, both a file server (that you can reasonably expect"
222 ewarn "to upgrade existing Samba 3.x releases to) and the AD domain"
223 ewarn "controller work previously known as 'samba4'."
224
225 elog "For further information and migration steps make sure to read "
226 elog "http://samba.org/samba/history/${P}.html "
227 elog "http://samba.org/samba/history/${PN}-4.0.0.html and"
228 elog "http://wiki.samba.org/index.php/Samba4/HOWTO "
229 }
230
231
232
233 1.1 net-fs/samba/samba-4.1.11.ebuild
234
235 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/samba-4.1.11.ebuild?rev=1.1&view=markup
236 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/samba-4.1.11.ebuild?rev=1.1&content-type=text/plain
237
238 Index: samba-4.1.11.ebuild
239 ===================================================================
240 # Copyright 1999-2014 Gentoo Foundation
241 # Distributed under the terms of the GNU General Public License v2
242 # $Header: /var/cvsroot/gentoo-x86/net-fs/samba/samba-4.1.11.ebuild,v 1.1 2014/08/01 23:30:20 polynomial-c Exp $
243
244 EAPI=5
245 PYTHON_COMPAT=( python2_{6,7} )
246
247 inherit python-r1 waf-utils multilib linux-info systemd
248
249 MY_PV="${PV/_rc/rc}"
250 MY_P="${PN}-${MY_PV}"
251
252 SRC_URI="mirror://samba/stable/${MY_P}.tar.gz"
253 KEYWORDS="~amd64 ~hppa ~x86"
254
255 DESCRIPTION="Samba Suite Version 4"
256 HOMEPAGE="http://www.samba.org/"
257 LICENSE="GPL-3"
258
259 SLOT="0"
260
261 IUSE="acl addns ads aio avahi client cluster cups dmapi fam gnutls iprint
262 ldap quota selinux syslog test winbind"
263
264 # sys-apps/attr is an automagic dependency (see bug #489748)
265 # dev-libs/libaio is an automagic dependency (see bug #489764)
266 # sys-libs/pam is an automagic dependency (see bug #489770)
267 CDEPEND="${PYTHON_DEPS}
268 >=app-crypt/heimdal-1.5[-ssl]
269 dev-libs/iniparser
270 dev-libs/popt
271 sys-libs/readline
272 virtual/libiconv
273 dev-python/subunit
274 sys-apps/attr
275 sys-libs/libcap
276 >=sys-libs/ntdb-1.0[python]
277 >=sys-libs/ldb-1.1.16
278 >=sys-libs/tdb-1.2.11[python]
279 >=sys-libs/talloc-2.0.8[python]
280 >=sys-libs/tevent-0.9.18
281 sys-libs/zlib
282 virtual/pam
283 acl? ( virtual/acl )
284 addns? ( net-dns/bind-tools[gssapi] )
285 aio? ( dev-libs/libaio )
286 cluster? ( >=dev-db/ctdb-1.0.114_p1 )
287 cups? ( net-print/cups )
288 dmapi? ( sys-apps/dmapi )
289 fam? ( virtual/fam )
290 gnutls? ( dev-libs/libgcrypt:0
291 >=net-libs/gnutls-1.4.0 )
292 ldap? ( net-nds/openldap )
293 selinux? ( sec-policy/selinux-samba )"
294 DEPEND="${CDEPEND}
295 virtual/pkgconfig"
296 RDEPEND="${CDEPEND}
297 client? ( net-fs/cifs-utils[ads?] )"
298
299 REQUIRED_USE="ads? ( acl ldap )"
300
301 RESTRICT="mirror"
302
303 S="${WORKDIR}/${MY_P}"
304
305 CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
306
307 # sys-apps/dmapi is an automagic dependency (see bug #474492)
308 PATCHES=(
309 "${FILESDIR}/${PN}-4.1.0-remove-dmapi-automagic.patch"
310 "${FILESDIR}/named.conf.dlz.patch"
311 "${FILESDIR}/${PN}-4.0.19-automagic_aio_fix.patch"
312 )
313
314 WAF_BINARY="${S}/buildtools/bin/waf"
315
316 pkg_setup() {
317 python_export_best
318 if use aio; then
319 if ! linux_config_exists || ! linux_chkconfig_present AIO; then
320 ewarn "You must enable AIO support in your kernel config, "
321 ewarn "to be able to support asynchronous I/O. "
322 ewarn "You can find it at"
323 ewarn
324 ewarn "General Support"
325 ewarn " Enable AIO support "
326 ewarn
327 ewarn "and recompile your kernel..."
328 fi
329 fi
330 }
331
332 src_configure() {
333 local myconf=''
334 use "cluster" && myconf+=" --with-ctdb-dir=/usr"
335 use "test" && myconf+=" --enable-selftest"
336 myconf="${myconf} \
337 --enable-fhs \
338 --sysconfdir=/etc \
339 --localstatedir=/var \
340 --with-modulesdir=/usr/$(get_libdir)/samba \
341 --with-pammodulesdir=/$(get_libdir)/security \
342 --with-piddir=/var/run/${PN} \
343 --disable-rpath \
344 --disable-rpath-install \
345 --nopyc \
346 --nopyo \
347 --bundled-libraries=NONE \
348 --builtin-libraries=NONE \
349 $(use_with addns dnsupdate) \
350 $(use_with acl acl-support) \
351 $(use_with ads) \
352 $(use_with aio aio-support) \
353 $(use_enable avahi) \
354 $(use_with cluster cluster-support) \
355 $(use_enable cups) \
356 $(use_with dmapi) \
357 $(use_with fam) \
358 $(use_enable gnutls) \
359 $(use_enable iprint) \
360 $(use_with ldap) \
361 --with-pam \
362 --with-pam_smbpass \
363 $(use_with quota quotas) \
364 $(use_with syslog) \
365 $(use_with winbind)
366 "
367 use "ads" && myconf+=" --with-shared-modules=idmap_ad"
368
369 CPPFLAGS="-I/usr/include/et ${CPPFLAGS}" \
370 waf-utils_src_configure ${myconf}
371 }
372
373 src_install() {
374 waf-utils_src_install
375
376 # install ldap schema for server (bug #491002)
377 if use ldap ; then
378 insinto /etc/openldap/schema
379 doins examples/LDAP/samba.schema
380 fi
381
382 # Make all .so files executable
383 find "${D}" -type f -name "*.so" -exec chmod +x {} +
384
385 # Install init script and conf.d file
386 newinitd "${CONFDIR}/samba4.initd-r1" samba
387 newconfd "${CONFDIR}/samba4.confd" samba
388
389 systemd_dotmpfilesd "${FILESDIR}"/samba.conf
390 systemd_dounit "${FILESDIR}"/nmbd.service
391 systemd_dounit "${FILESDIR}"/smbd.{service,socket}
392 systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service'
393 systemd_dounit "${FILESDIR}"/winbindd.service
394 systemd_dounit "${FILESDIR}"/samba.service
395 }
396
397 src_test() {
398 "${WAF_BINARY}" test || die "test failed"
399 }
400
401 pkg_postinst() {
402 ewarn "Be aware the this release contains the best of all of Samba's"
403 ewarn "technology parts, both a file server (that you can reasonably expect"
404 ewarn "to upgrade existing Samba 3.x releases to) and the AD domain"
405 ewarn "controller work previously known as 'samba4'."
406
407 elog "For further information and migration steps make sure to read "
408 elog "http://samba.org/samba/history/${P}.html "
409 elog "http://samba.org/samba/history/${PN}-4.0.0.html and"
410 elog "http://wiki.samba.org/index.php/Samba4/HOWTO "
411 }