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/files/, net-fs/samba/files/4.2/, net-fs/samba/
Date: Tue, 25 Sep 2018 08:06:28
Message-Id: 1537862775.de92eae15d207c289b6394b9784adba6c69cf478.polynomial-c@gentoo
1 commit: de92eae15d207c289b6394b9784adba6c69cf478
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 25 07:44:10 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 25 08:06:15 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de92eae1
7
8 net-fs/samba: Removed old.
9
10 Package-Manager: Portage-2.3.50, Repoman-2.3.11
11
12 net-fs/samba/Manifest | 4 -
13 net-fs/samba/files/4.2/samba4.confd | 38 ---
14 net-fs/samba/files/4.2/samba4.initd-r1 | 55 ----
15 .../files/samba-4.2.3-heimdal_compilefix.patch | 22 --
16 net-fs/samba/files/samba-4.2.7-pam.patch | 36 ---
17 net-fs/samba/files/samba-4.6-no_ads.patch | 37 ---
18 net-fs/samba/samba-4.6.16.ebuild | 316 --------------------
19 net-fs/samba/samba-4.7.9.ebuild | 319 ---------------------
20 net-fs/samba/samba-4.8.4.ebuild | 286 ------------------
21 9 files changed, 1113 deletions(-)
22
23 diff --git a/net-fs/samba/Manifest b/net-fs/samba/Manifest
24 index 483bd319463..1e0ddac50da 100644
25 --- a/net-fs/samba/Manifest
26 +++ b/net-fs/samba/Manifest
27 @@ -1,10 +1,6 @@
28 DIST samba-4.5.11-disable-python-patches.tar.xz 6292 BLAKE2B c2a32a1059a02bc1c87ce5f604cbc5878c654b8f693c8486b5ba63b37513444915a7b6389fe82b7e31ab2f9577dd8462eddba60b4f4f756b4ed1145ce7bd90ae SHA512 f0e3076e3e1ecaae3f06b3ef30efc81719fb3f63a1041dcbdae4b62ca4cf693732f9eb16f047d046d4930136fed82194e82b455ea888e12cf845b3e6a122d57d
29 DIST samba-4.5.16.tar.gz 21024396 BLAKE2B e737559fb748044076608fa233700eb54c7e1c56bc234763f062b6341a179cc78a4a8cdf9f3d6f4d7f3cf8a79f846852ddd5cc753a468c3adb3a0451e1809ed9 SHA512 de8a41013cfb5ef3adcb290efd97a78a5de876d90ad05764d631f14e663a1849bb53e4ac394b46c906f1109be5748fee9316407a659c57007d36851ae8adcd7f
30 -DIST samba-4.6.16.tar.gz 21184221 BLAKE2B 93c2a666edadf1cf6277f6ec202f629be6badec6151dff0b4faed7e9541c6b0c20776ea1c2f536ca9ae1056e153929a312f7c8b06aa92adebf0758cca7cebf6b SHA512 e51d34a5a21d40e18b221ac2d150eb5d0a72cf14b3fdbaa11ab621dc173067c8c73764c748148907f6e5633b5afc68b691b673fb6cbffb3b77e1b7281dabebc4
31 -DIST samba-4.6.7-disable-python-patches.tar.xz 8896 BLAKE2B 99496f91d015f10d111e2a8738c9e66b3c1f1958c0e0894d8e9d8f3ff141fbedaa25d93699b702ab69130fda770c80c3ed4280de0af1090dedbcfd5784b72222 SHA512 c45e548a49735e17b568bebf07dc7409de3de0f93256d1dcf345d2723a27d22a51d860ed921785354fda691f83be4eca3b9d618d5c332438ebf97518a01983eb
32 DIST samba-4.7.10.tar.gz 16911799 BLAKE2B e8ee8763c9843d048589cb17c1b78a3e3983ff8766b2981a7da0c2e6f8425a85c97f2619a9a8259a94ccd07d7aa55bb9bf928261959c04eb0b7fdfe318fc2433 SHA512 4165cf9ec1c6355d0832fb4e17939f8f1544802e6e144d51a4f6030ad54660bb468b586d3db488f5e13f3d451fe4e2af94b748d2432da62ce256eb2467d3a51c
33 -DIST samba-4.7.9.tar.gz 16907301 BLAKE2B c5e1e7422c271893ad6bc8fbaa1c17161e221d2eb9eb7cc370d52cf3d5dd4b54b023419f9dd72476ead8da306b6a530c4fc2529efad8eab26100157ffe23b5a4 SHA512 7e7e3c611e69fef904d13503752cafb7a259dd02b0be9a73d3b31ef82d701006da47e60a68dc19abb5343aa27ee4b210aa5d9bb2c1962932835dcbccba9b4f4a
34 -DIST samba-4.8.4.tar.gz 17700008 BLAKE2B 134d074b9e5d8d17c094791cd3274c31c2f458ba5a8b17a6bc2c5be60f5bf01f3220947ee14f477711cf239c9be5ce2067fefe27ad18b2b4c2f183698dd202d9 SHA512 a3ad651717df5a441064693412965a66bb3d7927baa4ca5625b0948d7253af74eaf05c7e75e6c07853186513df38a925019616cd6439a96e9828b04cd8c5350d
35 DIST samba-4.8.5.tar.gz 17715401 BLAKE2B fc1aef2f5362fff1870abe40eebfe932f5ca347e65d1a2502ee19c9fce8cbf71e3f4181a18056d8d6b3e92d2515f946e3dc746b00f2398d91f88b1172e91cd43 SHA512 23a88c48214c3bf4cbc135cb84873bb8d12f32187ccbda47b02495fa4a12458f103de5e968e8f9a5958c116f618332cfffbf54d084e4f1e363fbf079b897e3a0
36 DIST samba-4.9.0.tar.gz 18014609 BLAKE2B d91eca23402d9e4940f806c2bf81a28d9739f9a3c054be2776c923ea75d1a837a14d932fa080bd1ef1ac07b8cab92ea4e4b652a66c645873921fffca973cf673 SHA512 436743aff6415dbdd3495dff8a5264df16833fc5678539c4294a0de755f34661b660ce7a7b4bbb02a808ff1ca046f34072a30b9e89391034f2f391d3884ea630
37 DIST samba-4.9.1.tar.gz 18018259 BLAKE2B 783423098864c391f08b30e05b70308e922bdb4dad08b8b0b4d1112808357b9bb96aad7a094d0fe2e308f84a143d5f90be523b9c3551a3068ecdcad7347613f6 SHA512 267673b6d6ab0db59063480c20f02e5864ef96e9ad1097c23a99b2ab4b5fd2252193d7a152729b40cae0751fb9b0b108b087a190f5db11eabbd075224bd6e663
38
39 diff --git a/net-fs/samba/files/4.2/samba4.confd b/net-fs/samba/files/4.2/samba4.confd
40 deleted file mode 100644
41 index 58b2c7827bd..00000000000
42 --- a/net-fs/samba/files/4.2/samba4.confd
43 +++ /dev/null
44 @@ -1,38 +0,0 @@
45 -# Add "winbind" to the daemon_list if you also want winbind to start.
46 -# Replace "smbd nmbd" by "samba4" if you want the active directory domain controller part or the ntvfs
47 -# file server part or the rpc proxy to start.
48 -# Note that samba4 controls 'smbd' by itself, thus it can't be started manually. You can, however,
49 -# tweak the behaviour of a samba4-controlled smbd by modifying your '/etc/samba/smb.conf' file
50 -# accordingly.
51 -daemon_list="smbd nmbd"
52 -
53 -#----------------------------------------------------------------------------
54 -# Daemons calls: <daemon_name>_<command_option>
55 -#----------------------------------------------------------------------------
56 -my_service_name="samba"
57 -my_service_PRE="unset TMP TMPDIR"
58 -my_service_POST=""
59 -
60 -#----------------------------------------------------------------------------
61 -# Daemons calls: <daemon_name>_<command_option>
62 -#----------------------------------------------------------------------------
63 -smbd_start_options="-D"
64 -smbd_start="start-stop-daemon --start --exec /usr/sbin/smbd -- ${smbd_start_options}"
65 -smbd_stop="start-stop-daemon --stop --exec /usr/sbin/smbd"
66 -smbd_reload="killall -HUP smbd"
67 -
68 -nmbd_start_options="-D"
69 -nmbd_start="start-stop-daemon --start --exec /usr/sbin/nmbd -- ${nmbd_start_options}"
70 -nmbd_stop="start-stop-daemon --stop --exec /usr/sbin/nmbd"
71 -nmbd_reload="killall -HUP nmbd"
72 -
73 -samba4_start_options=""
74 -samba4_start="start-stop-daemon --start --exec /usr/sbin/samba -- ${samba4_start_options}"
75 -samba4_stop="start-stop-daemon --stop --exec /usr/sbin/samba"
76 -samba4_reload="killall -HUP samba"
77 -
78 -winbind_start_options=""
79 -winbind_start="start-stop-daemon --start --exec /usr/sbin/winbindd -- ${winbind_start_options}"
80 -winbind_stop="start-stop-daemon --stop --exec /usr/sbin/winbindd"
81 -winbind_reload="killall -HUP winbindd"
82 -
83
84 diff --git a/net-fs/samba/files/4.2/samba4.initd-r1 b/net-fs/samba/files/4.2/samba4.initd-r1
85 deleted file mode 100644
86 index 52a9b68bba8..00000000000
87 --- a/net-fs/samba/files/4.2/samba4.initd-r1
88 +++ /dev/null
89 @@ -1,55 +0,0 @@
90 -#!/sbin/openrc-run
91 -# Copyright 1999-2016 Gentoo Foundation
92 -# Distributed under the terms of the GNU General Public License, v2 or later
93 -
94 -extra_started_commands="reload"
95 -piddir="/run/samba"
96 -
97 -depend() {
98 - after slapd
99 - need net
100 - use cupsd
101 -}
102 -
103 -DAEMONNAME="${SVCNAME##samba.}"
104 -[ "${DAEMONNAME}" != "samba" ] && daemon_list=${DAEMONNAME}
105 -
106 -signal_do() {
107 - local signal="$1"
108 - [ -z "${signal}" ] && return 0
109 -
110 - local result=0 last_result=0 daemon= cmd_exec=
111 - for daemon in ${daemon_list} ; do
112 - eval cmd_exec=\$${daemon}_${signal}
113 - if [ -n "${cmd_exec}" ]; then
114 - ebegin "${my_service_name} -> ${signal}: ${daemon}"
115 - #echo ${cmd} '->' ${!cmd}
116 - ${cmd_exec} > /dev/null
117 - last_result=$?
118 - eend ${last_result}
119 - fi
120 - result=$(( ${result} + ${last_result} ))
121 - done
122 - return ${result}
123 -}
124 -
125 -start() {
126 - ${my_service_PRE}
127 - [ -d "${piddir}" ] || mkdir -p "${piddir}"
128 - signal_do start && return 0
129 -
130 - eerror "Error: starting services (see system logs)"
131 - signal_do stop
132 - return 1
133 -}
134 -stop() {
135 - ${my_service_PRE}
136 - if signal_do stop ; then
137 - ${my_service_POST}
138 - return 0
139 - fi
140 -}
141 -reload() {
142 - ${my_service_PRE}
143 - signal_do reload
144 -}
145
146 diff --git a/net-fs/samba/files/samba-4.2.3-heimdal_compilefix.patch b/net-fs/samba/files/samba-4.2.3-heimdal_compilefix.patch
147 deleted file mode 100644
148 index c6f50073317..00000000000
149 --- a/net-fs/samba/files/samba-4.2.3-heimdal_compilefix.patch
150 +++ /dev/null
151 @@ -1,22 +0,0 @@
152 -https://bugs.gentoo.org/542638
153 -
154 -From: Stephan Wolf <stephan@××××××××××××××××.de>
155 -
156 -Samba uses the build in implementation of heimdal from year 2011.
157 -The ebuild uses the portage version of heimdal.
158 -I got it fixed to patch samba kdc_init function.
159 -
160 ---- samba-4.2.3/source4/kdc/kdc.c
161 -+++ samba-4.2.3/source4/kdc/kdc.c
162 -@@ -967,9 +967,9 @@
163 - * The old behavior in the _kdc_get_preferred_key()
164 - * function is use_strongest_server_key=TRUE.
165 - */
166 -- kdc->config->as_use_strongest_session_key = false;
167 -+ kdc->config->tgt_use_strongest_session_key = false;
168 - kdc->config->preauth_use_strongest_session_key = false;
169 -- kdc->config->tgs_use_strongest_session_key = false;
170 -+ kdc->config->svc_use_strongest_session_key = false;
171 - kdc->config->use_strongest_server_key = true;
172 -
173 - /* Register hdb-samba4 hooks for use as a keytab */
174
175 diff --git a/net-fs/samba/files/samba-4.2.7-pam.patch b/net-fs/samba/files/samba-4.2.7-pam.patch
176 deleted file mode 100644
177 index 22b393e7867..00000000000
178 --- a/net-fs/samba/files/samba-4.2.7-pam.patch
179 +++ /dev/null
180 @@ -1,36 +0,0 @@
181 ---- samba-4.2.7/source3/wscript
182 -+++ samba-4.2.7/source3/wscript
183 -@@ -853,11 +853,11 @@
184 - if not conf.CHECK_FUNCS_IN('iconv_open', 'iconv', headers='iconv.h'):
185 - conf.env.with_iconv = False
186 - if conf.env.with_iconv:
187 - conf.DEFINE('HAVE_ICONV', 1)
188 -
189 -- if Options.options.with_pam:
190 -+ if Options.options.with_pam != False:
191 - use_pam=True
192 - conf.CHECK_HEADERS('security/pam_appl.h pam/pam_appl.h')
193 - if not conf.CONFIG_SET('HAVE_SECURITY_PAM_APPL_H') and not conf.CONFIG_SET('HAVE_PAM_PAM_APPL_H'):
194 - Logs.warn("--with-pam=yes but pam_appl.h not found")
195 - use_pam=False
196 -@@ -926,10 +926,20 @@
197 - msg="Checking whether PAM_RADIO_TYPE is available");
198 - if use_pam:
199 - conf.DEFINE('WITH_PAM', 1)
200 - conf.DEFINE('WITH_PAM_MODULES', 1)
201 -
202 -+ else:
203 -+ Logs.warn("PAM disabled")
204 -+ use_pam=False
205 -+ conf.undefine('WITH_PAM')
206 -+ conf.undefine('WITH_PAM_MODULES')
207 -+ conf.undefine('HAVE_SECURITY_PAM_APPL_H')
208 -+ conf.undefine('PAM_RHOST')
209 -+ conf.undefine('PAM_TTY')
210 -+ conf.undefine('HAVE_PAM_PAM_APPL_H')
211 -+
212 - if Options.options.with_pam_smbpass:
213 - conf.env.with_pam_smbpass = True
214 -
215 - seteuid = False
216 -
217
218 diff --git a/net-fs/samba/files/samba-4.6-no_ads.patch b/net-fs/samba/files/samba-4.6-no_ads.patch
219 deleted file mode 100644
220 index e3f3dfd0305..00000000000
221 --- a/net-fs/samba/files/samba-4.6-no_ads.patch
222 +++ /dev/null
223 @@ -1,37 +0,0 @@
224 -From 655504d97a98541bebac812953fd48c49526312d Mon Sep 17 00:00:00 2001
225 -From: Volker Lendecke <vl@×××××.org>
226 -Date: Sat, 3 Feb 2018 07:07:24 +0100
227 -Subject: [PATCH] libads: Fix the build --without-ads
228 -
229 -Signed-off-by: Volker Lendecke <vl@×××××.org>
230 -Reviewed-by: David Disseldorp <ddiss@×××××.org>
231 -
232 -Autobuild-User(master): David Disseldorp <ddiss@×××××.org>
233 -Autobuild-Date(master): Tue Feb 6 02:47:44 CET 2018 on sn-devel-144
234 -
235 -Bug: https://bugzilla.samba.org/show_bug.cgi?id=13273
236 -
237 -(cherry picked from commit 859698d29b547217356851094ed8188236e717b6)
238 ----
239 - source3/libads/kerberos_keytab.c | 4 ++++
240 - 1 file changed, 4 insertions(+)
241 -
242 -diff --git a/source3/libads/kerberos_keytab.c b/source3/libads/kerberos_keytab.c
243 -index ffd100c..37ac7ba 100644
244 ---- a/source3/libads/kerberos_keytab.c
245 -+++ b/source3/libads/kerberos_keytab.c
246 -@@ -640,7 +640,11 @@ int ads_keytab_list(const char *keytab_name)
247 - }
248 -
249 - if (keytab_name == NULL) {
250 -+#ifdef HAVE_ADS
251 - ret = ads_keytab_open(context, &keytab);
252 -+#else
253 -+ ret = ENOENT;
254 -+#endif
255 - } else {
256 - ret = smb_krb5_kt_open(context, keytab_name, False, &keytab);
257 - }
258 ---
259 -1.9.1
260 -
261
262 diff --git a/net-fs/samba/samba-4.6.16.ebuild b/net-fs/samba/samba-4.6.16.ebuild
263 deleted file mode 100644
264 index 22d7555d3ce..00000000000
265 --- a/net-fs/samba/samba-4.6.16.ebuild
266 +++ /dev/null
267 @@ -1,316 +0,0 @@
268 -# Copyright 1999-2018 Gentoo Foundation
269 -# Distributed under the terms of the GNU General Public License v2
270 -
271 -EAPI=6
272 -PYTHON_COMPAT=( python2_7 )
273 -PYTHON_REQ_USE='threads(+),xml(+)'
274 -
275 -inherit python-single-r1 waf-utils multilib-minimal linux-info systemd eutils
276 -
277 -MY_PV="${PV/_rc/rc}"
278 -MY_P="${PN}-${MY_PV}"
279 -
280 -SRC_PATH="stable"
281 -[[ ${PV} = *_rc* ]] && SRC_PATH="rc"
282 -
283 -SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz
284 - https://dev.gentoo.org/~axs/samba-4.6.7-disable-python-patches.tar.xz"
285 -[[ ${PV} = *_rc* ]] || \
286 -KEYWORDS="~amd64 ~arm64 ~hppa ~ia64 ~x86"
287 -
288 -DESCRIPTION="Samba Suite Version 4"
289 -HOMEPAGE="https://www.samba.org/"
290 -LICENSE="GPL-3"
291 -
292 -SLOT="0"
293 -
294 -IUSE="acl addc addns ads ceph client cluster cups debug dmapi fam gnutls gpg iprint ldap pam python
295 -quota selinux syslog system-heimdal +system-mitkrb5 systemd test winbind zeroconf"
296 -
297 -MULTILIB_WRAPPED_HEADERS=(
298 - /usr/include/samba-4.0/policy.h
299 - /usr/include/samba-4.0/dcerpc_server.h
300 - /usr/include/samba-4.0/ctdb.h
301 - /usr/include/samba-4.0/ctdb_client.h
302 - /usr/include/samba-4.0/ctdb_protocol.h
303 - /usr/include/samba-4.0/ctdb_private.h
304 - /usr/include/samba-4.0/ctdb_typesafe_cb.h
305 - /usr/include/samba-4.0/ctdb_version.h
306 -)
307 -
308 -# sys-apps/attr is an automagic dependency (see bug #489748)
309 -CDEPEND="
310 - >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}]
311 - dev-lang/perl:=
312 - dev-libs/libaio[${MULTILIB_USEDEP}]
313 - dev-libs/libbsd[${MULTILIB_USEDEP}]
314 - dev-libs/iniparser:0
315 - dev-libs/popt[${MULTILIB_USEDEP}]
316 - dev-python/subunit[${PYTHON_USEDEP},${MULTILIB_USEDEP}]
317 - >=dev-util/cmocka-1.0.0[${MULTILIB_USEDEP}]
318 - net-libs/libnsl:=[${MULTILIB_USEDEP}]
319 - sys-apps/attr[${MULTILIB_USEDEP}]
320 - ~sys-libs/ldb-1.1.29[ldap(+)?,python(+),${PYTHON_USEDEP},${MULTILIB_USEDEP}]
321 - sys-libs/libcap
322 - sys-libs/ncurses:0=[${MULTILIB_USEDEP}]
323 - sys-libs/readline:0=
324 - >=sys-libs/talloc-2.1.9[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
325 - >=sys-libs/tdb-1.3.12[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
326 - >=sys-libs/tevent-0.9.34[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
327 - sys-libs/zlib[${MULTILIB_USEDEP}]
328 - virtual/libiconv
329 - pam? ( virtual/pam )
330 - acl? ( virtual/acl )
331 - addns? (
332 - net-dns/bind-tools[gssapi]
333 - dev-python/dnspython:=[${PYTHON_USEDEP}]
334 - )
335 - ceph? ( sys-cluster/ceph )
336 - cluster? (
337 - net-libs/rpcsvc-proto
338 - !dev-db/ctdb
339 - )
340 - cups? ( net-print/cups )
341 - debug? ( dev-util/lttng-ust )
342 - dmapi? ( sys-apps/dmapi )
343 - fam? ( virtual/fam )
344 - gnutls? (
345 - dev-libs/libgcrypt:0
346 - >=net-libs/gnutls-1.4.0
347 - )
348 - gpg? ( app-crypt/gpgme )
349 - ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] )
350 - system-heimdal? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] )
351 - system-mitkrb5? ( app-crypt/mit-krb5[${MULTILIB_USEDEP}] )
352 - systemd? ( sys-apps/systemd:0= )"
353 -DEPEND="${CDEPEND}
354 - ${PYTHON_DEPS}
355 - app-text/docbook-xsl-stylesheets
356 - dev-libs/libxslt
357 - virtual/pkgconfig
358 - test? (
359 - !system-mitkrb5? (
360 - >=sys-libs/nss_wrapper-1.1.3
361 - >=net-dns/resolv_wrapper-1.1.4
362 - >=net-libs/socket_wrapper-1.1.7
363 - >=sys-libs/uid_wrapper-1.2.1
364 - )
365 - )"
366 -RDEPEND="${CDEPEND}
367 - python? ( ${PYTHON_DEPS} )
368 - client? ( net-fs/cifs-utils[ads?] )
369 - selinux? ( sec-policy/selinux-samba )
370 - !dev-perl/Parse-Yapp
371 -"
372 -
373 -REQUIRED_USE="
374 - addc? ( python gnutls !system-mitkrb5 )
375 - addns? ( python )
376 - ads? ( acl gnutls ldap )
377 - cluster? ( ads )
378 - gpg? ( addc )
379 - test? ( python )
380 - ?? ( system-heimdal system-mitkrb5 )
381 - ${PYTHON_REQUIRED_USE}
382 -"
383 -
384 -# the test suite is messed, it uses system-installed samba
385 -# bits instead of what was built, tests things disabled via use
386 -# flags, and generally just fails to work in a way ebuilds could
387 -# rely on in its current state
388 -RESTRICT="test"
389 -
390 -S="${WORKDIR}/${MY_P}"
391 -
392 -PATCHES=(
393 - "${FILESDIR}/${PN}-4.4.0-pam.patch"
394 - "${FILESDIR}/${PN}-4.5.1-compile_et_fix.patch"
395 - "${FILESDIR}/${PN}-glibc-2.26-no_rpc.patch" #637320
396 - "${FILESDIR}/${PN}-4.6-no_ads.patch"
397 -)
398 -
399 -#CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
400 -CONFDIR="${FILESDIR}/4.4"
401 -
402 -WAF_BINARY="${S}/buildtools/bin/waf"
403 -
404 -SHAREDMODS=""
405 -
406 -pkg_setup() {
407 - python-single-r1_pkg_setup
408 - if use cluster ; then
409 - SHAREDMODS="idmap_rid,idmap_tdb2,idmap_ad"
410 - elif use ads ; then
411 - SHAREDMODS="idmap_ad"
412 - fi
413 -}
414 -
415 -src_prepare() {
416 - default
417 -
418 - # install the patches from tarball(s)
419 - eapply "${WORKDIR}/patches"
420 -
421 - # un-bundle dnspython
422 - sed -i -e '/"dns.resolver":/d' "${S}"/third_party/wscript || die
423 -
424 - # unbundle iso8601 unless tests are enabled
425 - use test || sed -i -e '/"iso8601":/d' "${S}"/third_party/wscript || die
426 -
427 - # ugly hackaround for bug #592502
428 - cp /usr/include/tevent_internal.h "${S}"/lib/tevent/ || die
429 -
430 - sed -e 's:<gpgme\.h>:<gpgme/gpgme.h>:' \
431 - -i source4/dsdb/samdb/ldb_modules/password_hash.c \
432 - || die
433 -
434 - # Friggin' WAF shit
435 - multilib_copy_sources
436 -}
437 -
438 -multilib_src_configure() {
439 - # when specifying libs for samba build you must append NONE to the end to
440 - # stop it automatically including things
441 - local bundled_libs="NONE"
442 - if ! use system-heimdal && ! use system-mitkrb5 ; then
443 - bundled_libs="heimbase,heimntlm,hdb,kdc,krb5,wind,gssapi,hcrypto,hx509,roken,asn1,com_err,NONE"
444 - fi
445 -
446 - local myconf=()
447 - myconf=(
448 - --enable-fhs
449 - --sysconfdir="${EPREFIX}/etc"
450 - --localstatedir="${EPREFIX}/var"
451 - --with-modulesdir="${EPREFIX}/usr/$(get_libdir)/samba"
452 - --with-piddir="${EPREFIX}/run/${PN}"
453 - --bundled-libraries="${bundled_libs}"
454 - --builtin-libraries=NONE
455 - --disable-rpath
456 - --disable-rpath-install
457 - --nopyc
458 - --nopyo
459 - )
460 - if multilib_is_native_abi ; then
461 - myconf+=(
462 - $(use_with acl acl-support)
463 - $(usex addc '' '--without-ad-dc')
464 - $(use_with addns dnsupdate)
465 - $(use_with ads)
466 - $(use_enable ceph cephfs)
467 - $(use_with cluster cluster-support)
468 - $(use_enable cups)
469 - $(use_with debug lttng)
470 - $(use_with dmapi)
471 - $(use_with fam)
472 - $(use_enable gnutls)
473 - $(use_with gpg gpgme)
474 - $(use_enable iprint)
475 - $(use_with ldap)
476 - $(use_with pam)
477 - $(usex pam "--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '')
478 - $(use_with quota quotas)
479 - $(use_with syslog)
480 - $(use_with systemd)
481 - $(usex system-mitkrb5 '--with-system-mitkrb5' '')
482 - $(use_with winbind)
483 - $(usex python '' '--disable-python')
484 - $(usex test '--enable-selftest' '')
485 - $(use_enable zeroconf avahi)
486 - --with-shared-modules=${SHAREDMODS}
487 - )
488 - else
489 - myconf+=(
490 - --without-acl-support
491 - --without-ad-dc
492 - --without-dnsupdate
493 - --without-ads
494 - --disable-avahi
495 - --disable-cephfs
496 - --without-cluster-support
497 - --disable-cups
498 - --without-dmapi
499 - --without-fam
500 - --disable-gnutls
501 - --without-gpgme
502 - --disable-iprint
503 - $(use_with ldap)
504 - $(use_with debug lttng)
505 - --without-pam
506 - --without-quotas
507 - --without-syslog
508 - --without-systemd
509 - $(usex system-mitkrb5 '--with-system-mitkrb5' '')
510 - --without-winbind
511 - --disable-python
512 - )
513 - fi
514 -
515 - CPPFLAGS="-I${SYSROOT}${EPREFIX}/usr/include/et ${CPPFLAGS}" \
516 - waf-utils_src_configure ${myconf[@]}
517 -}
518 -
519 -multilib_src_compile() {
520 - waf-utils_src_compile
521 -}
522 -
523 -multilib_src_install() {
524 - waf-utils_src_install
525 -
526 - # Make all .so files executable
527 - find "${D}" -type f -name "*.so" -exec chmod +x {} +
528 -
529 - if multilib_is_native_abi; then
530 - # install ldap schema for server (bug #491002)
531 - if use ldap ; then
532 - insinto /etc/openldap/schema
533 - doins examples/LDAP/samba.schema
534 - fi
535 -
536 - # create symlink for cups (bug #552310)
537 - if use cups ; then
538 - dosym ../../../bin/smbspool /usr/libexec/cups/backend/smb
539 - fi
540 -
541 - # install example config file
542 - insinto /etc/samba
543 - doins examples/smb.conf.default
544 -
545 - # Fix paths in example file (#603964)
546 - sed \
547 - -e '/log file =/s@/usr/local/samba/var/@/var/log/samba/@' \
548 - -e '/include =/s@/usr/local/samba/lib/@/etc/samba/@' \
549 - -e '/path =/s@/usr/local/samba/lib/@/var/lib/samba/@' \
550 - -e '/path =/s@/usr/local/samba/@/var/lib/samba/@' \
551 - -e '/path =/s@/usr/spool/samba@/var/spool/samba@' \
552 - -i "${ED%/}"/etc/samba/smb.conf.default || die
553 -
554 - # Install init script and conf.d file
555 - newinitd "${CONFDIR}/samba4.initd-r1" samba
556 - newconfd "${CONFDIR}/samba4.confd" samba
557 -
558 - systemd_dotmpfilesd "${FILESDIR}"/samba.conf
559 - systemd_dounit "${FILESDIR}"/nmbd.service
560 - systemd_dounit "${FILESDIR}"/smbd.{service,socket}
561 - systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service'
562 - systemd_dounit "${FILESDIR}"/winbindd.service
563 - systemd_dounit "${FILESDIR}"/samba.service
564 - fi
565 -}
566 -
567 -multilib_src_test() {
568 - if multilib_is_native_abi ; then
569 - "${WAF_BINARY}" test || die "test failed"
570 - fi
571 -}
572 -
573 -pkg_postinst() {
574 - ewarn "Be aware the this release contains the best of all of Samba's"
575 - ewarn "technology parts, both a file server (that you can reasonably expect"
576 - ewarn "to upgrade existing Samba 3.x releases to) and the AD domain"
577 - ewarn "controller work previously known as 'samba4'."
578 -
579 - elog "For further information and migration steps make sure to read "
580 - elog "https://samba.org/samba/history/${P}.html "
581 - elog "https://samba.org/samba/history/${PN}-4.5.0.html and"
582 - elog "https://wiki.samba.org/index.php/Samba4/HOWTO "
583 -}
584
585 diff --git a/net-fs/samba/samba-4.7.9.ebuild b/net-fs/samba/samba-4.7.9.ebuild
586 deleted file mode 100644
587 index c2d8e417223..00000000000
588 --- a/net-fs/samba/samba-4.7.9.ebuild
589 +++ /dev/null
590 @@ -1,319 +0,0 @@
591 -# Copyright 1999-2018 Gentoo Foundation
592 -# Distributed under the terms of the GNU General Public License v2
593 -
594 -EAPI=6
595 -PYTHON_COMPAT=( python2_7 )
596 -PYTHON_REQ_USE='threads(+),xml(+)'
597 -
598 -inherit python-single-r1 waf-utils multilib-minimal linux-info systemd eutils
599 -
600 -MY_PV="${PV/_rc/rc}"
601 -MY_P="${PN}-${MY_PV}"
602 -
603 -SRC_PATH="stable"
604 -[[ ${PV} = *_rc* ]] && SRC_PATH="rc"
605 -
606 -SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz"
607 -[[ ${PV} = *_rc* ]] || \
608 -KEYWORDS="~amd64 ~arm64 ~hppa ~ia64 ~sparc ~x86"
609 -
610 -DESCRIPTION="Samba Suite Version 4"
611 -HOMEPAGE="https://www.samba.org/"
612 -LICENSE="GPL-3"
613 -
614 -SLOT="0"
615 -
616 -IUSE="acl addc addns ads ceph client cluster cups debug dmapi fam gnutls gpg iprint ldap pam python
617 -quota selinux syslog system-heimdal +system-mitkrb5 systemd test winbind zeroconf"
618 -
619 -MULTILIB_WRAPPED_HEADERS=(
620 - /usr/include/samba-4.0/policy.h
621 - /usr/include/samba-4.0/dcerpc_server.h
622 - /usr/include/samba-4.0/ctdb.h
623 - /usr/include/samba-4.0/ctdb_client.h
624 - /usr/include/samba-4.0/ctdb_protocol.h
625 - /usr/include/samba-4.0/ctdb_private.h
626 - /usr/include/samba-4.0/ctdb_typesafe_cb.h
627 - /usr/include/samba-4.0/ctdb_version.h
628 -)
629 -
630 -# sys-apps/attr is an automagic dependency (see bug #489748)
631 -CDEPEND="
632 - >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}]
633 - dev-lang/perl:=
634 - dev-libs/libaio[${MULTILIB_USEDEP}]
635 - dev-libs/libbsd[${MULTILIB_USEDEP}]
636 - dev-libs/iniparser:0
637 - dev-libs/popt[${MULTILIB_USEDEP}]
638 - dev-python/subunit[${PYTHON_USEDEP},${MULTILIB_USEDEP}]
639 - >=dev-util/cmocka-1.1.1[${MULTILIB_USEDEP}]
640 - net-libs/libnsl:=[${MULTILIB_USEDEP}]
641 - sys-apps/attr[${MULTILIB_USEDEP}]
642 - >=sys-libs/ldb-1.2.3[ldap(+)?,python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
643 - <sys-libs/ldb-1.3.0[ldap(+)?,python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
644 - sys-libs/libcap
645 - sys-libs/ncurses:0=[${MULTILIB_USEDEP}]
646 - sys-libs/readline:0=
647 - >=sys-libs/talloc-2.1.9[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
648 - >=sys-libs/tdb-1.3.14[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
649 - >=sys-libs/tevent-0.9.36[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
650 - sys-libs/zlib[${MULTILIB_USEDEP}]
651 - virtual/libiconv
652 - pam? ( virtual/pam )
653 - acl? ( virtual/acl )
654 - addns? (
655 - net-dns/bind-tools[gssapi]
656 - dev-python/dnspython:=[${PYTHON_USEDEP}]
657 - )
658 - ceph? ( sys-cluster/ceph )
659 - cluster? (
660 - net-libs/rpcsvc-proto
661 - !dev-db/ctdb
662 - )
663 - cups? ( net-print/cups )
664 - debug? ( dev-util/lttng-ust )
665 - dmapi? ( sys-apps/dmapi )
666 - fam? ( virtual/fam )
667 - gnutls? (
668 - dev-libs/libgcrypt:0
669 - >=net-libs/gnutls-1.4.0
670 - )
671 - gpg? ( app-crypt/gpgme )
672 - ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] )
673 - system-heimdal? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] )
674 - system-mitkrb5? ( >=app-crypt/mit-krb5-1.15.1[${MULTILIB_USEDEP}] )
675 - systemd? ( sys-apps/systemd:0= )
676 -"
677 -DEPEND="${CDEPEND}
678 - ${PYTHON_DEPS}
679 - app-text/docbook-xsl-stylesheets
680 - dev-libs/libxslt
681 - virtual/pkgconfig
682 - net-libs/libtirpc[${MULTILIB_USEDEP}]
683 - || (
684 - net-libs/rpcsvc-proto
685 - <sys-libs/glibc-2.26[rpc(+)]
686 - )
687 - test? (
688 - !system-mitkrb5? (
689 - >=sys-libs/nss_wrapper-1.1.3
690 - >=net-dns/resolv_wrapper-1.1.4
691 - >=net-libs/socket_wrapper-1.1.7
692 - >=sys-libs/uid_wrapper-1.2.1
693 - )
694 - )"
695 -RDEPEND="${CDEPEND}
696 - python? ( ${PYTHON_DEPS} )
697 - client? ( net-fs/cifs-utils[ads?] )
698 - selinux? ( sec-policy/selinux-samba )
699 - !dev-perl/Parse-Yapp
700 -"
701 -
702 -REQUIRED_USE="
703 - addc? ( python gnutls )
704 - addns? ( python )
705 - ads? ( acl gnutls ldap )
706 - cluster? ( ads )
707 - gpg? ( addc )
708 - test? ( python )
709 - ?? ( system-heimdal system-mitkrb5 )
710 - ${PYTHON_REQUIRED_USE}
711 -"
712 -
713 -# the test suite is messed, it uses system-installed samba
714 -# bits instead of what was built, tests things disabled via use
715 -# flags, and generally just fails to work in a way ebuilds could
716 -# rely on in its current state
717 -RESTRICT="test"
718 -
719 -S="${WORKDIR}/${MY_P}"
720 -
721 -PATCHES=(
722 - "${FILESDIR}/${PN}-4.4.0-pam.patch"
723 - "${FILESDIR}/${PN}-4.5.1-compile_et_fix.patch"
724 - "${FILESDIR}"/talloc-disable-python.patch
725 - "${FILESDIR}/${PN}-4.7.3-krb-cross-compile.patch"
726 -)
727 -
728 -#CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
729 -CONFDIR="${FILESDIR}/4.4"
730 -
731 -WAF_BINARY="${S}/buildtools/bin/waf"
732 -
733 -SHAREDMODS=""
734 -
735 -pkg_setup() {
736 - python-single-r1_pkg_setup
737 - if use cluster ; then
738 - SHAREDMODS="idmap_rid,idmap_tdb2,idmap_ad"
739 - elif use ads ; then
740 - SHAREDMODS="idmap_ad"
741 - fi
742 -}
743 -
744 -src_prepare() {
745 - default
746 -
747 - # un-bundle dnspython
748 - sed -i -e '/"dns.resolver":/d' "${S}"/third_party/wscript || die
749 -
750 - # unbundle iso8601 unless tests are enabled
751 - use test || sed -i -e '/"iso8601":/d' "${S}"/third_party/wscript || die
752 -
753 - # ugly hackaround for bug #592502
754 - cp /usr/include/tevent_internal.h "${S}"/lib/tevent/ || die
755 -
756 - sed -e 's:<gpgme\.h>:<gpgme/gpgme.h>:' \
757 - -i source4/dsdb/samdb/ldb_modules/password_hash.c \
758 - || die
759 -
760 - # Friggin' WAF shit
761 - multilib_copy_sources
762 -}
763 -
764 -multilib_src_configure() {
765 - # when specifying libs for samba build you must append NONE to the end to
766 - # stop it automatically including things
767 - local bundled_libs="NONE"
768 - if ! use system-heimdal && ! use system-mitkrb5 ; then
769 - bundled_libs="heimbase,heimntlm,hdb,kdc,krb5,wind,gssapi,hcrypto,hx509,roken,asn1,com_err,NONE"
770 - fi
771 -
772 - local myconf=()
773 - myconf=(
774 - --enable-fhs
775 - --sysconfdir="${EPREFIX}/etc"
776 - --localstatedir="${EPREFIX}/var"
777 - --with-modulesdir="${EPREFIX}/usr/$(get_libdir)/samba"
778 - --with-piddir="${EPREFIX}/run/${PN}"
779 - --bundled-libraries="${bundled_libs}"
780 - --builtin-libraries=NONE
781 - --disable-rpath
782 - --disable-rpath-install
783 - --nopyc
784 - --nopyo
785 - )
786 - if multilib_is_native_abi ; then
787 - myconf+=(
788 - $(use_with acl acl-support)
789 - $(usex addc '' '--without-ad-dc')
790 - $(use_with addns dnsupdate)
791 - $(use_with ads)
792 - $(use_enable ceph cephfs)
793 - $(use_with cluster cluster-support)
794 - $(use_enable cups)
795 - $(use_with debug lttng)
796 - $(use_with dmapi)
797 - $(use_with fam)
798 - $(use_enable gnutls)
799 - $(use_with gpg gpgme)
800 - $(use_enable iprint)
801 - $(use_with ldap)
802 - $(use_with pam)
803 - $(usex pam "--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '')
804 - $(use_with quota quotas)
805 - $(use_with syslog)
806 - $(use_with systemd)
807 - $(usex system-mitkrb5 '--with-system-mitkrb5' '')
808 - $(use_with winbind)
809 - $(usex python '' '--disable-python')
810 - $(usex test '--enable-selftest' '')
811 - $(use_enable zeroconf avahi)
812 - --with-shared-modules=${SHAREDMODS}
813 - )
814 - else
815 - myconf+=(
816 - --without-acl-support
817 - --without-ad-dc
818 - --without-dnsupdate
819 - --without-ads
820 - --disable-avahi
821 - --disable-cephfs
822 - --without-cluster-support
823 - --disable-cups
824 - --without-dmapi
825 - --without-fam
826 - --disable-gnutls
827 - --without-gpgme
828 - --disable-iprint
829 - $(use_with ldap)
830 - $(use_with debug lttng)
831 - --without-pam
832 - --without-quotas
833 - --without-syslog
834 - --without-systemd
835 - $(usex system-mitkrb5 '--with-system-mitkrb5' '')
836 - --without-winbind
837 - --disable-python
838 - )
839 - fi
840 -
841 - CPPFLAGS="-I${SYSROOT}${EPREFIX}/usr/include/et ${CPPFLAGS}" \
842 - waf-utils_src_configure ${myconf[@]}
843 -}
844 -
845 -multilib_src_compile() {
846 - waf-utils_src_compile
847 -}
848 -
849 -multilib_src_install() {
850 - waf-utils_src_install
851 -
852 - # Make all .so files executable
853 - find "${D}" -type f -name "*.so" -exec chmod +x {} +
854 -
855 - if multilib_is_native_abi; then
856 - # install ldap schema for server (bug #491002)
857 - if use ldap ; then
858 - insinto /etc/openldap/schema
859 - doins examples/LDAP/samba.schema
860 - fi
861 -
862 - # create symlink for cups (bug #552310)
863 - if use cups ; then
864 - dosym ../../../bin/smbspool /usr/libexec/cups/backend/smb
865 - fi
866 -
867 - # install example config file
868 - insinto /etc/samba
869 - doins examples/smb.conf.default
870 -
871 - # Fix paths in example file (#603964)
872 - sed \
873 - -e '/log file =/s@/usr/local/samba/var/@/var/log/samba/@' \
874 - -e '/include =/s@/usr/local/samba/lib/@/etc/samba/@' \
875 - -e '/path =/s@/usr/local/samba/lib/@/var/lib/samba/@' \
876 - -e '/path =/s@/usr/local/samba/@/var/lib/samba/@' \
877 - -e '/path =/s@/usr/spool/samba@/var/spool/samba@' \
878 - -i "${ED%/}"/etc/samba/smb.conf.default || die
879 -
880 - # Install init script and conf.d file
881 - newinitd "${CONFDIR}/samba4.initd-r1" samba
882 - newconfd "${CONFDIR}/samba4.confd" samba
883 -
884 - systemd_dotmpfilesd "${FILESDIR}"/samba.conf
885 - systemd_dounit "${FILESDIR}"/nmbd.service
886 - systemd_dounit "${FILESDIR}"/smbd.{service,socket}
887 - systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service'
888 - systemd_dounit "${FILESDIR}"/winbindd.service
889 - systemd_dounit "${FILESDIR}"/samba.service
890 - fi
891 -}
892 -
893 -multilib_src_test() {
894 - if multilib_is_native_abi ; then
895 - "${WAF_BINARY}" test || die "test failed"
896 - fi
897 -}
898 -
899 -pkg_postinst() {
900 - ewarn "Be aware the this release contains the best of all of Samba's"
901 - ewarn "technology parts, both a file server (that you can reasonably expect"
902 - ewarn "to upgrade existing Samba 3.x releases to) and the AD domain"
903 - ewarn "controller work previously known as 'samba4'."
904 -
905 - elog "For further information and migration steps make sure to read "
906 - elog "https://samba.org/samba/history/${P}.html "
907 - elog "https://samba.org/samba/history/${PN}-4.5.0.html and"
908 - elog "https://wiki.samba.org/index.php/Samba4/HOWTO "
909 -}
910
911 diff --git a/net-fs/samba/samba-4.8.4.ebuild b/net-fs/samba/samba-4.8.4.ebuild
912 deleted file mode 100644
913 index 920ad4de52b..00000000000
914 --- a/net-fs/samba/samba-4.8.4.ebuild
915 +++ /dev/null
916 @@ -1,286 +0,0 @@
917 -# Copyright 1999-2018 Gentoo Foundation
918 -# Distributed under the terms of the GNU General Public License v2
919 -
920 -EAPI=6
921 -PYTHON_COMPAT=( python2_7 )
922 -PYTHON_REQ_USE='threads(+),xml(+)'
923 -
924 -inherit python-single-r1 waf-utils multilib-minimal linux-info systemd
925 -
926 -MY_PV="${PV/_rc/rc}"
927 -MY_P="${PN}-${MY_PV}"
928 -
929 -SRC_PATH="stable"
930 -[[ ${PV} = *_rc* ]] && SRC_PATH="rc"
931 -
932 -SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz"
933 -[[ ${PV} = *_rc* ]] || \
934 -KEYWORDS="~amd64 ~arm64 ~hppa ~ia64 ~x86"
935 -
936 -DESCRIPTION="Samba Suite Version 4"
937 -HOMEPAGE="https://www.samba.org/"
938 -LICENSE="GPL-3"
939 -
940 -SLOT="0"
941 -
942 -IUSE="acl addc addns ads ceph client cluster cups debug dmapi fam gnutls gpg iprint ldap pam python
943 -quota selinux syslog system-heimdal +system-mitkrb5 systemd test winbind zeroconf"
944 -
945 -MULTILIB_WRAPPED_HEADERS=(
946 - /usr/include/samba-4.0/policy.h
947 - /usr/include/samba-4.0/dcerpc_server.h
948 - /usr/include/samba-4.0/ctdb.h
949 - /usr/include/samba-4.0/ctdb_client.h
950 - /usr/include/samba-4.0/ctdb_protocol.h
951 - /usr/include/samba-4.0/ctdb_private.h
952 - /usr/include/samba-4.0/ctdb_typesafe_cb.h
953 - /usr/include/samba-4.0/ctdb_version.h
954 -)
955 -
956 -# sys-apps/attr is an automagic dependency (see bug #489748)
957 -CDEPEND="
958 - >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}]
959 - dev-lang/perl:=
960 - dev-libs/libaio[${MULTILIB_USEDEP}]
961 - dev-libs/libbsd[${MULTILIB_USEDEP}]
962 - dev-libs/iniparser:0
963 - dev-libs/popt[${MULTILIB_USEDEP}]
964 - dev-python/subunit[${PYTHON_USEDEP},${MULTILIB_USEDEP}]
965 - >=dev-util/cmocka-1.1.1[${MULTILIB_USEDEP}]
966 - net-libs/libnsl:=[${MULTILIB_USEDEP}]
967 - sys-apps/attr[${MULTILIB_USEDEP}]
968 - >=sys-libs/ldb-1.3.5[ldap(+)?,python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
969 - <sys-libs/ldb-1.4.0[ldap(+)?,python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
970 - sys-libs/libcap
971 - sys-libs/ncurses:0=[${MULTILIB_USEDEP}]
972 - sys-libs/readline:0=
973 - >=sys-libs/talloc-2.1.11[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
974 - >=sys-libs/tdb-1.3.15[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
975 - >=sys-libs/tevent-0.9.36[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
976 - sys-libs/zlib[${MULTILIB_USEDEP}]
977 - virtual/libiconv
978 - pam? ( virtual/pam )
979 - acl? ( virtual/acl )
980 - addns? (
981 - net-dns/bind-tools[gssapi]
982 - dev-python/dnspython:=[${PYTHON_USEDEP}]
983 - )
984 - ceph? ( sys-cluster/ceph )
985 - cluster? (
986 - net-libs/rpcsvc-proto
987 - !dev-db/ctdb
988 - )
989 - cups? ( net-print/cups )
990 - debug? ( dev-util/lttng-ust )
991 - dmapi? ( sys-apps/dmapi )
992 - fam? ( virtual/fam )
993 - gnutls? (
994 - dev-libs/libgcrypt:0
995 - >=net-libs/gnutls-1.4.0
996 - )
997 - gpg? ( app-crypt/gpgme )
998 - ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] )
999 - system-heimdal? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] )
1000 - system-mitkrb5? ( >=app-crypt/mit-krb5-1.15.1[${MULTILIB_USEDEP}] )
1001 - systemd? ( sys-apps/systemd:0= )
1002 -"
1003 -DEPEND="${CDEPEND}
1004 - ${PYTHON_DEPS}
1005 - app-text/docbook-xsl-stylesheets
1006 - dev-libs/libxslt
1007 - net-libs/libtirpc[${MULTILIB_USEDEP}]
1008 - virtual/pkgconfig
1009 - || (
1010 - net-libs/rpcsvc-proto
1011 - <sys-libs/glibc-2.26[rpc(+)]
1012 - )
1013 - test? (
1014 - !system-mitkrb5? (
1015 - >=sys-libs/nss_wrapper-1.1.3
1016 - >=net-dns/resolv_wrapper-1.1.4
1017 - >=net-libs/socket_wrapper-1.1.7
1018 - >=sys-libs/uid_wrapper-1.2.1
1019 - )
1020 - )"
1021 -RDEPEND="${CDEPEND}
1022 - python? ( ${PYTHON_DEPS} )
1023 - client? ( net-fs/cifs-utils[ads?] )
1024 - selinux? ( sec-policy/selinux-samba )
1025 - !dev-perl/Parse-Yapp
1026 -"
1027 -
1028 -REQUIRED_USE="
1029 - addc? ( python gnutls winbind )
1030 - addns? ( python )
1031 - ads? ( acl gnutls ldap winbind )
1032 - cluster? ( ads )
1033 - gpg? ( addc )
1034 - test? ( python )
1035 - ?? ( system-heimdal system-mitkrb5 )
1036 - ${PYTHON_REQUIRED_USE}
1037 -"
1038 -
1039 -# the test suite is messed, it uses system-installed samba
1040 -# bits instead of what was built, tests things disabled via use
1041 -# flags, and generally just fails to work in a way ebuilds could
1042 -# rely on in its current state
1043 -RESTRICT="test"
1044 -
1045 -S="${WORKDIR}/${MY_P}"
1046 -
1047 -PATCHES=(
1048 - "${FILESDIR}/${PN}-4.4.0-pam.patch"
1049 - "${FILESDIR}/${PN}-4.5.1-compile_et_fix.patch"
1050 -)
1051 -
1052 -#CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
1053 -CONFDIR="${FILESDIR}/4.4"
1054 -
1055 -WAF_BINARY="${S}/buildtools/bin/waf"
1056 -
1057 -SHAREDMODS=""
1058 -
1059 -pkg_setup() {
1060 - python-single-r1_pkg_setup
1061 - if use cluster ; then
1062 - SHAREDMODS="idmap_rid,idmap_tdb2,idmap_ad"
1063 - elif use ads ; then
1064 - SHAREDMODS="idmap_ad"
1065 - fi
1066 -}
1067 -
1068 -src_prepare() {
1069 - default
1070 -
1071 - # un-bundle dnspython
1072 - sed -i -e '/"dns.resolver":/d' "${S}"/third_party/wscript || die
1073 -
1074 - # unbundle iso8601 unless tests are enabled
1075 - use test || sed -i -e '/"iso8601":/d' "${S}"/third_party/wscript || die
1076 -
1077 - # ugly hackaround for bug #592502
1078 - cp /usr/include/tevent_internal.h "${S}"/lib/tevent/ || die
1079 -
1080 - sed -e 's:<gpgme\.h>:<gpgme/gpgme.h>:' \
1081 - -i source4/dsdb/samdb/ldb_modules/password_hash.c \
1082 - || die
1083 -
1084 - # Friggin' WAF shit
1085 - multilib_copy_sources
1086 -}
1087 -
1088 -multilib_src_configure() {
1089 - # when specifying libs for samba build you must append NONE to the end to
1090 - # stop it automatically including things
1091 - local bundled_libs="NONE"
1092 - if ! use system-heimdal && ! use system-mitkrb5 ; then
1093 - bundled_libs="heimbase,heimntlm,hdb,kdc,krb5,wind,gssapi,hcrypto,hx509,roken,asn1,com_err,NONE"
1094 - fi
1095 -
1096 - local myconf=(
1097 - --enable-fhs
1098 - --sysconfdir="${EPREFIX}/etc"
1099 - --localstatedir="${EPREFIX}/var"
1100 - --with-modulesdir="${EPREFIX}/usr/$(get_libdir)/samba"
1101 - --with-piddir="${EPREFIX}/run/${PN}"
1102 - --bundled-libraries="${bundled_libs}"
1103 - --builtin-libraries=NONE
1104 - --disable-rpath
1105 - --disable-rpath-install
1106 - --nopyc
1107 - --nopyo
1108 - $(multilib_native_use_with acl acl-support)
1109 - $(multilib_native_usex addc '' '--without-ad-dc')
1110 - $(multilib_native_use_with addns dnsupdate)
1111 - $(multilib_native_use_with ads)
1112 - $(multilib_native_use_enable ceph cephfs)
1113 - $(multilib_native_use_with cluster cluster-support)
1114 - $(multilib_native_use_enable cups)
1115 - $(multilib_native_use_with dmapi)
1116 - $(multilib_native_use_with fam)
1117 - $(multilib_native_use_with gpg gpgme)
1118 - $(multilib_native_use_enable iprint)
1119 - $(multilib_native_use_with pam)
1120 - $(multilib_native_usex pam "--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '')
1121 - $(multilib_native_use_with quota quotas)
1122 - $(multilib_native_use_with syslog)
1123 - $(multilib_native_use_with systemd)
1124 - $(multilib_native_use_with winbind)
1125 - $(multilib_native_usex python '' '--disable-python')
1126 - $(multilib_native_use_enable zeroconf avahi)
1127 - $(multilib_native_usex test '--enable-selftest' '')
1128 - $(usex system-mitkrb5 '--with-system-mitkrb5' '')
1129 - $(use_enable gnutls)
1130 - $(use_with debug lttng)
1131 - $(use_with ldap)
1132 - )
1133 - multilib_is_native_abi && myconf+=( --with-shared-modules=${SHAREDMODS} )
1134 -
1135 - CPPFLAGS="-I${SYSROOT}${EPREFIX}/usr/include/et ${CPPFLAGS}" \
1136 - waf-utils_src_configure ${myconf[@]}
1137 -}
1138 -
1139 -multilib_src_compile() {
1140 - waf-utils_src_compile
1141 -}
1142 -
1143 -multilib_src_install() {
1144 - waf-utils_src_install
1145 -
1146 - # Make all .so files executable
1147 - find "${ED}" -type f -name "*.so" -exec chmod +x {} +
1148 -
1149 - if multilib_is_native_abi ; then
1150 - # install ldap schema for server (bug #491002)
1151 - if use ldap ; then
1152 - insinto /etc/openldap/schema
1153 - doins examples/LDAP/samba.schema
1154 - fi
1155 -
1156 - # create symlink for cups (bug #552310)
1157 - if use cups ; then
1158 - dosym ../../../bin/smbspool /usr/libexec/cups/backend/smb
1159 - fi
1160 -
1161 - # install example config file
1162 - insinto /etc/samba
1163 - doins examples/smb.conf.default
1164 -
1165 - # Fix paths in example file (#603964)
1166 - sed \
1167 - -e '/log file =/s@/usr/local/samba/var/@/var/log/samba/@' \
1168 - -e '/include =/s@/usr/local/samba/lib/@/etc/samba/@' \
1169 - -e '/path =/s@/usr/local/samba/lib/@/var/lib/samba/@' \
1170 - -e '/path =/s@/usr/local/samba/@/var/lib/samba/@' \
1171 - -e '/path =/s@/usr/spool/samba@/var/spool/samba@' \
1172 - -i "${ED%/}"/etc/samba/smb.conf.default || die
1173 -
1174 - # Install init script and conf.d file
1175 - newinitd "${CONFDIR}/samba4.initd-r1" samba
1176 - newconfd "${CONFDIR}/samba4.confd" samba
1177 -
1178 - systemd_dotmpfilesd "${FILESDIR}"/samba.conf
1179 - systemd_dounit "${FILESDIR}"/nmbd.service
1180 - systemd_dounit "${FILESDIR}"/smbd.{service,socket}
1181 - systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service'
1182 - systemd_dounit "${FILESDIR}"/winbindd.service
1183 - systemd_dounit "${FILESDIR}"/samba.service
1184 - fi
1185 -}
1186 -
1187 -multilib_src_test() {
1188 - if multilib_is_native_abi ; then
1189 - "${WAF_BINARY}" test || die "test failed"
1190 - fi
1191 -}
1192 -
1193 -pkg_postinst() {
1194 - ewarn "Be aware the this release contains the best of all of Samba's"
1195 - ewarn "technology parts, both a file server (that you can reasonably expect"
1196 - ewarn "to upgrade existing Samba 3.x releases to) and the AD domain"
1197 - ewarn "controller work previously known as 'samba4'."
1198 -
1199 - elog "For further information and migration steps make sure to read "
1200 - elog "https://samba.org/samba/history/${P}.html "
1201 - elog "https://wiki.samba.org/index.php/Samba4/HOWTO "
1202 -}