1 |
commit: 852983cc548a558ec3ca1a6c48275e917e79959c |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 30 20:38:29 2017 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 30 20:52:54 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=852983cc |
7 |
|
8 |
net-fs/samba: Bump to version 4.5.5 |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
net-fs/samba/Manifest | 1 + |
13 |
net-fs/samba/samba-4.5.5.ebuild | 267 ++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 268 insertions(+) |
15 |
|
16 |
diff --git a/net-fs/samba/Manifest b/net-fs/samba/Manifest |
17 |
index a8bcd4b..0237399 100644 |
18 |
--- a/net-fs/samba/Manifest |
19 |
+++ b/net-fs/samba/Manifest |
20 |
@@ -5,6 +5,7 @@ DIST samba-4.4.7.tar.gz 20739248 SHA256 a69d6612e4a421640242ca66c4dbb0e4c20281e7 |
21 |
DIST samba-4.4.9.tar.gz 20750010 SHA256 10f76fa113213ae512db4a4823351178c93fb6bc95d98d0ebc72e3a74d43386f SHA512 9fda913ece883fbd4309623b03676629d944c6f14df359904db938ac956a2f56b347d51fd7293417b021d5b18145fb693649a54ec2125868ae3fb88f63a17e12 WHIRLPOOL ba92ee892e64e0192b9198423cea86548b4f8b1552634d8775fcff1b7d5c85b874155e4150568e5364b921678d69b668d907de955c2de4f03bc0c0a8075724ee |
22 |
DIST samba-4.5.3.tar.gz 20946015 SHA256 f06dc454a1bb72b21a329e1ad75a14795886401671ec7439d69a6b824c492eca SHA512 3ba4002131a5d7db35a62bc5841ed7aa7c43d85f7f3509237aa97bd1ff8bac6358eb3acec178ddfa6e8fa9c390dadb947fa90eec27d1299e2a9ccdecc5e9bc16 WHIRLPOOL 6667ca8dac8f315f3d27ad8751f26538d0bc0749c16796640e09bdb8e085ceb095e780ff60c4bfcd29f77a65c56933bb42ec9358d706a62ca9d3612b70d68a8f |
23 |
DIST samba-4.5.4.tar.gz 20958348 SHA256 1800d10ea14cabef67c83cc56a0f37f4f30ba5df218b3a1e7c874069a08c0f40 SHA512 7b24227e17ab091e6165c605f28af19fa846de63f3f24508411db2b509d942e599702dd278c8430481d7a404c5a97005148286ea4e94a35b57a1ec303b1a4409 WHIRLPOOL a1b84726b0a0addb1ca2de8d84429280a82001bf2fb0fbd7524dd2499fb18370d19e099b0852b93cb105b3db45583688b107533d404703ac635c2e6e8e2cb81b |
24 |
+DIST samba-4.5.5.tar.gz 20953640 SHA256 bff02762b3e4ee030f02266c6e24a0b888248b387246219b7fbe3e1758ef2184 SHA512 dd9bd2cdd16ef9289c46583b9809fb2757f821bcfedacbac384718b977f981a20d011065087b2fa985c57082512b9cc5d5e19daede3fc6c7e063e04a66349b4a WHIRLPOOL 0dcffe3071ef2e621a2bc5b317e05036b5a75c6a0231538026bdee76bb43743d72acff128025e7957791a65856794cbfa2bfbca203b5f0a685455e1798b29f40 |
25 |
DIST samba-4.6.0rc2.tar.gz 20956751 SHA256 e05a941d6d089a4781a51eb758661d66ce9c23b7e6286da756f5910424de22d5 SHA512 e66d9f50f0bda315c1a57cf94c5c06811bf5d0c709ebc513488635c1e044865abc27af9f60023e5ae4ae0c08f819bfc46886bd408be0c63aa8a09a945efa67e0 WHIRLPOOL 6fc370fbb4dc5501a3c134725bebe89869bb57d6d54c713d1920056ebe558ee378046e9fa1a6b70af6e23885b92ca4c3dde85e574e482e7a101b334cf0dc9705 |
26 |
DIST samba-disable-python-patches-4.2.12.tar.xz 6052 SHA256 8903eacbabdfaf7b64cbde03d7c367d1efdc92e54090f0f4b9ed5d2a462b1c18 SHA512 c527d0a052d3211e5b12c17bc94db56cc5e5545189ed65a760c0656c94c22e27a4b159e6439eb0370873e1619873a741f3b3bd10d3876b38eb3914a87eace372 WHIRLPOOL ad63db55d5dc96f56e6c9b30c2092e2f6e206b0ed5d13c249879d10753c8db2f475c5d4e651e2fc042ad992b648d3b4465f1b28c6b4bbf821cf503d27f741f7e |
27 |
DIST samba-disable-python-patches-4.2.9.tar.xz 6016 SHA256 222d0153f03dddde28a0b906ee2b27076223ac88b84a998aaa285f658861edfa SHA512 02fc666a36f8e733e522663d80775d130fabee9d5fb4e1c261d28815e07be425ae8977213f9216c7af62dd8b2619e7e13d71f9a25780b058c8119901c2115a18 WHIRLPOOL ebba3a6d41a41844621759672aa8c984d26f44d12007c8e929405470c381bc262523ec68d3972e86cf675c45f092fa287496167e42940e70d704790753e47b03 |
28 |
|
29 |
diff --git a/net-fs/samba/samba-4.5.5.ebuild b/net-fs/samba/samba-4.5.5.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000..3a493e2 |
32 |
--- /dev/null |
33 |
+++ b/net-fs/samba/samba-4.5.5.ebuild |
34 |
@@ -0,0 +1,267 @@ |
35 |
+# Copyright 1999-2017 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+# $Id$ |
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 |
+ https://dev.gentoo.org/~polynomial-c/samba-disable-python-patches-4.5.0_rc1.tar.xz" |
53 |
+[[ ${PV} = *_rc* ]] || \ |
54 |
+KEYWORDS="~amd64 ~hppa ~x86" |
55 |
+ |
56 |
+DESCRIPTION="Samba Suite Version 4" |
57 |
+HOMEPAGE="http://www.samba.org/" |
58 |
+LICENSE="GPL-3" |
59 |
+ |
60 |
+SLOT="0" |
61 |
+ |
62 |
+IUSE="acl addc addns ads client cluster cups dmapi fam gnutls gpg iprint ldap pam |
63 |
+quota selinux syslog system-heimdal +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="${PYTHON_DEPS} |
78 |
+ >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}] |
79 |
+ dev-lang/perl:= |
80 |
+ dev-libs/libaio[${MULTILIB_USEDEP}] |
81 |
+ dev-libs/libbsd[${MULTILIB_USEDEP}] |
82 |
+ dev-libs/iniparser:0 |
83 |
+ dev-libs/popt[${MULTILIB_USEDEP}] |
84 |
+ dev-python/subunit[${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
85 |
+ sys-apps/attr[${MULTILIB_USEDEP}] |
86 |
+ >=sys-libs/ldb-1.1.27[ldap(+)?,${MULTILIB_USEDEP}] |
87 |
+ sys-libs/libcap |
88 |
+ sys-libs/ncurses:0=[${MULTILIB_USEDEP}] |
89 |
+ sys-libs/readline:0= |
90 |
+ >=sys-libs/talloc-2.1.8[python,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
91 |
+ >=sys-libs/tdb-1.3.10[python,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
92 |
+ >=sys-libs/tevent-0.9.31-r1[${MULTILIB_USEDEP}] |
93 |
+ sys-libs/zlib[${MULTILIB_USEDEP}] |
94 |
+ virtual/libiconv |
95 |
+ pam? ( virtual/pam ) |
96 |
+ acl? ( virtual/acl ) |
97 |
+ addns? ( net-dns/bind-tools[gssapi] ) |
98 |
+ cluster? ( !dev-db/ctdb ) |
99 |
+ cups? ( net-print/cups ) |
100 |
+ dmapi? ( sys-apps/dmapi ) |
101 |
+ fam? ( virtual/fam ) |
102 |
+ gnutls? ( |
103 |
+ dev-libs/libgcrypt:0 |
104 |
+ >=net-libs/gnutls-1.4.0 |
105 |
+ ) |
106 |
+ gpg? ( app-crypt/gpgme ) |
107 |
+ ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] ) |
108 |
+ system-heimdal? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] ) |
109 |
+ system-mitkrb5? ( app-crypt/mit-krb5[${MULTILIB_USEDEP}] ) |
110 |
+ systemd? ( sys-apps/systemd:0= )" |
111 |
+DEPEND="${CDEPEND} |
112 |
+ virtual/pkgconfig" |
113 |
+RDEPEND="${CDEPEND} |
114 |
+ client? ( net-fs/cifs-utils[ads?] ) |
115 |
+ selinux? ( sec-policy/selinux-samba ) |
116 |
+ !dev-perl/Parse-Yapp |
117 |
+" |
118 |
+ |
119 |
+REQUIRED_USE="addc? ( gnutls !system-mitkrb5 ) |
120 |
+ ads? ( acl gnutls ldap ) |
121 |
+ gpg? ( addc ) |
122 |
+ ?? ( system-heimdal system-mitkrb5 ) |
123 |
+ ${PYTHON_REQUIRED_USE}" |
124 |
+ |
125 |
+S="${WORKDIR}/${MY_P}" |
126 |
+ |
127 |
+PATCHES=( |
128 |
+ "${FILESDIR}/${PN}-4.4.0-pam.patch" |
129 |
+ "${FILESDIR}/${PN}-4.5.1-compile_et_fix.patch" |
130 |
+) |
131 |
+ |
132 |
+#CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)" |
133 |
+CONFDIR="${FILESDIR}/4.4" |
134 |
+ |
135 |
+WAF_BINARY="${S}/buildtools/bin/waf" |
136 |
+ |
137 |
+SHAREDMODS="" |
138 |
+ |
139 |
+pkg_setup() { |
140 |
+ python-single-r1_pkg_setup |
141 |
+ if use cluster ; then |
142 |
+ SHAREDMODS="idmap_rid,idmap_tdb2,idmap_ad" |
143 |
+ elif use ads ; then |
144 |
+ SHAREDMODS="idmap_ad" |
145 |
+ fi |
146 |
+} |
147 |
+ |
148 |
+src_prepare() { |
149 |
+ default |
150 |
+ |
151 |
+ # install the patches from tarball(s) |
152 |
+ eapply "${WORKDIR}/patches" |
153 |
+ |
154 |
+ # ugly hackaround for bug #592502 |
155 |
+ cp /usr/include/tevent_internal.h "${S}"/lib/tevent/ || die |
156 |
+ |
157 |
+ sed -e 's:<gpgme\.h>:<gpgme/gpgme.h>:' \ |
158 |
+ -i source4/dsdb/samdb/ldb_modules/password_hash.c \ |
159 |
+ || die |
160 |
+ |
161 |
+ # Friggin' WAF shit |
162 |
+ multilib_copy_sources |
163 |
+} |
164 |
+ |
165 |
+multilib_src_configure() { |
166 |
+ # when specifying libs for samba build you must append NONE to the end to |
167 |
+ # stop it automatically including things |
168 |
+ local bundled_libs="NONE" |
169 |
+ if ! use system-heimdal && ! use system-mitkrb5 ; then |
170 |
+ bundled_libs="heimbase,heimntlm,hdb,kdc,krb5,wind,gssapi,hcrypto,hx509,roken,asn1,com_err,NONE" |
171 |
+ fi |
172 |
+ |
173 |
+ local myconf=() |
174 |
+ myconf=( |
175 |
+ --enable-fhs |
176 |
+ --sysconfdir="${EPREFIX}/etc" |
177 |
+ --localstatedir="${EPREFIX}/var" |
178 |
+ --with-modulesdir="${EPREFIX}/usr/$(get_libdir)/samba" |
179 |
+ --with-piddir="${EPREFIX}/run/${PN}" |
180 |
+ --bundled-libraries="${bundled_libs}" |
181 |
+ --builtin-libraries=NONE |
182 |
+ --disable-rpath |
183 |
+ --disable-rpath-install |
184 |
+ --nopyc |
185 |
+ --nopyo |
186 |
+ ) |
187 |
+ if multilib_is_native_abi ; then |
188 |
+ myconf+=( |
189 |
+ $(use_with acl acl-support) |
190 |
+ $(usex addc '' '--without-ad-dc') |
191 |
+ $(use_with addns dnsupdate) |
192 |
+ $(use_with ads) |
193 |
+ $(use_with cluster cluster-support) |
194 |
+ $(use_enable cups) |
195 |
+ $(use_with dmapi) |
196 |
+ $(use_with fam) |
197 |
+ $(use_enable gnutls) |
198 |
+ $(use_with gpg gpgme) |
199 |
+ $(use_enable iprint) |
200 |
+ $(use_with ldap) |
201 |
+ $(use_with pam) |
202 |
+ $(usex pam "--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '') |
203 |
+ $(use_with quota quotas) |
204 |
+ $(use_with syslog) |
205 |
+ $(use_with systemd) |
206 |
+ $(usex system-mitkrb5 '--with-system-mitkrb5' '') |
207 |
+ $(use_with winbind) |
208 |
+ $(usex test '--enable-selftest' '') |
209 |
+ $(use_enable zeroconf avahi) |
210 |
+ --with-shared-modules=${SHAREDMODS} |
211 |
+ ) |
212 |
+ else |
213 |
+ myconf+=( |
214 |
+ --without-acl-support |
215 |
+ --without-ad-dc |
216 |
+ --without-dnsupdate |
217 |
+ --without-ads |
218 |
+ --disable-avahi |
219 |
+ --without-cluster-support |
220 |
+ --disable-cups |
221 |
+ --without-dmapi |
222 |
+ --without-fam |
223 |
+ --disable-gnutls |
224 |
+ --without-gpgme |
225 |
+ --disable-iprint |
226 |
+ $(use_with ldap) |
227 |
+ --without-pam |
228 |
+ --without-quotas |
229 |
+ --without-syslog |
230 |
+ --without-systemd |
231 |
+ $(usex system-mitkrb5 '--with-system-mitkrb5' '') |
232 |
+ --without-winbind |
233 |
+ --disable-python |
234 |
+ ) |
235 |
+ fi |
236 |
+ |
237 |
+ CPPFLAGS="-I${SYSROOT}${EPREFIX}/usr/include/et ${CPPFLAGS}" \ |
238 |
+ waf-utils_src_configure ${myconf[@]} |
239 |
+} |
240 |
+ |
241 |
+multilib_src_install() { |
242 |
+ waf-utils_src_install |
243 |
+ |
244 |
+ # Make all .so files executable |
245 |
+ find "${D}" -type f -name "*.so" -exec chmod +x {} + |
246 |
+ |
247 |
+ if multilib_is_native_abi; then |
248 |
+ # install ldap schema for server (bug #491002) |
249 |
+ if use ldap ; then |
250 |
+ insinto /etc/openldap/schema |
251 |
+ doins examples/LDAP/samba.schema |
252 |
+ fi |
253 |
+ |
254 |
+ # create symlink for cups (bug #552310) |
255 |
+ if use cups ; then |
256 |
+ dosym /usr/bin/smbspool /usr/libexec/cups/backend/smb |
257 |
+ fi |
258 |
+ |
259 |
+ # install example config file |
260 |
+ insinto /etc/samba |
261 |
+ doins examples/smb.conf.default |
262 |
+ |
263 |
+ # Fix paths in example file (#603964) |
264 |
+ sed \ |
265 |
+ -e '/log file =/s@/usr/local/samba/var/@/var/log/samba/@' \ |
266 |
+ -e '/include =/s@/usr/local/samba/lib/@/etc/samba/@' \ |
267 |
+ -e '/path =/s@/usr/local/samba/lib/@/var/lib/samba/@' \ |
268 |
+ -e '/path =/s@/usr/local/samba/@/var/lib/samba/@' \ |
269 |
+ -e '/path =/s@/usr/spool/samba@/var/spool/samba@' \ |
270 |
+ -i "${ED%/}"/etc/samba/smb.conf.default || die |
271 |
+ |
272 |
+ # Install init script and conf.d file |
273 |
+ newinitd "${CONFDIR}/samba4.initd-r1" samba |
274 |
+ newconfd "${CONFDIR}/samba4.confd" samba |
275 |
+ |
276 |
+ systemd_dotmpfilesd "${FILESDIR}"/samba.conf |
277 |
+ systemd_dounit "${FILESDIR}"/nmbd.service |
278 |
+ systemd_dounit "${FILESDIR}"/smbd.{service,socket} |
279 |
+ systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service' |
280 |
+ systemd_dounit "${FILESDIR}"/winbindd.service |
281 |
+ systemd_dounit "${FILESDIR}"/samba.service |
282 |
+ fi |
283 |
+} |
284 |
+ |
285 |
+multilib_src_test() { |
286 |
+ if multilib_is_native_abi ; then |
287 |
+ "${WAF_BINARY}" test || die "test failed" |
288 |
+ fi |
289 |
+} |
290 |
+ |
291 |
+pkg_postinst() { |
292 |
+ ewarn "Be aware the this release contains the best of all of Samba's" |
293 |
+ ewarn "technology parts, both a file server (that you can reasonably expect" |
294 |
+ ewarn "to upgrade existing Samba 3.x releases to) and the AD domain" |
295 |
+ ewarn "controller work previously known as 'samba4'." |
296 |
+ |
297 |
+ elog "For further information and migration steps make sure to read " |
298 |
+ elog "http://samba.org/samba/history/${P}.html " |
299 |
+ elog "http://samba.org/samba/history/${PN}-4.5.0.html and" |
300 |
+ elog "http://wiki.samba.org/index.php/Samba4/HOWTO " |
301 |
+} |