1 |
commit: 7cf06f0d919221b06574379c5ed1376edf432a8a |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 27 08:13:39 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 27 08:13:39 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cf06f0d |
7 |
|
8 |
net-fs/samba: Bump to version 4.8.3 |
9 |
|
10 |
Package-Manager: Portage-2.3.41, Repoman-2.3.9 |
11 |
|
12 |
net-fs/samba/Manifest | 1 + |
13 |
net-fs/samba/samba-4.8.3.ebuild | 285 ++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 286 insertions(+) |
15 |
|
16 |
diff --git a/net-fs/samba/Manifest b/net-fs/samba/Manifest |
17 |
index ad266ae57ba..2c3fa52f090 100644 |
18 |
--- a/net-fs/samba/Manifest |
19 |
+++ b/net-fs/samba/Manifest |
20 |
@@ -5,4 +5,5 @@ DIST samba-4.6.15.tar.gz 21175479 BLAKE2B 40751be51e5ae1368b66d5e0919092935749a7 |
21 |
DIST samba-4.6.7-disable-python-patches.tar.xz 8896 BLAKE2B 99496f91d015f10d111e2a8738c9e66b3c1f1958c0e0894d8e9d8f3ff141fbedaa25d93699b702ab69130fda770c80c3ed4280de0af1090dedbcfd5784b72222 SHA512 c45e548a49735e17b568bebf07dc7409de3de0f93256d1dcf345d2723a27d22a51d860ed921785354fda691f83be4eca3b9d618d5c332438ebf97518a01983eb |
22 |
DIST samba-4.7.7.tar.gz 16875059 BLAKE2B 05ecf13562e847070498e923df0cc85836b2fb98d4618942f60e4f28d6c5110b382cfe494e6578bbc06e14052c5d87b0f542ada186e4f132375c4360eaa8bb9f SHA512 78f180f602f08ab9e3000ae016f667e44f059a865b606c21e18857efb89af469c2cb2f9c1316e658badf1a1f41826ba87ccb23f38dc31fe82bf9e5b8fb93daad |
23 |
DIST samba-4.8.2.tar.gz 17675145 BLAKE2B 3ae5c33c85d7f0e4cf7fe45fbef55cd0d5aec2e77355297be31c4a32de41ff40338f58843a3e31942ca2c2a086829ed4f339485a7dd39693f1e433526eb23af1 SHA512 061b968c81c2272b5e353444ef53372ae5caa66f5af0b28b422e7d33a32ed0d321900c13636729c0e21a4d8dedcaff7ca7a5f6fe682b71c292f9a66a497a2766 |
24 |
+DIST samba-4.8.3.tar.gz 17680660 BLAKE2B ee2c37eb935b3545eec8975d2427e55cf0dcdc8f9725e7549ffd42f8069e2b1ee65178895c173cd694442aac0a888d661837edeb8990e948b021a69e3078106f SHA512 0dd035f5f2cfc5f47f2e9b9e295548ecce73014f01e9539d9cc639f27b00e1e71a57acb018da70e70d3761281246933b6935be151df1bd35e539d6d338686217 |
25 |
DIST samba-disable-python-patches-4.2.12.tar.xz 6052 BLAKE2B 0ae755cbbd8921f4e2f5adf797cd3a77f81bb15ac2d1a65645bc9b53184c397a2bb35f83b88a0de680cc834a63b263e883e91206a7df99735f5ef8f091f54bb0 SHA512 c527d0a052d3211e5b12c17bc94db56cc5e5545189ed65a760c0656c94c22e27a4b159e6439eb0370873e1619873a741f3b3bd10d3876b38eb3914a87eace372 |
26 |
|
27 |
diff --git a/net-fs/samba/samba-4.8.3.ebuild b/net-fs/samba/samba-4.8.3.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..46470a900f6 |
30 |
--- /dev/null |
31 |
+++ b/net-fs/samba/samba-4.8.3.ebuild |
32 |
@@ -0,0 +1,285 @@ |
33 |
+# Copyright 1999-2018 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
37 |
+PYTHON_COMPAT=( python2_7 ) |
38 |
+PYTHON_REQ_USE='threads(+),xml(+)' |
39 |
+ |
40 |
+inherit python-single-r1 waf-utils multilib-minimal linux-info systemd |
41 |
+ |
42 |
+MY_PV="${PV/_rc/rc}" |
43 |
+MY_P="${PN}-${MY_PV}" |
44 |
+ |
45 |
+SRC_PATH="stable" |
46 |
+[[ ${PV} = *_rc* ]] && SRC_PATH="rc" |
47 |
+ |
48 |
+SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz" |
49 |
+[[ ${PV} = *_rc* ]] || \ |
50 |
+KEYWORDS="~amd64 ~arm64 ~hppa ~x86" |
51 |
+ |
52 |
+DESCRIPTION="Samba Suite Version 4" |
53 |
+HOMEPAGE="https://www.samba.org/" |
54 |
+LICENSE="GPL-3" |
55 |
+ |
56 |
+SLOT="0" |
57 |
+ |
58 |
+IUSE="acl addc addns ads ceph client cluster cups debug dmapi fam gnutls gpg iprint ldap pam python |
59 |
+quota selinux syslog system-heimdal +system-mitkrb5 systemd test winbind zeroconf" |
60 |
+ |
61 |
+MULTILIB_WRAPPED_HEADERS=( |
62 |
+ /usr/include/samba-4.0/policy.h |
63 |
+ /usr/include/samba-4.0/dcerpc_server.h |
64 |
+ /usr/include/samba-4.0/ctdb.h |
65 |
+ /usr/include/samba-4.0/ctdb_client.h |
66 |
+ /usr/include/samba-4.0/ctdb_protocol.h |
67 |
+ /usr/include/samba-4.0/ctdb_private.h |
68 |
+ /usr/include/samba-4.0/ctdb_typesafe_cb.h |
69 |
+ /usr/include/samba-4.0/ctdb_version.h |
70 |
+) |
71 |
+ |
72 |
+# sys-apps/attr is an automagic dependency (see bug #489748) |
73 |
+CDEPEND=" |
74 |
+ >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}] |
75 |
+ dev-lang/perl:= |
76 |
+ dev-libs/libaio[${MULTILIB_USEDEP}] |
77 |
+ dev-libs/libbsd[${MULTILIB_USEDEP}] |
78 |
+ dev-libs/iniparser:0 |
79 |
+ dev-libs/popt[${MULTILIB_USEDEP}] |
80 |
+ dev-python/subunit[${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
81 |
+ >=dev-util/cmocka-1.1.1[${MULTILIB_USEDEP}] |
82 |
+ net-libs/libnsl:=[${MULTILIB_USEDEP}] |
83 |
+ sys-apps/attr[${MULTILIB_USEDEP}] |
84 |
+ >=sys-libs/ldb-1.3.4[ldap(+)?,python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
85 |
+ sys-libs/libcap |
86 |
+ sys-libs/ncurses:0=[${MULTILIB_USEDEP}] |
87 |
+ sys-libs/readline:0= |
88 |
+ >=sys-libs/talloc-2.1.11[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
89 |
+ >=sys-libs/tdb-1.3.15[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
90 |
+ >=sys-libs/tevent-0.9.36[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
91 |
+ sys-libs/zlib[${MULTILIB_USEDEP}] |
92 |
+ virtual/libiconv |
93 |
+ pam? ( virtual/pam ) |
94 |
+ acl? ( virtual/acl ) |
95 |
+ addns? ( |
96 |
+ net-dns/bind-tools[gssapi] |
97 |
+ dev-python/dnspython:=[${PYTHON_USEDEP}] |
98 |
+ ) |
99 |
+ ceph? ( sys-cluster/ceph ) |
100 |
+ cluster? ( |
101 |
+ net-libs/rpcsvc-proto |
102 |
+ !dev-db/ctdb |
103 |
+ ) |
104 |
+ cups? ( net-print/cups ) |
105 |
+ debug? ( dev-util/lttng-ust ) |
106 |
+ dmapi? ( sys-apps/dmapi ) |
107 |
+ fam? ( virtual/fam ) |
108 |
+ gnutls? ( |
109 |
+ dev-libs/libgcrypt:0 |
110 |
+ >=net-libs/gnutls-1.4.0 |
111 |
+ ) |
112 |
+ gpg? ( app-crypt/gpgme ) |
113 |
+ ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] ) |
114 |
+ system-heimdal? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] ) |
115 |
+ system-mitkrb5? ( >=app-crypt/mit-krb5-1.15.1[${MULTILIB_USEDEP}] ) |
116 |
+ systemd? ( sys-apps/systemd:0= ) |
117 |
+" |
118 |
+DEPEND="${CDEPEND} |
119 |
+ ${PYTHON_DEPS} |
120 |
+ app-text/docbook-xsl-stylesheets |
121 |
+ dev-libs/libxslt |
122 |
+ net-libs/libtirpc[${MULTILIB_USEDEP}] |
123 |
+ virtual/pkgconfig |
124 |
+ || ( |
125 |
+ net-libs/rpcsvc-proto |
126 |
+ <sys-libs/glibc-2.26[rpc(+)] |
127 |
+ ) |
128 |
+ test? ( |
129 |
+ !system-mitkrb5? ( |
130 |
+ >=sys-libs/nss_wrapper-1.1.3 |
131 |
+ >=net-dns/resolv_wrapper-1.1.4 |
132 |
+ >=net-libs/socket_wrapper-1.1.7 |
133 |
+ >=sys-libs/uid_wrapper-1.2.1 |
134 |
+ ) |
135 |
+ )" |
136 |
+RDEPEND="${CDEPEND} |
137 |
+ python? ( ${PYTHON_DEPS} ) |
138 |
+ client? ( net-fs/cifs-utils[ads?] ) |
139 |
+ selinux? ( sec-policy/selinux-samba ) |
140 |
+ !dev-perl/Parse-Yapp |
141 |
+" |
142 |
+ |
143 |
+REQUIRED_USE=" |
144 |
+ addc? ( python gnutls winbind ) |
145 |
+ addns? ( python ) |
146 |
+ ads? ( acl gnutls ldap winbind ) |
147 |
+ cluster? ( ads ) |
148 |
+ gpg? ( addc ) |
149 |
+ test? ( python ) |
150 |
+ ?? ( system-heimdal system-mitkrb5 ) |
151 |
+ ${PYTHON_REQUIRED_USE} |
152 |
+" |
153 |
+ |
154 |
+# the test suite is messed, it uses system-installed samba |
155 |
+# bits instead of what was built, tests things disabled via use |
156 |
+# flags, and generally just fails to work in a way ebuilds could |
157 |
+# rely on in its current state |
158 |
+RESTRICT="test" |
159 |
+ |
160 |
+S="${WORKDIR}/${MY_P}" |
161 |
+ |
162 |
+PATCHES=( |
163 |
+ "${FILESDIR}/${PN}-4.4.0-pam.patch" |
164 |
+ "${FILESDIR}/${PN}-4.5.1-compile_et_fix.patch" |
165 |
+) |
166 |
+ |
167 |
+#CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)" |
168 |
+CONFDIR="${FILESDIR}/4.4" |
169 |
+ |
170 |
+WAF_BINARY="${S}/buildtools/bin/waf" |
171 |
+ |
172 |
+SHAREDMODS="" |
173 |
+ |
174 |
+pkg_setup() { |
175 |
+ python-single-r1_pkg_setup |
176 |
+ if use cluster ; then |
177 |
+ SHAREDMODS="idmap_rid,idmap_tdb2,idmap_ad" |
178 |
+ elif use ads ; then |
179 |
+ SHAREDMODS="idmap_ad" |
180 |
+ fi |
181 |
+} |
182 |
+ |
183 |
+src_prepare() { |
184 |
+ default |
185 |
+ |
186 |
+ # un-bundle dnspython |
187 |
+ sed -i -e '/"dns.resolver":/d' "${S}"/third_party/wscript || die |
188 |
+ |
189 |
+ # unbundle iso8601 unless tests are enabled |
190 |
+ use test || sed -i -e '/"iso8601":/d' "${S}"/third_party/wscript || die |
191 |
+ |
192 |
+ # ugly hackaround for bug #592502 |
193 |
+ cp /usr/include/tevent_internal.h "${S}"/lib/tevent/ || die |
194 |
+ |
195 |
+ sed -e 's:<gpgme\.h>:<gpgme/gpgme.h>:' \ |
196 |
+ -i source4/dsdb/samdb/ldb_modules/password_hash.c \ |
197 |
+ || die |
198 |
+ |
199 |
+ # Friggin' WAF shit |
200 |
+ multilib_copy_sources |
201 |
+} |
202 |
+ |
203 |
+multilib_src_configure() { |
204 |
+ # when specifying libs for samba build you must append NONE to the end to |
205 |
+ # stop it automatically including things |
206 |
+ local bundled_libs="NONE" |
207 |
+ if ! use system-heimdal && ! use system-mitkrb5 ; then |
208 |
+ bundled_libs="heimbase,heimntlm,hdb,kdc,krb5,wind,gssapi,hcrypto,hx509,roken,asn1,com_err,NONE" |
209 |
+ fi |
210 |
+ |
211 |
+ local myconf=( |
212 |
+ --enable-fhs |
213 |
+ --sysconfdir="${EPREFIX}/etc" |
214 |
+ --localstatedir="${EPREFIX}/var" |
215 |
+ --with-modulesdir="${EPREFIX}/usr/$(get_libdir)/samba" |
216 |
+ --with-piddir="${EPREFIX}/run/${PN}" |
217 |
+ --bundled-libraries="${bundled_libs}" |
218 |
+ --builtin-libraries=NONE |
219 |
+ --disable-rpath |
220 |
+ --disable-rpath-install |
221 |
+ --nopyc |
222 |
+ --nopyo |
223 |
+ $(multilib_native_use_with acl acl-support) |
224 |
+ $(multilib_native_usex addc '' '--without-ad-dc') |
225 |
+ $(multilib_native_use_with addns dnsupdate) |
226 |
+ $(multilib_native_use_with ads) |
227 |
+ $(multilib_native_use_enable ceph cephfs) |
228 |
+ $(multilib_native_use_with cluster cluster-support) |
229 |
+ $(multilib_native_use_enable cups) |
230 |
+ $(multilib_native_use_with dmapi) |
231 |
+ $(multilib_native_use_with fam) |
232 |
+ $(multilib_native_use_with gpg gpgme) |
233 |
+ $(multilib_native_use_enable iprint) |
234 |
+ $(multilib_native_use_with pam) |
235 |
+ $(multilib_native_usex pam "--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '') |
236 |
+ $(multilib_native_use_with quota quotas) |
237 |
+ $(multilib_native_use_with syslog) |
238 |
+ $(multilib_native_use_with systemd) |
239 |
+ $(multilib_native_use_with winbind) |
240 |
+ $(multilib_native_usex python '' '--disable-python') |
241 |
+ $(multilib_native_use_enable zeroconf avahi) |
242 |
+ $(multilib_native_usex test '--enable-selftest' '') |
243 |
+ $(usex system-mitkrb5 '--with-system-mitkrb5' '') |
244 |
+ $(use_enable gnutls) |
245 |
+ $(use_with debug lttng) |
246 |
+ $(use_with ldap) |
247 |
+ ) |
248 |
+ multilib_is_native_abi && myconf+=( --with-shared-modules=${SHAREDMODS} ) |
249 |
+ |
250 |
+ CPPFLAGS="-I${SYSROOT}${EPREFIX}/usr/include/et ${CPPFLAGS}" \ |
251 |
+ waf-utils_src_configure ${myconf[@]} |
252 |
+} |
253 |
+ |
254 |
+multilib_src_compile() { |
255 |
+ waf-utils_src_compile |
256 |
+} |
257 |
+ |
258 |
+multilib_src_install() { |
259 |
+ waf-utils_src_install |
260 |
+ |
261 |
+ # Make all .so files executable |
262 |
+ find "${ED}" -type f -name "*.so" -exec chmod +x {} + |
263 |
+ |
264 |
+ if multilib_is_native_abi ; then |
265 |
+ # install ldap schema for server (bug #491002) |
266 |
+ if use ldap ; then |
267 |
+ insinto /etc/openldap/schema |
268 |
+ doins examples/LDAP/samba.schema |
269 |
+ fi |
270 |
+ |
271 |
+ # create symlink for cups (bug #552310) |
272 |
+ if use cups ; then |
273 |
+ dosym ../../../bin/smbspool /usr/libexec/cups/backend/smb |
274 |
+ fi |
275 |
+ |
276 |
+ # install example config file |
277 |
+ insinto /etc/samba |
278 |
+ doins examples/smb.conf.default |
279 |
+ |
280 |
+ # Fix paths in example file (#603964) |
281 |
+ sed \ |
282 |
+ -e '/log file =/s@/usr/local/samba/var/@/var/log/samba/@' \ |
283 |
+ -e '/include =/s@/usr/local/samba/lib/@/etc/samba/@' \ |
284 |
+ -e '/path =/s@/usr/local/samba/lib/@/var/lib/samba/@' \ |
285 |
+ -e '/path =/s@/usr/local/samba/@/var/lib/samba/@' \ |
286 |
+ -e '/path =/s@/usr/spool/samba@/var/spool/samba@' \ |
287 |
+ -i "${ED%/}"/etc/samba/smb.conf.default || die |
288 |
+ |
289 |
+ # Install init script and conf.d file |
290 |
+ newinitd "${CONFDIR}/samba4.initd-r1" samba |
291 |
+ newconfd "${CONFDIR}/samba4.confd" samba |
292 |
+ |
293 |
+ systemd_dotmpfilesd "${FILESDIR}"/samba.conf |
294 |
+ systemd_dounit "${FILESDIR}"/nmbd.service |
295 |
+ systemd_dounit "${FILESDIR}"/smbd.{service,socket} |
296 |
+ systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service' |
297 |
+ systemd_dounit "${FILESDIR}"/winbindd.service |
298 |
+ systemd_dounit "${FILESDIR}"/samba.service |
299 |
+ fi |
300 |
+} |
301 |
+ |
302 |
+multilib_src_test() { |
303 |
+ if multilib_is_native_abi ; then |
304 |
+ "${WAF_BINARY}" test || die "test failed" |
305 |
+ fi |
306 |
+} |
307 |
+ |
308 |
+pkg_postinst() { |
309 |
+ ewarn "Be aware the this release contains the best of all of Samba's" |
310 |
+ ewarn "technology parts, both a file server (that you can reasonably expect" |
311 |
+ ewarn "to upgrade existing Samba 3.x releases to) and the AD domain" |
312 |
+ ewarn "controller work previously known as 'samba4'." |
313 |
+ |
314 |
+ elog "For further information and migration steps make sure to read " |
315 |
+ elog "https://samba.org/samba/history/${P}.html " |
316 |
+ elog "https://wiki.samba.org/index.php/Samba4/HOWTO " |
317 |
+} |