1 |
commit: ab54f0506e349f5be54ed1765fc054800ce10249 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 29 12:12:46 2016 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 29 12:18:04 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab54f050 |
7 |
|
8 |
net-fs/samba: Bump to version 4.5.0_rc1 |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
net-fs/samba/Manifest | 2 + |
14 |
net-fs/samba/samba-4.5.0_rc1.ebuild | 233 ++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 235 insertions(+) |
16 |
|
17 |
diff --git a/net-fs/samba/Manifest b/net-fs/samba/Manifest |
18 |
index 2b5e9a1..d778607 100644 |
19 |
--- a/net-fs/samba/Manifest |
20 |
+++ b/net-fs/samba/Manifest |
21 |
@@ -4,7 +4,9 @@ DIST samba-4.2.14.tar.gz 20883281 SHA256 db820a9947e44f04b0eb25e4aa0c3db32c4042f |
22 |
DIST samba-4.2.9.tar.gz 20750339 SHA256 ba0229485e8bebac22bd3ae98b1e393e7127f3a958cc90e205a6d752e575354c SHA512 438196f268c0ca0b83e8e7e9eb8e9a8b503d6408d5e2b0dca1d041185e06cfc08147122d5495b72c46ce58dc3cb4be4766551f0101c69b2620b89e749d89ad98 WHIRLPOOL aa7a655a3d2f2bf81d2747d83c86a0c7d464a31414b6e27a413461e1e0ad0ce3d3af5d756d8ce213e775f5141c44ef9c41a792e88d246bcab002b7623552260a |
23 |
DIST samba-4.3.11.tar.gz 20573432 SHA256 90a967310e34a31d5c9fc5f86855f334fc19815e7e59f5c2d72a9bba23cf4fec SHA512 7b9bcdf158c64a26c81e5a03a94a521f238a7573ab31c1252e90f2604ae0d1303c998d3bcda18c4feb9049a659371a3af2bdfcc546b5251314f19a500b6a0b7a WHIRLPOOL b204fdfee8ea071a2fb0431cfc17c1e59307a7228ef7082bf69d63ea5b94a823b0214e09172bb5d397adc8d4dabe1c505e867512922f41da57b73d22b1856b90 |
24 |
DIST samba-4.4.5.tar.gz 20715838 SHA256 b876ef2e63f66265490e80a122e66ef2d7616112b839df68f56ac2e1ce17a7bd SHA512 4e63fabbddc04ebdf08b68a98fe4fa0c525b30f7d949948dd5d2e5cba17d263db820c61bac0c90dcb4e0b530d945a560c358df6c37e225d69788794fef851f0d WHIRLPOOL 420be54d53312b8cef6efd1bce3120de1db1c36a1abccd258d558c598259afb16ca846db461ec7ee94a431ada869c3a4bda34ec741b6dcd1347fc34670dab84e |
25 |
+DIST samba-4.5.0rc1.tar.gz 20923420 SHA256 b0b46a5c1b5886380ced6933f418440d688bbd0b4f6bc8d2c355391a0653839a SHA512 29a1ab08b16dee67c447344a6300c0a04d892f0d8a1f4938cb17bcc780b8a82b0f8b08e4c26e53a29643d94d36c4fe0df417fe611cff8a02b9f572989d84cf3f WHIRLPOOL ceb1baea1c13bb5c698df2f5498d443429ac453e8436ed7165bd5f9bf04b6d412e61ecca227d19c94d68be9a276b8728454c0d9a3297d078743b677901248026 |
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 |
DIST samba-disable-python-patches-4.3.9.tar.xz 6116 SHA256 83206112e04c375e170e86ea6b29d6dc2c172b55ba9fb89130be14708d758cf5 SHA512 ca8b62337afd1cc6059b9aefc0a3972d18ba90fba3f043d9730f6967e1b80c40bc918b0445b8ae8a1f3df74d3551f90c721df3c0514edccb881ed0b4fc54e1b5 WHIRLPOOL 3aebd6758e5e7dc2920b1e8f8825d2b7b7efac7c5f2d91d5ed6fed75597bfdced1b27d9e2a00385af5df19e5462a4e014df6a7274c0b25a660702268235ef746 |
29 |
DIST samba-disable-python-patches-4.4.2.tar.xz 6244 SHA256 774994cc6b1fcb7099667769159fe2f49eccbdadfc579793f733fe93e7e19874 SHA512 c79fa89b49d558e64e3e4406e2794651d300b8cf678a6714e03aa85352e3aeb21f8012f37fc6e488a39e7a13e86b92a82ee9fb3aabc2dfc86e5928f805a1a989 WHIRLPOOL 66fd03d0edb9b58c36c7e1beb7db6ddf60b194fe6d83f7c3b046a02cab565175e3332c92822f4ba0245f69d1d9f32f2ede2b5b5fe42d51ba17acbdca797ce3c8 |
30 |
+DIST samba-disable-python-patches-4.5.0_rc1.tar.xz 6204 SHA256 fa0d776e04e3222c0dc4761e376717f4154937cdcb85f4117b8978dfb770a78e SHA512 920089ba3c6e8e7d913b1d7ef1017262a19d1af41215adb30cfc98a57556efc4b0116931d4ef774c01124149d8eca2be3a23814ce7e11daf0180d2c111799927 WHIRLPOOL 6d55710895435ad012e23f8c252e5276966241014710349ca7fa9cf037e8742030b8e053f7cb71309a0a45f48d2235d55393243bf4d19476a22dd39bb1b7748d |
31 |
|
32 |
diff --git a/net-fs/samba/samba-4.5.0_rc1.ebuild b/net-fs/samba/samba-4.5.0_rc1.ebuild |
33 |
new file mode 100644 |
34 |
index 0000000..210f17a |
35 |
--- /dev/null |
36 |
+++ b/net-fs/samba/samba-4.5.0_rc1.ebuild |
37 |
@@ -0,0 +1,233 @@ |
38 |
+# Copyright 1999-2016 Gentoo Foundation |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+# $Id$ |
41 |
+ |
42 |
+EAPI=6 |
43 |
+PYTHON_COMPAT=( python2_7 ) |
44 |
+PYTHON_REQ_USE='threads(+),xml(+)' |
45 |
+ |
46 |
+inherit python-single-r1 waf-utils multilib-minimal linux-info systemd eutils |
47 |
+ |
48 |
+MY_PV="${PV/_rc/rc}" |
49 |
+MY_P="${PN}-${MY_PV}" |
50 |
+ |
51 |
+SRC_PATH="stable" |
52 |
+[[ ${PV} = *_rc* ]] && SRC_PATH="rc" |
53 |
+ |
54 |
+SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz |
55 |
+ https://dev.gentoo.org/~polynomial-c/samba-disable-python-patches-4.5.0_rc1.tar.xz" |
56 |
+[[ ${PV} = *_rc* ]] || \ |
57 |
+KEYWORDS="~amd64 ~hppa ~x86" |
58 |
+ |
59 |
+DESCRIPTION="Samba Suite Version 4" |
60 |
+HOMEPAGE="http://www.samba.org/" |
61 |
+LICENSE="GPL-3" |
62 |
+ |
63 |
+SLOT="0" |
64 |
+ |
65 |
+IUSE="acl addc addns ads avahi client cluster cups dmapi fam gnutls iprint |
66 |
+ldap pam quota selinux syslog +system-mitkrb5 systemd test winbind" |
67 |
+ |
68 |
+MULTILIB_WRAPPED_HEADERS=( |
69 |
+ /usr/include/samba-4.0/policy.h |
70 |
+ /usr/include/samba-4.0/dcerpc_server.h |
71 |
+ /usr/include/samba-4.0/ctdb.h |
72 |
+ /usr/include/samba-4.0/ctdb_client.h |
73 |
+ /usr/include/samba-4.0/ctdb_protocol.h |
74 |
+ /usr/include/samba-4.0/ctdb_private.h |
75 |
+ /usr/include/samba-4.0/ctdb_typesafe_cb.h |
76 |
+ /usr/include/samba-4.0/ctdb_version.h |
77 |
+) |
78 |
+ |
79 |
+# sys-apps/attr is an automagic dependency (see bug #489748) |
80 |
+CDEPEND="${PYTHON_DEPS} |
81 |
+ >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}] |
82 |
+ dev-lang/perl:= |
83 |
+ dev-libs/libbsd[${MULTILIB_USEDEP}] |
84 |
+ dev-libs/iniparser:0 |
85 |
+ dev-libs/popt[${MULTILIB_USEDEP}] |
86 |
+ sys-libs/readline:= |
87 |
+ virtual/libiconv |
88 |
+ dev-python/subunit[${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
89 |
+ sys-apps/attr[${MULTILIB_USEDEP}] |
90 |
+ sys-libs/libcap |
91 |
+ >=sys-libs/ldb-1.1.26[${MULTILIB_USEDEP}] |
92 |
+ sys-libs/ncurses:0=[${MULTILIB_USEDEP}] |
93 |
+ >=sys-libs/talloc-2.1.8[python,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
94 |
+ >=sys-libs/tdb-1.3.10[python,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
95 |
+ >=sys-libs/tevent-0.9.29[${MULTILIB_USEDEP}] |
96 |
+ sys-libs/zlib[${MULTILIB_USEDEP}] |
97 |
+ pam? ( virtual/pam ) |
98 |
+ acl? ( virtual/acl ) |
99 |
+ addns? ( net-dns/bind-tools[gssapi] ) |
100 |
+ cluster? ( !dev-db/ctdb ) |
101 |
+ cups? ( net-print/cups ) |
102 |
+ dmapi? ( sys-apps/dmapi ) |
103 |
+ fam? ( virtual/fam ) |
104 |
+ gnutls? ( dev-libs/libgcrypt:0 |
105 |
+ >=net-libs/gnutls-1.4.0 ) |
106 |
+ ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] ) |
107 |
+ system-mitkrb5? ( app-crypt/mit-krb5[${MULTILIB_USEDEP}] ) |
108 |
+ !system-mitkrb5? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] ) |
109 |
+ systemd? ( sys-apps/systemd:0= )" |
110 |
+DEPEND="${CDEPEND} |
111 |
+ virtual/pkgconfig" |
112 |
+RDEPEND="${CDEPEND} |
113 |
+ client? ( net-fs/cifs-utils[ads?] ) |
114 |
+ selinux? ( sec-policy/selinux-samba ) |
115 |
+ !dev-perl/Parse-Yapp |
116 |
+" |
117 |
+ |
118 |
+REQUIRED_USE="addc? ( gnutls !system-mitkrb5 ) |
119 |
+ ads? ( acl gnutls ldap ) |
120 |
+ ${PYTHON_REQUIRED_USE}" |
121 |
+ |
122 |
+S="${WORKDIR}/${MY_P}" |
123 |
+ |
124 |
+PATCHES=( |
125 |
+ "${FILESDIR}/${PN}-4.4.0-pam.patch" |
126 |
+) |
127 |
+ |
128 |
+#CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)" |
129 |
+CONFDIR="${FILESDIR}/4.4" |
130 |
+ |
131 |
+WAF_BINARY="${S}/buildtools/bin/waf" |
132 |
+ |
133 |
+SHAREDMODS="" |
134 |
+ |
135 |
+pkg_setup() { |
136 |
+ python-single-r1_pkg_setup |
137 |
+ if use cluster ; then |
138 |
+ SHAREDMODS="${SHAREDMODS}idmap_rid,idmap_tdb2,idmap_ad" |
139 |
+ fi |
140 |
+} |
141 |
+ |
142 |
+src_prepare() { |
143 |
+ default |
144 |
+ |
145 |
+ # install the patches from tarball(s) |
146 |
+ eapply "${WORKDIR}/patches/" |
147 |
+ |
148 |
+ multilib_copy_sources |
149 |
+} |
150 |
+ |
151 |
+multilib_src_configure() { |
152 |
+ local myconf=() |
153 |
+ myconf=( |
154 |
+ --enable-fhs |
155 |
+ --sysconfdir="${EPREFIX}/etc" |
156 |
+ --localstatedir="${EPREFIX}/var" |
157 |
+ --with-modulesdir="${EPREFIX}/usr/$(get_libdir)/samba" |
158 |
+ --with-piddir="${EPREFIX}/run/${PN}" |
159 |
+ --bundled-libraries=NONE |
160 |
+ --builtin-libraries=NONE |
161 |
+ --disable-rpath |
162 |
+ --disable-rpath-install |
163 |
+ --nopyc |
164 |
+ --nopyo |
165 |
+ ) |
166 |
+ if multilib_is_native_abi ; then |
167 |
+ myconf+=( |
168 |
+ $(use_with acl acl-support) |
169 |
+ $(usex addc '' '--without-ad-dc') |
170 |
+ $(use_with addns dnsupdate) |
171 |
+ $(use_with ads) |
172 |
+ $(usex ads '--with-shared-modules=idmap_ad' '') |
173 |
+ $(use_enable avahi) |
174 |
+ $(use_with cluster cluster-support) |
175 |
+ $(use_enable cups) |
176 |
+ $(use_with dmapi) |
177 |
+ $(use_with fam) |
178 |
+ $(use_enable gnutls) |
179 |
+ $(use_enable iprint) |
180 |
+ $(use_with ldap) |
181 |
+ $(use_with pam) |
182 |
+ $(usex pam "--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '') |
183 |
+ $(use_with quota quotas) |
184 |
+ $(use_with syslog) |
185 |
+ $(use_with systemd) |
186 |
+ $(usex system-mitkrb5 '--with-system-mitkrb5' '') |
187 |
+ $(use_with winbind) |
188 |
+ $(usex test '--enable-selftest' '') |
189 |
+ --with-shared-modules=${SHAREDMODS} |
190 |
+ ) |
191 |
+ else |
192 |
+ myconf+=( |
193 |
+ --without-acl-support |
194 |
+ --without-ad-dc |
195 |
+ --without-dnsupdate |
196 |
+ --without-ads |
197 |
+ --disable-avahi |
198 |
+ --without-cluster-support |
199 |
+ --disable-cups |
200 |
+ --without-dmapi |
201 |
+ --without-fam |
202 |
+ --disable-gnutls |
203 |
+ --disable-iprint |
204 |
+ $(use_with ldap) |
205 |
+ --without-pam |
206 |
+ --without-quotas |
207 |
+ --without-syslog |
208 |
+ --without-systemd |
209 |
+ $(usex system-mitkrb5 '--with-system-mitkrb5' '') |
210 |
+ --without-winbind |
211 |
+ --disable-python |
212 |
+ ) |
213 |
+ fi |
214 |
+ |
215 |
+ CPPFLAGS="-I${SYSROOT}${EPREFIX}/usr/include/et ${CPPFLAGS}" \ |
216 |
+ waf-utils_src_configure ${myconf[@]} |
217 |
+} |
218 |
+ |
219 |
+multilib_src_install() { |
220 |
+ waf-utils_src_install |
221 |
+ |
222 |
+ # Make all .so files executable |
223 |
+ find "${D}" -type f -name "*.so" -exec chmod +x {} + |
224 |
+ |
225 |
+ if multilib_is_native_abi; then |
226 |
+ # install ldap schema for server (bug #491002) |
227 |
+ if use ldap ; then |
228 |
+ insinto /etc/openldap/schema |
229 |
+ doins examples/LDAP/samba.schema |
230 |
+ fi |
231 |
+ |
232 |
+ # create symlink for cups (bug #552310) |
233 |
+ if use cups ; then |
234 |
+ dosym /usr/bin/smbspool /usr/libexec/cups/backend/smb |
235 |
+ fi |
236 |
+ |
237 |
+ # install example config file |
238 |
+ insinto /etc/samba |
239 |
+ doins examples/smb.conf.default |
240 |
+ |
241 |
+ # Install init script and conf.d file |
242 |
+ newinitd "${CONFDIR}/samba4.initd-r1" samba |
243 |
+ newconfd "${CONFDIR}/samba4.confd" samba |
244 |
+ |
245 |
+ systemd_dotmpfilesd "${FILESDIR}"/samba.conf |
246 |
+ systemd_dounit "${FILESDIR}"/nmbd.service |
247 |
+ systemd_dounit "${FILESDIR}"/smbd.{service,socket} |
248 |
+ systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service' |
249 |
+ systemd_dounit "${FILESDIR}"/winbindd.service |
250 |
+ systemd_dounit "${FILESDIR}"/samba.service |
251 |
+ fi |
252 |
+} |
253 |
+ |
254 |
+multilib_src_test() { |
255 |
+ if multilib_is_native_abi ; then |
256 |
+ "${WAF_BINARY}" test || die "test failed" |
257 |
+ fi |
258 |
+} |
259 |
+ |
260 |
+pkg_postinst() { |
261 |
+ ewarn "Be aware the this release contains the best of all of Samba's" |
262 |
+ ewarn "technology parts, both a file server (that you can reasonably expect" |
263 |
+ ewarn "to upgrade existing Samba 3.x releases to) and the AD domain" |
264 |
+ ewarn "controller work previously known as 'samba4'." |
265 |
+ |
266 |
+ elog "For further information and migration steps make sure to read " |
267 |
+ elog "http://samba.org/samba/history/${P}.html " |
268 |
+ elog "http://samba.org/samba/history/${PN}-4.2.0.html and" |
269 |
+ elog "http://wiki.samba.org/index.php/Samba4/HOWTO " |
270 |
+} |