Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-fs/samba/
Date: Mon, 02 Mar 2020 17:10:26
Message-Id: 1583169013.006c501897c01644ae47534393be295b4ed8a5d7.polynomial-c@gentoo
1 commit: 006c501897c01644ae47534393be295b4ed8a5d7
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 2 17:10:03 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 2 17:10:13 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=006c5018
7
8 net-fs/samba: Bump to version 4.12.0_rc4
9
10 Package-Manager: Portage-2.3.91, Repoman-2.3.20
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 net-fs/samba/Manifest | 1 +
14 net-fs/samba/samba-4.12.0_rc4.ebuild | 310 +++++++++++++++++++++++++++++++++++
15 2 files changed, 311 insertions(+)
16
17 diff --git a/net-fs/samba/Manifest b/net-fs/samba/Manifest
18 index 540ad77ecc7..a57a81fb5bd 100644
19 --- a/net-fs/samba/Manifest
20 +++ b/net-fs/samba/Manifest
21 @@ -3,6 +3,7 @@ DIST samba-4.10.13.tar.gz 18350580 BLAKE2B ab97d46284bee60762543ed1c27846e22dd98
22 DIST samba-4.10.2.tar.gz 18280710 BLAKE2B f15b117d1159dfa6cd279c5011629d688fcfba94a2ca8184a827d0787a31f76a38f46b355454b916f2e62c0a88109b86664f6bb16fc0e23d0f61d09908e587cd SHA512 3d146ea12567ebb02a7babcad779b82339ffbfb19f6f2be5cac33eb18af2c9b546dc1cd910072a5c9e152ba9c4a632ed6870c48a8f6ad9d04304b130f240a4bf
23 DIST samba-4.11.4.tar.gz 18530105 BLAKE2B 39e0cc6965681f3d64e861edebe2b77e558b68d9a3f4d7fa52e6ccfe704f2294fb3fb1a619d07d2130f36b1bf572300c733a273ccf78d554807e0f5897dcbcff SHA512 18ae1cb8b092c441a3fd4c6ecc9f35841dc51e3061f435107f7d2579b5e8ca6f8c96a947627dbd401b81c7de2293ff2587c30be694e160bf8a10c6d15aa73880
24 DIST samba-4.11.6.tar.gz 18541566 BLAKE2B 2b4a40be7cec8a9706cbc344796885f59403aa11ca3d8a7dc40b3d287ec222c11d7395fd193c4b66c4116f1bffd869caf444a950d508f5a9a596db32553e1461 SHA512 3815080a1693c596a126371a5ea4e8534317a7266803c7de13a7e5b3ee9757dfbf13c0de20d498a6683d3aaf56941ed42f289e3c24f88713529a5f047a691af2
25 +DIST samba-4.12.0rc4.tar.gz 18157733 BLAKE2B 2001ae2a680769ff94879b2399c0822ad331557bc45547e5648aa993e5267eb5259ff596810a46f23df23e0264d110781de4a5f0051ba30096be6343e463989e SHA512 3f4d2d51dc3b6e1e6042f69990aa1f3969b23dc555620d748ff5dbb4f8291cf12b570deb0f5e7b328bde3ad9887210a994566a18d4f26c012f17d483e8e6944b
26 DIST samba-4.5.11-disable-python-patches.tar.xz 6292 BLAKE2B c2a32a1059a02bc1c87ce5f604cbc5878c654b8f693c8486b5ba63b37513444915a7b6389fe82b7e31ab2f9577dd8462eddba60b4f4f756b4ed1145ce7bd90ae SHA512 f0e3076e3e1ecaae3f06b3ef30efc81719fb3f63a1041dcbdae4b62ca4cf693732f9eb16f047d046d4930136fed82194e82b455ea888e12cf845b3e6a122d57d
27 DIST samba-4.5.16.tar.gz 21024396 BLAKE2B e737559fb748044076608fa233700eb54c7e1c56bc234763f062b6341a179cc78a4a8cdf9f3d6f4d7f3cf8a79f846852ddd5cc753a468c3adb3a0451e1809ed9 SHA512 de8a41013cfb5ef3adcb290efd97a78a5de876d90ad05764d631f14e663a1849bb53e4ac394b46c906f1109be5748fee9316407a659c57007d36851ae8adcd7f
28 DIST samba-4.8.12.tar.gz 17764832 BLAKE2B d2c0c8b9090da7c94b9343fd3f416e9aafad64273abc9be0639b011f71072926a0b303cf53e63c4e470aeb168e8ec23003b5f4ed4258aac8d6b3d029f71fba6f SHA512 f29595f6390d01860cb6acd750d2e36b4d207dd1da16465c21c8d6d732ce27bd0582a0f34296081e2659638d839c8b12f28deccc31982afa94650da8bce8df8b
29
30 diff --git a/net-fs/samba/samba-4.12.0_rc4.ebuild b/net-fs/samba/samba-4.12.0_rc4.ebuild
31 new file mode 100644
32 index 00000000000..6deb9ddf54b
33 --- /dev/null
34 +++ b/net-fs/samba/samba-4.12.0_rc4.ebuild
35 @@ -0,0 +1,310 @@
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 +# sys-apps/attr is an automagic dependency (see bug #489748)
77 +CDEPEND="
78 + >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}]
79 + dev-lang/perl:=
80 + dev-libs/icu[${MULTILIB_USEDEP}]
81 + dev-libs/libbsd[${MULTILIB_USEDEP}]
82 + dev-libs/libtasn1[${MULTILIB_USEDEP}]
83 + dev-libs/popt[${MULTILIB_USEDEP}]
84 + dev-perl/Parse-Yapp
85 + >=net-libs/gnutls-3.4.7[${MULTILIB_USEDEP}]
86 + net-libs/libnsl:=[${MULTILIB_USEDEP}]
87 + sys-apps/dbus[${MULTILIB_USEDEP}]
88 + sys-libs/e2fsprogs-libs[${MULTILIB_USEDEP}]
89 + >=sys-libs/ldb-2.1.1[ldap(+)?,python?,${PYTHON_SINGLE_USEDEP},${MULTILIB_USEDEP}]
90 + <sys-libs/ldb-2.2.0[ldap(+)?,python?,${PYTHON_SINGLE_USEDEP},${MULTILIB_USEDEP}]
91 + sys-libs/libcap[${MULTILIB_USEDEP}]
92 + sys-libs/liburing[${MULTILIB_USEDEP}]
93 + sys-libs/ncurses:0=
94 + sys-libs/readline:0=
95 + >=sys-libs/talloc-2.3.1[python?,${PYTHON_SINGLE_USEDEP},${MULTILIB_USEDEP}]
96 + >=sys-libs/tdb-1.4.3[python?,${PYTHON_SINGLE_USEDEP},${MULTILIB_USEDEP}]
97 + >=sys-libs/tevent-0.10.2[python?,${PYTHON_SINGLE_USEDEP},${MULTILIB_USEDEP}]
98 + sys-libs/zlib[${MULTILIB_USEDEP}]
99 + virtual/libiconv
100 + pam? ( sys-libs/pam )
101 + acl? ( virtual/acl )
102 + $(python_gen_cond_dep "
103 + dev-python/subunit[\${PYTHON_MULTI_USEDEP},${MULTILIB_USEDEP}]
104 + addns? (
105 + net-dns/bind-tools[gssapi]
106 + dev-python/dnspython:=[\${PYTHON_MULTI_USEDEP}]
107 + )
108 + ")
109 + ceph? ( sys-cluster/ceph )
110 + cluster? (
111 + net-libs/rpcsvc-proto
112 + !dev-db/ctdb
113 + )
114 + cups? ( net-print/cups )
115 + debug? ( dev-util/lttng-ust )
116 + dmapi? ( sys-apps/dmapi )
117 + fam? ( virtual/fam )
118 + gpg? ( app-crypt/gpgme )
119 + json? ( dev-libs/jansson )
120 + ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] )
121 + system-heimdal? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] )
122 + system-mitkrb5? ( >=app-crypt/mit-krb5-1.15.1[${MULTILIB_USEDEP}] )
123 + systemd? ( sys-apps/systemd:0= )
124 + zeroconf? ( net-dns/avahi )
125 +"
126 +DEPEND="${CDEPEND}
127 + ${PYTHON_DEPS}
128 + app-text/docbook-xsl-stylesheets
129 + dev-libs/libxslt
130 + net-libs/libtirpc[${MULTILIB_USEDEP}]
131 + virtual/pkgconfig
132 + || (
133 + net-libs/rpcsvc-proto
134 + <sys-libs/glibc-2.26[rpc(+)]
135 + )
136 + test? (
137 + !system-mitkrb5? (
138 + >=sys-libs/nss_wrapper-1.1.3
139 + >=net-dns/resolv_wrapper-1.1.4
140 + >=net-libs/socket_wrapper-1.1.9
141 + >=sys-libs/uid_wrapper-1.2.1
142 + )
143 + )"
144 +RDEPEND="${CDEPEND}
145 + python? ( ${PYTHON_DEPS} )
146 + client? ( net-fs/cifs-utils[ads?] )
147 + selinux? ( sec-policy/selinux-samba )
148 +"
149 +
150 +REQUIRED_USE="
151 + addc? ( python json winbind )
152 + addns? ( python )
153 + ads? ( acl ldap winbind )
154 + cluster? ( ads )
155 + gpg? ( addc )
156 + test? ( python )
157 + ?? ( system-heimdal system-mitkrb5 )
158 + ${PYTHON_REQUIRED_USE}
159 +"
160 +
161 +# the test suite is messed, it uses system-installed samba
162 +# bits instead of what was built, tests things disabled via use
163 +# flags, and generally just fails to work in a way ebuilds could
164 +# rely on in its current state
165 +RESTRICT="test"
166 +
167 +S="${WORKDIR}/${MY_P}"
168 +
169 +PATCHES=(
170 + "${FILESDIR}/${PN}-4.4.0-pam.patch"
171 + "${FILESDIR}/${PN}-4.9.2-timespec.patch"
172 +)
173 +
174 +#CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
175 +CONFDIR="${FILESDIR}/4.4"
176 +
177 +WAF_BINARY="${S}/buildtools/bin/waf"
178 +
179 +SHAREDMODS=""
180 +
181 +pkg_setup() {
182 + python-single-r1_pkg_setup
183 + if use cluster ; then
184 + SHAREDMODS="idmap_rid,idmap_tdb2,idmap_ad"
185 + elif use ads ; then
186 + SHAREDMODS="idmap_ad"
187 + fi
188 +}
189 +
190 +src_prepare() {
191 + default
192 +
193 + # un-bundle dnspython
194 + sed -i -e '/"dns.resolver":/d' "${S}"/third_party/wscript || die
195 +
196 + # unbundle iso8601 unless tests are enabled
197 + if ! use test ; then
198 + sed -i -e '/"iso8601":/d' "${S}"/third_party/wscript || die
199 + fi
200 +
201 + # ugly hackaround for bug #592502
202 + cp /usr/include/tevent_internal.h "${S}"/lib/tevent/ || die
203 +
204 + sed -e 's:<gpgme\.h>:<gpgme/gpgme.h>:' \
205 + -i source4/dsdb/samdb/ldb_modules/password_hash.c \
206 + || die
207 +
208 + # Friggin' WAF shit
209 + multilib_copy_sources
210 +}
211 +
212 +multilib_src_configure() {
213 + # when specifying libs for samba build you must append NONE to the end to
214 + # stop it automatically including things
215 + local bundled_libs="NONE"
216 + if ! use system-heimdal && ! use system-mitkrb5 ; then
217 + bundled_libs="heimbase,heimntlm,hdb,kdc,krb5,wind,gssapi,hcrypto,hx509,roken,asn1,com_err,NONE"
218 + fi
219 +
220 + local myconf=(
221 + --enable-fhs
222 + --sysconfdir="${EPREFIX}/etc"
223 + --localstatedir="${EPREFIX}/var"
224 + --with-modulesdir="${EPREFIX}/usr/$(get_libdir)/samba"
225 + --with-piddir="${EPREFIX}/run/${PN}"
226 + --bundled-libraries="${bundled_libs}"
227 + --builtin-libraries=NONE
228 + --disable-rpath
229 + --disable-rpath-install
230 + --nopyc
231 + --nopyo
232 + $(multilib_native_use_with acl acl-support)
233 + $(multilib_native_usex addc '' '--without-ad-dc')
234 + $(multilib_native_use_with addns dnsupdate)
235 + $(multilib_native_use_with ads)
236 + $(multilib_native_use_enable ceph cephfs)
237 + $(multilib_native_use_with cluster cluster-support)
238 + $(multilib_native_use_enable cups)
239 + $(multilib_native_use_with dmapi)
240 + $(multilib_native_use_with fam)
241 + $(multilib_native_use_with gpg gpgme)
242 + $(multilib_native_use_with json)
243 + $(multilib_native_use_enable iprint)
244 + $(multilib_native_use_with pam)
245 + $(multilib_native_usex pam "--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '')
246 + $(multilib_native_use_with quota quotas)
247 + $(multilib_native_use_with syslog)
248 + $(multilib_native_use_with systemd)
249 + --systemd-install-services
250 + --with-systemddir="$(systemd_get_systemunitdir)"
251 + $(multilib_native_use_with winbind)
252 + $(multilib_native_usex python '' '--disable-python')
253 + $(multilib_native_use_enable zeroconf avahi)
254 + $(multilib_native_usex test '--enable-selftest' '')
255 + $(usex system-mitkrb5 "--with-system-mitkrb5 $(multilib_native_usex addc --with-experimental-mit-ad-dc '')" '')
256 + $(use_with debug lttng)
257 + $(use_with ldap)
258 + $(use_with profiling-data)
259 + # bug #683148
260 + --jobs 1
261 + )
262 +
263 + multilib_is_native_abi && myconf+=( --with-shared-modules=${SHAREDMODS} )
264 +
265 + CPPFLAGS="-I${SYSROOT}${EPREFIX}/usr/include/et ${CPPFLAGS}" \
266 + waf-utils_src_configure ${myconf[@]}
267 +}
268 +
269 +multilib_src_compile() {
270 + waf-utils_src_compile
271 +}
272 +
273 +multilib_src_install() {
274 + waf-utils_src_install
275 +
276 + # Make all .so files executable
277 + find "${ED}" -type f -name "*.so" -exec chmod +x {} + || die
278 +
279 + if multilib_is_native_abi ; then
280 + # install ldap schema for server (bug #491002)
281 + if use ldap ; then
282 + insinto /etc/openldap/schema
283 + doins examples/LDAP/samba.schema
284 + fi
285 +
286 + # create symlink for cups (bug #552310)
287 + if use cups ; then
288 + dosym ../../../bin/smbspool /usr/libexec/cups/backend/smb
289 + fi
290 +
291 + # install example config file
292 + insinto /etc/samba
293 + doins examples/smb.conf.default
294 +
295 + # Fix paths in example file (#603964)
296 + sed \
297 + -e '/log file =/s@/usr/local/samba/var/@/var/log/samba/@' \
298 + -e '/include =/s@/usr/local/samba/lib/@/etc/samba/@' \
299 + -e '/path =/s@/usr/local/samba/lib/@/var/lib/samba/@' \
300 + -e '/path =/s@/usr/local/samba/@/var/lib/samba/@' \
301 + -e '/path =/s@/usr/spool/samba@/var/spool/samba@' \
302 + -i "${ED%/}"/etc/samba/smb.conf.default || die
303 +
304 + # Install init script and conf.d file
305 + newinitd "${CONFDIR}/samba4.initd-r1" samba
306 + newconfd "${CONFDIR}/samba4.confd" samba
307 +
308 + systemd_dotmpfilesd "${FILESDIR}"/samba.conf
309 + use addc || rm "${D}/$(systemd_get_systemunitdir)/samba.service" || die
310 +
311 + # Preserve functionality for old gentoo-specific unit names
312 + dosym nmb.service "$(systemd_get_systemunitdir)/nmbd.service"
313 + dosym smb.service "$(systemd_get_systemunitdir)/smbd.service"
314 + dosym winbind.service "$(systemd_get_systemunitdir)/winbindd.service"
315 + fi
316 +
317 + if use pam && use winbind ; then
318 + newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind
319 + # bugs #376853 and #590374
320 + insinto /etc/security
321 + doins examples/pam_winbind/pam_winbind.conf
322 + fi
323 +
324 + keepdir /var/cache/samba
325 + keepdir /var/lib/ctdb
326 + keepdir /var/lib/samba/{bind-dns,private}
327 + keepdir /var/log/samba
328 +}
329 +
330 +multilib_src_test() {
331 + if multilib_is_native_abi ; then
332 + "${WAF_BINARY}" test || die "test failed"
333 + fi
334 +}
335 +
336 +pkg_postinst() {
337 + ewarn "Be aware the this release contains the best of all of Samba's"
338 + ewarn "technology parts, both a file server (that you can reasonably expect"
339 + ewarn "to upgrade existing Samba 3.x releases to) and the AD domain"
340 + ewarn "controller work previously known as 'samba4'."
341 +
342 + elog "For further information and migration steps make sure to read "
343 + elog "https://samba.org/samba/history/${P}.html "
344 + elog "https://wiki.samba.org/index.php/Samba4/HOWTO "
345 +}