Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-fs/samba/
Date: Fri, 26 May 2017 11:38:44
Message-Id: 1495798497.4fe8340cbb9a957db8a67eb74d198b3c402a12cf.polynomial-c@gentoo
1 commit: 4fe8340cbb9a957db8a67eb74d198b3c402a12cf
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 26 11:34:57 2017 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri May 26 11:34:57 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fe8340c
7
8 net-fs/samba: Removed old.
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 net-fs/samba/Manifest | 2 -
13 net-fs/samba/samba-4.5.9.ebuild | 266 -----------------------------------
14 net-fs/samba/samba-4.6.3.ebuild | 299 ----------------------------------------
15 3 files changed, 567 deletions(-)
16
17 diff --git a/net-fs/samba/Manifest b/net-fs/samba/Manifest
18 index 38262bb1922..84ada377e9e 100644
19 --- a/net-fs/samba/Manifest
20 +++ b/net-fs/samba/Manifest
21 @@ -1,9 +1,7 @@
22 DIST samba-4.2.11.tar.gz 20875348 SHA256 75bce53c922e51352933c9846f2c4b1e251fabb80927adb426a773a321ee01f8 SHA512 293365f2718e756b66ccaec4b0dbce7044ade615b332f58968cf42dd1ec6b6445576590eaf5bd35fa00ba9aa4ba3be7720afc33763652e97731eebc3149f4820 WHIRLPOOL 1e04fd527e55c8d438c96a43d9a25a9b3e09a3edc504a2a5fe44bc8f9101c833c90e3ba3188b8872b046370916f3798e4fce0ffa7848b65f452b5c51ec7107f1
23 DIST samba-4.2.14.tar.gz 20883281 SHA256 db820a9947e44f04b0eb25e4aa0c3db32c4042fca541775ee8e2905093e888e6 SHA512 269dd74ba788657434f51ac70953a293c94bcf98280eaa6f44634c5da54169a5ea7865d543a7c23860c4750a40cdee7caeaf5c7fc3dbc137f444e90f31a09890 WHIRLPOOL 925369c2f9c222d718bf4aacc7b1a83b8275acd96bbc1eca52ad96c86847327807560674ee9b180173d17a1e6109307ec4f70f1acbebe2efc8a9e67f2141e17d
24 DIST samba-4.5.10.tar.gz 20989431 SHA256 7cb753f5f6d5527ef40d4c1f47dacafb7c876cb304b4906ccb390c6a18477714 SHA512 046bae9c66083a4fe656d6a7b02b64343c66e0ea4925193a898dbda107b5b158d1897f16c36f4c393a30457a49215fa6ef91720367f4946760ec48ce02a4a68a WHIRLPOOL 2359a40337c2a85c17e3c860a8531c21ec5cf3c180dfd5a1e554f2eb5e10576a8b706464d490e008af441d9ce6a14043112d621d8e140461806c97947362933a
25 -DIST samba-4.5.9.tar.gz 20992307 SHA256 e7b04b5d7ce10ed1205cc552200958e3c487ecf9647ea4c7b8c5f049f97c6be4 SHA512 866bd7da11ffe031234320e8b06b501eaa3491f6fb79f81474a40218381c464ab839bdc9611774be0d281206c99fdb22abd64a15b93db1574656882cc1d285ed WHIRLPOOL 44d44ffc735b289b0fb8430f1624045405b7a053e271550c986e5bf5c73f01ea224b3d283b4847f61c85cee24bf02121231330c14306d02f1b30f5000ee3af9a
26 DIST samba-4.6.0-disable-python-patches.tar.xz 7544 SHA256 508adeea65604ef8f4da006504de7c27bed56d7003db1166dc5d3b01f5a6be6e SHA512 07de2c0877aff31069ed0ab4fbe1c2272c854ae898ee5300a3b176ba31a218b05acff0b5120a5da0995592e7877c607865d2194c992df17b27c993836f58a654 WHIRLPOOL 12888f2ebf8d4ed5619860b2e6929599022b8ab1245970a5e1258f26e89aca1f87ab58fa54c7300dbd79a0c8fd6955e12c8aca6eeca246cdf06661d53ca3f6dd
27 -DIST samba-4.6.3.tar.gz 21107898 SHA256 2a38ef3da77809cba0583fc188e2a4b5420437aecaad0dffe9a06f732e4b1561 SHA512 5218e3bf4c837374fd7ca2b6ec19e665e61de64ca8acdbf9b15bb9669895db31986b753399c686b5fa43c3862b1da434afad7436cd148b66f1d02dbb9c176432 WHIRLPOOL d8f8a95385255c1067956c5a8d459d8dd2cdfc4f82e1b5b0cfa6240ad55eff694688a385b58e5906ab5b915a4a026baa778e8d2d4f809939755f270860c775af
28 DIST samba-4.6.4.tar.gz 21108045 SHA256 4ac67329d18e5586dc75db50e23b81c1f6c45a2d5bb9752ea6d90dcca08d9a61 SHA512 c20e6ad35b701816c35959fd242470dd899fb1b0bf02277ebdc87624dc1059199854b8d759374ab8b23f4842aa01347389a34319635091ade5afb5a94810eac1 WHIRLPOOL 98cf75b77a3937dda5cedc9110254042d628454d4ca5c2b44a0afb72e1fa35c792852e0e1529a18f1d22e03484001b719a4e0b1eff7bca2b26397d85300bb847
29 DIST samba-disable-python-patches-4.2.12.tar.xz 6052 SHA256 8903eacbabdfaf7b64cbde03d7c367d1efdc92e54090f0f4b9ed5d2a462b1c18 SHA512 c527d0a052d3211e5b12c17bc94db56cc5e5545189ed65a760c0656c94c22e27a4b159e6439eb0370873e1619873a741f3b3bd10d3876b38eb3914a87eace372 WHIRLPOOL ad63db55d5dc96f56e6c9b30c2092e2f6e206b0ed5d13c249879d10753c8db2f475c5d4e651e2fc042ad992b648d3b4465f1b28c6b4bbf821cf503d27f741f7e
30 DIST samba-disable-python-patches-4.2.9.tar.xz 6016 SHA256 222d0153f03dddde28a0b906ee2b27076223ac88b84a998aaa285f658861edfa SHA512 02fc666a36f8e733e522663d80775d130fabee9d5fb4e1c261d28815e07be425ae8977213f9216c7af62dd8b2619e7e13d71f9a25780b058c8119901c2115a18 WHIRLPOOL ebba3a6d41a41844621759672aa8c984d26f44d12007c8e929405470c381bc262523ec68d3972e86cf675c45f092fa287496167e42940e70d704790753e47b03
31
32 diff --git a/net-fs/samba/samba-4.5.9.ebuild b/net-fs/samba/samba-4.5.9.ebuild
33 deleted file mode 100644
34 index 883687cec29..00000000000
35 --- a/net-fs/samba/samba-4.5.9.ebuild
36 +++ /dev/null
37 @@ -1,266 +0,0 @@
38 -# Copyright 1999-2017 Gentoo Foundation
39 -# Distributed under the terms of the GNU General Public License v2
40 -
41 -EAPI=6
42 -PYTHON_COMPAT=( python2_7 )
43 -PYTHON_REQ_USE='threads(+),xml(+)'
44 -
45 -inherit python-single-r1 waf-utils multilib-minimal linux-info systemd eutils
46 -
47 -MY_PV="${PV/_rc/rc}"
48 -MY_P="${PN}-${MY_PV}"
49 -
50 -SRC_PATH="stable"
51 -[[ ${PV} = *_rc* ]] && SRC_PATH="rc"
52 -
53 -SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz
54 - https://dev.gentoo.org/~polynomial-c/samba-disable-python-patches-4.5.0_rc1.tar.xz"
55 -[[ ${PV} = *_rc* ]] || \
56 -KEYWORDS="~amd64 ~arm ~hppa ~x86"
57 -
58 -DESCRIPTION="Samba Suite Version 4"
59 -HOMEPAGE="http://www.samba.org/"
60 -LICENSE="GPL-3"
61 -
62 -SLOT="0"
63 -
64 -IUSE="acl addc addns ads client cluster cups dmapi fam gnutls gpg iprint ldap pam
65 -quota selinux syslog system-heimdal +system-mitkrb5 systemd test winbind zeroconf"
66 -
67 -MULTILIB_WRAPPED_HEADERS=(
68 - /usr/include/samba-4.0/policy.h
69 - /usr/include/samba-4.0/dcerpc_server.h
70 - /usr/include/samba-4.0/ctdb.h
71 - /usr/include/samba-4.0/ctdb_client.h
72 - /usr/include/samba-4.0/ctdb_protocol.h
73 - /usr/include/samba-4.0/ctdb_private.h
74 - /usr/include/samba-4.0/ctdb_typesafe_cb.h
75 - /usr/include/samba-4.0/ctdb_version.h
76 -)
77 -
78 -# sys-apps/attr is an automagic dependency (see bug #489748)
79 -CDEPEND="${PYTHON_DEPS}
80 - >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}]
81 - dev-lang/perl:=
82 - dev-libs/libaio[${MULTILIB_USEDEP}]
83 - dev-libs/libbsd[${MULTILIB_USEDEP}]
84 - dev-libs/iniparser:0
85 - dev-libs/popt[${MULTILIB_USEDEP}]
86 - dev-python/subunit[${PYTHON_USEDEP},${MULTILIB_USEDEP}]
87 - sys-apps/attr[${MULTILIB_USEDEP}]
88 - >=sys-libs/ldb-1.1.27[ldap(+)?,${MULTILIB_USEDEP}]
89 - sys-libs/libcap
90 - sys-libs/ncurses:0=[${MULTILIB_USEDEP}]
91 - sys-libs/readline:0=
92 - >=sys-libs/talloc-2.1.8[python,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
93 - >=sys-libs/tdb-1.3.10[python,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
94 - >=sys-libs/tevent-0.9.31-r1[${MULTILIB_USEDEP}]
95 - sys-libs/zlib[${MULTILIB_USEDEP}]
96 - virtual/libiconv
97 - pam? ( virtual/pam )
98 - acl? ( virtual/acl )
99 - addns? ( net-dns/bind-tools[gssapi] )
100 - cluster? ( !dev-db/ctdb )
101 - cups? ( net-print/cups )
102 - dmapi? ( sys-apps/dmapi )
103 - fam? ( virtual/fam )
104 - gnutls? (
105 - dev-libs/libgcrypt:0
106 - >=net-libs/gnutls-1.4.0
107 - )
108 - gpg? ( app-crypt/gpgme )
109 - ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] )
110 - system-heimdal? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] )
111 - system-mitkrb5? ( app-crypt/mit-krb5[${MULTILIB_USEDEP}] )
112 - systemd? ( sys-apps/systemd:0= )"
113 -DEPEND="${CDEPEND}
114 - virtual/pkgconfig"
115 -RDEPEND="${CDEPEND}
116 - client? ( net-fs/cifs-utils[ads?] )
117 - selinux? ( sec-policy/selinux-samba )
118 - !dev-perl/Parse-Yapp
119 -"
120 -
121 -REQUIRED_USE="addc? ( gnutls !system-mitkrb5 )
122 - ads? ( acl gnutls ldap )
123 - gpg? ( addc )
124 - ?? ( system-heimdal system-mitkrb5 )
125 - ${PYTHON_REQUIRED_USE}"
126 -
127 -S="${WORKDIR}/${MY_P}"
128 -
129 -PATCHES=(
130 - "${FILESDIR}/${PN}-4.4.0-pam.patch"
131 - "${FILESDIR}/${PN}-4.5.1-compile_et_fix.patch"
132 -)
133 -
134 -#CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
135 -CONFDIR="${FILESDIR}/4.4"
136 -
137 -WAF_BINARY="${S}/buildtools/bin/waf"
138 -
139 -SHAREDMODS=""
140 -
141 -pkg_setup() {
142 - python-single-r1_pkg_setup
143 - if use cluster ; then
144 - SHAREDMODS="idmap_rid,idmap_tdb2,idmap_ad"
145 - elif use ads ; then
146 - SHAREDMODS="idmap_ad"
147 - fi
148 -}
149 -
150 -src_prepare() {
151 - default
152 -
153 - # install the patches from tarball(s)
154 - eapply "${WORKDIR}/patches"
155 -
156 - # ugly hackaround for bug #592502
157 - cp /usr/include/tevent_internal.h "${S}"/lib/tevent/ || die
158 -
159 - sed -e 's:<gpgme\.h>:<gpgme/gpgme.h>:' \
160 - -i source4/dsdb/samdb/ldb_modules/password_hash.c \
161 - || die
162 -
163 - # Friggin' WAF shit
164 - multilib_copy_sources
165 -}
166 -
167 -multilib_src_configure() {
168 - # when specifying libs for samba build you must append NONE to the end to
169 - # stop it automatically including things
170 - local bundled_libs="NONE"
171 - if ! use system-heimdal && ! use system-mitkrb5 ; then
172 - bundled_libs="heimbase,heimntlm,hdb,kdc,krb5,wind,gssapi,hcrypto,hx509,roken,asn1,com_err,NONE"
173 - fi
174 -
175 - local myconf=()
176 - myconf=(
177 - --enable-fhs
178 - --sysconfdir="${EPREFIX}/etc"
179 - --localstatedir="${EPREFIX}/var"
180 - --with-modulesdir="${EPREFIX}/usr/$(get_libdir)/samba"
181 - --with-piddir="${EPREFIX}/run/${PN}"
182 - --bundled-libraries="${bundled_libs}"
183 - --builtin-libraries=NONE
184 - --disable-rpath
185 - --disable-rpath-install
186 - --nopyc
187 - --nopyo
188 - )
189 - if multilib_is_native_abi ; then
190 - myconf+=(
191 - $(use_with acl acl-support)
192 - $(usex addc '' '--without-ad-dc')
193 - $(use_with addns dnsupdate)
194 - $(use_with ads)
195 - $(use_with cluster cluster-support)
196 - $(use_enable cups)
197 - $(use_with dmapi)
198 - $(use_with fam)
199 - $(use_enable gnutls)
200 - $(use_with gpg gpgme)
201 - $(use_enable iprint)
202 - $(use_with ldap)
203 - $(use_with pam)
204 - $(usex pam "--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '')
205 - $(use_with quota quotas)
206 - $(use_with syslog)
207 - $(use_with systemd)
208 - $(usex system-mitkrb5 '--with-system-mitkrb5' '')
209 - $(use_with winbind)
210 - $(usex test '--enable-selftest' '')
211 - $(use_enable zeroconf avahi)
212 - --with-shared-modules=${SHAREDMODS}
213 - )
214 - else
215 - myconf+=(
216 - --without-acl-support
217 - --without-ad-dc
218 - --without-dnsupdate
219 - --without-ads
220 - --disable-avahi
221 - --without-cluster-support
222 - --disable-cups
223 - --without-dmapi
224 - --without-fam
225 - --disable-gnutls
226 - --without-gpgme
227 - --disable-iprint
228 - $(use_with ldap)
229 - --without-pam
230 - --without-quotas
231 - --without-syslog
232 - --without-systemd
233 - $(usex system-mitkrb5 '--with-system-mitkrb5' '')
234 - --without-winbind
235 - --disable-python
236 - )
237 - fi
238 -
239 - CPPFLAGS="-I${SYSROOT}${EPREFIX}/usr/include/et ${CPPFLAGS}" \
240 - waf-utils_src_configure ${myconf[@]}
241 -}
242 -
243 -multilib_src_install() {
244 - waf-utils_src_install
245 -
246 - # Make all .so files executable
247 - find "${D}" -type f -name "*.so" -exec chmod +x {} +
248 -
249 - if multilib_is_native_abi; then
250 - # install ldap schema for server (bug #491002)
251 - if use ldap ; then
252 - insinto /etc/openldap/schema
253 - doins examples/LDAP/samba.schema
254 - fi
255 -
256 - # create symlink for cups (bug #552310)
257 - if use cups ; then
258 - dosym /usr/bin/smbspool /usr/libexec/cups/backend/smb
259 - fi
260 -
261 - # install example config file
262 - insinto /etc/samba
263 - doins examples/smb.conf.default
264 -
265 - # Fix paths in example file (#603964)
266 - sed \
267 - -e '/log file =/s@/usr/local/samba/var/@/var/log/samba/@' \
268 - -e '/include =/s@/usr/local/samba/lib/@/etc/samba/@' \
269 - -e '/path =/s@/usr/local/samba/lib/@/var/lib/samba/@' \
270 - -e '/path =/s@/usr/local/samba/@/var/lib/samba/@' \
271 - -e '/path =/s@/usr/spool/samba@/var/spool/samba@' \
272 - -i "${ED%/}"/etc/samba/smb.conf.default || die
273 -
274 - # Install init script and conf.d file
275 - newinitd "${CONFDIR}/samba4.initd-r1" samba
276 - newconfd "${CONFDIR}/samba4.confd" samba
277 -
278 - systemd_dotmpfilesd "${FILESDIR}"/samba.conf
279 - systemd_dounit "${FILESDIR}"/nmbd.service
280 - systemd_dounit "${FILESDIR}"/smbd.{service,socket}
281 - systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service'
282 - systemd_dounit "${FILESDIR}"/winbindd.service
283 - systemd_dounit "${FILESDIR}"/samba.service
284 - fi
285 -}
286 -
287 -multilib_src_test() {
288 - if multilib_is_native_abi ; then
289 - "${WAF_BINARY}" test || die "test failed"
290 - fi
291 -}
292 -
293 -pkg_postinst() {
294 - ewarn "Be aware the this release contains the best of all of Samba's"
295 - ewarn "technology parts, both a file server (that you can reasonably expect"
296 - ewarn "to upgrade existing Samba 3.x releases to) and the AD domain"
297 - ewarn "controller work previously known as 'samba4'."
298 -
299 - elog "For further information and migration steps make sure to read "
300 - elog "http://samba.org/samba/history/${P}.html "
301 - elog "http://samba.org/samba/history/${PN}-4.5.0.html and"
302 - elog "http://wiki.samba.org/index.php/Samba4/HOWTO "
303 -}
304
305 diff --git a/net-fs/samba/samba-4.6.3.ebuild b/net-fs/samba/samba-4.6.3.ebuild
306 deleted file mode 100644
307 index d6d912f17e6..00000000000
308 --- a/net-fs/samba/samba-4.6.3.ebuild
309 +++ /dev/null
310 @@ -1,299 +0,0 @@
311 -# Copyright 1999-2017 Gentoo Foundation
312 -# Distributed under the terms of the GNU General Public License v2
313 -
314 -EAPI=6
315 -PYTHON_COMPAT=( python2_7 )
316 -PYTHON_REQ_USE='threads(+),xml(+)'
317 -
318 -inherit python-single-r1 waf-utils multilib-minimal linux-info systemd eutils
319 -
320 -MY_PV="${PV/_rc/rc}"
321 -MY_P="${PN}-${MY_PV}"
322 -
323 -SRC_PATH="stable"
324 -[[ ${PV} = *_rc* ]] && SRC_PATH="rc"
325 -
326 -SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz
327 - https://dev.gentoo.org/~polynomial-c/samba-4.6.0-disable-python-patches.tar.xz"
328 -[[ ${PV} = *_rc* ]] || \
329 -KEYWORDS="~amd64 ~hppa ~x86"
330 -
331 -DESCRIPTION="Samba Suite Version 4"
332 -HOMEPAGE="http://www.samba.org/"
333 -LICENSE="GPL-3"
334 -
335 -SLOT="0"
336 -
337 -IUSE="acl addc addns ads client cluster cups dmapi fam gnutls gpg iprint ldap pam python
338 -quota selinux syslog system-heimdal +system-mitkrb5 systemd test winbind zeroconf"
339 -
340 -MULTILIB_WRAPPED_HEADERS=(
341 - /usr/include/samba-4.0/policy.h
342 - /usr/include/samba-4.0/dcerpc_server.h
343 - /usr/include/samba-4.0/ctdb.h
344 - /usr/include/samba-4.0/ctdb_client.h
345 - /usr/include/samba-4.0/ctdb_protocol.h
346 - /usr/include/samba-4.0/ctdb_private.h
347 - /usr/include/samba-4.0/ctdb_typesafe_cb.h
348 - /usr/include/samba-4.0/ctdb_version.h
349 -)
350 -
351 -# sys-apps/attr is an automagic dependency (see bug #489748)
352 -CDEPEND="
353 - >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}]
354 - dev-lang/perl:=
355 - dev-libs/libaio[${MULTILIB_USEDEP}]
356 - dev-libs/libbsd[${MULTILIB_USEDEP}]
357 - dev-libs/iniparser:0
358 - dev-libs/popt[${MULTILIB_USEDEP}]
359 - dev-python/subunit[${PYTHON_USEDEP},${MULTILIB_USEDEP}]
360 - >=dev-util/cmocka-1.0.0[${MULTILIB_USEDEP}]
361 - sys-apps/attr[${MULTILIB_USEDEP}]
362 - >=sys-libs/ldb-1.1.29[ldap(+)?,python(+)?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
363 - sys-libs/libcap
364 - sys-libs/ncurses:0=[${MULTILIB_USEDEP}]
365 - sys-libs/readline:0=
366 - >=sys-libs/talloc-2.1.9[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
367 - >=sys-libs/tdb-1.3.12[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
368 - >=sys-libs/tevent-0.9.31-r1[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
369 - sys-libs/zlib[${MULTILIB_USEDEP}]
370 - virtual/libiconv
371 - pam? ( virtual/pam )
372 - acl? ( virtual/acl )
373 - addns? (
374 - net-dns/bind-tools[gssapi]
375 - dev-python/dnspython:=[${PYTHON_USEDEP}]
376 - )
377 - cluster? ( !dev-db/ctdb )
378 - cups? ( net-print/cups )
379 - dmapi? ( sys-apps/dmapi )
380 - fam? ( virtual/fam )
381 - gnutls? (
382 - dev-libs/libgcrypt:0
383 - >=net-libs/gnutls-1.4.0
384 - )
385 - gpg? ( app-crypt/gpgme )
386 - ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] )
387 - system-heimdal? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] )
388 - system-mitkrb5? ( app-crypt/mit-krb5[${MULTILIB_USEDEP}] )
389 - systemd? ( sys-apps/systemd:0= )"
390 -DEPEND="${CDEPEND}
391 - ${PYTHON_DEPS}
392 - virtual/pkgconfig
393 - test? (
394 - !system-mitkrb5? (
395 - >=sys-libs/nss_wrapper-1.1.3
396 - >=net-dns/resolv_wrapper-1.1.4
397 - >=net-libs/socket_wrapper-1.1.7
398 - >=sys-libs/uid_wrapper-1.2.1
399 - )
400 - )"
401 -RDEPEND="${CDEPEND}
402 - python? ( ${PYTHON_DEPS} )
403 - client? ( net-fs/cifs-utils[ads?] )
404 - selinux? ( sec-policy/selinux-samba )
405 - !dev-perl/Parse-Yapp
406 -"
407 -
408 -REQUIRED_USE="addc? ( python gnutls !system-mitkrb5 )
409 - test? ( python )
410 - addns? ( python )
411 - ads? ( acl gnutls ldap )
412 - gpg? ( addc )
413 - ?? ( system-heimdal system-mitkrb5 )
414 - ${PYTHON_REQUIRED_USE}"
415 -
416 -# the test suite is messed, it uses system-installed samba
417 -# bits instead of what was built, tests things disabled via use
418 -# flags, and generally just fails to work in a way ebuilds could
419 -# rely on in its current state
420 -RESTRICT="test"
421 -
422 -S="${WORKDIR}/${MY_P}"
423 -
424 -PATCHES=(
425 - "${FILESDIR}/${PN}-4.4.0-pam.patch"
426 - "${FILESDIR}/${PN}-4.5.1-compile_et_fix.patch"
427 -)
428 -
429 -#CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
430 -CONFDIR="${FILESDIR}/4.4"
431 -
432 -WAF_BINARY="${S}/buildtools/bin/waf"
433 -
434 -SHAREDMODS=""
435 -
436 -pkg_setup() {
437 - python-single-r1_pkg_setup
438 - if use cluster ; then
439 - SHAREDMODS="idmap_rid,idmap_tdb2,idmap_ad"
440 - elif use ads ; then
441 - SHAREDMODS="idmap_ad"
442 - fi
443 -}
444 -
445 -src_prepare() {
446 - default
447 -
448 - # install the patches from tarball(s)
449 - eapply "${WORKDIR}/patches"
450 -
451 - # un-bundle dnspython
452 - sed -i -e '/"dns.resolver":/d' "${S}"/third_party/wscript || die
453 -
454 - # unbundle iso8601 unless tests are enabled
455 - use test || sed -i -e '/"iso8601":/d' "${S}"/third_party/wscript || die
456 -
457 - # ugly hackaround for bug #592502
458 - cp /usr/include/tevent_internal.h "${S}"/lib/tevent/ || die
459 -
460 - sed -e 's:<gpgme\.h>:<gpgme/gpgme.h>:' \
461 - -i source4/dsdb/samdb/ldb_modules/password_hash.c \
462 - || die
463 -
464 - # Friggin' WAF shit
465 - multilib_copy_sources
466 -}
467 -
468 -multilib_src_configure() {
469 - # when specifying libs for samba build you must append NONE to the end to
470 - # stop it automatically including things
471 - local bundled_libs="NONE"
472 - if ! use system-heimdal && ! use system-mitkrb5 ; then
473 - bundled_libs="heimbase,heimntlm,hdb,kdc,krb5,wind,gssapi,hcrypto,hx509,roken,asn1,com_err,NONE"
474 - fi
475 -
476 - local myconf=()
477 - myconf=(
478 - --enable-fhs
479 - --sysconfdir="${EPREFIX}/etc"
480 - --localstatedir="${EPREFIX}/var"
481 - --with-modulesdir="${EPREFIX}/usr/$(get_libdir)/samba"
482 - --with-piddir="${EPREFIX}/run/${PN}"
483 - --bundled-libraries="${bundled_libs}"
484 - --builtin-libraries=NONE
485 - --disable-rpath
486 - --disable-rpath-install
487 - --nopyc
488 - --nopyo
489 - )
490 - if multilib_is_native_abi ; then
491 - myconf+=(
492 - $(use_with acl acl-support)
493 - $(usex addc '' '--without-ad-dc')
494 - $(use_with addns dnsupdate)
495 - $(use_with ads)
496 - $(use_with cluster cluster-support)
497 - $(use_enable cups)
498 - $(use_with dmapi)
499 - $(use_with fam)
500 - $(use_enable gnutls)
501 - $(use_with gpg gpgme)
502 - $(use_enable iprint)
503 - $(use_with ldap)
504 - $(use_with pam)
505 - $(usex pam "--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '')
506 - $(use_with quota quotas)
507 - $(use_with syslog)
508 - $(use_with systemd)
509 - $(usex system-mitkrb5 '--with-system-mitkrb5' '')
510 - $(use_with winbind)
511 - $(usex python '' '--disable-python')
512 - $(usex test '--enable-selftest' '')
513 - $(use_enable zeroconf avahi)
514 - --with-shared-modules=${SHAREDMODS}
515 - )
516 - else
517 - myconf+=(
518 - --without-acl-support
519 - --without-ad-dc
520 - --without-dnsupdate
521 - --without-ads
522 - --disable-avahi
523 - --without-cluster-support
524 - --disable-cups
525 - --without-dmapi
526 - --without-fam
527 - --disable-gnutls
528 - --without-gpgme
529 - --disable-iprint
530 - $(use_with ldap)
531 - --without-pam
532 - --without-quotas
533 - --without-syslog
534 - --without-systemd
535 - $(usex system-mitkrb5 '--with-system-mitkrb5' '')
536 - --without-winbind
537 - --disable-python
538 - )
539 - fi
540 -
541 - CPPFLAGS="-I${SYSROOT}${EPREFIX}/usr/include/et ${CPPFLAGS}" \
542 - waf-utils_src_configure ${myconf[@]}
543 -}
544 -
545 -multilib_src_compile() {
546 - waf-utils_src_compile
547 -}
548 -
549 -multilib_src_install() {
550 - waf-utils_src_install
551 -
552 - # Make all .so files executable
553 - find "${D}" -type f -name "*.so" -exec chmod +x {} +
554 -
555 - if multilib_is_native_abi; then
556 - # install ldap schema for server (bug #491002)
557 - if use ldap ; then
558 - insinto /etc/openldap/schema
559 - doins examples/LDAP/samba.schema
560 - fi
561 -
562 - # create symlink for cups (bug #552310)
563 - if use cups ; then
564 - dosym /usr/bin/smbspool /usr/libexec/cups/backend/smb
565 - fi
566 -
567 - # install example config file
568 - insinto /etc/samba
569 - doins examples/smb.conf.default
570 -
571 - # Fix paths in example file (#603964)
572 - sed \
573 - -e '/log file =/s@/usr/local/samba/var/@/var/log/samba/@' \
574 - -e '/include =/s@/usr/local/samba/lib/@/etc/samba/@' \
575 - -e '/path =/s@/usr/local/samba/lib/@/var/lib/samba/@' \
576 - -e '/path =/s@/usr/local/samba/@/var/lib/samba/@' \
577 - -e '/path =/s@/usr/spool/samba@/var/spool/samba@' \
578 - -i "${ED%/}"/etc/samba/smb.conf.default || die
579 -
580 - # Install init script and conf.d file
581 - newinitd "${CONFDIR}/samba4.initd-r1" samba
582 - newconfd "${CONFDIR}/samba4.confd" samba
583 -
584 - systemd_dotmpfilesd "${FILESDIR}"/samba.conf
585 - systemd_dounit "${FILESDIR}"/nmbd.service
586 - systemd_dounit "${FILESDIR}"/smbd.{service,socket}
587 - systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service'
588 - systemd_dounit "${FILESDIR}"/winbindd.service
589 - systemd_dounit "${FILESDIR}"/samba.service
590 - fi
591 -}
592 -
593 -multilib_src_test() {
594 - if multilib_is_native_abi ; then
595 - "${WAF_BINARY}" test || die "test failed"
596 - fi
597 -}
598 -
599 -pkg_postinst() {
600 - ewarn "Be aware the this release contains the best of all of Samba's"
601 - ewarn "technology parts, both a file server (that you can reasonably expect"
602 - ewarn "to upgrade existing Samba 3.x releases to) and the AD domain"
603 - ewarn "controller work previously known as 'samba4'."
604 -
605 - elog "For further information and migration steps make sure to read "
606 - elog "http://samba.org/samba/history/${P}.html "
607 - elog "http://samba.org/samba/history/${PN}-4.5.0.html and"
608 - elog "http://wiki.samba.org/index.php/Samba4/HOWTO "
609 -}