1 |
commit: 4e29245879a34247ae4e46eb35d6afac3125f725 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 24 07:19:11 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 24 07:35:14 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e292458 |
7 |
|
8 |
net-fs/samba: Bump to version 4.7.11 |
9 |
|
10 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
|
13 |
net-fs/samba/Manifest | 1 + |
14 |
net-fs/samba/samba-4.7.11.ebuild | 319 +++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 320 insertions(+) |
16 |
|
17 |
diff --git a/net-fs/samba/Manifest b/net-fs/samba/Manifest |
18 |
index 3882da56dcd..73db6eca7c4 100644 |
19 |
--- a/net-fs/samba/Manifest |
20 |
+++ b/net-fs/samba/Manifest |
21 |
@@ -1,6 +1,7 @@ |
22 |
DIST samba-4.5.11-disable-python-patches.tar.xz 6292 BLAKE2B c2a32a1059a02bc1c87ce5f604cbc5878c654b8f693c8486b5ba63b37513444915a7b6389fe82b7e31ab2f9577dd8462eddba60b4f4f756b4ed1145ce7bd90ae SHA512 f0e3076e3e1ecaae3f06b3ef30efc81719fb3f63a1041dcbdae4b62ca4cf693732f9eb16f047d046d4930136fed82194e82b455ea888e12cf845b3e6a122d57d |
23 |
DIST samba-4.5.16.tar.gz 21024396 BLAKE2B e737559fb748044076608fa233700eb54c7e1c56bc234763f062b6341a179cc78a4a8cdf9f3d6f4d7f3cf8a79f846852ddd5cc753a468c3adb3a0451e1809ed9 SHA512 de8a41013cfb5ef3adcb290efd97a78a5de876d90ad05764d631f14e663a1849bb53e4ac394b46c906f1109be5748fee9316407a659c57007d36851ae8adcd7f |
24 |
DIST samba-4.7.10.tar.gz 16911799 BLAKE2B e8ee8763c9843d048589cb17c1b78a3e3983ff8766b2981a7da0c2e6f8425a85c97f2619a9a8259a94ccd07d7aa55bb9bf928261959c04eb0b7fdfe318fc2433 SHA512 4165cf9ec1c6355d0832fb4e17939f8f1544802e6e144d51a4f6030ad54660bb468b586d3db488f5e13f3d451fe4e2af94b748d2432da62ce256eb2467d3a51c |
25 |
+DIST samba-4.7.11.tar.gz 16918373 BLAKE2B 3d74c3b7c6ce0563474ab01583320b31cf37af69e5c72bbe0447832256aae20352647d1f1a8d66d5b8f3a64a7cee66bedf97f273054b3455c279486043331520 SHA512 4fd05d3dd88f08a9ae7853266f40eefe089f80018331381396e8eeea66b80bb29132d75d5690e6c365c0347cd3a9ddf5f8992d515a0c5c11c2da915960a57f4f |
26 |
DIST samba-4.8.5.tar.gz 17715401 BLAKE2B fc1aef2f5362fff1870abe40eebfe932f5ca347e65d1a2502ee19c9fce8cbf71e3f4181a18056d8d6b3e92d2515f946e3dc746b00f2398d91f88b1172e91cd43 SHA512 23a88c48214c3bf4cbc135cb84873bb8d12f32187ccbda47b02495fa4a12458f103de5e968e8f9a5958c116f618332cfffbf54d084e4f1e363fbf079b897e3a0 |
27 |
DIST samba-4.8.6.tar.gz 17723841 BLAKE2B 38da52e14b4417f26462eef2226c4498e54d2c276b4056e8c6d6c66079f33bcda24c1eab30b29bc7413280ec89a74a55e043e8274ac50f9a25bae7563717ff34 SHA512 f6afab5ca466bd8653a56c205b71ce94ecf0ad0c6e4c9d64cbba7b1e56f1987bc2022e6b629d87eb6078e3f6ba53833c19cfb41e40b6d589e4317ea9d85de273 |
28 |
DIST samba-4.9.1.tar.gz 18018259 BLAKE2B 783423098864c391f08b30e05b70308e922bdb4dad08b8b0b4d1112808357b9bb96aad7a094d0fe2e308f84a143d5f90be523b9c3551a3068ecdcad7347613f6 SHA512 267673b6d6ab0db59063480c20f02e5864ef96e9ad1097c23a99b2ab4b5fd2252193d7a152729b40cae0751fb9b0b108b087a190f5db11eabbd075224bd6e663 |
29 |
|
30 |
diff --git a/net-fs/samba/samba-4.7.11.ebuild b/net-fs/samba/samba-4.7.11.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..4d0da786d55 |
33 |
--- /dev/null |
34 |
+++ b/net-fs/samba/samba-4.7.11.ebuild |
35 |
@@ -0,0 +1,319 @@ |
36 |
+# Copyright 1999-2018 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=6 |
40 |
+PYTHON_COMPAT=( python2_7 ) |
41 |
+PYTHON_REQ_USE='threads(+),xml(+)' |
42 |
+ |
43 |
+inherit python-single-r1 waf-utils multilib-minimal linux-info systemd eutils |
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 ~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 gnutls gpg iprint ldap pam python |
62 |
+quota selinux syslog 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 |
+# sys-apps/attr is an automagic dependency (see bug #489748) |
76 |
+CDEPEND=" |
77 |
+ >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}] |
78 |
+ dev-lang/perl:= |
79 |
+ dev-libs/libaio[${MULTILIB_USEDEP}] |
80 |
+ dev-libs/libbsd[${MULTILIB_USEDEP}] |
81 |
+ dev-libs/iniparser:0 |
82 |
+ dev-libs/popt[${MULTILIB_USEDEP}] |
83 |
+ dev-python/subunit[${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
84 |
+ >=dev-util/cmocka-1.1.1[${MULTILIB_USEDEP}] |
85 |
+ net-libs/libnsl:=[${MULTILIB_USEDEP}] |
86 |
+ sys-apps/attr[${MULTILIB_USEDEP}] |
87 |
+ >=sys-libs/ldb-1.2.3[ldap(+)?,python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
88 |
+ <sys-libs/ldb-1.3.0[ldap(+)?,python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
89 |
+ sys-libs/libcap |
90 |
+ sys-libs/ncurses:0=[${MULTILIB_USEDEP}] |
91 |
+ sys-libs/readline:0= |
92 |
+ >=sys-libs/talloc-2.1.9[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
93 |
+ >=sys-libs/tdb-1.3.14[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
94 |
+ >=sys-libs/tevent-0.9.36[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
95 |
+ sys-libs/zlib[${MULTILIB_USEDEP}] |
96 |
+ virtual/libiconv |
97 |
+ pam? ( virtual/pam ) |
98 |
+ acl? ( virtual/acl ) |
99 |
+ addns? ( |
100 |
+ net-dns/bind-tools[gssapi] |
101 |
+ dev-python/dnspython:=[${PYTHON_USEDEP}] |
102 |
+ ) |
103 |
+ ceph? ( sys-cluster/ceph ) |
104 |
+ cluster? ( |
105 |
+ net-libs/rpcsvc-proto |
106 |
+ !dev-db/ctdb |
107 |
+ ) |
108 |
+ cups? ( net-print/cups ) |
109 |
+ debug? ( dev-util/lttng-ust ) |
110 |
+ dmapi? ( sys-apps/dmapi ) |
111 |
+ fam? ( virtual/fam ) |
112 |
+ gnutls? ( |
113 |
+ dev-libs/libgcrypt:0 |
114 |
+ >=net-libs/gnutls-1.4.0 |
115 |
+ ) |
116 |
+ gpg? ( app-crypt/gpgme ) |
117 |
+ ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] ) |
118 |
+ system-heimdal? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] ) |
119 |
+ system-mitkrb5? ( >=app-crypt/mit-krb5-1.15.1[${MULTILIB_USEDEP}] ) |
120 |
+ systemd? ( sys-apps/systemd:0= ) |
121 |
+" |
122 |
+DEPEND="${CDEPEND} |
123 |
+ ${PYTHON_DEPS} |
124 |
+ app-text/docbook-xsl-stylesheets |
125 |
+ dev-libs/libxslt |
126 |
+ virtual/pkgconfig |
127 |
+ net-libs/libtirpc[${MULTILIB_USEDEP}] |
128 |
+ || ( |
129 |
+ net-libs/rpcsvc-proto |
130 |
+ <sys-libs/glibc-2.26[rpc(+)] |
131 |
+ ) |
132 |
+ test? ( |
133 |
+ !system-mitkrb5? ( |
134 |
+ >=sys-libs/nss_wrapper-1.1.3 |
135 |
+ >=net-dns/resolv_wrapper-1.1.4 |
136 |
+ >=net-libs/socket_wrapper-1.1.7 |
137 |
+ >=sys-libs/uid_wrapper-1.2.1 |
138 |
+ ) |
139 |
+ )" |
140 |
+RDEPEND="${CDEPEND} |
141 |
+ python? ( ${PYTHON_DEPS} ) |
142 |
+ client? ( net-fs/cifs-utils[ads?] ) |
143 |
+ selinux? ( sec-policy/selinux-samba ) |
144 |
+ !dev-perl/Parse-Yapp |
145 |
+" |
146 |
+ |
147 |
+REQUIRED_USE=" |
148 |
+ addc? ( python gnutls ) |
149 |
+ addns? ( python ) |
150 |
+ ads? ( acl gnutls ldap ) |
151 |
+ cluster? ( ads ) |
152 |
+ gpg? ( addc ) |
153 |
+ test? ( python ) |
154 |
+ ?? ( system-heimdal system-mitkrb5 ) |
155 |
+ ${PYTHON_REQUIRED_USE} |
156 |
+" |
157 |
+ |
158 |
+# the test suite is messed, it uses system-installed samba |
159 |
+# bits instead of what was built, tests things disabled via use |
160 |
+# flags, and generally just fails to work in a way ebuilds could |
161 |
+# rely on in its current state |
162 |
+RESTRICT="test" |
163 |
+ |
164 |
+S="${WORKDIR}/${MY_P}" |
165 |
+ |
166 |
+PATCHES=( |
167 |
+ "${FILESDIR}/${PN}-4.4.0-pam.patch" |
168 |
+ "${FILESDIR}/${PN}-4.5.1-compile_et_fix.patch" |
169 |
+ "${FILESDIR}"/talloc-disable-python.patch |
170 |
+ "${FILESDIR}/${PN}-4.7.3-krb-cross-compile.patch" |
171 |
+) |
172 |
+ |
173 |
+#CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)" |
174 |
+CONFDIR="${FILESDIR}/4.4" |
175 |
+ |
176 |
+WAF_BINARY="${S}/buildtools/bin/waf" |
177 |
+ |
178 |
+SHAREDMODS="" |
179 |
+ |
180 |
+pkg_setup() { |
181 |
+ python-single-r1_pkg_setup |
182 |
+ if use cluster ; then |
183 |
+ SHAREDMODS="idmap_rid,idmap_tdb2,idmap_ad" |
184 |
+ elif use ads ; then |
185 |
+ SHAREDMODS="idmap_ad" |
186 |
+ fi |
187 |
+} |
188 |
+ |
189 |
+src_prepare() { |
190 |
+ default |
191 |
+ |
192 |
+ # un-bundle dnspython |
193 |
+ sed -i -e '/"dns.resolver":/d' "${S}"/third_party/wscript || die |
194 |
+ |
195 |
+ # unbundle iso8601 unless tests are enabled |
196 |
+ use test || sed -i -e '/"iso8601":/d' "${S}"/third_party/wscript || die |
197 |
+ |
198 |
+ # ugly hackaround for bug #592502 |
199 |
+ cp /usr/include/tevent_internal.h "${S}"/lib/tevent/ || die |
200 |
+ |
201 |
+ sed -e 's:<gpgme\.h>:<gpgme/gpgme.h>:' \ |
202 |
+ -i source4/dsdb/samdb/ldb_modules/password_hash.c \ |
203 |
+ || die |
204 |
+ |
205 |
+ # Friggin' WAF shit |
206 |
+ multilib_copy_sources |
207 |
+} |
208 |
+ |
209 |
+multilib_src_configure() { |
210 |
+ # when specifying libs for samba build you must append NONE to the end to |
211 |
+ # stop it automatically including things |
212 |
+ local bundled_libs="NONE" |
213 |
+ if ! use system-heimdal && ! use system-mitkrb5 ; then |
214 |
+ bundled_libs="heimbase,heimntlm,hdb,kdc,krb5,wind,gssapi,hcrypto,hx509,roken,asn1,com_err,NONE" |
215 |
+ fi |
216 |
+ |
217 |
+ local myconf=() |
218 |
+ myconf=( |
219 |
+ --enable-fhs |
220 |
+ --sysconfdir="${EPREFIX}/etc" |
221 |
+ --localstatedir="${EPREFIX}/var" |
222 |
+ --with-modulesdir="${EPREFIX}/usr/$(get_libdir)/samba" |
223 |
+ --with-piddir="${EPREFIX}/run/${PN}" |
224 |
+ --bundled-libraries="${bundled_libs}" |
225 |
+ --builtin-libraries=NONE |
226 |
+ --disable-rpath |
227 |
+ --disable-rpath-install |
228 |
+ --nopyc |
229 |
+ --nopyo |
230 |
+ ) |
231 |
+ if multilib_is_native_abi ; then |
232 |
+ myconf+=( |
233 |
+ $(use_with acl acl-support) |
234 |
+ $(usex addc '' '--without-ad-dc') |
235 |
+ $(use_with addns dnsupdate) |
236 |
+ $(use_with ads) |
237 |
+ $(use_enable ceph cephfs) |
238 |
+ $(use_with cluster cluster-support) |
239 |
+ $(use_enable cups) |
240 |
+ $(use_with debug lttng) |
241 |
+ $(use_with dmapi) |
242 |
+ $(use_with fam) |
243 |
+ $(use_enable gnutls) |
244 |
+ $(use_with gpg gpgme) |
245 |
+ $(use_enable iprint) |
246 |
+ $(use_with ldap) |
247 |
+ $(use_with pam) |
248 |
+ $(usex pam "--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '') |
249 |
+ $(use_with quota quotas) |
250 |
+ $(use_with syslog) |
251 |
+ $(use_with systemd) |
252 |
+ $(usex system-mitkrb5 '--with-system-mitkrb5' '') |
253 |
+ $(use_with winbind) |
254 |
+ $(usex python '' '--disable-python') |
255 |
+ $(usex test '--enable-selftest' '') |
256 |
+ $(use_enable zeroconf avahi) |
257 |
+ --with-shared-modules=${SHAREDMODS} |
258 |
+ ) |
259 |
+ else |
260 |
+ myconf+=( |
261 |
+ --without-acl-support |
262 |
+ --without-ad-dc |
263 |
+ --without-dnsupdate |
264 |
+ --without-ads |
265 |
+ --disable-avahi |
266 |
+ --disable-cephfs |
267 |
+ --without-cluster-support |
268 |
+ --disable-cups |
269 |
+ --without-dmapi |
270 |
+ --without-fam |
271 |
+ --disable-gnutls |
272 |
+ --without-gpgme |
273 |
+ --disable-iprint |
274 |
+ $(use_with ldap) |
275 |
+ $(use_with debug lttng) |
276 |
+ --without-pam |
277 |
+ --without-quotas |
278 |
+ --without-syslog |
279 |
+ --without-systemd |
280 |
+ $(usex system-mitkrb5 '--with-system-mitkrb5' '') |
281 |
+ --without-winbind |
282 |
+ --disable-python |
283 |
+ ) |
284 |
+ fi |
285 |
+ |
286 |
+ CPPFLAGS="-I${SYSROOT}${EPREFIX}/usr/include/et ${CPPFLAGS}" \ |
287 |
+ waf-utils_src_configure ${myconf[@]} |
288 |
+} |
289 |
+ |
290 |
+multilib_src_compile() { |
291 |
+ waf-utils_src_compile |
292 |
+} |
293 |
+ |
294 |
+multilib_src_install() { |
295 |
+ waf-utils_src_install |
296 |
+ |
297 |
+ # Make all .so files executable |
298 |
+ find "${D}" -type f -name "*.so" -exec chmod +x {} + |
299 |
+ |
300 |
+ if multilib_is_native_abi; then |
301 |
+ # install ldap schema for server (bug #491002) |
302 |
+ if use ldap ; then |
303 |
+ insinto /etc/openldap/schema |
304 |
+ doins examples/LDAP/samba.schema |
305 |
+ fi |
306 |
+ |
307 |
+ # create symlink for cups (bug #552310) |
308 |
+ if use cups ; then |
309 |
+ dosym ../../../bin/smbspool /usr/libexec/cups/backend/smb |
310 |
+ fi |
311 |
+ |
312 |
+ # install example config file |
313 |
+ insinto /etc/samba |
314 |
+ doins examples/smb.conf.default |
315 |
+ |
316 |
+ # Fix paths in example file (#603964) |
317 |
+ sed \ |
318 |
+ -e '/log file =/s@/usr/local/samba/var/@/var/log/samba/@' \ |
319 |
+ -e '/include =/s@/usr/local/samba/lib/@/etc/samba/@' \ |
320 |
+ -e '/path =/s@/usr/local/samba/lib/@/var/lib/samba/@' \ |
321 |
+ -e '/path =/s@/usr/local/samba/@/var/lib/samba/@' \ |
322 |
+ -e '/path =/s@/usr/spool/samba@/var/spool/samba@' \ |
323 |
+ -i "${ED%/}"/etc/samba/smb.conf.default || die |
324 |
+ |
325 |
+ # Install init script and conf.d file |
326 |
+ newinitd "${CONFDIR}/samba4.initd-r1" samba |
327 |
+ newconfd "${CONFDIR}/samba4.confd" samba |
328 |
+ |
329 |
+ systemd_dotmpfilesd "${FILESDIR}"/samba.conf |
330 |
+ systemd_dounit "${FILESDIR}"/nmbd.service |
331 |
+ systemd_dounit "${FILESDIR}"/smbd.{service,socket} |
332 |
+ systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service' |
333 |
+ systemd_dounit "${FILESDIR}"/winbindd.service |
334 |
+ systemd_dounit "${FILESDIR}"/samba.service |
335 |
+ fi |
336 |
+} |
337 |
+ |
338 |
+multilib_src_test() { |
339 |
+ if multilib_is_native_abi ; then |
340 |
+ "${WAF_BINARY}" test || die "test failed" |
341 |
+ fi |
342 |
+} |
343 |
+ |
344 |
+pkg_postinst() { |
345 |
+ ewarn "Be aware the this release contains the best of all of Samba's" |
346 |
+ ewarn "technology parts, both a file server (that you can reasonably expect" |
347 |
+ ewarn "to upgrade existing Samba 3.x releases to) and the AD domain" |
348 |
+ ewarn "controller work previously known as 'samba4'." |
349 |
+ |
350 |
+ elog "For further information and migration steps make sure to read " |
351 |
+ elog "https://samba.org/samba/history/${P}.html " |
352 |
+ elog "https://samba.org/samba/history/${PN}-4.5.0.html and" |
353 |
+ elog "https://wiki.samba.org/index.php/Samba4/HOWTO " |
354 |
+} |