1 |
commit: 2af5b6db20d7eab6faff2ee4325ace40fa4f9386 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Apr 3 08:51:00 2017 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 3 08:51:17 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2af5b6db |
7 |
|
8 |
net-fs/samba: Removed old. |
9 |
|
10 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
11 |
|
12 |
net-fs/samba/Manifest | 2 - |
13 |
net-fs/samba/samba-4.5.6.ebuild | 266 ----------------------------------- |
14 |
net-fs/samba/samba-4.6.0.ebuild | 299 ---------------------------------------- |
15 |
3 files changed, 567 deletions(-) |
16 |
|
17 |
diff --git a/net-fs/samba/Manifest b/net-fs/samba/Manifest |
18 |
index 1ffe6f5262a..324d5c4f7fb 100644 |
19 |
--- a/net-fs/samba/Manifest |
20 |
+++ b/net-fs/samba/Manifest |
21 |
@@ -1,10 +1,8 @@ |
22 |
DIST samba-4.2.11.tar.gz 20875348 SHA256 75bce53c922e51352933c9846f2c4b1e251fabb80927adb426a773a321ee01f8 SHA512 293365f2718e756b66ccaec4b0dbce7044ade615b332f58968cf42dd1ec6b6445576590eaf5bd35fa00ba9aa4ba3be7720afc33763652e97731eebc3149f4820 WHIRLPOOL 1e04fd527e55c8d438c96a43d9a25a9b3e09a3edc504a2a5fe44bc8f9101c833c90e3ba3188b8872b046370916f3798e4fce0ffa7848b65f452b5c51ec7107f1 |
23 |
DIST samba-4.2.14.tar.gz 20883281 SHA256 db820a9947e44f04b0eb25e4aa0c3db32c4042fca541775ee8e2905093e888e6 SHA512 269dd74ba788657434f51ac70953a293c94bcf98280eaa6f44634c5da54169a5ea7865d543a7c23860c4750a40cdee7caeaf5c7fc3dbc137f444e90f31a09890 WHIRLPOOL 925369c2f9c222d718bf4aacc7b1a83b8275acd96bbc1eca52ad96c86847327807560674ee9b180173d17a1e6109307ec4f70f1acbebe2efc8a9e67f2141e17d |
24 |
-DIST samba-4.5.6.tar.gz 20978580 SHA256 0d8ff81ef034344d09c9614fae7a2ad19cf7b175eb080e8548aa7783040ade70 SHA512 089ffbeae5d967ad1c805db55f2778dd4cc23083ed732df04a6f1f9d9bd734004002e93c9f1dd3128cf363a26060d0baf30256a0ba78f797cd340ae478e2c0b0 WHIRLPOOL 03c6cd57e76bbfc8b2f6bcd2893376687063c0e3455e00646e71e32cb0c908d5e2bc8a33344cc9252cf466345bd8121e715e029f12d5ba10203dd5e302811ab5 |
25 |
DIST samba-4.5.7.tar.gz 20981612 SHA256 ac70f09af80639d8189e1b9bc0a554841ee44df2b1ef58e7e682ad5400fd9400 SHA512 3515ab133470b902e35e77f43639881af87643adeb7b3f43f319a684bff9db2e2d5acffbd67d69d910c270f6676a2cbcc25730fc27015a00cb9d44154e60cf2d WHIRLPOOL 016c2163162ed3ab126c16c47de4dc21b0d2b1116b207fc9359510a323e81d6d502f99b46885c6fee0cf8dd19c3ed5df5275eea79b47c3b0fc0ce935f3ec7db2 |
26 |
DIST samba-4.5.8.tar.gz 20979104 SHA256 f63b656d8823a280c50c9dbd6b692816cd7a88adfe9b47997ce697fd75bf81f0 SHA512 8855af32632d517ea5ce86f8ce4a73367fba8ff2e7155f4ed14483cf7a0922f0e0df8fd1e5bc04cee67093fce8b92b6fa18844e6383c0099cce1d5042f004438 WHIRLPOOL 86018efcc8e505c3d6d50806d7e20a6925941a80bd42568b50155f714f5717d1ed9f68a37faa10fe037bf67971c6573de9dbe71a852a064bfde6aaee93ba173e |
27 |
DIST samba-4.6.0-disable-python-patches.tar.xz 7544 SHA256 508adeea65604ef8f4da006504de7c27bed56d7003db1166dc5d3b01f5a6be6e SHA512 07de2c0877aff31069ed0ab4fbe1c2272c854ae898ee5300a3b176ba31a218b05acff0b5120a5da0995592e7877c607865d2194c992df17b27c993836f58a654 WHIRLPOOL 12888f2ebf8d4ed5619860b2e6929599022b8ab1245970a5e1258f26e89aca1f87ab58fa54c7300dbd79a0c8fd6955e12c8aca6eeca246cdf06661d53ca3f6dd |
28 |
-DIST samba-4.6.0.tar.gz 21090602 SHA256 a3b3592e63d7064cae2624991f4925a443f3846c0dabb7011aee052c3fd4cc2b SHA512 734582b540ba25ea73c5bf8b0801c01808eaea4a0d96b6b26c5ac18bcc4eb4fa42c9d3484891c577f80453bf9f7e5fe7c56b0ec7148e5c0dad0279889b9af93a WHIRLPOOL f20991345b490d78386a33c867f843e9151930f80997d4a00e0ef924bf6b1ea3fcc6a7786b6f153073213b530225108e012882f74c1a24398587827d0dffc672 |
29 |
DIST samba-4.6.1.tar.gz 21097666 SHA256 5d2751faa3cd33affd4f49681f700eff9f6c22d6b08e8858ae0d3cd8e51c535e SHA512 8c759bb6483f67d632f35d779bf1afb44907fd478e3e5919fc95f36dd198e393819ed419686235ba01b5ec0e15ea80cb11e7fa8f22f37a1742bf0e818a3c6c14 WHIRLPOOL a4ec6692a72979756acd2381f428c6f3f0f6dd909a4270d529ad5348cbdd4bbe9f19d37ff24977a8683c5b48323edb251d946b138f3ce44793c1fe03884435be |
30 |
DIST samba-4.6.2.tar.gz 21097045 SHA256 927afcc16e444718985e3952de92d34e7b776b9ca0238179d866da18a6441c35 SHA512 d64129b7fc65bf30cc06e34a07ac5cf04b52bf6639950eff48ae0ec27b0de44614df6a7c44b62b1859553fc7051f493b2d8216739da2232ac1caeaea81d328df WHIRLPOOL fed65abc7eb2b996062db57d40ccc57b10e8519412e97c9dd9147cd462f80f0b401939c2f00522595eed3f66f879c88039239d1dcf6fdc73c38c3fb7d43cef3a |
31 |
DIST samba-disable-python-patches-4.2.12.tar.xz 6052 SHA256 8903eacbabdfaf7b64cbde03d7c367d1efdc92e54090f0f4b9ed5d2a462b1c18 SHA512 c527d0a052d3211e5b12c17bc94db56cc5e5545189ed65a760c0656c94c22e27a4b159e6439eb0370873e1619873a741f3b3bd10d3876b38eb3914a87eace372 WHIRLPOOL ad63db55d5dc96f56e6c9b30c2092e2f6e206b0ed5d13c249879d10753c8db2f475c5d4e651e2fc042ad992b648d3b4465f1b28c6b4bbf821cf503d27f741f7e |
32 |
|
33 |
diff --git a/net-fs/samba/samba-4.5.6.ebuild b/net-fs/samba/samba-4.5.6.ebuild |
34 |
deleted file mode 100644 |
35 |
index d76476baed2..00000000000 |
36 |
--- a/net-fs/samba/samba-4.5.6.ebuild |
37 |
+++ /dev/null |
38 |
@@ -1,266 +0,0 @@ |
39 |
-# Copyright 1999-2017 Gentoo Foundation |
40 |
-# Distributed under the terms of the GNU General Public License v2 |
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 client cluster cups dmapi fam gnutls gpg iprint ldap pam |
66 |
-quota selinux syslog system-heimdal +system-mitkrb5 systemd test winbind zeroconf" |
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/libaio[${MULTILIB_USEDEP}] |
84 |
- dev-libs/libbsd[${MULTILIB_USEDEP}] |
85 |
- dev-libs/iniparser:0 |
86 |
- dev-libs/popt[${MULTILIB_USEDEP}] |
87 |
- dev-python/subunit[${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
88 |
- sys-apps/attr[${MULTILIB_USEDEP}] |
89 |
- >=sys-libs/ldb-1.1.27[ldap(+)?,${MULTILIB_USEDEP}] |
90 |
- sys-libs/libcap |
91 |
- sys-libs/ncurses:0=[${MULTILIB_USEDEP}] |
92 |
- sys-libs/readline:0= |
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.31-r1[${MULTILIB_USEDEP}] |
96 |
- sys-libs/zlib[${MULTILIB_USEDEP}] |
97 |
- virtual/libiconv |
98 |
- pam? ( virtual/pam ) |
99 |
- acl? ( virtual/acl ) |
100 |
- addns? ( net-dns/bind-tools[gssapi] ) |
101 |
- cluster? ( !dev-db/ctdb ) |
102 |
- cups? ( net-print/cups ) |
103 |
- dmapi? ( sys-apps/dmapi ) |
104 |
- fam? ( virtual/fam ) |
105 |
- gnutls? ( |
106 |
- dev-libs/libgcrypt:0 |
107 |
- >=net-libs/gnutls-1.4.0 |
108 |
- ) |
109 |
- gpg? ( app-crypt/gpgme ) |
110 |
- ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] ) |
111 |
- system-heimdal? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] ) |
112 |
- system-mitkrb5? ( app-crypt/mit-krb5[${MULTILIB_USEDEP}] ) |
113 |
- systemd? ( sys-apps/systemd:0= )" |
114 |
-DEPEND="${CDEPEND} |
115 |
- virtual/pkgconfig" |
116 |
-RDEPEND="${CDEPEND} |
117 |
- client? ( net-fs/cifs-utils[ads?] ) |
118 |
- selinux? ( sec-policy/selinux-samba ) |
119 |
- !dev-perl/Parse-Yapp |
120 |
-" |
121 |
- |
122 |
-REQUIRED_USE="addc? ( gnutls !system-mitkrb5 ) |
123 |
- ads? ( acl gnutls ldap ) |
124 |
- gpg? ( addc ) |
125 |
- ?? ( system-heimdal system-mitkrb5 ) |
126 |
- ${PYTHON_REQUIRED_USE}" |
127 |
- |
128 |
-S="${WORKDIR}/${MY_P}" |
129 |
- |
130 |
-PATCHES=( |
131 |
- "${FILESDIR}/${PN}-4.4.0-pam.patch" |
132 |
- "${FILESDIR}/${PN}-4.5.1-compile_et_fix.patch" |
133 |
-) |
134 |
- |
135 |
-#CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)" |
136 |
-CONFDIR="${FILESDIR}/4.4" |
137 |
- |
138 |
-WAF_BINARY="${S}/buildtools/bin/waf" |
139 |
- |
140 |
-SHAREDMODS="" |
141 |
- |
142 |
-pkg_setup() { |
143 |
- python-single-r1_pkg_setup |
144 |
- if use cluster ; then |
145 |
- SHAREDMODS="idmap_rid,idmap_tdb2,idmap_ad" |
146 |
- elif use ads ; then |
147 |
- SHAREDMODS="idmap_ad" |
148 |
- fi |
149 |
-} |
150 |
- |
151 |
-src_prepare() { |
152 |
- default |
153 |
- |
154 |
- # install the patches from tarball(s) |
155 |
- eapply "${WORKDIR}/patches" |
156 |
- |
157 |
- # ugly hackaround for bug #592502 |
158 |
- cp /usr/include/tevent_internal.h "${S}"/lib/tevent/ || die |
159 |
- |
160 |
- sed -e 's:<gpgme\.h>:<gpgme/gpgme.h>:' \ |
161 |
- -i source4/dsdb/samdb/ldb_modules/password_hash.c \ |
162 |
- || die |
163 |
- |
164 |
- # Friggin' WAF shit |
165 |
- multilib_copy_sources |
166 |
-} |
167 |
- |
168 |
-multilib_src_configure() { |
169 |
- # when specifying libs for samba build you must append NONE to the end to |
170 |
- # stop it automatically including things |
171 |
- local bundled_libs="NONE" |
172 |
- if ! use system-heimdal && ! use system-mitkrb5 ; then |
173 |
- bundled_libs="heimbase,heimntlm,hdb,kdc,krb5,wind,gssapi,hcrypto,hx509,roken,asn1,com_err,NONE" |
174 |
- fi |
175 |
- |
176 |
- local myconf=() |
177 |
- myconf=( |
178 |
- --enable-fhs |
179 |
- --sysconfdir="${EPREFIX}/etc" |
180 |
- --localstatedir="${EPREFIX}/var" |
181 |
- --with-modulesdir="${EPREFIX}/usr/$(get_libdir)/samba" |
182 |
- --with-piddir="${EPREFIX}/run/${PN}" |
183 |
- --bundled-libraries="${bundled_libs}" |
184 |
- --builtin-libraries=NONE |
185 |
- --disable-rpath |
186 |
- --disable-rpath-install |
187 |
- --nopyc |
188 |
- --nopyo |
189 |
- ) |
190 |
- if multilib_is_native_abi ; then |
191 |
- myconf+=( |
192 |
- $(use_with acl acl-support) |
193 |
- $(usex addc '' '--without-ad-dc') |
194 |
- $(use_with addns dnsupdate) |
195 |
- $(use_with ads) |
196 |
- $(use_with cluster cluster-support) |
197 |
- $(use_enable cups) |
198 |
- $(use_with dmapi) |
199 |
- $(use_with fam) |
200 |
- $(use_enable gnutls) |
201 |
- $(use_with gpg gpgme) |
202 |
- $(use_enable iprint) |
203 |
- $(use_with ldap) |
204 |
- $(use_with pam) |
205 |
- $(usex pam "--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '') |
206 |
- $(use_with quota quotas) |
207 |
- $(use_with syslog) |
208 |
- $(use_with systemd) |
209 |
- $(usex system-mitkrb5 '--with-system-mitkrb5' '') |
210 |
- $(use_with winbind) |
211 |
- $(usex test '--enable-selftest' '') |
212 |
- $(use_enable zeroconf avahi) |
213 |
- --with-shared-modules=${SHAREDMODS} |
214 |
- ) |
215 |
- else |
216 |
- myconf+=( |
217 |
- --without-acl-support |
218 |
- --without-ad-dc |
219 |
- --without-dnsupdate |
220 |
- --without-ads |
221 |
- --disable-avahi |
222 |
- --without-cluster-support |
223 |
- --disable-cups |
224 |
- --without-dmapi |
225 |
- --without-fam |
226 |
- --disable-gnutls |
227 |
- --without-gpgme |
228 |
- --disable-iprint |
229 |
- $(use_with ldap) |
230 |
- --without-pam |
231 |
- --without-quotas |
232 |
- --without-syslog |
233 |
- --without-systemd |
234 |
- $(usex system-mitkrb5 '--with-system-mitkrb5' '') |
235 |
- --without-winbind |
236 |
- --disable-python |
237 |
- ) |
238 |
- fi |
239 |
- |
240 |
- CPPFLAGS="-I${SYSROOT}${EPREFIX}/usr/include/et ${CPPFLAGS}" \ |
241 |
- waf-utils_src_configure ${myconf[@]} |
242 |
-} |
243 |
- |
244 |
-multilib_src_install() { |
245 |
- waf-utils_src_install |
246 |
- |
247 |
- # Make all .so files executable |
248 |
- find "${D}" -type f -name "*.so" -exec chmod +x {} + |
249 |
- |
250 |
- if multilib_is_native_abi; then |
251 |
- # install ldap schema for server (bug #491002) |
252 |
- if use ldap ; then |
253 |
- insinto /etc/openldap/schema |
254 |
- doins examples/LDAP/samba.schema |
255 |
- fi |
256 |
- |
257 |
- # create symlink for cups (bug #552310) |
258 |
- if use cups ; then |
259 |
- dosym /usr/bin/smbspool /usr/libexec/cups/backend/smb |
260 |
- fi |
261 |
- |
262 |
- # install example config file |
263 |
- insinto /etc/samba |
264 |
- doins examples/smb.conf.default |
265 |
- |
266 |
- # Fix paths in example file (#603964) |
267 |
- sed \ |
268 |
- -e '/log file =/s@/usr/local/samba/var/@/var/log/samba/@' \ |
269 |
- -e '/include =/s@/usr/local/samba/lib/@/etc/samba/@' \ |
270 |
- -e '/path =/s@/usr/local/samba/lib/@/var/lib/samba/@' \ |
271 |
- -e '/path =/s@/usr/local/samba/@/var/lib/samba/@' \ |
272 |
- -e '/path =/s@/usr/spool/samba@/var/spool/samba@' \ |
273 |
- -i "${ED%/}"/etc/samba/smb.conf.default || die |
274 |
- |
275 |
- # Install init script and conf.d file |
276 |
- newinitd "${CONFDIR}/samba4.initd-r1" samba |
277 |
- newconfd "${CONFDIR}/samba4.confd" samba |
278 |
- |
279 |
- systemd_dotmpfilesd "${FILESDIR}"/samba.conf |
280 |
- systemd_dounit "${FILESDIR}"/nmbd.service |
281 |
- systemd_dounit "${FILESDIR}"/smbd.{service,socket} |
282 |
- systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service' |
283 |
- systemd_dounit "${FILESDIR}"/winbindd.service |
284 |
- systemd_dounit "${FILESDIR}"/samba.service |
285 |
- fi |
286 |
-} |
287 |
- |
288 |
-multilib_src_test() { |
289 |
- if multilib_is_native_abi ; then |
290 |
- "${WAF_BINARY}" test || die "test failed" |
291 |
- fi |
292 |
-} |
293 |
- |
294 |
-pkg_postinst() { |
295 |
- ewarn "Be aware the this release contains the best of all of Samba's" |
296 |
- ewarn "technology parts, both a file server (that you can reasonably expect" |
297 |
- ewarn "to upgrade existing Samba 3.x releases to) and the AD domain" |
298 |
- ewarn "controller work previously known as 'samba4'." |
299 |
- |
300 |
- elog "For further information and migration steps make sure to read " |
301 |
- elog "http://samba.org/samba/history/${P}.html " |
302 |
- elog "http://samba.org/samba/history/${PN}-4.5.0.html and" |
303 |
- elog "http://wiki.samba.org/index.php/Samba4/HOWTO " |
304 |
-} |
305 |
|
306 |
diff --git a/net-fs/samba/samba-4.6.0.ebuild b/net-fs/samba/samba-4.6.0.ebuild |
307 |
deleted file mode 100644 |
308 |
index aa112b04b0b..00000000000 |
309 |
--- a/net-fs/samba/samba-4.6.0.ebuild |
310 |
+++ /dev/null |
311 |
@@ -1,299 +0,0 @@ |
312 |
-# Copyright 1999-2017 Gentoo Foundation |
313 |
-# Distributed under the terms of the GNU General Public License v2 |
314 |
- |
315 |
-EAPI=6 |
316 |
-PYTHON_COMPAT=( python2_7 ) |
317 |
-PYTHON_REQ_USE='threads(+),xml(+)' |
318 |
- |
319 |
-inherit python-single-r1 waf-utils multilib-minimal linux-info systemd eutils |
320 |
- |
321 |
-MY_PV="${PV/_rc/rc}" |
322 |
-MY_P="${PN}-${MY_PV}" |
323 |
- |
324 |
-SRC_PATH="stable" |
325 |
-[[ ${PV} = *_rc* ]] && SRC_PATH="rc" |
326 |
- |
327 |
-SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz |
328 |
- https://dev.gentoo.org/~polynomial-c/samba-4.6.0-disable-python-patches.tar.xz" |
329 |
-[[ ${PV} = *_rc* ]] || \ |
330 |
-KEYWORDS="~amd64 ~hppa ~x86" |
331 |
- |
332 |
-DESCRIPTION="Samba Suite Version 4" |
333 |
-HOMEPAGE="http://www.samba.org/" |
334 |
-LICENSE="GPL-3" |
335 |
- |
336 |
-SLOT="0" |
337 |
- |
338 |
-IUSE="acl addc addns ads client cluster cups dmapi fam gnutls gpg iprint ldap pam python |
339 |
-quota selinux syslog system-heimdal +system-mitkrb5 systemd test winbind zeroconf" |
340 |
- |
341 |
-MULTILIB_WRAPPED_HEADERS=( |
342 |
- /usr/include/samba-4.0/policy.h |
343 |
- /usr/include/samba-4.0/dcerpc_server.h |
344 |
- /usr/include/samba-4.0/ctdb.h |
345 |
- /usr/include/samba-4.0/ctdb_client.h |
346 |
- /usr/include/samba-4.0/ctdb_protocol.h |
347 |
- /usr/include/samba-4.0/ctdb_private.h |
348 |
- /usr/include/samba-4.0/ctdb_typesafe_cb.h |
349 |
- /usr/include/samba-4.0/ctdb_version.h |
350 |
-) |
351 |
- |
352 |
-# sys-apps/attr is an automagic dependency (see bug #489748) |
353 |
-CDEPEND=" |
354 |
- >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}] |
355 |
- dev-lang/perl:= |
356 |
- dev-libs/libaio[${MULTILIB_USEDEP}] |
357 |
- dev-libs/libbsd[${MULTILIB_USEDEP}] |
358 |
- dev-libs/iniparser:0 |
359 |
- dev-libs/popt[${MULTILIB_USEDEP}] |
360 |
- dev-python/subunit[${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
361 |
- >=dev-util/cmocka-1.0.0[${MULTILIB_USEDEP}] |
362 |
- sys-apps/attr[${MULTILIB_USEDEP}] |
363 |
- >=sys-libs/ldb-1.1.29[ldap(+)?,python(+)?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
364 |
- sys-libs/libcap |
365 |
- sys-libs/ncurses:0=[${MULTILIB_USEDEP}] |
366 |
- sys-libs/readline:0= |
367 |
- >=sys-libs/talloc-2.1.9[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
368 |
- >=sys-libs/tdb-1.3.12[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
369 |
- >=sys-libs/tevent-0.9.31-r1[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
370 |
- sys-libs/zlib[${MULTILIB_USEDEP}] |
371 |
- virtual/libiconv |
372 |
- pam? ( virtual/pam ) |
373 |
- acl? ( virtual/acl ) |
374 |
- addns? ( |
375 |
- net-dns/bind-tools[gssapi] |
376 |
- dev-python/dnspython[${PYTHON_USEDEP}] |
377 |
- ) |
378 |
- cluster? ( !dev-db/ctdb ) |
379 |
- cups? ( net-print/cups ) |
380 |
- dmapi? ( sys-apps/dmapi ) |
381 |
- fam? ( virtual/fam ) |
382 |
- gnutls? ( |
383 |
- dev-libs/libgcrypt:0 |
384 |
- >=net-libs/gnutls-1.4.0 |
385 |
- ) |
386 |
- gpg? ( app-crypt/gpgme ) |
387 |
- ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] ) |
388 |
- system-heimdal? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] ) |
389 |
- system-mitkrb5? ( app-crypt/mit-krb5[${MULTILIB_USEDEP}] ) |
390 |
- systemd? ( sys-apps/systemd:0= ) |
391 |
- test? ( |
392 |
- !system-mitkrb5? ( |
393 |
- >=sys-libs/nss_wrapper-1.1.3 |
394 |
- >=net-dns/resolv_wrapper-1.1.4 |
395 |
- >=net-libs/socket_wrapper-1.1.7 |
396 |
- >=sys-libs/uid_wrapper-1.2.1 |
397 |
- ) |
398 |
- )" |
399 |
-DEPEND="${CDEPEND} |
400 |
- ${PYTHON_DEPS} |
401 |
- virtual/pkgconfig" |
402 |
-RDEPEND="${CDEPEND} |
403 |
- python? ( ${PYTHON_DEPS} ) |
404 |
- client? ( net-fs/cifs-utils[ads?] ) |
405 |
- selinux? ( sec-policy/selinux-samba ) |
406 |
- !dev-perl/Parse-Yapp |
407 |
-" |
408 |
- |
409 |
-REQUIRED_USE="addc? ( python gnutls !system-mitkrb5 ) |
410 |
- test? ( python ) |
411 |
- addns? ( python ) |
412 |
- ads? ( acl gnutls ldap ) |
413 |
- gpg? ( addc ) |
414 |
- ?? ( system-heimdal system-mitkrb5 ) |
415 |
- ${PYTHON_REQUIRED_USE}" |
416 |
- |
417 |
-# the test suite is messed, it uses system-installed samba |
418 |
-# bits instead of what was built, tests things disabled via use |
419 |
-# flags, and generally just fails to work in a way ebuilds could |
420 |
-# rely on in its current state |
421 |
-RESTRICT="test" |
422 |
- |
423 |
-S="${WORKDIR}/${MY_P}" |
424 |
- |
425 |
-PATCHES=( |
426 |
- "${FILESDIR}/${PN}-4.4.0-pam.patch" |
427 |
- "${FILESDIR}/${PN}-4.5.1-compile_et_fix.patch" |
428 |
-) |
429 |
- |
430 |
-#CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)" |
431 |
-CONFDIR="${FILESDIR}/4.4" |
432 |
- |
433 |
-WAF_BINARY="${S}/buildtools/bin/waf" |
434 |
- |
435 |
-SHAREDMODS="" |
436 |
- |
437 |
-pkg_setup() { |
438 |
- python-single-r1_pkg_setup |
439 |
- if use cluster ; then |
440 |
- SHAREDMODS="idmap_rid,idmap_tdb2,idmap_ad" |
441 |
- elif use ads ; then |
442 |
- SHAREDMODS="idmap_ad" |
443 |
- fi |
444 |
-} |
445 |
- |
446 |
-src_prepare() { |
447 |
- default |
448 |
- |
449 |
- # install the patches from tarball(s) |
450 |
- eapply "${WORKDIR}/patches" |
451 |
- |
452 |
- # un-bundle dnspython |
453 |
- sed -i -e '/"dns.resolver":/d' "${S}"/third_party/wscript || die |
454 |
- |
455 |
- # unbundle iso8601 unless tests are enabled |
456 |
- use test || sed -i -e '/"iso8601":/d' "${S}"/third_party/wscript || die |
457 |
- |
458 |
- # ugly hackaround for bug #592502 |
459 |
- cp /usr/include/tevent_internal.h "${S}"/lib/tevent/ || die |
460 |
- |
461 |
- sed -e 's:<gpgme\.h>:<gpgme/gpgme.h>:' \ |
462 |
- -i source4/dsdb/samdb/ldb_modules/password_hash.c \ |
463 |
- || die |
464 |
- |
465 |
- # Friggin' WAF shit |
466 |
- multilib_copy_sources |
467 |
-} |
468 |
- |
469 |
-multilib_src_configure() { |
470 |
- # when specifying libs for samba build you must append NONE to the end to |
471 |
- # stop it automatically including things |
472 |
- local bundled_libs="NONE" |
473 |
- if ! use system-heimdal && ! use system-mitkrb5 ; then |
474 |
- bundled_libs="heimbase,heimntlm,hdb,kdc,krb5,wind,gssapi,hcrypto,hx509,roken,asn1,com_err,NONE" |
475 |
- fi |
476 |
- |
477 |
- local myconf=() |
478 |
- myconf=( |
479 |
- --enable-fhs |
480 |
- --sysconfdir="${EPREFIX}/etc" |
481 |
- --localstatedir="${EPREFIX}/var" |
482 |
- --with-modulesdir="${EPREFIX}/usr/$(get_libdir)/samba" |
483 |
- --with-piddir="${EPREFIX}/run/${PN}" |
484 |
- --bundled-libraries="${bundled_libs}" |
485 |
- --builtin-libraries=NONE |
486 |
- --disable-rpath |
487 |
- --disable-rpath-install |
488 |
- --nopyc |
489 |
- --nopyo |
490 |
- ) |
491 |
- if multilib_is_native_abi ; then |
492 |
- myconf+=( |
493 |
- $(use_with acl acl-support) |
494 |
- $(usex addc '' '--without-ad-dc') |
495 |
- $(use_with addns dnsupdate) |
496 |
- $(use_with ads) |
497 |
- $(use_with cluster cluster-support) |
498 |
- $(use_enable cups) |
499 |
- $(use_with dmapi) |
500 |
- $(use_with fam) |
501 |
- $(use_enable gnutls) |
502 |
- $(use_with gpg gpgme) |
503 |
- $(use_enable iprint) |
504 |
- $(use_with ldap) |
505 |
- $(use_with pam) |
506 |
- $(usex pam "--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '') |
507 |
- $(use_with quota quotas) |
508 |
- $(use_with syslog) |
509 |
- $(use_with systemd) |
510 |
- $(usex system-mitkrb5 '--with-system-mitkrb5' '') |
511 |
- $(use_with winbind) |
512 |
- $(usex python '' '--disable-python') |
513 |
- $(usex test '--enable-selftest' '') |
514 |
- $(use_enable zeroconf avahi) |
515 |
- --with-shared-modules=${SHAREDMODS} |
516 |
- ) |
517 |
- else |
518 |
- myconf+=( |
519 |
- --without-acl-support |
520 |
- --without-ad-dc |
521 |
- --without-dnsupdate |
522 |
- --without-ads |
523 |
- --disable-avahi |
524 |
- --without-cluster-support |
525 |
- --disable-cups |
526 |
- --without-dmapi |
527 |
- --without-fam |
528 |
- --disable-gnutls |
529 |
- --without-gpgme |
530 |
- --disable-iprint |
531 |
- $(use_with ldap) |
532 |
- --without-pam |
533 |
- --without-quotas |
534 |
- --without-syslog |
535 |
- --without-systemd |
536 |
- $(usex system-mitkrb5 '--with-system-mitkrb5' '') |
537 |
- --without-winbind |
538 |
- --disable-python |
539 |
- ) |
540 |
- fi |
541 |
- |
542 |
- CPPFLAGS="-I${SYSROOT}${EPREFIX}/usr/include/et ${CPPFLAGS}" \ |
543 |
- waf-utils_src_configure ${myconf[@]} |
544 |
-} |
545 |
- |
546 |
-multilib_src_compile() { |
547 |
- waf-utils_src_compile |
548 |
-} |
549 |
- |
550 |
-multilib_src_install() { |
551 |
- waf-utils_src_install |
552 |
- |
553 |
- # Make all .so files executable |
554 |
- find "${D}" -type f -name "*.so" -exec chmod +x {} + |
555 |
- |
556 |
- if multilib_is_native_abi; then |
557 |
- # install ldap schema for server (bug #491002) |
558 |
- if use ldap ; then |
559 |
- insinto /etc/openldap/schema |
560 |
- doins examples/LDAP/samba.schema |
561 |
- fi |
562 |
- |
563 |
- # create symlink for cups (bug #552310) |
564 |
- if use cups ; then |
565 |
- dosym /usr/bin/smbspool /usr/libexec/cups/backend/smb |
566 |
- fi |
567 |
- |
568 |
- # install example config file |
569 |
- insinto /etc/samba |
570 |
- doins examples/smb.conf.default |
571 |
- |
572 |
- # Fix paths in example file (#603964) |
573 |
- sed \ |
574 |
- -e '/log file =/s@/usr/local/samba/var/@/var/log/samba/@' \ |
575 |
- -e '/include =/s@/usr/local/samba/lib/@/etc/samba/@' \ |
576 |
- -e '/path =/s@/usr/local/samba/lib/@/var/lib/samba/@' \ |
577 |
- -e '/path =/s@/usr/local/samba/@/var/lib/samba/@' \ |
578 |
- -e '/path =/s@/usr/spool/samba@/var/spool/samba@' \ |
579 |
- -i "${ED%/}"/etc/samba/smb.conf.default || die |
580 |
- |
581 |
- # Install init script and conf.d file |
582 |
- newinitd "${CONFDIR}/samba4.initd-r1" samba |
583 |
- newconfd "${CONFDIR}/samba4.confd" samba |
584 |
- |
585 |
- systemd_dotmpfilesd "${FILESDIR}"/samba.conf |
586 |
- systemd_dounit "${FILESDIR}"/nmbd.service |
587 |
- systemd_dounit "${FILESDIR}"/smbd.{service,socket} |
588 |
- systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service' |
589 |
- systemd_dounit "${FILESDIR}"/winbindd.service |
590 |
- systemd_dounit "${FILESDIR}"/samba.service |
591 |
- fi |
592 |
-} |
593 |
- |
594 |
-multilib_src_test() { |
595 |
- if multilib_is_native_abi ; then |
596 |
- "${WAF_BINARY}" test || die "test failed" |
597 |
- fi |
598 |
-} |
599 |
- |
600 |
-pkg_postinst() { |
601 |
- ewarn "Be aware the this release contains the best of all of Samba's" |
602 |
- ewarn "technology parts, both a file server (that you can reasonably expect" |
603 |
- ewarn "to upgrade existing Samba 3.x releases to) and the AD domain" |
604 |
- ewarn "controller work previously known as 'samba4'." |
605 |
- |
606 |
- elog "For further information and migration steps make sure to read " |
607 |
- elog "http://samba.org/samba/history/${P}.html " |
608 |
- elog "http://samba.org/samba/history/${PN}-4.5.0.html and" |
609 |
- elog "http://wiki.samba.org/index.php/Samba4/HOWTO " |
610 |
-} |