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