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