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