1 |
commit: 1f44cdfc310ca3e0a709ee16b6743c5ddeeceb1e |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 6 08:12:27 2020 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 6 08:12:27 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f44cdfc |
7 |
|
8 |
net-fs/samba: Removed old |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
net-fs/samba/Manifest | 2 - |
14 |
net-fs/samba/samba-4.11.7.ebuild | 314 --------------------------------------- |
15 |
net-fs/samba/samba-4.12.0.ebuild | 312 -------------------------------------- |
16 |
3 files changed, 628 deletions(-) |
17 |
|
18 |
diff --git a/net-fs/samba/Manifest b/net-fs/samba/Manifest |
19 |
index b0687158822..4d64378143e 100644 |
20 |
--- a/net-fs/samba/Manifest |
21 |
+++ b/net-fs/samba/Manifest |
22 |
@@ -1,6 +1,4 @@ |
23 |
DIST samba-4.11.6.tar.gz 18541566 BLAKE2B 2b4a40be7cec8a9706cbc344796885f59403aa11ca3d8a7dc40b3d287ec222c11d7395fd193c4b66c4116f1bffd869caf444a950d508f5a9a596db32553e1461 SHA512 3815080a1693c596a126371a5ea4e8534317a7266803c7de13a7e5b3ee9757dfbf13c0de20d498a6683d3aaf56941ed42f289e3c24f88713529a5f047a691af2 |
24 |
-DIST samba-4.11.7.tar.gz 18541292 BLAKE2B 083ee2ebade2dd6267f8c53234bd98cc3325d28cf0a03fce2f45accfd36acfaaa9cdc82f326e913cfdbd585b0d705c71a95685ec37901e7d8a4d17cd2a04d3f2 SHA512 c728adbc9fd86f9b745f62d2f435d0fd5e8d1381725a657f8d14ec246d5c758c9eb92bd82c25b0c3f40ce4d10eaf5ce7792363b8a8c4df2e6c78c1458fef4f95 |
25 |
DIST samba-4.11.8.tar.gz 18571308 BLAKE2B 024920789ac8fcedfc79f4d094a47e4c1399a0bbc3ad79908f66b9bbabd765865795763c1017cc0caba18dbc11ce6a7e25231804d7dff11ab3d97a599ab8d9ed SHA512 a036c46e060d9edc11bf4e45e0449042fe44b74ff083d305779c68dad943f87fb6d2680f3a68e6bbcd0b19c8c397ec9fc5794229a311c25dad9efc366add613a |
26 |
-DIST samba-4.12.0.tar.gz 18156651 BLAKE2B a02a5cdce9551743bfa88fe9e42ab2f2b6fc3ec96e933bcb92f994681b8dbbeef675f718e723f131c95252a51d964d141f5dda98529dc7779ba372fc6d0080c5 SHA512 d50be899675b8e3504311e73bb75fbb8264e918e0d1765239ecb5b14e15c0917565f8a9ce1877fb604151bf4f23dfc4c2f7f30a53c872681e3d2571d3ed5ef82 |
27 |
DIST samba-4.12.1.tar.gz 18159628 BLAKE2B aff697383ed53f4e8d7506ca284d160e76747ea49849c32bfe712fff83cd1a66a835c8da4f325a78599e53dc29f59e626fc7b285c67c5364f180491c3ba62f7d SHA512 2645f72dcc4718bd2e85af73a54b3e6d0ca9e11bd6991a47a6c17a8b89b69f294a0875ef9762dde28a25d1ff030e0e2d0e073a6993e2df0d6b17e75b72d1cd26 |
28 |
DIST samba-4.12.2.tar.gz 18192360 BLAKE2B 1ef1b128dc628d5b8b69183fa99eceac27feaea54207eb2e5e2af5882cdf17d2819efbfc9f91cf73a9c744b5ef17c6b8dcd135783da9a36d8c41246d2c4515d0 SHA512 c1d5f62ea2e43c246988aa65c4b690de232f73c0213cbc5d532e43c8cfbea17f1ac92435526b64c9a85c582b29381eecfb57713861efc32f6e6257000c393562 |
29 |
|
30 |
diff --git a/net-fs/samba/samba-4.11.7.ebuild b/net-fs/samba/samba-4.11.7.ebuild |
31 |
deleted file mode 100644 |
32 |
index dc2cfbea720..00000000000 |
33 |
--- a/net-fs/samba/samba-4.11.7.ebuild |
34 |
+++ /dev/null |
35 |
@@ -1,314 +0,0 @@ |
36 |
-# Copyright 1999-2020 Gentoo Authors |
37 |
-# Distributed under the terms of the GNU General Public License v2 |
38 |
- |
39 |
-EAPI=6 |
40 |
- |
41 |
-PYTHON_COMPAT=( python3_{6,7,8} ) |
42 |
-PYTHON_REQ_USE='threads(+),xml(+)' |
43 |
-inherit python-single-r1 waf-utils multilib-minimal linux-info systemd pam |
44 |
- |
45 |
-MY_PV="${PV/_rc/rc}" |
46 |
-MY_P="${PN}-${MY_PV}" |
47 |
- |
48 |
-SRC_PATH="stable" |
49 |
-[[ ${PV} = *_rc* ]] && SRC_PATH="rc" |
50 |
- |
51 |
-SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz" |
52 |
-[[ ${PV} = *_rc* ]] || \ |
53 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
54 |
- |
55 |
-DESCRIPTION="Samba Suite Version 4" |
56 |
-HOMEPAGE="https://www.samba.org/" |
57 |
-LICENSE="GPL-3" |
58 |
- |
59 |
-SLOT="0" |
60 |
- |
61 |
-IUSE="acl addc addns ads ceph client cluster cups debug dmapi fam gpg iprint |
62 |
-json ldap pam profiling-data python quota selinux syslog system-heimdal |
63 |
-+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 |
-CDEPEND=" |
77 |
- >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}] |
78 |
- dev-lang/perl:= |
79 |
- dev-libs/libbsd[${MULTILIB_USEDEP}] |
80 |
- dev-libs/libtasn1[${MULTILIB_USEDEP}] |
81 |
- dev-libs/popt[${MULTILIB_USEDEP}] |
82 |
- >=net-libs/gnutls-3.2.0[${MULTILIB_USEDEP}] |
83 |
- net-libs/libnsl:=[${MULTILIB_USEDEP}] |
84 |
- sys-apps/dbus[${MULTILIB_USEDEP}] |
85 |
- sys-libs/e2fsprogs-libs[${MULTILIB_USEDEP}] |
86 |
- >=sys-libs/ldb-2.0.9[ldap(+)?,python?,${PYTHON_SINGLE_USEDEP},${MULTILIB_USEDEP}] |
87 |
- <sys-libs/ldb-2.1.0[ldap(+)?,python?,${PYTHON_SINGLE_USEDEP},${MULTILIB_USEDEP}] |
88 |
- sys-libs/libcap |
89 |
- sys-libs/ncurses:0= |
90 |
- sys-libs/readline:0= |
91 |
- >=sys-libs/talloc-2.2.0[python?,${PYTHON_SINGLE_USEDEP},${MULTILIB_USEDEP}] |
92 |
- >=sys-libs/tdb-1.4.2[python?,${PYTHON_SINGLE_USEDEP},${MULTILIB_USEDEP}] |
93 |
- >=sys-libs/tevent-0.10.0[python?,${PYTHON_SINGLE_USEDEP},${MULTILIB_USEDEP}] |
94 |
- sys-libs/zlib[${MULTILIB_USEDEP}] |
95 |
- virtual/libiconv |
96 |
- pam? ( sys-libs/pam ) |
97 |
- acl? ( virtual/acl ) |
98 |
- $(python_gen_cond_dep " |
99 |
- dev-python/subunit[\${PYTHON_MULTI_USEDEP},${MULTILIB_USEDEP}] |
100 |
- addns? ( |
101 |
- net-dns/bind-tools[gssapi] |
102 |
- dev-python/dnspython:=[\${PYTHON_MULTI_USEDEP}] |
103 |
- ) |
104 |
- ") |
105 |
- ceph? ( sys-cluster/ceph ) |
106 |
- cluster? ( |
107 |
- net-libs/rpcsvc-proto |
108 |
- !dev-db/ctdb |
109 |
- ) |
110 |
- cups? ( net-print/cups ) |
111 |
- debug? ( dev-util/lttng-ust ) |
112 |
- dmapi? ( sys-apps/dmapi ) |
113 |
- fam? ( virtual/fam ) |
114 |
- gpg? ( app-crypt/gpgme ) |
115 |
- json? ( dev-libs/jansson ) |
116 |
- ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] ) |
117 |
- system-heimdal? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] ) |
118 |
- system-mitkrb5? ( >=app-crypt/mit-krb5-1.15.1[${MULTILIB_USEDEP}] ) |
119 |
- systemd? ( sys-apps/systemd:0= ) |
120 |
- zeroconf? ( net-dns/avahi ) |
121 |
-" |
122 |
-DEPEND="${CDEPEND} |
123 |
- ${PYTHON_DEPS} |
124 |
- app-text/docbook-xsl-stylesheets |
125 |
- dev-libs/libxslt |
126 |
- >=dev-util/cmocka-1.1.1[${MULTILIB_USEDEP}] |
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.9 |
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 json winbind ) |
150 |
- addns? ( python ) |
151 |
- ads? ( acl 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.9.2-timespec.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 |
- $(multilib_native_use_with acl acl-support) |
231 |
- $(multilib_native_usex addc '' '--without-ad-dc') |
232 |
- $(multilib_native_use_with addns dnsupdate) |
233 |
- $(multilib_native_use_with ads) |
234 |
- $(multilib_native_use_enable ceph cephfs) |
235 |
- $(multilib_native_use_with cluster cluster-support) |
236 |
- $(multilib_native_use_enable cups) |
237 |
- $(multilib_native_use_with dmapi) |
238 |
- $(multilib_native_use_with fam) |
239 |
- $(multilib_native_use_with gpg gpgme) |
240 |
- $(multilib_native_use_with json) |
241 |
- $(multilib_native_use_enable iprint) |
242 |
- $(multilib_native_use_with pam) |
243 |
- $(multilib_native_usex pam "--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '') |
244 |
- $(multilib_native_use_with quota quotas) |
245 |
- $(multilib_native_use_with syslog) |
246 |
- $(multilib_native_use_with systemd) |
247 |
- --systemd-install-services |
248 |
- --with-systemddir="$(systemd_get_systemunitdir)" |
249 |
- $(multilib_native_use_with winbind) |
250 |
- $(multilib_native_usex python '' '--disable-python') |
251 |
- $(multilib_native_use_enable zeroconf avahi) |
252 |
- $(multilib_native_usex test '--enable-selftest' '') |
253 |
- $(usex system-mitkrb5 "--with-system-mitkrb5 $(multilib_native_usex addc --with-experimental-mit-ad-dc '')" '') |
254 |
- $(use_with debug lttng) |
255 |
- $(use_with ldap) |
256 |
- $(use_with profiling-data) |
257 |
- # bug #683148 |
258 |
- --jobs 1 |
259 |
- ) |
260 |
- |
261 |
- multilib_is_native_abi && myconf+=( --with-shared-modules=${SHAREDMODS} ) |
262 |
- |
263 |
- CPPFLAGS="-I${SYSROOT}${EPREFIX}/usr/include/et ${CPPFLAGS}" \ |
264 |
- waf-utils_src_configure ${myconf[@]} |
265 |
-} |
266 |
- |
267 |
-multilib_src_compile() { |
268 |
- waf-utils_src_compile |
269 |
-} |
270 |
- |
271 |
-multilib_src_install() { |
272 |
- waf-utils_src_install |
273 |
- |
274 |
- # Make all .so files executable |
275 |
- find "${ED}" -type f -name "*.so" -exec chmod +x {} + || die |
276 |
- |
277 |
- if multilib_is_native_abi ; then |
278 |
- # install ldap schema for server (bug #491002) |
279 |
- if use ldap ; then |
280 |
- insinto /etc/openldap/schema |
281 |
- doins examples/LDAP/samba.schema |
282 |
- fi |
283 |
- |
284 |
- # create symlink for cups (bug #552310) |
285 |
- if use cups ; then |
286 |
- dosym ../../../bin/smbspool /usr/libexec/cups/backend/smb |
287 |
- fi |
288 |
- |
289 |
- # install example config file |
290 |
- insinto /etc/samba |
291 |
- doins examples/smb.conf.default |
292 |
- |
293 |
- # Fix paths in example file (#603964) |
294 |
- sed \ |
295 |
- -e '/log file =/s@/usr/local/samba/var/@/var/log/samba/@' \ |
296 |
- -e '/include =/s@/usr/local/samba/lib/@/etc/samba/@' \ |
297 |
- -e '/path =/s@/usr/local/samba/lib/@/var/lib/samba/@' \ |
298 |
- -e '/path =/s@/usr/local/samba/@/var/lib/samba/@' \ |
299 |
- -e '/path =/s@/usr/spool/samba@/var/spool/samba@' \ |
300 |
- -i "${ED%/}"/etc/samba/smb.conf.default || die |
301 |
- |
302 |
- # Install init script and conf.d file |
303 |
- newinitd "${CONFDIR}/samba4.initd-r1" samba |
304 |
- newconfd "${CONFDIR}/samba4.confd" samba |
305 |
- |
306 |
- systemd_dotmpfilesd "${FILESDIR}"/samba.conf |
307 |
- use addc || rm "${D}/$(systemd_get_systemunitdir)/samba.service" || die |
308 |
- |
309 |
- # Preserve functionality for old gentoo-specific unit names |
310 |
- dosym nmb.service "$(systemd_get_systemunitdir)/nmbd.service" |
311 |
- dosym smb.service "$(systemd_get_systemunitdir)/smbd.service" |
312 |
- dosym winbind.service "$(systemd_get_systemunitdir)/winbindd.service" |
313 |
- fi |
314 |
- |
315 |
- if use pam && use winbind ; then |
316 |
- newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind |
317 |
- # bugs #376853 and #590374 |
318 |
- insinto /etc/security |
319 |
- doins examples/pam_winbind/pam_winbind.conf |
320 |
- fi |
321 |
- |
322 |
- keepdir /var/cache/samba |
323 |
- keepdir /var/lib/ctdb |
324 |
- keepdir /var/lib/samba/{bind-dns,private} |
325 |
- keepdir /var/log/samba |
326 |
-} |
327 |
- |
328 |
-multilib_src_install_all() { |
329 |
- # Attempt to fix bug #673168 |
330 |
- find "${ED}" -type d -name "Yapp" -print0 \ |
331 |
- | xargs -0 --no-run-if-empty rm -r || die |
332 |
-} |
333 |
- |
334 |
-multilib_src_test() { |
335 |
- if multilib_is_native_abi ; then |
336 |
- "${WAF_BINARY}" test || die "test failed" |
337 |
- fi |
338 |
-} |
339 |
- |
340 |
-pkg_postinst() { |
341 |
- ewarn "Be aware that this release contains the best of all of Samba's" |
342 |
- ewarn "technology parts, both a file server (that you can reasonably expect" |
343 |
- ewarn "to upgrade existing Samba 3.x releases to) and the AD domain" |
344 |
- ewarn "controller work previously known as 'samba4'." |
345 |
- |
346 |
- elog "For further information and migration steps make sure to read " |
347 |
- elog "https://samba.org/samba/history/${P}.html " |
348 |
- elog "https://wiki.samba.org/index.php/Samba4/HOWTO " |
349 |
-} |
350 |
|
351 |
diff --git a/net-fs/samba/samba-4.12.0.ebuild b/net-fs/samba/samba-4.12.0.ebuild |
352 |
deleted file mode 100644 |
353 |
index 03ba25db483..00000000000 |
354 |
--- a/net-fs/samba/samba-4.12.0.ebuild |
355 |
+++ /dev/null |
356 |
@@ -1,312 +0,0 @@ |
357 |
-# Copyright 1999-2020 Gentoo Authors |
358 |
-# Distributed under the terms of the GNU General Public License v2 |
359 |
- |
360 |
-EAPI=6 |
361 |
- |
362 |
-PYTHON_COMPAT=( python3_{6,7,8} ) |
363 |
-PYTHON_REQ_USE='threads(+),xml(+)' |
364 |
-inherit python-single-r1 waf-utils multilib-minimal linux-info systemd pam |
365 |
- |
366 |
-MY_PV="${PV/_rc/rc}" |
367 |
-MY_P="${PN}-${MY_PV}" |
368 |
- |
369 |
-SRC_PATH="stable" |
370 |
-[[ ${PV} = *_rc* ]] && SRC_PATH="rc" |
371 |
- |
372 |
-SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz" |
373 |
-[[ ${PV} = *_rc* ]] || \ |
374 |
-KEYWORDS="~amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
375 |
- |
376 |
-DESCRIPTION="Samba Suite Version 4" |
377 |
-HOMEPAGE="https://www.samba.org/" |
378 |
-LICENSE="GPL-3" |
379 |
- |
380 |
-SLOT="0" |
381 |
- |
382 |
-IUSE="acl addc addns ads ceph client cluster cups debug dmapi fam gpg iprint |
383 |
-json ldap pam profiling-data python quota selinux syslog system-heimdal |
384 |
-+system-mitkrb5 systemd test winbind zeroconf" |
385 |
- |
386 |
-MULTILIB_WRAPPED_HEADERS=( |
387 |
- /usr/include/samba-4.0/policy.h |
388 |
- /usr/include/samba-4.0/dcerpc_server.h |
389 |
- /usr/include/samba-4.0/ctdb.h |
390 |
- /usr/include/samba-4.0/ctdb_client.h |
391 |
- /usr/include/samba-4.0/ctdb_protocol.h |
392 |
- /usr/include/samba-4.0/ctdb_private.h |
393 |
- /usr/include/samba-4.0/ctdb_typesafe_cb.h |
394 |
- /usr/include/samba-4.0/ctdb_version.h |
395 |
-) |
396 |
- |
397 |
-CDEPEND=" |
398 |
- >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}] |
399 |
- dev-lang/perl:= |
400 |
- dev-libs/icu:=[${MULTILIB_USEDEP}] |
401 |
- dev-libs/libbsd[${MULTILIB_USEDEP}] |
402 |
- dev-libs/libtasn1[${MULTILIB_USEDEP}] |
403 |
- dev-libs/popt[${MULTILIB_USEDEP}] |
404 |
- dev-perl/Parse-Yapp |
405 |
- >=net-libs/gnutls-3.4.7[${MULTILIB_USEDEP}] |
406 |
- net-libs/libnsl:=[${MULTILIB_USEDEP}] |
407 |
- sys-apps/dbus[${MULTILIB_USEDEP}] |
408 |
- sys-libs/e2fsprogs-libs[${MULTILIB_USEDEP}] |
409 |
- >=sys-libs/ldb-2.1.1[ldap(+)?,python?,${PYTHON_SINGLE_USEDEP},${MULTILIB_USEDEP}] |
410 |
- <sys-libs/ldb-2.2.0[ldap(+)?,python?,${PYTHON_SINGLE_USEDEP},${MULTILIB_USEDEP}] |
411 |
- sys-libs/libcap[${MULTILIB_USEDEP}] |
412 |
- sys-libs/liburing[${MULTILIB_USEDEP}] |
413 |
- sys-libs/ncurses:0= |
414 |
- sys-libs/readline:0= |
415 |
- >=sys-libs/talloc-2.3.1[python?,${PYTHON_SINGLE_USEDEP},${MULTILIB_USEDEP}] |
416 |
- >=sys-libs/tdb-1.4.3[python?,${PYTHON_SINGLE_USEDEP},${MULTILIB_USEDEP}] |
417 |
- >=sys-libs/tevent-0.10.2[python?,${PYTHON_SINGLE_USEDEP},${MULTILIB_USEDEP}] |
418 |
- sys-libs/zlib[${MULTILIB_USEDEP}] |
419 |
- virtual/libiconv |
420 |
- pam? ( sys-libs/pam ) |
421 |
- acl? ( virtual/acl ) |
422 |
- $(python_gen_cond_dep " |
423 |
- dev-python/subunit[\${PYTHON_MULTI_USEDEP},${MULTILIB_USEDEP}] |
424 |
- addns? ( |
425 |
- net-dns/bind-tools[gssapi] |
426 |
- dev-python/dnspython:=[\${PYTHON_MULTI_USEDEP}] |
427 |
- ) |
428 |
- ") |
429 |
- ceph? ( sys-cluster/ceph ) |
430 |
- cluster? ( |
431 |
- net-libs/rpcsvc-proto |
432 |
- !dev-db/ctdb |
433 |
- ) |
434 |
- cups? ( net-print/cups ) |
435 |
- debug? ( dev-util/lttng-ust ) |
436 |
- dmapi? ( sys-apps/dmapi ) |
437 |
- fam? ( virtual/fam ) |
438 |
- gpg? ( app-crypt/gpgme ) |
439 |
- json? ( dev-libs/jansson ) |
440 |
- ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] ) |
441 |
- system-heimdal? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] ) |
442 |
- system-mitkrb5? ( >=app-crypt/mit-krb5-1.15.1[${MULTILIB_USEDEP}] ) |
443 |
- systemd? ( sys-apps/systemd:0= ) |
444 |
- zeroconf? ( net-dns/avahi ) |
445 |
-" |
446 |
-DEPEND="${CDEPEND} |
447 |
- ${PYTHON_DEPS} |
448 |
- app-text/docbook-xsl-stylesheets |
449 |
- dev-libs/libxslt |
450 |
- >=dev-util/cmocka-1.1.3[${MULTILIB_USEDEP}] |
451 |
- net-libs/libtirpc[${MULTILIB_USEDEP}] |
452 |
- virtual/pkgconfig |
453 |
- || ( |
454 |
- net-libs/rpcsvc-proto |
455 |
- <sys-libs/glibc-2.26[rpc(+)] |
456 |
- ) |
457 |
- test? ( |
458 |
- !system-mitkrb5? ( |
459 |
- >=sys-libs/nss_wrapper-1.1.3 |
460 |
- >=net-dns/resolv_wrapper-1.1.4 |
461 |
- >=net-libs/socket_wrapper-1.1.9 |
462 |
- >=sys-libs/uid_wrapper-1.2.1 |
463 |
- ) |
464 |
- )" |
465 |
-RDEPEND="${CDEPEND} |
466 |
- python? ( ${PYTHON_DEPS} ) |
467 |
- client? ( net-fs/cifs-utils[ads?] ) |
468 |
- selinux? ( sec-policy/selinux-samba ) |
469 |
-" |
470 |
- |
471 |
-REQUIRED_USE=" |
472 |
- addc? ( python json winbind ) |
473 |
- addns? ( python ) |
474 |
- ads? ( acl ldap winbind ) |
475 |
- cluster? ( ads ) |
476 |
- gpg? ( addc ) |
477 |
- test? ( python ) |
478 |
- ?? ( system-heimdal system-mitkrb5 ) |
479 |
- ${PYTHON_REQUIRED_USE} |
480 |
-" |
481 |
- |
482 |
-# the test suite is messed, it uses system-installed samba |
483 |
-# bits instead of what was built, tests things disabled via use |
484 |
-# flags, and generally just fails to work in a way ebuilds could |
485 |
-# rely on in its current state |
486 |
-RESTRICT="test" |
487 |
- |
488 |
-S="${WORKDIR}/${MY_P}" |
489 |
- |
490 |
-PATCHES=( |
491 |
- "${FILESDIR}/${PN}-4.4.0-pam.patch" |
492 |
- "${FILESDIR}/${PN}-4.9.2-timespec.patch" |
493 |
-) |
494 |
- |
495 |
-#CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)" |
496 |
-CONFDIR="${FILESDIR}/4.4" |
497 |
- |
498 |
-WAF_BINARY="${S}/buildtools/bin/waf" |
499 |
- |
500 |
-SHAREDMODS="" |
501 |
- |
502 |
-pkg_setup() { |
503 |
- python-single-r1_pkg_setup |
504 |
- if use cluster ; then |
505 |
- SHAREDMODS="idmap_rid,idmap_tdb2,idmap_ad" |
506 |
- elif use ads ; then |
507 |
- SHAREDMODS="idmap_ad" |
508 |
- fi |
509 |
-} |
510 |
- |
511 |
-src_prepare() { |
512 |
- default |
513 |
- |
514 |
- # un-bundle dnspython |
515 |
- sed -i -e '/"dns.resolver":/d' "${S}"/third_party/wscript || die |
516 |
- |
517 |
- # unbundle iso8601 unless tests are enabled |
518 |
- if ! use test ; then |
519 |
- sed -i -e '/"iso8601":/d' "${S}"/third_party/wscript || die |
520 |
- fi |
521 |
- |
522 |
- ## ugly hackaround for bug #592502 |
523 |
- #cp /usr/include/tevent_internal.h "${S}"/lib/tevent/ || die |
524 |
- |
525 |
- sed -e 's:<gpgme\.h>:<gpgme/gpgme.h>:' \ |
526 |
- -i source4/dsdb/samdb/ldb_modules/password_hash.c \ |
527 |
- || die |
528 |
- |
529 |
- # Friggin' WAF shit |
530 |
- multilib_copy_sources |
531 |
-} |
532 |
- |
533 |
-multilib_src_configure() { |
534 |
- # when specifying libs for samba build you must append NONE to the end to |
535 |
- # stop it automatically including things |
536 |
- local bundled_libs="NONE" |
537 |
- if ! use system-heimdal && ! use system-mitkrb5 ; then |
538 |
- bundled_libs="heimbase,heimntlm,hdb,kdc,krb5,wind,gssapi,hcrypto,hx509,roken,asn1,com_err,NONE" |
539 |
- fi |
540 |
- |
541 |
- local myconf=( |
542 |
- --enable-fhs |
543 |
- --sysconfdir="${EPREFIX}/etc" |
544 |
- --localstatedir="${EPREFIX}/var" |
545 |
- --with-modulesdir="${EPREFIX}/usr/$(get_libdir)/samba" |
546 |
- --with-piddir="${EPREFIX}/run/${PN}" |
547 |
- --bundled-libraries="${bundled_libs}" |
548 |
- --builtin-libraries=NONE |
549 |
- --disable-rpath |
550 |
- --disable-rpath-install |
551 |
- --nopyc |
552 |
- --nopyo |
553 |
- $(multilib_native_use_with acl acl-support) |
554 |
- $(multilib_native_usex addc '' '--without-ad-dc') |
555 |
- $(multilib_native_use_with addns dnsupdate) |
556 |
- $(multilib_native_use_with ads) |
557 |
- $(multilib_native_use_enable ceph cephfs) |
558 |
- $(multilib_native_use_with cluster cluster-support) |
559 |
- $(multilib_native_use_enable cups) |
560 |
- $(multilib_native_use_with dmapi) |
561 |
- $(multilib_native_use_with fam) |
562 |
- $(multilib_native_use_with gpg gpgme) |
563 |
- $(multilib_native_use_with json) |
564 |
- $(multilib_native_use_enable iprint) |
565 |
- $(multilib_native_use_with pam) |
566 |
- $(multilib_native_usex pam "--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '') |
567 |
- $(multilib_native_use_with quota quotas) |
568 |
- $(multilib_native_use_with syslog) |
569 |
- $(multilib_native_use_with systemd) |
570 |
- --systemd-install-services |
571 |
- --with-systemddir="$(systemd_get_systemunitdir)" |
572 |
- $(multilib_native_use_with winbind) |
573 |
- $(multilib_native_usex python '' '--disable-python') |
574 |
- $(multilib_native_use_enable zeroconf avahi) |
575 |
- $(multilib_native_usex test '--enable-selftest' '') |
576 |
- $(usex system-mitkrb5 "--with-system-mitkrb5 $(multilib_native_usex addc --with-experimental-mit-ad-dc '')" '') |
577 |
- $(use_with debug lttng) |
578 |
- $(use_with ldap) |
579 |
- $(use_with profiling-data) |
580 |
- # bug #683148 |
581 |
- --jobs 1 |
582 |
- ) |
583 |
- |
584 |
- multilib_is_native_abi && myconf+=( --with-shared-modules=${SHAREDMODS} ) |
585 |
- |
586 |
- CPPFLAGS="-I${SYSROOT}${EPREFIX}/usr/include/et ${CPPFLAGS}" \ |
587 |
- waf-utils_src_configure ${myconf[@]} |
588 |
-} |
589 |
- |
590 |
-multilib_src_compile() { |
591 |
- waf-utils_src_compile |
592 |
-} |
593 |
- |
594 |
-multilib_src_install() { |
595 |
- waf-utils_src_install |
596 |
- |
597 |
- # Make all .so files executable |
598 |
- find "${ED}" -type f -name "*.so" -exec chmod +x {} + || die |
599 |
- |
600 |
- if multilib_is_native_abi ; then |
601 |
- # install ldap schema for server (bug #491002) |
602 |
- if use ldap ; then |
603 |
- insinto /etc/openldap/schema |
604 |
- doins examples/LDAP/samba.schema |
605 |
- fi |
606 |
- |
607 |
- # create symlink for cups (bug #552310) |
608 |
- if use cups ; then |
609 |
- dosym ../../../bin/smbspool /usr/libexec/cups/backend/smb |
610 |
- fi |
611 |
- |
612 |
- # install example config file |
613 |
- insinto /etc/samba |
614 |
- doins examples/smb.conf.default |
615 |
- |
616 |
- # Fix paths in example file (#603964) |
617 |
- sed \ |
618 |
- -e '/log file =/s@/usr/local/samba/var/@/var/log/samba/@' \ |
619 |
- -e '/include =/s@/usr/local/samba/lib/@/etc/samba/@' \ |
620 |
- -e '/path =/s@/usr/local/samba/lib/@/var/lib/samba/@' \ |
621 |
- -e '/path =/s@/usr/local/samba/@/var/lib/samba/@' \ |
622 |
- -e '/path =/s@/usr/spool/samba@/var/spool/samba@' \ |
623 |
- -i "${ED%/}"/etc/samba/smb.conf.default || die |
624 |
- |
625 |
- # Install init script and conf.d file |
626 |
- newinitd "${CONFDIR}/samba4.initd-r1" samba |
627 |
- newconfd "${CONFDIR}/samba4.confd" samba |
628 |
- |
629 |
- systemd_dotmpfilesd "${FILESDIR}"/samba.conf |
630 |
- use addc || rm "${D}/$(systemd_get_systemunitdir)/samba.service" || die |
631 |
- |
632 |
- # Preserve functionality for old gentoo-specific unit names |
633 |
- dosym nmb.service "$(systemd_get_systemunitdir)/nmbd.service" |
634 |
- dosym smb.service "$(systemd_get_systemunitdir)/smbd.service" |
635 |
- dosym winbind.service "$(systemd_get_systemunitdir)/winbindd.service" |
636 |
- fi |
637 |
- |
638 |
- if use pam && use winbind ; then |
639 |
- newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind |
640 |
- # bugs #376853 and #590374 |
641 |
- insinto /etc/security |
642 |
- doins examples/pam_winbind/pam_winbind.conf |
643 |
- fi |
644 |
- |
645 |
- keepdir /var/cache/samba |
646 |
- keepdir /var/lib/ctdb |
647 |
- keepdir /var/lib/samba/{bind-dns,private} |
648 |
- keepdir /var/lock/samba |
649 |
- keepdir /var/log/samba |
650 |
- keepdir /var/run/samba |
651 |
-} |
652 |
- |
653 |
-multilib_src_test() { |
654 |
- if multilib_is_native_abi ; then |
655 |
- "${WAF_BINARY}" test || die "test failed" |
656 |
- fi |
657 |
-} |
658 |
- |
659 |
-pkg_postinst() { |
660 |
- ewarn "Be aware that this release contains the best of all of Samba's" |
661 |
- ewarn "technology parts, both a file server (that you can reasonably expect" |
662 |
- ewarn "to upgrade existing Samba 3.x releases to) and the AD domain" |
663 |
- ewarn "controller work previously known as 'samba4'." |
664 |
- |
665 |
- elog "For further information and migration steps make sure to read " |
666 |
- elog "https://samba.org/samba/history/${P}.html " |
667 |
- elog "https://wiki.samba.org/index.php/Samba4/HOWTO " |
668 |
-} |