Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: net-fs/samba/files/, net-fs/samba/
Date: Wed, 17 Apr 2019 15:05:48
Message-Id: 1555513445.93f9ad0756bc9d23a821c65970a69d01864578ef.blueness@gentoo
1 commit: 93f9ad0756bc9d23a821c65970a69d01864578ef
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 17 15:03:53 2019 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 17 15:04:05 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=93f9ad07
7
8 net-fs/samba: bumpt to 4.8.6-r2 and 4.9.6 to sync with main tree
9
10 Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>
11 Package-Manager: Portage-2.3.62, Repoman-2.3.11
12
13 net-fs/samba/Manifest | 19 +-
14 .../files/samba-4.8.6-no-pydsdb-when-no-addc.patch | 36 +++
15 .../{samba-4.9.1.ebuild => samba-4.8.6-r2.ebuild} | 25 +-
16 net-fs/samba/samba-4.9.2-r1.ebuild | 293 ---------------------
17 net-fs/samba/samba-4.9.4.ebuild | 293 ---------------------
18 .../{samba-4.9.4-r1.ebuild => samba-4.9.6.ebuild} | 5 +-
19 6 files changed, 52 insertions(+), 619 deletions(-)
20
21 diff --git a/net-fs/samba/Manifest b/net-fs/samba/Manifest
22 index 1fa7571..666b10c 100644
23 --- a/net-fs/samba/Manifest
24 +++ b/net-fs/samba/Manifest
25 @@ -1,19 +1,4 @@
26 ------BEGIN PGP SIGNED MESSAGE-----
27 -Hash: SHA256
28 -
29 DIST samba-4.5.11-disable-python-patches.tar.xz 6292 BLAKE2B c2a32a1059a02bc1c87ce5f604cbc5878c654b8f693c8486b5ba63b37513444915a7b6389fe82b7e31ab2f9577dd8462eddba60b4f4f756b4ed1145ce7bd90ae SHA512 f0e3076e3e1ecaae3f06b3ef30efc81719fb3f63a1041dcbdae4b62ca4cf693732f9eb16f047d046d4930136fed82194e82b455ea888e12cf845b3e6a122d57d
30 DIST samba-4.5.16.tar.gz 21024396 BLAKE2B e737559fb748044076608fa233700eb54c7e1c56bc234763f062b6341a179cc78a4a8cdf9f3d6f4d7f3cf8a79f846852ddd5cc753a468c3adb3a0451e1809ed9 SHA512 de8a41013cfb5ef3adcb290efd97a78a5de876d90ad05764d631f14e663a1849bb53e4ac394b46c906f1109be5748fee9316407a659c57007d36851ae8adcd7f
31 -DIST samba-4.9.1.tar.gz 18018259 BLAKE2B 783423098864c391f08b30e05b70308e922bdb4dad08b8b0b4d1112808357b9bb96aad7a094d0fe2e308f84a143d5f90be523b9c3551a3068ecdcad7347613f6 SHA512 267673b6d6ab0db59063480c20f02e5864ef96e9ad1097c23a99b2ab4b5fd2252193d7a152729b40cae0751fb9b0b108b087a190f5db11eabbd075224bd6e663
32 -DIST samba-4.9.2.tar.gz 18042752 BLAKE2B e6d361a38f1103c104015987fa2b67c49a91fb2fac77538b3d9fa0c1629348df00c8fb4ea0dbb1a1f3f62cd377699c1ebc00b1b1b7b1e0d073d3633d41a62e7b SHA512 67de5faeda45e5c245bf02cc195cdf9ca4b63f17625837badf7c50d97250e94de5309c9ef824bd7890bc771b1dc0a3bfbafea09880850b5167f0bf8a8ef488ed
33 -DIST samba-4.9.4.tar.gz 18053738 BLAKE2B 337444e55fc8a8864e3960609719087e64e7d14faaf150c510b9011f67ffdc8a9bd6533c60be938e742db8a2e5401a065e7d14fae0480ee7a996a1f71ef0448d SHA512 ecd9937caa12d409b9b4cf34982b1670346fa64c7ecd111b390e296771476e13eb7b868997bfe489f36b7bdc5c9fc3af42cd5ad276e9d85aaedfa8ac4cfc0617
34 ------BEGIN PGP SIGNATURE-----
35 -
36 -iQEzBAEBCAAdFiEEDe3xqQRWi60fxFwoPcxEeC7QfhwFAlxCFGYACgkQPcxEeC7Q
37 -fhzVmgf/Rb7+LH6puZDEU31GxPYzxq0tePU7mu53wUaKBVVj/7QwPk9Q9iHqdy+G
38 -bYmZ2cYGF7YiRSUa8hNAU7RAHHrNF2c9PONqg0/T298qADCb64VlLtGMcD9tUfTv
39 -QMeVo6RUVjDbJTxtznj+HTKb5cbb+iaRppChJkrxucYjG1SX4uAMUe0q44ut2iGk
40 -QivT0dtPxdTU3ntN1yTliGJ+jfoiiajpVsAfqRSwT3Ee5v3E6LskajK4Sp/ZVntc
41 -1AGeg2y/meQM2MVURgNmUlbMqHlH83RlGeGHGLgAZhDpO2f716gNVF1fhMGwtzUk
42 -RKHbr9PJLZ6zK5zpzQ+31OIlAiUGUg==
43 -=JAYJ
44 ------END PGP SIGNATURE-----
45 +DIST samba-4.8.6.tar.gz 17723841 BLAKE2B 38da52e14b4417f26462eef2226c4498e54d2c276b4056e8c6d6c66079f33bcda24c1eab30b29bc7413280ec89a74a55e043e8274ac50f9a25bae7563717ff34 SHA512 f6afab5ca466bd8653a56c205b71ce94ecf0ad0c6e4c9d64cbba7b1e56f1987bc2022e6b629d87eb6078e3f6ba53833c19cfb41e40b6d589e4317ea9d85de273
46 +DIST samba-4.9.6.tar.gz 18068196 BLAKE2B 03a04abb430abc4b7ba6fc5ade8690c215948d24fe1044d79c2dd1f8242b6708f0618045e37ad73114413dcef70bcf45de15f358a0e012cecfea045b9ab9165c SHA512 462774e60f0165aa445821795c373ab6845ac2790578a68e84c0c82f761ddf29bf5186106a95f394e24b8ef7393d7abe003f95e72f5c5892bbf992f58e350531
47
48 diff --git a/net-fs/samba/files/samba-4.8.6-no-pydsdb-when-no-addc.patch b/net-fs/samba/files/samba-4.8.6-no-pydsdb-when-no-addc.patch
49 new file mode 100644
50 index 0000000..1093b1d
51 --- /dev/null
52 +++ b/net-fs/samba/files/samba-4.8.6-no-pydsdb-when-no-addc.patch
53 @@ -0,0 +1,36 @@
54 +Do not install the python DSDB modules when ADDC is disabled.
55 +This is a change integrated upstream in 4.9.1 (or earlier).
56 +
57 +Without this, the python dsdb_dns.so module is installed, which
58 +is linked to libdnsserver-common.so that is NOT installed, and so
59 +potential breakage ensues.
60 +
61 +--- a/source4/dsdb/wscript_build 2018-01-17 03:08:39.000000000 -0500
62 ++++ b/source4/dsdb/wscript_build 2018-11-08 10:43:58.064486832 -0500
63 +@@ -63,10 +63,11 @@
64 + )
65 +
66 + bld.SAMBA_PYTHON('python_dsdb',
67 + source='pydsdb.c',
68 + # the dependency on dcerpc here is because gensec
69 + # depends on dcerpc but the waf circular dependency finder
70 + # removes it so we end up with unresolved symbols.
71 + deps='samdb pyldb-util dcerpc com_err pyrpc_util pyparam_util dsdb_garbage_collect_tombstones',
72 +- realname='samba/dsdb.so'
73 ++ realname='samba/dsdb.so',
74 ++ enabled=bld.AD_DC_BUILD_IS_ENABLED()
75 + )
76 +--- a/source4/dns_server/wscript_build 2018-11-08 11:49:03.450296286 -0500
77 ++++ b/source4/dns_server/wscript_build 2018-11-08 11:49:23.327864408 -0500
78 +@@ -64,9 +64,10 @@
79 + private_library=True,
80 + deps='samba-hostconfig samdb-common gensec popt dnsserver_common',
81 + enabled=bld.AD_DC_BUILD_IS_ENABLED())
82 +
83 +
84 + bld.SAMBA_PYTHON('python_dsdb_dns',
85 + source='pydns.c',
86 + deps='samdb pyldb-util pyrpc_util dnsserver_common pytalloc-util',
87 +- realname='samba/dsdb_dns.so')
88 ++ realname='samba/dsdb_dns.so',
89 ++ enabled=bld.AD_DC_BUILD_IS_ENABLED())
90
91 diff --git a/net-fs/samba/samba-4.9.1.ebuild b/net-fs/samba/samba-4.8.6-r2.ebuild
92 similarity index 91%
93 rename from net-fs/samba/samba-4.9.1.ebuild
94 rename to net-fs/samba/samba-4.8.6-r2.ebuild
95 index 33fcce0..ac2f480 100644
96 --- a/net-fs/samba/samba-4.9.1.ebuild
97 +++ b/net-fs/samba/samba-4.8.6-r2.ebuild
98 @@ -1,4 +1,4 @@
99 -# Copyright 1999-2018 Gentoo Authors
100 +# Copyright 1999-2019 Gentoo Authors
101 # Distributed under the terms of the GNU General Public License v2
102
103 EAPI=6
104 @@ -15,7 +15,7 @@ SRC_PATH="stable"
105
106 SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz"
107 [[ ${PV} = *_rc* ]] || \
108 -KEYWORDS="~amd64 ~arm64 ~arm ~mips ~ppc ~x86"
109 +KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~x86"
110
111 DESCRIPTION="Samba Suite Version 4"
112 HOMEPAGE="https://www.samba.org/"
113 @@ -23,8 +23,8 @@ LICENSE="GPL-3"
114
115 SLOT="0"
116
117 -IUSE="acl addc addns ads ceph client cluster cups debug dmapi fam gnutls gpg iprint json ldap
118 -pam python quota selinux syslog system-heimdal +system-mitkrb5 systemd test winbind zeroconf"
119 +IUSE="acl addc addns ads ceph client cluster cups debug dmapi fam gnutls gpg iprint ldap pam python
120 +quota selinux syslog system-heimdal +system-mitkrb5 systemd test winbind zeroconf"
121
122 MULTILIB_WRAPPED_HEADERS=(
123 /usr/include/samba-4.0/policy.h
124 @@ -49,14 +49,14 @@ CDEPEND="
125 >=dev-util/cmocka-1.1.1[${MULTILIB_USEDEP}]
126 net-libs/libnsl:=[${MULTILIB_USEDEP}]
127 sys-apps/attr[${MULTILIB_USEDEP}]
128 - >=sys-libs/ldb-1.4.2[ldap(+)?,python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
129 - <sys-libs/ldb-1.5.0[ldap(+)?,python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
130 + >=sys-libs/ldb-1.3.6[ldap(+)?,python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
131 + <sys-libs/ldb-1.4.0[ldap(+)?,python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
132 sys-libs/libcap
133 sys-libs/ncurses:0=[${MULTILIB_USEDEP}]
134 sys-libs/readline:0=
135 - >=sys-libs/talloc-2.1.14[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
136 - >=sys-libs/tdb-1.3.16[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
137 - >=sys-libs/tevent-0.9.37[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
138 + >=sys-libs/talloc-2.1.11[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
139 + >=sys-libs/tdb-1.3.15[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
140 + >=sys-libs/tevent-0.9.36[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
141 sys-libs/zlib[${MULTILIB_USEDEP}]
142 virtual/libiconv
143 pam? ( virtual/pam )
144 @@ -79,7 +79,6 @@ CDEPEND="
145 >=net-libs/gnutls-1.4.0
146 )
147 gpg? ( app-crypt/gpgme )
148 - json? ( dev-libs/jansson )
149 ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] )
150 system-heimdal? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] )
151 system-mitkrb5? ( >=app-crypt/mit-krb5-1.15.1[${MULTILIB_USEDEP}] )
152 @@ -111,7 +110,7 @@ RDEPEND="${CDEPEND}
153 "
154
155 REQUIRED_USE="
156 - addc? ( python gnutls json winbind )
157 + addc? ( python gnutls winbind )
158 addns? ( python )
159 ads? ( acl gnutls ldap winbind )
160 cluster? ( ads )
161 @@ -132,6 +131,8 @@ S="${WORKDIR}/${MY_P}"
162 PATCHES=(
163 "${FILESDIR}/${PN}-4.4.0-pam.patch"
164 "${FILESDIR}/${PN}-4.5.1-compile_et_fix.patch"
165 + "${FILESDIR}/${PN}-4.8.6-no-pydsdb-when-no-addc.patch"
166 + "${FILESDIR}/${PN}-4.3.9-remove-getpwent_r.patch"
167 "${FILESDIR}/netdb-defines.patch"
168 )
169
170 @@ -153,7 +154,6 @@ pkg_setup() {
171
172 src_prepare() {
173 default
174 - use elibc_musl && eapply "${FILESDIR}/musl-disable-netgroup.patch"
175
176 # un-bundle dnspython
177 sed -i -e '/"dns.resolver":/d' "${S}"/third_party/wscript || die
178 @@ -202,7 +202,6 @@ multilib_src_configure() {
179 $(multilib_native_use_with dmapi)
180 $(multilib_native_use_with fam)
181 $(multilib_native_use_with gpg gpgme)
182 - $(multilib_native_use_with json json-audit)
183 $(multilib_native_use_enable iprint)
184 $(multilib_native_use_with pam)
185 $(multilib_native_usex pam "--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '')
186
187 diff --git a/net-fs/samba/samba-4.9.2-r1.ebuild b/net-fs/samba/samba-4.9.2-r1.ebuild
188 deleted file mode 100644
189 index 34d9cd9..0000000
190 --- a/net-fs/samba/samba-4.9.2-r1.ebuild
191 +++ /dev/null
192 @@ -1,293 +0,0 @@
193 -# Copyright 1999-2018 Gentoo Authors
194 -# Distributed under the terms of the GNU General Public License v2
195 -
196 -EAPI=6
197 -PYTHON_COMPAT=( python2_7 )
198 -PYTHON_REQ_USE='threads(+),xml(+)'
199 -
200 -inherit python-single-r1 waf-utils multilib-minimal linux-info systemd
201 -
202 -MY_PV="${PV/_rc/rc}"
203 -MY_P="${PN}-${MY_PV}"
204 -
205 -SRC_PATH="stable"
206 -[[ ${PV} = *_rc* ]] && SRC_PATH="rc"
207 -
208 -SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz"
209 -[[ ${PV} = *_rc* ]] || \
210 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
211 -
212 -DESCRIPTION="Samba Suite Version 4"
213 -HOMEPAGE="https://www.samba.org/"
214 -LICENSE="GPL-3"
215 -
216 -SLOT="0"
217 -
218 -IUSE="acl addc addns ads ceph client cluster cups debug dmapi fam gnutls gpg iprint json ldap
219 -pam python quota selinux syslog system-heimdal +system-mitkrb5 systemd test winbind zeroconf"
220 -
221 -MULTILIB_WRAPPED_HEADERS=(
222 - /usr/include/samba-4.0/policy.h
223 - /usr/include/samba-4.0/dcerpc_server.h
224 - /usr/include/samba-4.0/ctdb.h
225 - /usr/include/samba-4.0/ctdb_client.h
226 - /usr/include/samba-4.0/ctdb_protocol.h
227 - /usr/include/samba-4.0/ctdb_private.h
228 - /usr/include/samba-4.0/ctdb_typesafe_cb.h
229 - /usr/include/samba-4.0/ctdb_version.h
230 -)
231 -
232 -# sys-apps/attr is an automagic dependency (see bug #489748)
233 -CDEPEND="
234 - >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}]
235 - dev-lang/perl:=
236 - dev-libs/libaio[${MULTILIB_USEDEP}]
237 - dev-libs/libbsd[${MULTILIB_USEDEP}]
238 - dev-libs/iniparser:0
239 - dev-libs/popt[${MULTILIB_USEDEP}]
240 - dev-python/subunit[${PYTHON_USEDEP},${MULTILIB_USEDEP}]
241 - >=dev-util/cmocka-1.1.1[${MULTILIB_USEDEP}]
242 - net-libs/libnsl:=[${MULTILIB_USEDEP}]
243 - sys-apps/attr[${MULTILIB_USEDEP}]
244 - >=sys-libs/ldb-1.4.3[ldap(+)?,python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
245 - <sys-libs/ldb-1.5.0[ldap(+)?,python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
246 - sys-libs/libcap
247 - sys-libs/ncurses:0=[${MULTILIB_USEDEP}]
248 - sys-libs/readline:0=
249 - >=sys-libs/talloc-2.1.14[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
250 - >=sys-libs/tdb-1.3.16[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
251 - >=sys-libs/tevent-0.9.37[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
252 - sys-libs/zlib[${MULTILIB_USEDEP}]
253 - virtual/libiconv
254 - pam? ( virtual/pam )
255 - acl? ( virtual/acl )
256 - addns? (
257 - net-dns/bind-tools[gssapi]
258 - dev-python/dnspython:=[${PYTHON_USEDEP}]
259 - )
260 - ceph? ( sys-cluster/ceph )
261 - cluster? (
262 - net-libs/rpcsvc-proto
263 - !dev-db/ctdb
264 - )
265 - cups? ( net-print/cups )
266 - debug? ( dev-util/lttng-ust )
267 - dmapi? ( sys-apps/dmapi )
268 - fam? ( virtual/fam )
269 - gnutls? (
270 - dev-libs/libgcrypt:0
271 - >=net-libs/gnutls-1.4.0
272 - )
273 - gpg? ( app-crypt/gpgme )
274 - json? ( dev-libs/jansson )
275 - ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] )
276 - system-heimdal? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] )
277 - system-mitkrb5? ( >=app-crypt/mit-krb5-1.15.1[${MULTILIB_USEDEP}] )
278 - systemd? ( sys-apps/systemd:0= )
279 -"
280 -DEPEND="${CDEPEND}
281 - ${PYTHON_DEPS}
282 - app-text/docbook-xsl-stylesheets
283 - dev-libs/libxslt
284 - net-libs/libtirpc[${MULTILIB_USEDEP}]
285 - virtual/pkgconfig
286 - || (
287 - net-libs/rpcsvc-proto
288 - <sys-libs/glibc-2.26[rpc(+)]
289 - )
290 - test? (
291 - !system-mitkrb5? (
292 - >=sys-libs/nss_wrapper-1.1.3
293 - >=net-dns/resolv_wrapper-1.1.4
294 - >=net-libs/socket_wrapper-1.1.7
295 - >=sys-libs/uid_wrapper-1.2.1
296 - )
297 - )"
298 -RDEPEND="${CDEPEND}
299 - python? ( ${PYTHON_DEPS} )
300 - client? ( net-fs/cifs-utils[ads?] )
301 - selinux? ( sec-policy/selinux-samba )
302 - !dev-perl/Parse-Yapp
303 -"
304 -
305 -REQUIRED_USE="
306 - addc? ( python gnutls json winbind )
307 - addns? ( python )
308 - ads? ( acl gnutls ldap winbind )
309 - cluster? ( ads )
310 - gpg? ( addc )
311 - test? ( python )
312 - ?? ( system-heimdal system-mitkrb5 )
313 - ${PYTHON_REQUIRED_USE}
314 -"
315 -
316 -# the test suite is messed, it uses system-installed samba
317 -# bits instead of what was built, tests things disabled via use
318 -# flags, and generally just fails to work in a way ebuilds could
319 -# rely on in its current state
320 -RESTRICT="test"
321 -
322 -S="${WORKDIR}/${MY_P}"
323 -
324 -PATCHES=(
325 - "${FILESDIR}/${PN}-4.4.0-pam.patch"
326 - "${FILESDIR}/${PN}-4.5.1-compile_et_fix.patch"
327 - "${FILESDIR}/${PN}-4.9.2-timespec.patch"
328 - "${FILESDIR}/netdb-defines.patch"
329 -)
330 -
331 -#CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
332 -CONFDIR="${FILESDIR}/4.4"
333 -
334 -WAF_BINARY="${S}/buildtools/bin/waf"
335 -
336 -SHAREDMODS=""
337 -
338 -pkg_setup() {
339 - python-single-r1_pkg_setup
340 - if use cluster ; then
341 - SHAREDMODS="idmap_rid,idmap_tdb2,idmap_ad"
342 - elif use ads ; then
343 - SHAREDMODS="idmap_ad"
344 - fi
345 -}
346 -
347 -src_prepare() {
348 - default
349 - use elibc_musl && eapply "${FILESDIR}/musl-disable-netgroup.patch"
350 -
351 - # un-bundle dnspython
352 - sed -i -e '/"dns.resolver":/d' "${S}"/third_party/wscript || die
353 -
354 - # unbundle iso8601 unless tests are enabled
355 - if ! use test ; then
356 - sed -i -e '/"iso8601":/d' "${S}"/third_party/wscript || die
357 - fi
358 -
359 - # ugly hackaround for bug #592502
360 - cp /usr/include/tevent_internal.h "${S}"/lib/tevent/ || die
361 -
362 - sed -e 's:<gpgme\.h>:<gpgme/gpgme.h>:' \
363 - -i source4/dsdb/samdb/ldb_modules/password_hash.c \
364 - || die
365 -
366 - # Friggin' WAF shit
367 - multilib_copy_sources
368 -}
369 -
370 -multilib_src_configure() {
371 - # when specifying libs for samba build you must append NONE to the end to
372 - # stop it automatically including things
373 - local bundled_libs="NONE"
374 - if ! use system-heimdal && ! use system-mitkrb5 ; then
375 - bundled_libs="heimbase,heimntlm,hdb,kdc,krb5,wind,gssapi,hcrypto,hx509,roken,asn1,com_err,NONE"
376 - fi
377 -
378 - local myconf=(
379 - --enable-fhs
380 - --sysconfdir="${EPREFIX}/etc"
381 - --localstatedir="${EPREFIX}/var"
382 - --with-modulesdir="${EPREFIX}/usr/$(get_libdir)/samba"
383 - --with-piddir="${EPREFIX}/run/${PN}"
384 - --bundled-libraries="${bundled_libs}"
385 - --builtin-libraries=NONE
386 - --disable-rpath
387 - --disable-rpath-install
388 - --nopyc
389 - --nopyo
390 - $(multilib_native_use_with acl acl-support)
391 - $(multilib_native_usex addc '' '--without-ad-dc')
392 - $(multilib_native_use_with addns dnsupdate)
393 - $(multilib_native_use_with ads)
394 - $(multilib_native_use_enable ceph cephfs)
395 - $(multilib_native_use_with cluster cluster-support)
396 - $(multilib_native_use_enable cups)
397 - $(multilib_native_use_with dmapi)
398 - $(multilib_native_use_with fam)
399 - $(multilib_native_use_with gpg gpgme)
400 - $(multilib_native_use_with json json-audit)
401 - $(multilib_native_use_enable iprint)
402 - $(multilib_native_use_with pam)
403 - $(multilib_native_usex pam "--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '')
404 - $(multilib_native_use_with quota quotas)
405 - $(multilib_native_use_with syslog)
406 - $(multilib_native_use_with systemd)
407 - $(multilib_native_use_with winbind)
408 - $(multilib_native_usex python '' '--disable-python')
409 - $(multilib_native_use_enable zeroconf avahi)
410 - $(multilib_native_usex test '--enable-selftest' '')
411 - $(usex system-mitkrb5 '--with-system-mitkrb5' '')
412 - $(use_enable gnutls)
413 - $(use_with debug lttng)
414 - $(use_with ldap)
415 - )
416 - multilib_is_native_abi && myconf+=( --with-shared-modules=${SHAREDMODS} )
417 -
418 - CPPFLAGS="-I${SYSROOT}${EPREFIX}/usr/include/et ${CPPFLAGS}" \
419 - waf-utils_src_configure ${myconf[@]}
420 -}
421 -
422 -multilib_src_compile() {
423 - waf-utils_src_compile
424 -}
425 -
426 -multilib_src_install() {
427 - waf-utils_src_install
428 -
429 - # Make all .so files executable
430 - find "${ED}" -type f -name "*.so" -exec chmod +x {} + || die
431 -
432 - if multilib_is_native_abi ; then
433 - # install ldap schema for server (bug #491002)
434 - if use ldap ; then
435 - insinto /etc/openldap/schema
436 - doins examples/LDAP/samba.schema
437 - fi
438 -
439 - # create symlink for cups (bug #552310)
440 - if use cups ; then
441 - dosym ../../../bin/smbspool /usr/libexec/cups/backend/smb
442 - fi
443 -
444 - # install example config file
445 - insinto /etc/samba
446 - doins examples/smb.conf.default
447 -
448 - # Fix paths in example file (#603964)
449 - sed \
450 - -e '/log file =/s@/usr/local/samba/var/@/var/log/samba/@' \
451 - -e '/include =/s@/usr/local/samba/lib/@/etc/samba/@' \
452 - -e '/path =/s@/usr/local/samba/lib/@/var/lib/samba/@' \
453 - -e '/path =/s@/usr/local/samba/@/var/lib/samba/@' \
454 - -e '/path =/s@/usr/spool/samba@/var/spool/samba@' \
455 - -i "${ED%/}"/etc/samba/smb.conf.default || die
456 -
457 - # Install init script and conf.d file
458 - newinitd "${CONFDIR}/samba4.initd-r1" samba
459 - newconfd "${CONFDIR}/samba4.confd" samba
460 -
461 - systemd_dotmpfilesd "${FILESDIR}"/samba.conf
462 - systemd_dounit "${FILESDIR}"/nmbd.service
463 - systemd_dounit "${FILESDIR}"/smbd.{service,socket}
464 - systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service'
465 - systemd_dounit "${FILESDIR}"/winbindd.service
466 - systemd_dounit "${FILESDIR}"/samba.service
467 - fi
468 -}
469 -
470 -multilib_src_test() {
471 - if multilib_is_native_abi ; then
472 - "${WAF_BINARY}" test || die "test failed"
473 - fi
474 -}
475 -
476 -pkg_postinst() {
477 - ewarn "Be aware the this release contains the best of all of Samba's"
478 - ewarn "technology parts, both a file server (that you can reasonably expect"
479 - ewarn "to upgrade existing Samba 3.x releases to) and the AD domain"
480 - ewarn "controller work previously known as 'samba4'."
481 -
482 - elog "For further information and migration steps make sure to read "
483 - elog "https://samba.org/samba/history/${P}.html "
484 - elog "https://wiki.samba.org/index.php/Samba4/HOWTO "
485 -}
486
487 diff --git a/net-fs/samba/samba-4.9.4.ebuild b/net-fs/samba/samba-4.9.4.ebuild
488 deleted file mode 100644
489 index a7b9e14..0000000
490 --- a/net-fs/samba/samba-4.9.4.ebuild
491 +++ /dev/null
492 @@ -1,293 +0,0 @@
493 -# Copyright 1999-2019 Gentoo Authors
494 -# Distributed under the terms of the GNU General Public License v2
495 -
496 -EAPI=6
497 -PYTHON_COMPAT=( python2_7 )
498 -PYTHON_REQ_USE='threads(+),xml(+)'
499 -
500 -inherit python-single-r1 waf-utils multilib-minimal linux-info systemd
501 -
502 -MY_PV="${PV/_rc/rc}"
503 -MY_P="${PN}-${MY_PV}"
504 -
505 -SRC_PATH="stable"
506 -[[ ${PV} = *_rc* ]] && SRC_PATH="rc"
507 -
508 -SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz"
509 -[[ ${PV} = *_rc* ]] || \
510 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
511 -
512 -DESCRIPTION="Samba Suite Version 4"
513 -HOMEPAGE="https://www.samba.org/"
514 -LICENSE="GPL-3"
515 -
516 -SLOT="0"
517 -
518 -IUSE="acl addc addns ads ceph client cluster cups debug dmapi fam gnutls gpg iprint json ldap
519 -pam python quota selinux syslog system-heimdal +system-mitkrb5 systemd test winbind zeroconf"
520 -
521 -MULTILIB_WRAPPED_HEADERS=(
522 - /usr/include/samba-4.0/policy.h
523 - /usr/include/samba-4.0/dcerpc_server.h
524 - /usr/include/samba-4.0/ctdb.h
525 - /usr/include/samba-4.0/ctdb_client.h
526 - /usr/include/samba-4.0/ctdb_protocol.h
527 - /usr/include/samba-4.0/ctdb_private.h
528 - /usr/include/samba-4.0/ctdb_typesafe_cb.h
529 - /usr/include/samba-4.0/ctdb_version.h
530 -)
531 -
532 -# sys-apps/attr is an automagic dependency (see bug #489748)
533 -CDEPEND="
534 - >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}]
535 - dev-lang/perl:=
536 - dev-libs/libaio[${MULTILIB_USEDEP}]
537 - dev-libs/libbsd[${MULTILIB_USEDEP}]
538 - dev-libs/iniparser:0
539 - dev-libs/popt[${MULTILIB_USEDEP}]
540 - dev-python/subunit[${PYTHON_USEDEP},${MULTILIB_USEDEP}]
541 - >=dev-util/cmocka-1.1.1[${MULTILIB_USEDEP}]
542 - net-libs/libnsl:=[${MULTILIB_USEDEP}]
543 - sys-apps/attr[${MULTILIB_USEDEP}]
544 - >=sys-libs/ldb-1.4.3[ldap(+)?,python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
545 - <sys-libs/ldb-1.5.0[ldap(+)?,python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
546 - sys-libs/libcap
547 - sys-libs/ncurses:0=[${MULTILIB_USEDEP}]
548 - sys-libs/readline:0=
549 - >=sys-libs/talloc-2.1.14[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
550 - >=sys-libs/tdb-1.3.16[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
551 - >=sys-libs/tevent-0.9.37[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
552 - sys-libs/zlib[${MULTILIB_USEDEP}]
553 - virtual/libiconv
554 - pam? ( virtual/pam )
555 - acl? ( virtual/acl )
556 - addns? (
557 - net-dns/bind-tools[gssapi]
558 - dev-python/dnspython:=[${PYTHON_USEDEP}]
559 - )
560 - ceph? ( sys-cluster/ceph )
561 - cluster? (
562 - net-libs/rpcsvc-proto
563 - !dev-db/ctdb
564 - )
565 - cups? ( net-print/cups )
566 - debug? ( dev-util/lttng-ust )
567 - dmapi? ( sys-apps/dmapi )
568 - fam? ( virtual/fam )
569 - gnutls? (
570 - dev-libs/libgcrypt:0
571 - >=net-libs/gnutls-1.4.0
572 - )
573 - gpg? ( app-crypt/gpgme )
574 - json? ( dev-libs/jansson )
575 - ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] )
576 - system-heimdal? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] )
577 - system-mitkrb5? ( >=app-crypt/mit-krb5-1.15.1[${MULTILIB_USEDEP}] )
578 - systemd? ( sys-apps/systemd:0= )
579 -"
580 -DEPEND="${CDEPEND}
581 - ${PYTHON_DEPS}
582 - app-text/docbook-xsl-stylesheets
583 - dev-libs/libxslt
584 - net-libs/libtirpc[${MULTILIB_USEDEP}]
585 - virtual/pkgconfig
586 - || (
587 - net-libs/rpcsvc-proto
588 - <sys-libs/glibc-2.26[rpc(+)]
589 - )
590 - test? (
591 - !system-mitkrb5? (
592 - >=sys-libs/nss_wrapper-1.1.3
593 - >=net-dns/resolv_wrapper-1.1.4
594 - >=net-libs/socket_wrapper-1.1.7
595 - >=sys-libs/uid_wrapper-1.2.1
596 - )
597 - )"
598 -RDEPEND="${CDEPEND}
599 - python? ( ${PYTHON_DEPS} )
600 - client? ( net-fs/cifs-utils[ads?] )
601 - selinux? ( sec-policy/selinux-samba )
602 - !dev-perl/Parse-Yapp
603 -"
604 -
605 -REQUIRED_USE="
606 - addc? ( python gnutls json winbind )
607 - addns? ( python )
608 - ads? ( acl gnutls ldap winbind )
609 - cluster? ( ads )
610 - gpg? ( addc )
611 - test? ( python )
612 - ?? ( system-heimdal system-mitkrb5 )
613 - ${PYTHON_REQUIRED_USE}
614 -"
615 -
616 -# the test suite is messed, it uses system-installed samba
617 -# bits instead of what was built, tests things disabled via use
618 -# flags, and generally just fails to work in a way ebuilds could
619 -# rely on in its current state
620 -RESTRICT="test"
621 -
622 -S="${WORKDIR}/${MY_P}"
623 -
624 -PATCHES=(
625 - "${FILESDIR}/${PN}-4.4.0-pam.patch"
626 - "${FILESDIR}/${PN}-4.5.1-compile_et_fix.patch"
627 - "${FILESDIR}/${PN}-4.9.2-timespec.patch"
628 - "${FILESDIR}/netdb-defines.patch"
629 -)
630 -
631 -#CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
632 -CONFDIR="${FILESDIR}/4.4"
633 -
634 -WAF_BINARY="${S}/buildtools/bin/waf"
635 -
636 -SHAREDMODS=""
637 -
638 -pkg_setup() {
639 - python-single-r1_pkg_setup
640 - if use cluster ; then
641 - SHAREDMODS="idmap_rid,idmap_tdb2,idmap_ad"
642 - elif use ads ; then
643 - SHAREDMODS="idmap_ad"
644 - fi
645 -}
646 -
647 -src_prepare() {
648 - default
649 - use elibc_musl && eapply "${FILESDIR}/musl-disable-netgroup.patch"
650 -
651 - # un-bundle dnspython
652 - sed -i -e '/"dns.resolver":/d' "${S}"/third_party/wscript || die
653 -
654 - # unbundle iso8601 unless tests are enabled
655 - if ! use test ; then
656 - sed -i -e '/"iso8601":/d' "${S}"/third_party/wscript || die
657 - fi
658 -
659 - # ugly hackaround for bug #592502
660 - cp /usr/include/tevent_internal.h "${S}"/lib/tevent/ || die
661 -
662 - sed -e 's:<gpgme\.h>:<gpgme/gpgme.h>:' \
663 - -i source4/dsdb/samdb/ldb_modules/password_hash.c \
664 - || die
665 -
666 - # Friggin' WAF shit
667 - multilib_copy_sources
668 -}
669 -
670 -multilib_src_configure() {
671 - # when specifying libs for samba build you must append NONE to the end to
672 - # stop it automatically including things
673 - local bundled_libs="NONE"
674 - if ! use system-heimdal && ! use system-mitkrb5 ; then
675 - bundled_libs="heimbase,heimntlm,hdb,kdc,krb5,wind,gssapi,hcrypto,hx509,roken,asn1,com_err,NONE"
676 - fi
677 -
678 - local myconf=(
679 - --enable-fhs
680 - --sysconfdir="${EPREFIX}/etc"
681 - --localstatedir="${EPREFIX}/var"
682 - --with-modulesdir="${EPREFIX}/usr/$(get_libdir)/samba"
683 - --with-piddir="${EPREFIX}/run/${PN}"
684 - --bundled-libraries="${bundled_libs}"
685 - --builtin-libraries=NONE
686 - --disable-rpath
687 - --disable-rpath-install
688 - --nopyc
689 - --nopyo
690 - $(multilib_native_use_with acl acl-support)
691 - $(multilib_native_usex addc '' '--without-ad-dc')
692 - $(multilib_native_use_with addns dnsupdate)
693 - $(multilib_native_use_with ads)
694 - $(multilib_native_use_enable ceph cephfs)
695 - $(multilib_native_use_with cluster cluster-support)
696 - $(multilib_native_use_enable cups)
697 - $(multilib_native_use_with dmapi)
698 - $(multilib_native_use_with fam)
699 - $(multilib_native_use_with gpg gpgme)
700 - $(multilib_native_use_with json json-audit)
701 - $(multilib_native_use_enable iprint)
702 - $(multilib_native_use_with pam)
703 - $(multilib_native_usex pam "--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '')
704 - $(multilib_native_use_with quota quotas)
705 - $(multilib_native_use_with syslog)
706 - $(multilib_native_use_with systemd)
707 - $(multilib_native_use_with winbind)
708 - $(multilib_native_usex python '' '--disable-python')
709 - $(multilib_native_use_enable zeroconf avahi)
710 - $(multilib_native_usex test '--enable-selftest' '')
711 - $(usex system-mitkrb5 '--with-system-mitkrb5' '')
712 - $(use_enable gnutls)
713 - $(use_with debug lttng)
714 - $(use_with ldap)
715 - )
716 - multilib_is_native_abi && myconf+=( --with-shared-modules=${SHAREDMODS} )
717 -
718 - CPPFLAGS="-I${SYSROOT}${EPREFIX}/usr/include/et ${CPPFLAGS}" \
719 - waf-utils_src_configure ${myconf[@]}
720 -}
721 -
722 -multilib_src_compile() {
723 - waf-utils_src_compile
724 -}
725 -
726 -multilib_src_install() {
727 - waf-utils_src_install
728 -
729 - # Make all .so files executable
730 - find "${ED}" -type f -name "*.so" -exec chmod +x {} + || die
731 -
732 - if multilib_is_native_abi ; then
733 - # install ldap schema for server (bug #491002)
734 - if use ldap ; then
735 - insinto /etc/openldap/schema
736 - doins examples/LDAP/samba.schema
737 - fi
738 -
739 - # create symlink for cups (bug #552310)
740 - if use cups ; then
741 - dosym ../../../bin/smbspool /usr/libexec/cups/backend/smb
742 - fi
743 -
744 - # install example config file
745 - insinto /etc/samba
746 - doins examples/smb.conf.default
747 -
748 - # Fix paths in example file (#603964)
749 - sed \
750 - -e '/log file =/s@/usr/local/samba/var/@/var/log/samba/@' \
751 - -e '/include =/s@/usr/local/samba/lib/@/etc/samba/@' \
752 - -e '/path =/s@/usr/local/samba/lib/@/var/lib/samba/@' \
753 - -e '/path =/s@/usr/local/samba/@/var/lib/samba/@' \
754 - -e '/path =/s@/usr/spool/samba@/var/spool/samba@' \
755 - -i "${ED%/}"/etc/samba/smb.conf.default || die
756 -
757 - # Install init script and conf.d file
758 - newinitd "${CONFDIR}/samba4.initd-r1" samba
759 - newconfd "${CONFDIR}/samba4.confd" samba
760 -
761 - systemd_dotmpfilesd "${FILESDIR}"/samba.conf
762 - systemd_dounit "${FILESDIR}"/nmbd.service
763 - systemd_dounit "${FILESDIR}"/smbd.{service,socket}
764 - systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service'
765 - systemd_dounit "${FILESDIR}"/winbindd.service
766 - systemd_dounit "${FILESDIR}"/samba.service
767 - fi
768 -}
769 -
770 -multilib_src_test() {
771 - if multilib_is_native_abi ; then
772 - "${WAF_BINARY}" test || die "test failed"
773 - fi
774 -}
775 -
776 -pkg_postinst() {
777 - ewarn "Be aware the this release contains the best of all of Samba's"
778 - ewarn "technology parts, both a file server (that you can reasonably expect"
779 - ewarn "to upgrade existing Samba 3.x releases to) and the AD domain"
780 - ewarn "controller work previously known as 'samba4'."
781 -
782 - elog "For further information and migration steps make sure to read "
783 - elog "https://samba.org/samba/history/${P}.html "
784 - elog "https://wiki.samba.org/index.php/Samba4/HOWTO "
785 -}
786
787 diff --git a/net-fs/samba/samba-4.9.4-r1.ebuild b/net-fs/samba/samba-4.9.6.ebuild
788 similarity index 98%
789 rename from net-fs/samba/samba-4.9.4-r1.ebuild
790 rename to net-fs/samba/samba-4.9.6.ebuild
791 index 53835ee..42ef605 100644
792 --- a/net-fs/samba/samba-4.9.4-r1.ebuild
793 +++ b/net-fs/samba/samba-4.9.6.ebuild
794 @@ -15,7 +15,7 @@ SRC_PATH="stable"
795
796 SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz"
797 [[ ${PV} = *_rc* ]] || \
798 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
799 +KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~x86"
800
801 DESCRIPTION="Samba Suite Version 4"
802 HOMEPAGE="https://www.samba.org/"
803 @@ -49,7 +49,7 @@ CDEPEND="
804 >=dev-util/cmocka-1.1.1[${MULTILIB_USEDEP}]
805 net-libs/libnsl:=[${MULTILIB_USEDEP}]
806 sys-apps/attr[${MULTILIB_USEDEP}]
807 - >=sys-libs/ldb-1.4.3[ldap(+)?,python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
808 + >=sys-libs/ldb-1.4.6[ldap(+)?,python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
809 <sys-libs/ldb-1.5.0[ldap(+)?,python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
810 sys-libs/libcap
811 sys-libs/ncurses:0=[${MULTILIB_USEDEP}]
812 @@ -133,7 +133,6 @@ PATCHES=(
813 "${FILESDIR}/${PN}-4.4.0-pam.patch"
814 "${FILESDIR}/${PN}-4.5.1-compile_et_fix.patch"
815 "${FILESDIR}/${PN}-4.9.2-timespec.patch"
816 - "${FILESDIR}/netdb-defines.patch"
817 )
818
819 #CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"