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: Thu, 25 Jun 2020 08:35:02
Message-Id: 1593074082.19c9465c974d4e5a6305251d5b71ad52d697d89d.polynomial-c@gentoo
1 commit: 19c9465c974d4e5a6305251d5b71ad52d697d89d
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 25 08:32:27 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 25 08:34:42 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19c9465c
7
8 net-fs/samba: Removed old
9
10 Package-Manager: Portage-2.3.103, Repoman-2.3.23
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 net-fs/samba/Manifest | 1 -
14 net-fs/samba/samba-4.11.9.ebuild | 316 ---------------------------------------
15 net-fs/samba/samba-4.12.2.ebuild | 314 --------------------------------------
16 net-fs/samba/samba-4.12.3.ebuild | 314 --------------------------------------
17 4 files changed, 945 deletions(-)
18
19 diff --git a/net-fs/samba/Manifest b/net-fs/samba/Manifest
20 index 6b058ec2b28..e363ad4b728 100644
21 --- a/net-fs/samba/Manifest
22 +++ b/net-fs/samba/Manifest
23 @@ -1,4 +1,3 @@
24 DIST samba-4.11.8.tar.gz 18571308 BLAKE2B 024920789ac8fcedfc79f4d094a47e4c1399a0bbc3ad79908f66b9bbabd765865795763c1017cc0caba18dbc11ce6a7e25231804d7dff11ab3d97a599ab8d9ed SHA512 a036c46e060d9edc11bf4e45e0449042fe44b74ff083d305779c68dad943f87fb6d2680f3a68e6bbcd0b19c8c397ec9fc5794229a311c25dad9efc366add613a
25 DIST samba-4.11.9.tar.gz 18576961 BLAKE2B 584e62df96bd7de6c0ff93f8fb45b85583b048c300cae020e1e1b467e773b4198c215cbef3b9c34ddf2e138118cca1dd7002ab9c671d111606e735ba8595f720 SHA512 77c1e928d23115eed0cc20f5836b02e73a26b0c23b2061c6148177fbf5b140e3d3a7a9fabfee3a2306158bc157708636c58c6655a57a64f0ff9a20c1a91e4f23
26 -DIST samba-4.12.2.tar.gz 18192360 BLAKE2B 1ef1b128dc628d5b8b69183fa99eceac27feaea54207eb2e5e2af5882cdf17d2819efbfc9f91cf73a9c744b5ef17c6b8dcd135783da9a36d8c41246d2c4515d0 SHA512 c1d5f62ea2e43c246988aa65c4b690de232f73c0213cbc5d532e43c8cfbea17f1ac92435526b64c9a85c582b29381eecfb57713861efc32f6e6257000c393562
27 DIST samba-4.12.3.tar.gz 18203604 BLAKE2B 4d95e472fe4dbec259c6efe14db56d38056209f22a1ad98a62f7b8a9efb09c09ef4ff16ac1ee287e5a93cc86cb7472ee7c1d4feb1d0e1bdc4b887b1a7213fdf2 SHA512 5de66c21db0710880b6e0347ae1eff17ff1881eb926e9a0cf5af9ddc27599cf8daa9ca6ea35b2a0a2158226a38cdf7074b28a51e460a139720c78a522b1a5908
28
29 diff --git a/net-fs/samba/samba-4.11.9.ebuild b/net-fs/samba/samba-4.11.9.ebuild
30 deleted file mode 100644
31 index 3fe07a3d430..00000000000
32 --- a/net-fs/samba/samba-4.11.9.ebuild
33 +++ /dev/null
34 @@ -1,316 +0,0 @@
35 -# Copyright 1999-2020 Gentoo Authors
36 -# Distributed under the terms of the GNU General Public License v2
37 -
38 -EAPI=6
39 -
40 -PYTHON_COMPAT=( python3_{6,7,8} )
41 -PYTHON_REQ_USE='threads(+),xml(+)'
42 -inherit python-single-r1 waf-utils multilib-minimal linux-info systemd pam
43 -
44 -MY_PV="${PV/_rc/rc}"
45 -MY_P="${PN}-${MY_PV}"
46 -
47 -SRC_PATH="stable"
48 -[[ ${PV} = *_rc* ]] && SRC_PATH="rc"
49 -
50 -SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz"
51 -[[ ${PV} = *_rc* ]] || \
52 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
53 -
54 -DESCRIPTION="Samba Suite Version 4"
55 -HOMEPAGE="https://www.samba.org/"
56 -LICENSE="GPL-3"
57 -
58 -SLOT="0"
59 -
60 -IUSE="acl addc addns ads ceph client cluster cups debug dmapi fam gpg iprint
61 -json ldap pam profiling-data python quota selinux syslog system-heimdal
62 -+system-mitkrb5 systemd test winbind zeroconf"
63 -
64 -MULTILIB_WRAPPED_HEADERS=(
65 - /usr/include/samba-4.0/policy.h
66 - /usr/include/samba-4.0/dcerpc_server.h
67 - /usr/include/samba-4.0/ctdb.h
68 - /usr/include/samba-4.0/ctdb_client.h
69 - /usr/include/samba-4.0/ctdb_protocol.h
70 - /usr/include/samba-4.0/ctdb_private.h
71 - /usr/include/samba-4.0/ctdb_typesafe_cb.h
72 - /usr/include/samba-4.0/ctdb_version.h
73 -)
74 -
75 -CDEPEND="
76 - >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}]
77 - dev-lang/perl:=
78 - dev-libs/libbsd[${MULTILIB_USEDEP}]
79 - dev-libs/libtasn1[${MULTILIB_USEDEP}]
80 - dev-libs/popt[${MULTILIB_USEDEP}]
81 - >=net-libs/gnutls-3.2.0[${MULTILIB_USEDEP}]
82 - net-libs/libnsl:=[${MULTILIB_USEDEP}]
83 - sys-apps/dbus[${MULTILIB_USEDEP}]
84 - sys-libs/e2fsprogs-libs[${MULTILIB_USEDEP}]
85 - >=sys-libs/ldb-2.0.10[ldap(+)?,python?,${PYTHON_SINGLE_USEDEP},${MULTILIB_USEDEP}]
86 - <sys-libs/ldb-2.1.0[ldap(+)?,python?,${PYTHON_SINGLE_USEDEP},${MULTILIB_USEDEP}]
87 - sys-libs/libcap
88 - sys-libs/ncurses:0=
89 - sys-libs/readline:0=
90 - >=sys-libs/talloc-2.2.0[python?,${PYTHON_SINGLE_USEDEP},${MULTILIB_USEDEP}]
91 - >=sys-libs/tdb-1.4.2[python?,${PYTHON_SINGLE_USEDEP},${MULTILIB_USEDEP}]
92 - >=sys-libs/tevent-0.10.0[python?,${PYTHON_SINGLE_USEDEP},${MULTILIB_USEDEP}]
93 - sys-libs/zlib[${MULTILIB_USEDEP}]
94 - virtual/libiconv
95 - pam? ( sys-libs/pam )
96 - acl? ( virtual/acl )
97 - $(python_gen_cond_dep "
98 - dev-python/subunit[\${PYTHON_MULTI_USEDEP},${MULTILIB_USEDEP}]
99 - addns? (
100 - net-dns/bind-tools[gssapi]
101 - dev-python/dnspython:=[\${PYTHON_MULTI_USEDEP}]
102 - )
103 - ")
104 - ceph? ( sys-cluster/ceph )
105 - cluster? (
106 - net-libs/rpcsvc-proto
107 - !dev-db/ctdb
108 - )
109 - cups? ( net-print/cups )
110 - debug? ( dev-util/lttng-ust )
111 - dmapi? ( sys-apps/dmapi )
112 - fam? ( virtual/fam )
113 - gpg? ( app-crypt/gpgme )
114 - json? ( dev-libs/jansson )
115 - ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] )
116 - system-heimdal? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] )
117 - system-mitkrb5? ( >=app-crypt/mit-krb5-1.15.1[${MULTILIB_USEDEP}] )
118 - systemd? ( sys-apps/systemd:0= )
119 - zeroconf? ( net-dns/avahi )
120 -"
121 -DEPEND="${CDEPEND}
122 - ${PYTHON_DEPS}
123 - app-text/docbook-xsl-stylesheets
124 - dev-libs/libxslt
125 - >=dev-util/cmocka-1.1.1[${MULTILIB_USEDEP}]
126 - net-libs/libtirpc[${MULTILIB_USEDEP}]
127 - virtual/pkgconfig
128 - || (
129 - net-libs/rpcsvc-proto
130 - <sys-libs/glibc-2.26[rpc(+)]
131 - )
132 - test? (
133 - !system-mitkrb5? (
134 - >=sys-libs/nss_wrapper-1.1.3
135 - >=net-dns/resolv_wrapper-1.1.4
136 - >=net-libs/socket_wrapper-1.1.9
137 - >=sys-libs/uid_wrapper-1.2.1
138 - )
139 - )"
140 -RDEPEND="${CDEPEND}
141 - python? ( ${PYTHON_DEPS} )
142 - client? ( net-fs/cifs-utils[ads?] )
143 - selinux? ( sec-policy/selinux-samba )
144 - !dev-perl/Parse-Yapp
145 -"
146 -
147 -REQUIRED_USE="
148 - addc? ( python json winbind )
149 - addns? ( python )
150 - ads? ( acl ldap winbind )
151 - cluster? ( ads )
152 - gpg? ( addc )
153 - test? ( python )
154 - ?? ( system-heimdal system-mitkrb5 )
155 - ${PYTHON_REQUIRED_USE}
156 -"
157 -
158 -# the test suite is messed, it uses system-installed samba
159 -# bits instead of what was built, tests things disabled via use
160 -# flags, and generally just fails to work in a way ebuilds could
161 -# rely on in its current state
162 -RESTRICT="test"
163 -
164 -S="${WORKDIR}/${MY_P}"
165 -
166 -PATCHES=(
167 - "${FILESDIR}/${PN}-4.4.0-pam.patch"
168 - "${FILESDIR}/${PN}-4.9.2-timespec.patch"
169 - "${FILESDIR}/${PN}-4.13-winexe_option.patch"
170 -)
171 -
172 -#CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
173 -CONFDIR="${FILESDIR}/4.4"
174 -
175 -WAF_BINARY="${S}/buildtools/bin/waf"
176 -
177 -SHAREDMODS=""
178 -
179 -pkg_setup() {
180 - python-single-r1_pkg_setup
181 - if use cluster ; then
182 - SHAREDMODS="idmap_rid,idmap_tdb2,idmap_ad"
183 - elif use ads ; then
184 - SHAREDMODS="idmap_ad"
185 - fi
186 -}
187 -
188 -src_prepare() {
189 - default
190 -
191 - # un-bundle dnspython
192 - sed -i -e '/"dns.resolver":/d' "${S}"/third_party/wscript || die
193 -
194 - # unbundle iso8601 unless tests are enabled
195 - if ! use test ; then
196 - sed -i -e '/"iso8601":/d' "${S}"/third_party/wscript || die
197 - fi
198 -
199 - ## ugly hackaround for bug #592502
200 - #cp /usr/include/tevent_internal.h "${S}"/lib/tevent/ || die
201 -
202 - sed -e 's:<gpgme\.h>:<gpgme/gpgme.h>:' \
203 - -i source4/dsdb/samdb/ldb_modules/password_hash.c \
204 - || die
205 -
206 - # Friggin' WAF shit
207 - multilib_copy_sources
208 -}
209 -
210 -multilib_src_configure() {
211 - # when specifying libs for samba build you must append NONE to the end to
212 - # stop it automatically including things
213 - local bundled_libs="NONE"
214 - if ! use system-heimdal && ! use system-mitkrb5 ; then
215 - bundled_libs="heimbase,heimntlm,hdb,kdc,krb5,wind,gssapi,hcrypto,hx509,roken,asn1,com_err,NONE"
216 - fi
217 -
218 - local myconf=(
219 - --enable-fhs
220 - --sysconfdir="${EPREFIX}/etc"
221 - --localstatedir="${EPREFIX}/var"
222 - --with-modulesdir="${EPREFIX}/usr/$(get_libdir)/samba"
223 - --with-piddir="${EPREFIX}/run/${PN}"
224 - --bundled-libraries="${bundled_libs}"
225 - --builtin-libraries=NONE
226 - --disable-rpath
227 - --disable-rpath-install
228 - --nopyc
229 - --nopyo
230 - --without-winexe
231 - $(multilib_native_use_with acl acl-support)
232 - $(multilib_native_usex addc '' '--without-ad-dc')
233 - $(multilib_native_use_with addns dnsupdate)
234 - $(multilib_native_use_with ads)
235 - $(multilib_native_use_enable ceph cephfs)
236 - $(multilib_native_use_with cluster cluster-support)
237 - $(multilib_native_use_enable cups)
238 - $(multilib_native_use_with dmapi)
239 - $(multilib_native_use_with fam)
240 - $(multilib_native_use_with gpg gpgme)
241 - $(multilib_native_use_with json)
242 - $(multilib_native_use_enable iprint)
243 - $(multilib_native_use_with pam)
244 - $(multilib_native_usex pam "--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '')
245 - $(multilib_native_use_with quota quotas)
246 - $(multilib_native_use_with syslog)
247 - $(multilib_native_use_with systemd)
248 - --systemd-install-services
249 - --with-systemddir="$(systemd_get_systemunitdir)"
250 - $(multilib_native_use_with winbind)
251 - $(multilib_native_usex python '' '--disable-python')
252 - $(multilib_native_use_enable zeroconf avahi)
253 - $(multilib_native_usex test '--enable-selftest' '')
254 - $(usex system-mitkrb5 "--with-system-mitkrb5 $(multilib_native_usex addc --with-experimental-mit-ad-dc '')" '')
255 - $(use_with debug lttng)
256 - $(use_with ldap)
257 - $(use_with profiling-data)
258 - # bug #683148
259 - --jobs 1
260 - )
261 -
262 - multilib_is_native_abi && myconf+=( --with-shared-modules=${SHAREDMODS} )
263 -
264 - CPPFLAGS="-I${SYSROOT}${EPREFIX}/usr/include/et ${CPPFLAGS}" \
265 - waf-utils_src_configure ${myconf[@]}
266 -}
267 -
268 -multilib_src_compile() {
269 - waf-utils_src_compile
270 -}
271 -
272 -multilib_src_install() {
273 - waf-utils_src_install
274 -
275 - # Make all .so files executable
276 - find "${ED}" -type f -name "*.so" -exec chmod +x {} + || die
277 -
278 - if multilib_is_native_abi ; then
279 - # install ldap schema for server (bug #491002)
280 - if use ldap ; then
281 - insinto /etc/openldap/schema
282 - doins examples/LDAP/samba.schema
283 - fi
284 -
285 - # create symlink for cups (bug #552310)
286 - if use cups ; then
287 - dosym ../../../bin/smbspool /usr/libexec/cups/backend/smb
288 - fi
289 -
290 - # install example config file
291 - insinto /etc/samba
292 - doins examples/smb.conf.default
293 -
294 - # Fix paths in example file (#603964)
295 - sed \
296 - -e '/log file =/s@/usr/local/samba/var/@/var/log/samba/@' \
297 - -e '/include =/s@/usr/local/samba/lib/@/etc/samba/@' \
298 - -e '/path =/s@/usr/local/samba/lib/@/var/lib/samba/@' \
299 - -e '/path =/s@/usr/local/samba/@/var/lib/samba/@' \
300 - -e '/path =/s@/usr/spool/samba@/var/spool/samba@' \
301 - -i "${ED%/}"/etc/samba/smb.conf.default || die
302 -
303 - # Install init script and conf.d file
304 - newinitd "${CONFDIR}/samba4.initd-r1" samba
305 - newconfd "${CONFDIR}/samba4.confd" samba
306 -
307 - systemd_dotmpfilesd "${FILESDIR}"/samba.conf
308 - use addc || rm "${D}/$(systemd_get_systemunitdir)/samba.service" || die
309 -
310 - # Preserve functionality for old gentoo-specific unit names
311 - dosym nmb.service "$(systemd_get_systemunitdir)/nmbd.service"
312 - dosym smb.service "$(systemd_get_systemunitdir)/smbd.service"
313 - dosym winbind.service "$(systemd_get_systemunitdir)/winbindd.service"
314 - fi
315 -
316 - if use pam && use winbind ; then
317 - newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind
318 - # bugs #376853 and #590374
319 - insinto /etc/security
320 - doins examples/pam_winbind/pam_winbind.conf
321 - fi
322 -
323 - keepdir /var/cache/samba
324 - keepdir /var/lib/ctdb
325 - keepdir /var/lib/samba/{bind-dns,private}
326 - keepdir /var/log/samba
327 -}
328 -
329 -multilib_src_install_all() {
330 - # Attempt to fix bug #673168
331 - find "${ED}" -type d -name "Yapp" -print0 \
332 - | xargs -0 --no-run-if-empty rm -r || die
333 -}
334 -
335 -multilib_src_test() {
336 - if multilib_is_native_abi ; then
337 - "${WAF_BINARY}" test || die "test failed"
338 - fi
339 -}
340 -
341 -pkg_postinst() {
342 - ewarn "Be aware that this release contains the best of all of Samba's"
343 - ewarn "technology parts, both a file server (that you can reasonably expect"
344 - ewarn "to upgrade existing Samba 3.x releases to) and the AD domain"
345 - ewarn "controller work previously known as 'samba4'."
346 -
347 - elog "For further information and migration steps make sure to read "
348 - elog "https://samba.org/samba/history/${P}.html "
349 - elog "https://wiki.samba.org/index.php/Samba4/HOWTO "
350 -}
351
352 diff --git a/net-fs/samba/samba-4.12.2.ebuild b/net-fs/samba/samba-4.12.2.ebuild
353 deleted file mode 100644
354 index 423237c1a0e..00000000000
355 --- a/net-fs/samba/samba-4.12.2.ebuild
356 +++ /dev/null
357 @@ -1,314 +0,0 @@
358 -# Copyright 1999-2020 Gentoo Authors
359 -# Distributed under the terms of the GNU General Public License v2
360 -
361 -EAPI=6
362 -
363 -PYTHON_COMPAT=( python3_{6,7,8} )
364 -PYTHON_REQ_USE='threads(+),xml(+)'
365 -inherit python-single-r1 waf-utils multilib-minimal linux-info systemd pam
366 -
367 -MY_PV="${PV/_rc/rc}"
368 -MY_P="${PN}-${MY_PV}"
369 -
370 -SRC_PATH="stable"
371 -[[ ${PV} = *_rc* ]] && SRC_PATH="rc"
372 -
373 -SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz"
374 -[[ ${PV} = *_rc* ]] || \
375 -KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
376 -
377 -DESCRIPTION="Samba Suite Version 4"
378 -HOMEPAGE="https://www.samba.org/"
379 -LICENSE="GPL-3"
380 -
381 -SLOT="0"
382 -
383 -IUSE="acl addc addns ads ceph client cluster cups debug dmapi fam gpg iprint
384 -json ldap pam profiling-data python quota selinux syslog system-heimdal
385 -+system-mitkrb5 systemd test winbind zeroconf"
386 -
387 -MULTILIB_WRAPPED_HEADERS=(
388 - /usr/include/samba-4.0/policy.h
389 - /usr/include/samba-4.0/dcerpc_server.h
390 - /usr/include/samba-4.0/ctdb.h
391 - /usr/include/samba-4.0/ctdb_client.h
392 - /usr/include/samba-4.0/ctdb_protocol.h
393 - /usr/include/samba-4.0/ctdb_private.h
394 - /usr/include/samba-4.0/ctdb_typesafe_cb.h
395 - /usr/include/samba-4.0/ctdb_version.h
396 -)
397 -
398 -CDEPEND="
399 - >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}]
400 - dev-lang/perl:=
401 - dev-libs/icu:=[${MULTILIB_USEDEP}]
402 - dev-libs/libbsd[${MULTILIB_USEDEP}]
403 - dev-libs/libtasn1[${MULTILIB_USEDEP}]
404 - dev-libs/popt[${MULTILIB_USEDEP}]
405 - dev-perl/Parse-Yapp
406 - >=net-libs/gnutls-3.4.7[${MULTILIB_USEDEP}]
407 - net-libs/libnsl:=[${MULTILIB_USEDEP}]
408 - sys-apps/dbus[${MULTILIB_USEDEP}]
409 - sys-libs/e2fsprogs-libs[${MULTILIB_USEDEP}]
410 - >=sys-libs/ldb-2.1.2[ldap(+)?,python?,${PYTHON_SINGLE_USEDEP},${MULTILIB_USEDEP}]
411 - <sys-libs/ldb-2.2.0[ldap(+)?,python?,${PYTHON_SINGLE_USEDEP},${MULTILIB_USEDEP}]
412 - sys-libs/libcap[${MULTILIB_USEDEP}]
413 - sys-libs/liburing[${MULTILIB_USEDEP}]
414 - sys-libs/ncurses:0=
415 - sys-libs/readline:0=
416 - >=sys-libs/talloc-2.3.1[python?,${PYTHON_SINGLE_USEDEP},${MULTILIB_USEDEP}]
417 - >=sys-libs/tdb-1.4.3[python?,${PYTHON_SINGLE_USEDEP},${MULTILIB_USEDEP}]
418 - >=sys-libs/tevent-0.10.2[python?,${PYTHON_SINGLE_USEDEP},${MULTILIB_USEDEP}]
419 - sys-libs/zlib[${MULTILIB_USEDEP}]
420 - virtual/libiconv
421 - pam? ( sys-libs/pam )
422 - acl? ( virtual/acl )
423 - $(python_gen_cond_dep "
424 - dev-python/subunit[\${PYTHON_MULTI_USEDEP},${MULTILIB_USEDEP}]
425 - addns? (
426 - net-dns/bind-tools[gssapi]
427 - dev-python/dnspython:=[\${PYTHON_MULTI_USEDEP}]
428 - )
429 - ")
430 - ceph? ( sys-cluster/ceph )
431 - cluster? (
432 - net-libs/rpcsvc-proto
433 - !dev-db/ctdb
434 - )
435 - cups? ( net-print/cups )
436 - debug? ( dev-util/lttng-ust )
437 - dmapi? ( sys-apps/dmapi )
438 - fam? ( virtual/fam )
439 - gpg? ( app-crypt/gpgme )
440 - json? ( dev-libs/jansson )
441 - ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] )
442 - system-heimdal? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] )
443 - system-mitkrb5? ( >=app-crypt/mit-krb5-1.15.1[${MULTILIB_USEDEP}] )
444 - systemd? ( sys-apps/systemd:0= )
445 - zeroconf? ( net-dns/avahi )
446 -"
447 -DEPEND="${CDEPEND}
448 - ${PYTHON_DEPS}
449 - app-text/docbook-xsl-stylesheets
450 - dev-libs/libxslt
451 - >=dev-util/cmocka-1.1.3[${MULTILIB_USEDEP}]
452 - net-libs/libtirpc[${MULTILIB_USEDEP}]
453 - virtual/pkgconfig
454 - || (
455 - net-libs/rpcsvc-proto
456 - <sys-libs/glibc-2.26[rpc(+)]
457 - )
458 - test? (
459 - !system-mitkrb5? (
460 - >=sys-libs/nss_wrapper-1.1.3
461 - >=net-dns/resolv_wrapper-1.1.4
462 - >=net-libs/socket_wrapper-1.1.9
463 - >=sys-libs/uid_wrapper-1.2.1
464 - )
465 - )"
466 -RDEPEND="${CDEPEND}
467 - python? ( ${PYTHON_DEPS} )
468 - client? ( net-fs/cifs-utils[ads?] )
469 - selinux? ( sec-policy/selinux-samba )
470 -"
471 -
472 -REQUIRED_USE="
473 - addc? ( python json winbind )
474 - addns? ( python )
475 - ads? ( acl ldap winbind )
476 - cluster? ( ads )
477 - gpg? ( addc )
478 - test? ( python )
479 - ?? ( system-heimdal system-mitkrb5 )
480 - ${PYTHON_REQUIRED_USE}
481 -"
482 -
483 -# the test suite is messed, it uses system-installed samba
484 -# bits instead of what was built, tests things disabled via use
485 -# flags, and generally just fails to work in a way ebuilds could
486 -# rely on in its current state
487 -RESTRICT="test"
488 -
489 -S="${WORKDIR}/${MY_P}"
490 -
491 -PATCHES=(
492 - "${FILESDIR}/${PN}-4.4.0-pam.patch"
493 - "${FILESDIR}/${PN}-4.9.2-timespec.patch"
494 - "${FILESDIR}/${PN}-4.13-winexe_option.patch"
495 -)
496 -
497 -#CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
498 -CONFDIR="${FILESDIR}/4.4"
499 -
500 -WAF_BINARY="${S}/buildtools/bin/waf"
501 -
502 -SHAREDMODS=""
503 -
504 -pkg_setup() {
505 - python-single-r1_pkg_setup
506 - if use cluster ; then
507 - SHAREDMODS="idmap_rid,idmap_tdb2,idmap_ad"
508 - elif use ads ; then
509 - SHAREDMODS="idmap_ad"
510 - fi
511 -}
512 -
513 -src_prepare() {
514 - default
515 -
516 - # un-bundle dnspython
517 - sed -i -e '/"dns.resolver":/d' "${S}"/third_party/wscript || die
518 -
519 - # unbundle iso8601 unless tests are enabled
520 - if ! use test ; then
521 - sed -i -e '/"iso8601":/d' "${S}"/third_party/wscript || die
522 - fi
523 -
524 - ## ugly hackaround for bug #592502
525 - #cp /usr/include/tevent_internal.h "${S}"/lib/tevent/ || die
526 -
527 - sed -e 's:<gpgme\.h>:<gpgme/gpgme.h>:' \
528 - -i source4/dsdb/samdb/ldb_modules/password_hash.c \
529 - || die
530 -
531 - # Friggin' WAF shit
532 - multilib_copy_sources
533 -}
534 -
535 -multilib_src_configure() {
536 - # when specifying libs for samba build you must append NONE to the end to
537 - # stop it automatically including things
538 - local bundled_libs="NONE"
539 - if ! use system-heimdal && ! use system-mitkrb5 ; then
540 - bundled_libs="heimbase,heimntlm,hdb,kdc,krb5,wind,gssapi,hcrypto,hx509,roken,asn1,com_err,NONE"
541 - fi
542 -
543 - local myconf=(
544 - --enable-fhs
545 - --sysconfdir="${EPREFIX}/etc"
546 - --localstatedir="${EPREFIX}/var"
547 - --with-modulesdir="${EPREFIX}/usr/$(get_libdir)/samba"
548 - --with-piddir="${EPREFIX}/run/${PN}"
549 - --bundled-libraries="${bundled_libs}"
550 - --builtin-libraries=NONE
551 - --disable-rpath
552 - --disable-rpath-install
553 - --nopyc
554 - --nopyo
555 - --without-winexe
556 - $(multilib_native_use_with acl acl-support)
557 - $(multilib_native_usex addc '' '--without-ad-dc')
558 - $(multilib_native_use_with addns dnsupdate)
559 - $(multilib_native_use_with ads)
560 - $(multilib_native_use_enable ceph cephfs)
561 - $(multilib_native_use_with cluster cluster-support)
562 - $(multilib_native_use_enable cups)
563 - $(multilib_native_use_with dmapi)
564 - $(multilib_native_use_with fam)
565 - $(multilib_native_use_with gpg gpgme)
566 - $(multilib_native_use_with json)
567 - $(multilib_native_use_enable iprint)
568 - $(multilib_native_use_with pam)
569 - $(multilib_native_usex pam "--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '')
570 - $(multilib_native_use_with quota quotas)
571 - $(multilib_native_use_with syslog)
572 - $(multilib_native_use_with systemd)
573 - --systemd-install-services
574 - --with-systemddir="$(systemd_get_systemunitdir)"
575 - $(multilib_native_use_with winbind)
576 - $(multilib_native_usex python '' '--disable-python')
577 - $(multilib_native_use_enable zeroconf avahi)
578 - $(multilib_native_usex test '--enable-selftest' '')
579 - $(usex system-mitkrb5 "--with-system-mitkrb5 $(multilib_native_usex addc --with-experimental-mit-ad-dc '')" '')
580 - $(use_with debug lttng)
581 - $(use_with ldap)
582 - $(use_with profiling-data)
583 - # bug #683148
584 - --jobs 1
585 - )
586 -
587 - multilib_is_native_abi && myconf+=( --with-shared-modules=${SHAREDMODS} )
588 -
589 - CPPFLAGS="-I${SYSROOT}${EPREFIX}/usr/include/et ${CPPFLAGS}" \
590 - waf-utils_src_configure ${myconf[@]}
591 -}
592 -
593 -multilib_src_compile() {
594 - waf-utils_src_compile
595 -}
596 -
597 -multilib_src_install() {
598 - waf-utils_src_install
599 -
600 - # Make all .so files executable
601 - find "${ED}" -type f -name "*.so" -exec chmod +x {} + || die
602 -
603 - if multilib_is_native_abi ; then
604 - # install ldap schema for server (bug #491002)
605 - if use ldap ; then
606 - insinto /etc/openldap/schema
607 - doins examples/LDAP/samba.schema
608 - fi
609 -
610 - # create symlink for cups (bug #552310)
611 - if use cups ; then
612 - dosym ../../../bin/smbspool /usr/libexec/cups/backend/smb
613 - fi
614 -
615 - # install example config file
616 - insinto /etc/samba
617 - doins examples/smb.conf.default
618 -
619 - # Fix paths in example file (#603964)
620 - sed \
621 - -e '/log file =/s@/usr/local/samba/var/@/var/log/samba/@' \
622 - -e '/include =/s@/usr/local/samba/lib/@/etc/samba/@' \
623 - -e '/path =/s@/usr/local/samba/lib/@/var/lib/samba/@' \
624 - -e '/path =/s@/usr/local/samba/@/var/lib/samba/@' \
625 - -e '/path =/s@/usr/spool/samba@/var/spool/samba@' \
626 - -i "${ED%/}"/etc/samba/smb.conf.default || die
627 -
628 - # Install init script and conf.d file
629 - newinitd "${CONFDIR}/samba4.initd-r1" samba
630 - newconfd "${CONFDIR}/samba4.confd" samba
631 -
632 - systemd_dotmpfilesd "${FILESDIR}"/samba.conf
633 - use addc || rm "${D}/$(systemd_get_systemunitdir)/samba.service" || die
634 -
635 - # Preserve functionality for old gentoo-specific unit names
636 - dosym nmb.service "$(systemd_get_systemunitdir)/nmbd.service"
637 - dosym smb.service "$(systemd_get_systemunitdir)/smbd.service"
638 - dosym winbind.service "$(systemd_get_systemunitdir)/winbindd.service"
639 - fi
640 -
641 - if use pam && use winbind ; then
642 - newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind
643 - # bugs #376853 and #590374
644 - insinto /etc/security
645 - doins examples/pam_winbind/pam_winbind.conf
646 - fi
647 -
648 - keepdir /var/cache/samba
649 - keepdir /var/lib/ctdb
650 - keepdir /var/lib/samba/{bind-dns,private}
651 - keepdir /var/lock/samba
652 - keepdir /var/log/samba
653 - keepdir /var/run/samba
654 -}
655 -
656 -multilib_src_test() {
657 - if multilib_is_native_abi ; then
658 - "${WAF_BINARY}" test || die "test failed"
659 - fi
660 -}
661 -
662 -pkg_postinst() {
663 - ewarn "Be aware that this release contains the best of all of Samba's"
664 - ewarn "technology parts, both a file server (that you can reasonably expect"
665 - ewarn "to upgrade existing Samba 3.x releases to) and the AD domain"
666 - ewarn "controller work previously known as 'samba4'."
667 -
668 - elog "For further information and migration steps make sure to read "
669 - elog "https://samba.org/samba/history/${P}.html "
670 - elog "https://wiki.samba.org/index.php/Samba4/HOWTO "
671 -}
672
673 diff --git a/net-fs/samba/samba-4.12.3.ebuild b/net-fs/samba/samba-4.12.3.ebuild
674 deleted file mode 100644
675 index 7c7490b3b54..00000000000
676 --- a/net-fs/samba/samba-4.12.3.ebuild
677 +++ /dev/null
678 @@ -1,314 +0,0 @@
679 -# Copyright 1999-2020 Gentoo Authors
680 -# Distributed under the terms of the GNU General Public License v2
681 -
682 -EAPI=6
683 -
684 -PYTHON_COMPAT=( python3_{6,7,8} )
685 -PYTHON_REQ_USE='threads(+),xml(+)'
686 -inherit python-single-r1 waf-utils multilib-minimal linux-info systemd pam
687 -
688 -MY_PV="${PV/_rc/rc}"
689 -MY_P="${PN}-${MY_PV}"
690 -
691 -SRC_PATH="stable"
692 -[[ ${PV} = *_rc* ]] && SRC_PATH="rc"
693 -
694 -SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz"
695 -[[ ${PV} = *_rc* ]] || \
696 -KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
697 -
698 -DESCRIPTION="Samba Suite Version 4"
699 -HOMEPAGE="https://www.samba.org/"
700 -LICENSE="GPL-3"
701 -
702 -SLOT="0"
703 -
704 -IUSE="acl addc addns ads ceph client cluster cups debug dmapi fam gpg iprint
705 -json ldap pam profiling-data python quota selinux syslog system-heimdal
706 -+system-mitkrb5 systemd test winbind zeroconf"
707 -
708 -MULTILIB_WRAPPED_HEADERS=(
709 - /usr/include/samba-4.0/policy.h
710 - /usr/include/samba-4.0/dcerpc_server.h
711 - /usr/include/samba-4.0/ctdb.h
712 - /usr/include/samba-4.0/ctdb_client.h
713 - /usr/include/samba-4.0/ctdb_protocol.h
714 - /usr/include/samba-4.0/ctdb_private.h
715 - /usr/include/samba-4.0/ctdb_typesafe_cb.h
716 - /usr/include/samba-4.0/ctdb_version.h
717 -)
718 -
719 -CDEPEND="
720 - >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}]
721 - dev-lang/perl:=
722 - dev-libs/icu:=[${MULTILIB_USEDEP}]
723 - dev-libs/libbsd[${MULTILIB_USEDEP}]
724 - dev-libs/libtasn1[${MULTILIB_USEDEP}]
725 - dev-libs/popt[${MULTILIB_USEDEP}]
726 - dev-perl/Parse-Yapp
727 - >=net-libs/gnutls-3.4.7[${MULTILIB_USEDEP}]
728 - net-libs/libnsl:=[${MULTILIB_USEDEP}]
729 - sys-apps/dbus[${MULTILIB_USEDEP}]
730 - sys-libs/e2fsprogs-libs[${MULTILIB_USEDEP}]
731 - >=sys-libs/ldb-2.1.3[ldap(+)?,python?,${PYTHON_SINGLE_USEDEP},${MULTILIB_USEDEP}]
732 - <sys-libs/ldb-2.2.0[ldap(+)?,python?,${PYTHON_SINGLE_USEDEP},${MULTILIB_USEDEP}]
733 - sys-libs/libcap[${MULTILIB_USEDEP}]
734 - sys-libs/liburing[${MULTILIB_USEDEP}]
735 - sys-libs/ncurses:0=
736 - sys-libs/readline:0=
737 - >=sys-libs/talloc-2.3.1[python?,${PYTHON_SINGLE_USEDEP},${MULTILIB_USEDEP}]
738 - >=sys-libs/tdb-1.4.3[python?,${PYTHON_SINGLE_USEDEP},${MULTILIB_USEDEP}]
739 - >=sys-libs/tevent-0.10.2[python?,${PYTHON_SINGLE_USEDEP},${MULTILIB_USEDEP}]
740 - sys-libs/zlib[${MULTILIB_USEDEP}]
741 - virtual/libiconv
742 - pam? ( sys-libs/pam )
743 - acl? ( virtual/acl )
744 - $(python_gen_cond_dep "
745 - dev-python/subunit[\${PYTHON_MULTI_USEDEP},${MULTILIB_USEDEP}]
746 - addns? (
747 - net-dns/bind-tools[gssapi]
748 - dev-python/dnspython:=[\${PYTHON_MULTI_USEDEP}]
749 - )
750 - ")
751 - ceph? ( sys-cluster/ceph )
752 - cluster? (
753 - net-libs/rpcsvc-proto
754 - !dev-db/ctdb
755 - )
756 - cups? ( net-print/cups )
757 - debug? ( dev-util/lttng-ust )
758 - dmapi? ( sys-apps/dmapi )
759 - fam? ( virtual/fam )
760 - gpg? ( app-crypt/gpgme )
761 - json? ( dev-libs/jansson )
762 - ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] )
763 - system-heimdal? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] )
764 - system-mitkrb5? ( >=app-crypt/mit-krb5-1.15.1[${MULTILIB_USEDEP}] )
765 - systemd? ( sys-apps/systemd:0= )
766 - zeroconf? ( net-dns/avahi )
767 -"
768 -DEPEND="${CDEPEND}
769 - ${PYTHON_DEPS}
770 - app-text/docbook-xsl-stylesheets
771 - dev-libs/libxslt
772 - >=dev-util/cmocka-1.1.3[${MULTILIB_USEDEP}]
773 - net-libs/libtirpc[${MULTILIB_USEDEP}]
774 - virtual/pkgconfig
775 - || (
776 - net-libs/rpcsvc-proto
777 - <sys-libs/glibc-2.26[rpc(+)]
778 - )
779 - test? (
780 - !system-mitkrb5? (
781 - >=sys-libs/nss_wrapper-1.1.3
782 - >=net-dns/resolv_wrapper-1.1.4
783 - >=net-libs/socket_wrapper-1.1.9
784 - >=sys-libs/uid_wrapper-1.2.1
785 - )
786 - )"
787 -RDEPEND="${CDEPEND}
788 - python? ( ${PYTHON_DEPS} )
789 - client? ( net-fs/cifs-utils[ads?] )
790 - selinux? ( sec-policy/selinux-samba )
791 -"
792 -
793 -REQUIRED_USE="
794 - addc? ( python json winbind )
795 - addns? ( python )
796 - ads? ( acl ldap winbind )
797 - cluster? ( ads )
798 - gpg? ( addc )
799 - test? ( python )
800 - ?? ( system-heimdal system-mitkrb5 )
801 - ${PYTHON_REQUIRED_USE}
802 -"
803 -
804 -# the test suite is messed, it uses system-installed samba
805 -# bits instead of what was built, tests things disabled via use
806 -# flags, and generally just fails to work in a way ebuilds could
807 -# rely on in its current state
808 -RESTRICT="test"
809 -
810 -S="${WORKDIR}/${MY_P}"
811 -
812 -PATCHES=(
813 - "${FILESDIR}/${PN}-4.4.0-pam.patch"
814 - "${FILESDIR}/${PN}-4.9.2-timespec.patch"
815 - "${FILESDIR}/${PN}-4.13-winexe_option.patch"
816 -)
817 -
818 -#CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
819 -CONFDIR="${FILESDIR}/4.4"
820 -
821 -WAF_BINARY="${S}/buildtools/bin/waf"
822 -
823 -SHAREDMODS=""
824 -
825 -pkg_setup() {
826 - python-single-r1_pkg_setup
827 - if use cluster ; then
828 - SHAREDMODS="idmap_rid,idmap_tdb2,idmap_ad"
829 - elif use ads ; then
830 - SHAREDMODS="idmap_ad"
831 - fi
832 -}
833 -
834 -src_prepare() {
835 - default
836 -
837 - # un-bundle dnspython
838 - sed -i -e '/"dns.resolver":/d' "${S}"/third_party/wscript || die
839 -
840 - # unbundle iso8601 unless tests are enabled
841 - if ! use test ; then
842 - sed -i -e '/"iso8601":/d' "${S}"/third_party/wscript || die
843 - fi
844 -
845 - ## ugly hackaround for bug #592502
846 - #cp /usr/include/tevent_internal.h "${S}"/lib/tevent/ || die
847 -
848 - sed -e 's:<gpgme\.h>:<gpgme/gpgme.h>:' \
849 - -i source4/dsdb/samdb/ldb_modules/password_hash.c \
850 - || die
851 -
852 - # Friggin' WAF shit
853 - multilib_copy_sources
854 -}
855 -
856 -multilib_src_configure() {
857 - # when specifying libs for samba build you must append NONE to the end to
858 - # stop it automatically including things
859 - local bundled_libs="NONE"
860 - if ! use system-heimdal && ! use system-mitkrb5 ; then
861 - bundled_libs="heimbase,heimntlm,hdb,kdc,krb5,wind,gssapi,hcrypto,hx509,roken,asn1,com_err,NONE"
862 - fi
863 -
864 - local myconf=(
865 - --enable-fhs
866 - --sysconfdir="${EPREFIX}/etc"
867 - --localstatedir="${EPREFIX}/var"
868 - --with-modulesdir="${EPREFIX}/usr/$(get_libdir)/samba"
869 - --with-piddir="${EPREFIX}/run/${PN}"
870 - --bundled-libraries="${bundled_libs}"
871 - --builtin-libraries=NONE
872 - --disable-rpath
873 - --disable-rpath-install
874 - --nopyc
875 - --nopyo
876 - --without-winexe
877 - $(multilib_native_use_with acl acl-support)
878 - $(multilib_native_usex addc '' '--without-ad-dc')
879 - $(multilib_native_use_with addns dnsupdate)
880 - $(multilib_native_use_with ads)
881 - $(multilib_native_use_enable ceph cephfs)
882 - $(multilib_native_use_with cluster cluster-support)
883 - $(multilib_native_use_enable cups)
884 - $(multilib_native_use_with dmapi)
885 - $(multilib_native_use_with fam)
886 - $(multilib_native_use_with gpg gpgme)
887 - $(multilib_native_use_with json)
888 - $(multilib_native_use_enable iprint)
889 - $(multilib_native_use_with pam)
890 - $(multilib_native_usex pam "--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '')
891 - $(multilib_native_use_with quota quotas)
892 - $(multilib_native_use_with syslog)
893 - $(multilib_native_use_with systemd)
894 - --systemd-install-services
895 - --with-systemddir="$(systemd_get_systemunitdir)"
896 - $(multilib_native_use_with winbind)
897 - $(multilib_native_usex python '' '--disable-python')
898 - $(multilib_native_use_enable zeroconf avahi)
899 - $(multilib_native_usex test '--enable-selftest' '')
900 - $(usex system-mitkrb5 "--with-system-mitkrb5 $(multilib_native_usex addc --with-experimental-mit-ad-dc '')" '')
901 - $(use_with debug lttng)
902 - $(use_with ldap)
903 - $(use_with profiling-data)
904 - # bug #683148
905 - --jobs 1
906 - )
907 -
908 - multilib_is_native_abi && myconf+=( --with-shared-modules=${SHAREDMODS} )
909 -
910 - CPPFLAGS="-I${SYSROOT}${EPREFIX}/usr/include/et ${CPPFLAGS}" \
911 - waf-utils_src_configure ${myconf[@]}
912 -}
913 -
914 -multilib_src_compile() {
915 - waf-utils_src_compile
916 -}
917 -
918 -multilib_src_install() {
919 - waf-utils_src_install
920 -
921 - # Make all .so files executable
922 - find "${ED}" -type f -name "*.so" -exec chmod +x {} + || die
923 -
924 - if multilib_is_native_abi ; then
925 - # install ldap schema for server (bug #491002)
926 - if use ldap ; then
927 - insinto /etc/openldap/schema
928 - doins examples/LDAP/samba.schema
929 - fi
930 -
931 - # create symlink for cups (bug #552310)
932 - if use cups ; then
933 - dosym ../../../bin/smbspool /usr/libexec/cups/backend/smb
934 - fi
935 -
936 - # install example config file
937 - insinto /etc/samba
938 - doins examples/smb.conf.default
939 -
940 - # Fix paths in example file (#603964)
941 - sed \
942 - -e '/log file =/s@/usr/local/samba/var/@/var/log/samba/@' \
943 - -e '/include =/s@/usr/local/samba/lib/@/etc/samba/@' \
944 - -e '/path =/s@/usr/local/samba/lib/@/var/lib/samba/@' \
945 - -e '/path =/s@/usr/local/samba/@/var/lib/samba/@' \
946 - -e '/path =/s@/usr/spool/samba@/var/spool/samba@' \
947 - -i "${ED%/}"/etc/samba/smb.conf.default || die
948 -
949 - # Install init script and conf.d file
950 - newinitd "${CONFDIR}/samba4.initd-r1" samba
951 - newconfd "${CONFDIR}/samba4.confd" samba
952 -
953 - systemd_dotmpfilesd "${FILESDIR}"/samba.conf
954 - use addc || rm "${D}/$(systemd_get_systemunitdir)/samba.service" || die
955 -
956 - # Preserve functionality for old gentoo-specific unit names
957 - dosym nmb.service "$(systemd_get_systemunitdir)/nmbd.service"
958 - dosym smb.service "$(systemd_get_systemunitdir)/smbd.service"
959 - dosym winbind.service "$(systemd_get_systemunitdir)/winbindd.service"
960 - fi
961 -
962 - if use pam && use winbind ; then
963 - newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind
964 - # bugs #376853 and #590374
965 - insinto /etc/security
966 - doins examples/pam_winbind/pam_winbind.conf
967 - fi
968 -
969 - keepdir /var/cache/samba
970 - keepdir /var/lib/ctdb
971 - keepdir /var/lib/samba/{bind-dns,private}
972 - keepdir /var/lock/samba
973 - keepdir /var/log/samba
974 - keepdir /var/run/samba
975 -}
976 -
977 -multilib_src_test() {
978 - if multilib_is_native_abi ; then
979 - "${WAF_BINARY}" test || die "test failed"
980 - fi
981 -}
982 -
983 -pkg_postinst() {
984 - ewarn "Be aware that this release contains the best of all of Samba's"
985 - ewarn "technology parts, both a file server (that you can reasonably expect"
986 - ewarn "to upgrade existing Samba 3.x releases to) and the AD domain"
987 - ewarn "controller work previously known as 'samba4'."
988 -
989 - elog "For further information and migration steps make sure to read "
990 - elog "https://samba.org/samba/history/${P}.html "
991 - elog "https://wiki.samba.org/index.php/Samba4/HOWTO "
992 -}