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