1 |
commit: d268e468314c1c435da3391f8b89a1bf0c0966ee |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 2 13:34:17 2021 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 2 13:35:34 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d268e468 |
7 |
|
8 |
net-fs/samba: Bump to version 4.14.5 |
9 |
|
10 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
11 |
|
12 |
net-fs/samba/Manifest | 1 + |
13 |
net-fs/samba/samba-4.14.5.ebuild | 336 +++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 337 insertions(+) |
15 |
|
16 |
diff --git a/net-fs/samba/Manifest b/net-fs/samba/Manifest |
17 |
index edeccfba8d1..cda3f3e1059 100644 |
18 |
--- a/net-fs/samba/Manifest |
19 |
+++ b/net-fs/samba/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST samba-4.13.9.tar.gz 18443813 BLAKE2B 24046586f666e9db02e1dd71d7eb854691f39e6b575b9652a8b7c1aa5569c856dfd48911e3f221de74f9deec5808152fa2836d03bb9810d55d4f526f1567574b SHA512 35c98979c1141fe4bd700e3c8f2439ec08876697faeaced6668ea6a9fea1d8303ca34e82123499aa4a41054b9ed6e1260ae779ea8d59978ba6de6b5861f21948 |
22 |
DIST samba-4.14.4.tar.gz 18645552 BLAKE2B 4fbf4b000496b66c7c464a4b522108fde12df30dda90d0a86143c2a9ffa9d8907bbeab1bbad8974f87d4851f0afc31315ab52f27b23d19131934e89659c4e270 SHA512 200b2b2b08b369915e045f22ee993d5deea7a2533c6c582d4b88c614adcad5529109d449e843a2a1f292e5cfb1877d66421b5b0801ad988896cbe5413717e4dc |
23 |
+DIST samba-4.14.5.tar.gz 18653694 BLAKE2B 6c8fdafb20d6a42797a2f55f29e9f4a239845fd802c0384c0cb88d916f240a1ed18fb3e9a041eb70e8c2f56abb6c63f3229d40d710ab5ddf3697e0161d61726f SHA512 ef50aae93141a41034a10eb0b1a135d4b8b28c63663b930d24d6199d9ffd1fd139b6443d1859df19d3299b507a4a1c2810de057e2affd4e8b8cfc7175fdd7b39 |
24 |
|
25 |
diff --git a/net-fs/samba/samba-4.14.5.ebuild b/net-fs/samba/samba-4.14.5.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..d21397f5844 |
28 |
--- /dev/null |
29 |
+++ b/net-fs/samba/samba-4.14.5.ebuild |
30 |
@@ -0,0 +1,336 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{7..9} ) |
37 |
+PYTHON_REQ_USE="threads(+),xml(+)" |
38 |
+inherit python-single-r1 waf-utils multilib-minimal linux-info systemd pam tmpfiles |
39 |
+ |
40 |
+DESCRIPTION="Samba Suite Version 4" |
41 |
+HOMEPAGE="https://samba.org/" |
42 |
+ |
43 |
+MY_PV="${PV/_rc/rc}" |
44 |
+MY_P="${PN}-${MY_PV}" |
45 |
+if [[ ${PV} = *_rc* ]]; then |
46 |
+ SRC_URI="mirror://samba/rc/${MY_P}.tar.gz" |
47 |
+else |
48 |
+ SRC_URI="mirror://samba/stable/${MY_P}.tar.gz" |
49 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
50 |
+fi |
51 |
+S="${WORKDIR}/${MY_P}" |
52 |
+ |
53 |
+LICENSE="GPL-3" |
54 |
+SLOT="0" |
55 |
+IUSE="acl addc addns ads ceph client cluster cups debug dmapi fam glusterfs |
56 |
+gpg iprint json ldap ntvfs pam profiling-data python quota +regedit selinux |
57 |
+snapper spotlight syslog system-heimdal +system-mitkrb5 systemd test winbind |
58 |
+zeroconf" |
59 |
+ |
60 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE} |
61 |
+ addc? ( python json winbind ) |
62 |
+ addns? ( python ) |
63 |
+ ads? ( acl ldap winbind ) |
64 |
+ cluster? ( ads ) |
65 |
+ gpg? ( addc ) |
66 |
+ ntvfs? ( addc ) |
67 |
+ spotlight? ( json ) |
68 |
+ test? ( python ) |
69 |
+ !ads? ( !addc ) |
70 |
+ ?? ( system-heimdal system-mitkrb5 ) |
71 |
+" |
72 |
+ |
73 |
+# the test suite is messed, it uses system-installed samba |
74 |
+# bits instead of what was built, tests things disabled via use |
75 |
+# flags, and generally just fails to work in a way ebuilds could |
76 |
+# rely on in its current state |
77 |
+RESTRICT="test" |
78 |
+ |
79 |
+MULTILIB_WRAPPED_HEADERS=( |
80 |
+ /usr/include/samba-4.0/policy.h |
81 |
+ /usr/include/samba-4.0/dcerpc_server.h |
82 |
+ /usr/include/samba-4.0/ctdb.h |
83 |
+ /usr/include/samba-4.0/ctdb_client.h |
84 |
+ /usr/include/samba-4.0/ctdb_protocol.h |
85 |
+ /usr/include/samba-4.0/ctdb_private.h |
86 |
+ /usr/include/samba-4.0/ctdb_typesafe_cb.h |
87 |
+ /usr/include/samba-4.0/ctdb_version.h |
88 |
+) |
89 |
+ |
90 |
+COMMON_DEPEND=" |
91 |
+ >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}] |
92 |
+ dev-lang/perl:= |
93 |
+ dev-libs/icu:=[${MULTILIB_USEDEP}] |
94 |
+ dev-libs/libbsd[${MULTILIB_USEDEP}] |
95 |
+ dev-libs/libtasn1[${MULTILIB_USEDEP}] |
96 |
+ dev-libs/popt[${MULTILIB_USEDEP}] |
97 |
+ dev-perl/Parse-Yapp |
98 |
+ >=net-libs/gnutls-3.4.7[${MULTILIB_USEDEP}] |
99 |
+ net-libs/libnsl:=[${MULTILIB_USEDEP}] |
100 |
+ sys-libs/e2fsprogs-libs[${MULTILIB_USEDEP}] |
101 |
+ >=sys-libs/ldb-2.3.0[ldap(+)?,${MULTILIB_USEDEP}] |
102 |
+ <sys-libs/ldb-2.4.0[ldap(+)?,${MULTILIB_USEDEP}] |
103 |
+ sys-libs/libcap[${MULTILIB_USEDEP}] |
104 |
+ sys-libs/liburing:=[${MULTILIB_USEDEP}] |
105 |
+ sys-libs/ncurses:0= |
106 |
+ sys-libs/readline:0= |
107 |
+ >=sys-libs/talloc-2.3.2[${MULTILIB_USEDEP}] |
108 |
+ >=sys-libs/tdb-1.4.3[${MULTILIB_USEDEP}] |
109 |
+ >=sys-libs/tevent-0.10.2[${MULTILIB_USEDEP}] |
110 |
+ sys-libs/zlib[${MULTILIB_USEDEP}] |
111 |
+ virtual/libiconv |
112 |
+ $(python_gen_cond_dep " |
113 |
+ dev-python/subunit[\${PYTHON_MULTI_USEDEP},${MULTILIB_USEDEP}] |
114 |
+ addc? ( |
115 |
+ dev-python/dnspython:=[\${PYTHON_MULTI_USEDEP}] |
116 |
+ dev-python/markdown[\${PYTHON_MULTI_USEDEP}] |
117 |
+ ) |
118 |
+ addns? ( |
119 |
+ dev-python/dnspython:=[\${PYTHON_MULTI_USEDEP}] |
120 |
+ net-dns/bind-tools[gssapi] |
121 |
+ ) |
122 |
+ ") |
123 |
+ !alpha? ( !sparc? ( sys-libs/libunwind:= ) ) |
124 |
+ acl? ( virtual/acl ) |
125 |
+ ceph? ( sys-cluster/ceph ) |
126 |
+ cluster? ( net-libs/rpcsvc-proto ) |
127 |
+ cups? ( net-print/cups ) |
128 |
+ debug? ( dev-util/lttng-ust ) |
129 |
+ dmapi? ( sys-apps/dmapi ) |
130 |
+ fam? ( virtual/fam ) |
131 |
+ gpg? ( app-crypt/gpgme ) |
132 |
+ json? ( dev-libs/jansson ) |
133 |
+ ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] ) |
134 |
+ pam? ( sys-libs/pam ) |
135 |
+ python? ( |
136 |
+ sys-libs/ldb[python,${PYTHON_SINGLE_USEDEP}] |
137 |
+ sys-libs/talloc[python,${PYTHON_SINGLE_USEDEP}] |
138 |
+ sys-libs/tdb[python,${PYTHON_SINGLE_USEDEP}] |
139 |
+ sys-libs/tevent[python,${PYTHON_SINGLE_USEDEP}] |
140 |
+ ) |
141 |
+ snapper? ( sys-apps/dbus ) |
142 |
+ system-heimdal? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] ) |
143 |
+ system-mitkrb5? ( >=app-crypt/mit-krb5-1.15.1[${MULTILIB_USEDEP}] ) |
144 |
+ systemd? ( sys-apps/systemd:0= ) |
145 |
+ zeroconf? ( net-dns/avahi[dbus] ) |
146 |
+" |
147 |
+DEPEND="${COMMON_DEPEND} |
148 |
+ >=dev-util/cmocka-1.1.3[${MULTILIB_USEDEP}] |
149 |
+ net-libs/libtirpc[${MULTILIB_USEDEP}] |
150 |
+ || ( |
151 |
+ net-libs/rpcsvc-proto |
152 |
+ <sys-libs/glibc-2.26[rpc(+)] |
153 |
+ ) |
154 |
+ spotlight? ( dev-libs/glib ) |
155 |
+ test? ( |
156 |
+ !system-mitkrb5? ( |
157 |
+ >=net-dns/resolv_wrapper-1.1.4 |
158 |
+ >=net-libs/socket_wrapper-1.1.9 |
159 |
+ >=sys-libs/nss_wrapper-1.1.3 |
160 |
+ >=sys-libs/uid_wrapper-1.2.1 |
161 |
+ ) |
162 |
+ )" |
163 |
+RDEPEND="${COMMON_DEPEND} |
164 |
+ client? ( net-fs/cifs-utils[ads?] ) |
165 |
+ python? ( ${PYTHON_DEPS} ) |
166 |
+ selinux? ( sec-policy/selinux-samba ) |
167 |
+" |
168 |
+BDEPEND="${PYTHON_DEPS} |
169 |
+ app-text/docbook-xsl-stylesheets |
170 |
+ dev-libs/libxslt |
171 |
+ virtual/pkgconfig |
172 |
+" |
173 |
+ |
174 |
+PATCHES=( |
175 |
+ "${FILESDIR}/${PN}-4.4.0-pam.patch" |
176 |
+) |
177 |
+ |
178 |
+#CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)" |
179 |
+CONFDIR="${FILESDIR}/4.4" |
180 |
+ |
181 |
+WAF_BINARY="${S}/buildtools/bin/waf" |
182 |
+ |
183 |
+SHAREDMODS="" |
184 |
+ |
185 |
+pkg_setup() { |
186 |
+ # Package fails to build with distcc |
187 |
+ export DISTCC_DISABLE=1 |
188 |
+ |
189 |
+ python-single-r1_pkg_setup |
190 |
+ |
191 |
+ SHAREDMODS="$(usex snapper '' '!')vfs_snapper" |
192 |
+ if use cluster ; then |
193 |
+ SHAREDMODS+=",idmap_rid,idmap_tdb2,idmap_ad" |
194 |
+ elif use ads ; then |
195 |
+ SHAREDMODS+=",idmap_ad" |
196 |
+ fi |
197 |
+} |
198 |
+ |
199 |
+src_prepare() { |
200 |
+ default |
201 |
+ |
202 |
+ # un-bundle dnspython |
203 |
+ sed -i -e '/"dns.resolver":/d' "${S}"/third_party/wscript || die |
204 |
+ |
205 |
+ # unbundle iso8601 unless tests are enabled |
206 |
+ if ! use test ; then |
207 |
+ sed -i -e '/"iso8601":/d' "${S}"/third_party/wscript || die |
208 |
+ fi |
209 |
+ |
210 |
+ ## ugly hackaround for bug #592502 |
211 |
+ #cp /usr/include/tevent_internal.h "${S}"/lib/tevent/ || die |
212 |
+ |
213 |
+ sed -e 's:<gpgme\.h>:<gpgme/gpgme.h>:' \ |
214 |
+ -i source4/dsdb/samdb/ldb_modules/password_hash.c \ |
215 |
+ || die |
216 |
+ |
217 |
+ # Friggin' WAF shit |
218 |
+ multilib_copy_sources |
219 |
+} |
220 |
+ |
221 |
+multilib_src_configure() { |
222 |
+ # when specifying libs for samba build you must append NONE to the end to |
223 |
+ # stop it automatically including things |
224 |
+ local bundled_libs="NONE" |
225 |
+ if ! use system-heimdal && ! use system-mitkrb5 ; then |
226 |
+ bundled_libs="heimbase,heimntlm,hdb,kdc,krb5,wind,gssapi,hcrypto,hx509,roken,asn1,com_err,NONE" |
227 |
+ fi |
228 |
+ |
229 |
+ local myconf=( |
230 |
+ --enable-fhs |
231 |
+ --sysconfdir="${EPREFIX}/etc" |
232 |
+ --localstatedir="${EPREFIX}/var" |
233 |
+ --with-modulesdir="${EPREFIX}/usr/$(get_libdir)/samba" |
234 |
+ --with-piddir="${EPREFIX}/run/${PN}" |
235 |
+ --bundled-libraries="${bundled_libs}" |
236 |
+ --builtin-libraries=NONE |
237 |
+ --disable-rpath |
238 |
+ --disable-rpath-install |
239 |
+ --nopyc |
240 |
+ --nopyo |
241 |
+ --without-winexe |
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_enable glusterfs) |
252 |
+ $(multilib_native_use_with gpg gpgme) |
253 |
+ $(multilib_native_use_with json) |
254 |
+ $(multilib_native_use_enable iprint) |
255 |
+ $(multilib_native_use_with ntvfs ntvfs-fileserver) |
256 |
+ $(multilib_native_use_with pam) |
257 |
+ $(multilib_native_usex pam "--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '') |
258 |
+ $(multilib_native_use_with quota quotas) |
259 |
+ $(multilib_native_use_with regedit) |
260 |
+ $(multilib_native_use_enable spotlight) |
261 |
+ $(multilib_native_use_with syslog) |
262 |
+ $(multilib_native_use_with systemd) |
263 |
+ --systemd-install-services |
264 |
+ --with-systemddir="$(systemd_get_systemunitdir)" |
265 |
+ $(multilib_native_use_with winbind) |
266 |
+ $(multilib_native_usex python '' '--disable-python') |
267 |
+ $(multilib_native_use_enable zeroconf avahi) |
268 |
+ $(multilib_native_usex test '--enable-selftest' '') |
269 |
+ $(usex system-mitkrb5 "--with-system-mitkrb5 $(multilib_native_usex addc --with-experimental-mit-ad-dc '')" '') |
270 |
+ $(use_with debug lttng) |
271 |
+ $(use_with ldap) |
272 |
+ $(use_with profiling-data) |
273 |
+ # bug #683148 |
274 |
+ --jobs 1 |
275 |
+ ) |
276 |
+ |
277 |
+ if multilib_is_native_abi ; then |
278 |
+ myconf+=( --with-shared-modules=${SHAREDMODS} ) |
279 |
+ else |
280 |
+ myconf+=( --with-shared-modules=DEFAULT,!vfs_snapper ) |
281 |
+ fi |
282 |
+ |
283 |
+ CPPFLAGS="-I${SYSROOT}${EPREFIX}/usr/include/et ${CPPFLAGS}" \ |
284 |
+ waf-utils_src_configure ${myconf[@]} |
285 |
+} |
286 |
+ |
287 |
+multilib_src_compile() { |
288 |
+ waf-utils_src_compile |
289 |
+} |
290 |
+ |
291 |
+multilib_src_install() { |
292 |
+ waf-utils_src_install |
293 |
+ |
294 |
+ # Make all .so files executable |
295 |
+ find "${ED}" -type f -name "*.so" -exec chmod +x {} + || die |
296 |
+ |
297 |
+ if multilib_is_native_abi ; then |
298 |
+ # install ldap schema for server (bug #491002) |
299 |
+ if use ldap ; then |
300 |
+ insinto /etc/openldap/schema |
301 |
+ doins examples/LDAP/samba.schema |
302 |
+ fi |
303 |
+ |
304 |
+ # create symlink for cups (bug #552310) |
305 |
+ if use cups ; then |
306 |
+ dosym ../../../bin/smbspool /usr/libexec/cups/backend/smb |
307 |
+ fi |
308 |
+ |
309 |
+ # install example config file |
310 |
+ insinto /etc/samba |
311 |
+ doins examples/smb.conf.default |
312 |
+ |
313 |
+ # Fix paths in example file (#603964) |
314 |
+ sed \ |
315 |
+ -e '/log file =/s@/usr/local/samba/var/@/var/log/samba/@' \ |
316 |
+ -e '/include =/s@/usr/local/samba/lib/@/etc/samba/@' \ |
317 |
+ -e '/path =/s@/usr/local/samba/lib/@/var/lib/samba/@' \ |
318 |
+ -e '/path =/s@/usr/local/samba/@/var/lib/samba/@' \ |
319 |
+ -e '/path =/s@/usr/spool/samba@/var/spool/samba@' \ |
320 |
+ -i "${ED}"/etc/samba/smb.conf.default || die |
321 |
+ |
322 |
+ # Install init script and conf.d file |
323 |
+ newinitd "${CONFDIR}/samba4.initd-r1" samba |
324 |
+ newconfd "${CONFDIR}/samba4.confd" samba |
325 |
+ |
326 |
+ dotmpfiles "${FILESDIR}"/samba.conf |
327 |
+ use addc || rm "${D}/$(systemd_get_systemunitdir)/samba.service" || die |
328 |
+ |
329 |
+ # Preserve functionality for old gentoo-specific unit names |
330 |
+ dosym nmb.service "$(systemd_get_systemunitdir)/nmbd.service" |
331 |
+ dosym smb.service "$(systemd_get_systemunitdir)/smbd.service" |
332 |
+ dosym winbind.service "$(systemd_get_systemunitdir)/winbindd.service" |
333 |
+ fi |
334 |
+ |
335 |
+ if use pam && use winbind ; then |
336 |
+ newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind |
337 |
+ # bugs #376853 and #590374 |
338 |
+ insinto /etc/security |
339 |
+ doins examples/pam_winbind/pam_winbind.conf |
340 |
+ fi |
341 |
+ |
342 |
+ keepdir /var/cache/samba |
343 |
+ keepdir /var/lib/ctdb |
344 |
+ keepdir /var/lib/samba/{bind-dns,private} |
345 |
+ keepdir /var/lock/samba |
346 |
+ keepdir /var/log/samba |
347 |
+} |
348 |
+ |
349 |
+multilib_src_test() { |
350 |
+ if multilib_is_native_abi ; then |
351 |
+ "${WAF_BINARY}" test || die "test failed" |
352 |
+ fi |
353 |
+} |
354 |
+ |
355 |
+pkg_postinst() { |
356 |
+ if [[ -z ${REPLACING_VERSIONS} ]] ; then |
357 |
+ elog "Be aware that this release contains the best of all of Samba's" |
358 |
+ elog "technology parts, both a file server (that you can reasonably expect" |
359 |
+ elog "to upgrade existing Samba 3.x releases to) and the AD domain" |
360 |
+ elog "controller work previously known as 'samba4'." |
361 |
+ elog |
362 |
+ fi |
363 |
+ elog "For further information and migration steps make sure to read " |
364 |
+ elog "https://samba.org/samba/history/${P}.html " |
365 |
+ elog "https://wiki.samba.org/index.php/Samba4/HOWTO " |
366 |
+} |