1 |
commit: 9380fda64cda2a1f99fe1ec88d057462f28240c7 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 28 09:06:26 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 28 09:06:41 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9380fda6 |
7 |
|
8 |
net-fs/samba: Removed old. |
9 |
|
10 |
Package-Manager: Portage-2.3.52, Repoman-2.3.12 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
net-fs/samba/Manifest | 3 - |
14 |
net-fs/samba/samba-4.7.10.ebuild | 319 --------------------------------------- |
15 |
net-fs/samba/samba-4.8.5.ebuild | 286 ----------------------------------- |
16 |
net-fs/samba/samba-4.9.1.ebuild | 288 ----------------------------------- |
17 |
4 files changed, 896 deletions(-) |
18 |
|
19 |
diff --git a/net-fs/samba/Manifest b/net-fs/samba/Manifest |
20 |
index 2921cf72d71..73425795767 100644 |
21 |
--- a/net-fs/samba/Manifest |
22 |
+++ b/net-fs/samba/Manifest |
23 |
@@ -1,11 +1,8 @@ |
24 |
DIST samba-4.5.11-disable-python-patches.tar.xz 6292 BLAKE2B c2a32a1059a02bc1c87ce5f604cbc5878c654b8f693c8486b5ba63b37513444915a7b6389fe82b7e31ab2f9577dd8462eddba60b4f4f756b4ed1145ce7bd90ae SHA512 f0e3076e3e1ecaae3f06b3ef30efc81719fb3f63a1041dcbdae4b62ca4cf693732f9eb16f047d046d4930136fed82194e82b455ea888e12cf845b3e6a122d57d |
25 |
DIST samba-4.5.16.tar.gz 21024396 BLAKE2B e737559fb748044076608fa233700eb54c7e1c56bc234763f062b6341a179cc78a4a8cdf9f3d6f4d7f3cf8a79f846852ddd5cc753a468c3adb3a0451e1809ed9 SHA512 de8a41013cfb5ef3adcb290efd97a78a5de876d90ad05764d631f14e663a1849bb53e4ac394b46c906f1109be5748fee9316407a659c57007d36851ae8adcd7f |
26 |
-DIST samba-4.7.10.tar.gz 16911799 BLAKE2B e8ee8763c9843d048589cb17c1b78a3e3983ff8766b2981a7da0c2e6f8425a85c97f2619a9a8259a94ccd07d7aa55bb9bf928261959c04eb0b7fdfe318fc2433 SHA512 4165cf9ec1c6355d0832fb4e17939f8f1544802e6e144d51a4f6030ad54660bb468b586d3db488f5e13f3d451fe4e2af94b748d2432da62ce256eb2467d3a51c |
27 |
DIST samba-4.7.11.tar.gz 16918373 BLAKE2B 3d74c3b7c6ce0563474ab01583320b31cf37af69e5c72bbe0447832256aae20352647d1f1a8d66d5b8f3a64a7cee66bedf97f273054b3455c279486043331520 SHA512 4fd05d3dd88f08a9ae7853266f40eefe089f80018331381396e8eeea66b80bb29132d75d5690e6c365c0347cd3a9ddf5f8992d515a0c5c11c2da915960a57f4f |
28 |
DIST samba-4.7.12.tar.gz 16923189 BLAKE2B 98ea5e535482a4cdfeb4f9ad70bc8c40bb6d5a8920ce9bc6dda84f20698245c3c5d472a5f79984efc81f9c32d1d1e72b1fcdffb137e3a27634f4c521a1d46a48 SHA512 951dfc0ea7130da9d9aa3069ca276e630d67171a1995dba368459e0cdf00337d0f6271827bffec694371010614a1a7ce2349840ddedd0231315f6a56dce2fcac |
29 |
-DIST samba-4.8.5.tar.gz 17715401 BLAKE2B fc1aef2f5362fff1870abe40eebfe932f5ca347e65d1a2502ee19c9fce8cbf71e3f4181a18056d8d6b3e92d2515f946e3dc746b00f2398d91f88b1172e91cd43 SHA512 23a88c48214c3bf4cbc135cb84873bb8d12f32187ccbda47b02495fa4a12458f103de5e968e8f9a5958c116f618332cfffbf54d084e4f1e363fbf079b897e3a0 |
30 |
DIST samba-4.8.6.tar.gz 17723841 BLAKE2B 38da52e14b4417f26462eef2226c4498e54d2c276b4056e8c6d6c66079f33bcda24c1eab30b29bc7413280ec89a74a55e043e8274ac50f9a25bae7563717ff34 SHA512 f6afab5ca466bd8653a56c205b71ce94ecf0ad0c6e4c9d64cbba7b1e56f1987bc2022e6b629d87eb6078e3f6ba53833c19cfb41e40b6d589e4317ea9d85de273 |
31 |
DIST samba-4.8.7.tar.gz 17724232 BLAKE2B 75b77cbbd107d418bf7b6d4504df616f1596718e2a9e5629994c38d99ad491844ed1600ee2d1ceb053a5fc818ac7baa5037f3926dfd01b66e314b2a800fce2f3 SHA512 6b9de9f47dd0b75a45356a25d3a49ce4723b1af0cd3ec1df3aa36eb41883ac9cf7416cffe93d632dfcd9ff66dc24acc969b24eff71db16234df5f0a16e4527cf |
32 |
-DIST samba-4.9.1.tar.gz 18018259 BLAKE2B 783423098864c391f08b30e05b70308e922bdb4dad08b8b0b4d1112808357b9bb96aad7a094d0fe2e308f84a143d5f90be523b9c3551a3068ecdcad7347613f6 SHA512 267673b6d6ab0db59063480c20f02e5864ef96e9ad1097c23a99b2ab4b5fd2252193d7a152729b40cae0751fb9b0b108b087a190f5db11eabbd075224bd6e663 |
33 |
DIST samba-4.9.2.tar.gz 18042752 BLAKE2B e6d361a38f1103c104015987fa2b67c49a91fb2fac77538b3d9fa0c1629348df00c8fb4ea0dbb1a1f3f62cd377699c1ebc00b1b1b7b1e0d073d3633d41a62e7b SHA512 67de5faeda45e5c245bf02cc195cdf9ca4b63f17625837badf7c50d97250e94de5309c9ef824bd7890bc771b1dc0a3bfbafea09880850b5167f0bf8a8ef488ed |
34 |
DIST samba-4.9.3.tar.gz 18043670 BLAKE2B f99c6674455a4081704b5171349488f0208fc5a73d81e90c59a5a1a25e9ad84b1d78741725d1e1b31867be99b54f8e557e749a56cea1fb8544a2505d5cbd6bce SHA512 bdcba835857f1f41d47932e5c06cff446301c916b78195124814eac89dfce93f12e6e7aa1b53cfff30fdd12d8ce6409dda4e454d8f26fb7ea8e0a97996f93783 |
35 |
|
36 |
diff --git a/net-fs/samba/samba-4.7.10.ebuild b/net-fs/samba/samba-4.7.10.ebuild |
37 |
deleted file mode 100644 |
38 |
index f58bdca9340..00000000000 |
39 |
--- a/net-fs/samba/samba-4.7.10.ebuild |
40 |
+++ /dev/null |
41 |
@@ -1,319 +0,0 @@ |
42 |
-# Copyright 1999-2018 Gentoo Foundation |
43 |
-# Distributed under the terms of the GNU General Public License v2 |
44 |
- |
45 |
-EAPI=6 |
46 |
-PYTHON_COMPAT=( python2_7 ) |
47 |
-PYTHON_REQ_USE='threads(+),xml(+)' |
48 |
- |
49 |
-inherit python-single-r1 waf-utils multilib-minimal linux-info systemd eutils |
50 |
- |
51 |
-MY_PV="${PV/_rc/rc}" |
52 |
-MY_P="${PN}-${MY_PV}" |
53 |
- |
54 |
-SRC_PATH="stable" |
55 |
-[[ ${PV} = *_rc* ]] && SRC_PATH="rc" |
56 |
- |
57 |
-SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz" |
58 |
-[[ ${PV} = *_rc* ]] || \ |
59 |
-KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
60 |
- |
61 |
-DESCRIPTION="Samba Suite Version 4" |
62 |
-HOMEPAGE="https://www.samba.org/" |
63 |
-LICENSE="GPL-3" |
64 |
- |
65 |
-SLOT="0" |
66 |
- |
67 |
-IUSE="acl addc addns ads ceph client cluster cups debug dmapi fam gnutls gpg iprint ldap pam python |
68 |
-quota selinux syslog system-heimdal +system-mitkrb5 systemd test winbind zeroconf" |
69 |
- |
70 |
-MULTILIB_WRAPPED_HEADERS=( |
71 |
- /usr/include/samba-4.0/policy.h |
72 |
- /usr/include/samba-4.0/dcerpc_server.h |
73 |
- /usr/include/samba-4.0/ctdb.h |
74 |
- /usr/include/samba-4.0/ctdb_client.h |
75 |
- /usr/include/samba-4.0/ctdb_protocol.h |
76 |
- /usr/include/samba-4.0/ctdb_private.h |
77 |
- /usr/include/samba-4.0/ctdb_typesafe_cb.h |
78 |
- /usr/include/samba-4.0/ctdb_version.h |
79 |
-) |
80 |
- |
81 |
-# sys-apps/attr is an automagic dependency (see bug #489748) |
82 |
-CDEPEND=" |
83 |
- >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}] |
84 |
- dev-lang/perl:= |
85 |
- dev-libs/libaio[${MULTILIB_USEDEP}] |
86 |
- dev-libs/libbsd[${MULTILIB_USEDEP}] |
87 |
- dev-libs/iniparser:0 |
88 |
- dev-libs/popt[${MULTILIB_USEDEP}] |
89 |
- dev-python/subunit[${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
90 |
- >=dev-util/cmocka-1.1.1[${MULTILIB_USEDEP}] |
91 |
- net-libs/libnsl:=[${MULTILIB_USEDEP}] |
92 |
- sys-apps/attr[${MULTILIB_USEDEP}] |
93 |
- >=sys-libs/ldb-1.2.3[ldap(+)?,python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
94 |
- <sys-libs/ldb-1.3.0[ldap(+)?,python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
95 |
- sys-libs/libcap |
96 |
- sys-libs/ncurses:0=[${MULTILIB_USEDEP}] |
97 |
- sys-libs/readline:0= |
98 |
- >=sys-libs/talloc-2.1.9[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
99 |
- >=sys-libs/tdb-1.3.14[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
100 |
- >=sys-libs/tevent-0.9.36[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
101 |
- sys-libs/zlib[${MULTILIB_USEDEP}] |
102 |
- virtual/libiconv |
103 |
- pam? ( virtual/pam ) |
104 |
- acl? ( virtual/acl ) |
105 |
- addns? ( |
106 |
- net-dns/bind-tools[gssapi] |
107 |
- dev-python/dnspython:=[${PYTHON_USEDEP}] |
108 |
- ) |
109 |
- ceph? ( sys-cluster/ceph ) |
110 |
- cluster? ( |
111 |
- net-libs/rpcsvc-proto |
112 |
- !dev-db/ctdb |
113 |
- ) |
114 |
- cups? ( net-print/cups ) |
115 |
- debug? ( dev-util/lttng-ust ) |
116 |
- dmapi? ( sys-apps/dmapi ) |
117 |
- fam? ( virtual/fam ) |
118 |
- gnutls? ( |
119 |
- dev-libs/libgcrypt:0 |
120 |
- >=net-libs/gnutls-1.4.0 |
121 |
- ) |
122 |
- gpg? ( app-crypt/gpgme ) |
123 |
- ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] ) |
124 |
- system-heimdal? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] ) |
125 |
- system-mitkrb5? ( >=app-crypt/mit-krb5-1.15.1[${MULTILIB_USEDEP}] ) |
126 |
- systemd? ( sys-apps/systemd:0= ) |
127 |
-" |
128 |
-DEPEND="${CDEPEND} |
129 |
- ${PYTHON_DEPS} |
130 |
- app-text/docbook-xsl-stylesheets |
131 |
- dev-libs/libxslt |
132 |
- virtual/pkgconfig |
133 |
- net-libs/libtirpc[${MULTILIB_USEDEP}] |
134 |
- || ( |
135 |
- net-libs/rpcsvc-proto |
136 |
- <sys-libs/glibc-2.26[rpc(+)] |
137 |
- ) |
138 |
- test? ( |
139 |
- !system-mitkrb5? ( |
140 |
- >=sys-libs/nss_wrapper-1.1.3 |
141 |
- >=net-dns/resolv_wrapper-1.1.4 |
142 |
- >=net-libs/socket_wrapper-1.1.7 |
143 |
- >=sys-libs/uid_wrapper-1.2.1 |
144 |
- ) |
145 |
- )" |
146 |
-RDEPEND="${CDEPEND} |
147 |
- python? ( ${PYTHON_DEPS} ) |
148 |
- client? ( net-fs/cifs-utils[ads?] ) |
149 |
- selinux? ( sec-policy/selinux-samba ) |
150 |
- !dev-perl/Parse-Yapp |
151 |
-" |
152 |
- |
153 |
-REQUIRED_USE=" |
154 |
- addc? ( python gnutls ) |
155 |
- addns? ( python ) |
156 |
- ads? ( acl gnutls ldap ) |
157 |
- cluster? ( ads ) |
158 |
- gpg? ( addc ) |
159 |
- test? ( python ) |
160 |
- ?? ( system-heimdal system-mitkrb5 ) |
161 |
- ${PYTHON_REQUIRED_USE} |
162 |
-" |
163 |
- |
164 |
-# the test suite is messed, it uses system-installed samba |
165 |
-# bits instead of what was built, tests things disabled via use |
166 |
-# flags, and generally just fails to work in a way ebuilds could |
167 |
-# rely on in its current state |
168 |
-RESTRICT="test" |
169 |
- |
170 |
-S="${WORKDIR}/${MY_P}" |
171 |
- |
172 |
-PATCHES=( |
173 |
- "${FILESDIR}/${PN}-4.4.0-pam.patch" |
174 |
- "${FILESDIR}/${PN}-4.5.1-compile_et_fix.patch" |
175 |
- "${FILESDIR}"/talloc-disable-python.patch |
176 |
- "${FILESDIR}/${PN}-4.7.3-krb-cross-compile.patch" |
177 |
-) |
178 |
- |
179 |
-#CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)" |
180 |
-CONFDIR="${FILESDIR}/4.4" |
181 |
- |
182 |
-WAF_BINARY="${S}/buildtools/bin/waf" |
183 |
- |
184 |
-SHAREDMODS="" |
185 |
- |
186 |
-pkg_setup() { |
187 |
- python-single-r1_pkg_setup |
188 |
- if use cluster ; then |
189 |
- SHAREDMODS="idmap_rid,idmap_tdb2,idmap_ad" |
190 |
- elif use ads ; then |
191 |
- SHAREDMODS="idmap_ad" |
192 |
- fi |
193 |
-} |
194 |
- |
195 |
-src_prepare() { |
196 |
- default |
197 |
- |
198 |
- # un-bundle dnspython |
199 |
- sed -i -e '/"dns.resolver":/d' "${S}"/third_party/wscript || die |
200 |
- |
201 |
- # unbundle iso8601 unless tests are enabled |
202 |
- use test || sed -i -e '/"iso8601":/d' "${S}"/third_party/wscript || die |
203 |
- |
204 |
- # ugly hackaround for bug #592502 |
205 |
- cp /usr/include/tevent_internal.h "${S}"/lib/tevent/ || die |
206 |
- |
207 |
- sed -e 's:<gpgme\.h>:<gpgme/gpgme.h>:' \ |
208 |
- -i source4/dsdb/samdb/ldb_modules/password_hash.c \ |
209 |
- || die |
210 |
- |
211 |
- # Friggin' WAF shit |
212 |
- multilib_copy_sources |
213 |
-} |
214 |
- |
215 |
-multilib_src_configure() { |
216 |
- # when specifying libs for samba build you must append NONE to the end to |
217 |
- # stop it automatically including things |
218 |
- local bundled_libs="NONE" |
219 |
- if ! use system-heimdal && ! use system-mitkrb5 ; then |
220 |
- bundled_libs="heimbase,heimntlm,hdb,kdc,krb5,wind,gssapi,hcrypto,hx509,roken,asn1,com_err,NONE" |
221 |
- fi |
222 |
- |
223 |
- local myconf=() |
224 |
- myconf=( |
225 |
- --enable-fhs |
226 |
- --sysconfdir="${EPREFIX}/etc" |
227 |
- --localstatedir="${EPREFIX}/var" |
228 |
- --with-modulesdir="${EPREFIX}/usr/$(get_libdir)/samba" |
229 |
- --with-piddir="${EPREFIX}/run/${PN}" |
230 |
- --bundled-libraries="${bundled_libs}" |
231 |
- --builtin-libraries=NONE |
232 |
- --disable-rpath |
233 |
- --disable-rpath-install |
234 |
- --nopyc |
235 |
- --nopyo |
236 |
- ) |
237 |
- if multilib_is_native_abi ; then |
238 |
- myconf+=( |
239 |
- $(use_with acl acl-support) |
240 |
- $(usex addc '' '--without-ad-dc') |
241 |
- $(use_with addns dnsupdate) |
242 |
- $(use_with ads) |
243 |
- $(use_enable ceph cephfs) |
244 |
- $(use_with cluster cluster-support) |
245 |
- $(use_enable cups) |
246 |
- $(use_with debug lttng) |
247 |
- $(use_with dmapi) |
248 |
- $(use_with fam) |
249 |
- $(use_enable gnutls) |
250 |
- $(use_with gpg gpgme) |
251 |
- $(use_enable iprint) |
252 |
- $(use_with ldap) |
253 |
- $(use_with pam) |
254 |
- $(usex pam "--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '') |
255 |
- $(use_with quota quotas) |
256 |
- $(use_with syslog) |
257 |
- $(use_with systemd) |
258 |
- $(usex system-mitkrb5 '--with-system-mitkrb5' '') |
259 |
- $(use_with winbind) |
260 |
- $(usex python '' '--disable-python') |
261 |
- $(usex test '--enable-selftest' '') |
262 |
- $(use_enable zeroconf avahi) |
263 |
- --with-shared-modules=${SHAREDMODS} |
264 |
- ) |
265 |
- else |
266 |
- myconf+=( |
267 |
- --without-acl-support |
268 |
- --without-ad-dc |
269 |
- --without-dnsupdate |
270 |
- --without-ads |
271 |
- --disable-avahi |
272 |
- --disable-cephfs |
273 |
- --without-cluster-support |
274 |
- --disable-cups |
275 |
- --without-dmapi |
276 |
- --without-fam |
277 |
- --disable-gnutls |
278 |
- --without-gpgme |
279 |
- --disable-iprint |
280 |
- $(use_with ldap) |
281 |
- $(use_with debug lttng) |
282 |
- --without-pam |
283 |
- --without-quotas |
284 |
- --without-syslog |
285 |
- --without-systemd |
286 |
- $(usex system-mitkrb5 '--with-system-mitkrb5' '') |
287 |
- --without-winbind |
288 |
- --disable-python |
289 |
- ) |
290 |
- fi |
291 |
- |
292 |
- CPPFLAGS="-I${SYSROOT}${EPREFIX}/usr/include/et ${CPPFLAGS}" \ |
293 |
- waf-utils_src_configure ${myconf[@]} |
294 |
-} |
295 |
- |
296 |
-multilib_src_compile() { |
297 |
- waf-utils_src_compile |
298 |
-} |
299 |
- |
300 |
-multilib_src_install() { |
301 |
- waf-utils_src_install |
302 |
- |
303 |
- # Make all .so files executable |
304 |
- find "${D}" -type f -name "*.so" -exec chmod +x {} + |
305 |
- |
306 |
- if multilib_is_native_abi; then |
307 |
- # install ldap schema for server (bug #491002) |
308 |
- if use ldap ; then |
309 |
- insinto /etc/openldap/schema |
310 |
- doins examples/LDAP/samba.schema |
311 |
- fi |
312 |
- |
313 |
- # create symlink for cups (bug #552310) |
314 |
- if use cups ; then |
315 |
- dosym ../../../bin/smbspool /usr/libexec/cups/backend/smb |
316 |
- fi |
317 |
- |
318 |
- # install example config file |
319 |
- insinto /etc/samba |
320 |
- doins examples/smb.conf.default |
321 |
- |
322 |
- # Fix paths in example file (#603964) |
323 |
- sed \ |
324 |
- -e '/log file =/s@/usr/local/samba/var/@/var/log/samba/@' \ |
325 |
- -e '/include =/s@/usr/local/samba/lib/@/etc/samba/@' \ |
326 |
- -e '/path =/s@/usr/local/samba/lib/@/var/lib/samba/@' \ |
327 |
- -e '/path =/s@/usr/local/samba/@/var/lib/samba/@' \ |
328 |
- -e '/path =/s@/usr/spool/samba@/var/spool/samba@' \ |
329 |
- -i "${ED%/}"/etc/samba/smb.conf.default || die |
330 |
- |
331 |
- # Install init script and conf.d file |
332 |
- newinitd "${CONFDIR}/samba4.initd-r1" samba |
333 |
- newconfd "${CONFDIR}/samba4.confd" samba |
334 |
- |
335 |
- systemd_dotmpfilesd "${FILESDIR}"/samba.conf |
336 |
- systemd_dounit "${FILESDIR}"/nmbd.service |
337 |
- systemd_dounit "${FILESDIR}"/smbd.{service,socket} |
338 |
- systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service' |
339 |
- systemd_dounit "${FILESDIR}"/winbindd.service |
340 |
- systemd_dounit "${FILESDIR}"/samba.service |
341 |
- fi |
342 |
-} |
343 |
- |
344 |
-multilib_src_test() { |
345 |
- if multilib_is_native_abi ; then |
346 |
- "${WAF_BINARY}" test || die "test failed" |
347 |
- fi |
348 |
-} |
349 |
- |
350 |
-pkg_postinst() { |
351 |
- ewarn "Be aware the this release contains the best of all of Samba's" |
352 |
- ewarn "technology parts, both a file server (that you can reasonably expect" |
353 |
- ewarn "to upgrade existing Samba 3.x releases to) and the AD domain" |
354 |
- ewarn "controller work previously known as 'samba4'." |
355 |
- |
356 |
- elog "For further information and migration steps make sure to read " |
357 |
- elog "https://samba.org/samba/history/${P}.html " |
358 |
- elog "https://samba.org/samba/history/${PN}-4.5.0.html and" |
359 |
- elog "https://wiki.samba.org/index.php/Samba4/HOWTO " |
360 |
-} |
361 |
|
362 |
diff --git a/net-fs/samba/samba-4.8.5.ebuild b/net-fs/samba/samba-4.8.5.ebuild |
363 |
deleted file mode 100644 |
364 |
index 62ea2b0c9ab..00000000000 |
365 |
--- a/net-fs/samba/samba-4.8.5.ebuild |
366 |
+++ /dev/null |
367 |
@@ -1,286 +0,0 @@ |
368 |
-# Copyright 1999-2018 Gentoo Foundation |
369 |
-# Distributed under the terms of the GNU General Public License v2 |
370 |
- |
371 |
-EAPI=6 |
372 |
-PYTHON_COMPAT=( python2_7 ) |
373 |
-PYTHON_REQ_USE='threads(+),xml(+)' |
374 |
- |
375 |
-inherit python-single-r1 waf-utils multilib-minimal linux-info systemd |
376 |
- |
377 |
-MY_PV="${PV/_rc/rc}" |
378 |
-MY_P="${PN}-${MY_PV}" |
379 |
- |
380 |
-SRC_PATH="stable" |
381 |
-[[ ${PV} = *_rc* ]] && SRC_PATH="rc" |
382 |
- |
383 |
-SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz" |
384 |
-[[ ${PV} = *_rc* ]] || \ |
385 |
-KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86" |
386 |
- |
387 |
-DESCRIPTION="Samba Suite Version 4" |
388 |
-HOMEPAGE="https://www.samba.org/" |
389 |
-LICENSE="GPL-3" |
390 |
- |
391 |
-SLOT="0" |
392 |
- |
393 |
-IUSE="acl addc addns ads ceph client cluster cups debug dmapi fam gnutls gpg iprint ldap pam python |
394 |
-quota selinux syslog system-heimdal +system-mitkrb5 systemd test winbind zeroconf" |
395 |
- |
396 |
-MULTILIB_WRAPPED_HEADERS=( |
397 |
- /usr/include/samba-4.0/policy.h |
398 |
- /usr/include/samba-4.0/dcerpc_server.h |
399 |
- /usr/include/samba-4.0/ctdb.h |
400 |
- /usr/include/samba-4.0/ctdb_client.h |
401 |
- /usr/include/samba-4.0/ctdb_protocol.h |
402 |
- /usr/include/samba-4.0/ctdb_private.h |
403 |
- /usr/include/samba-4.0/ctdb_typesafe_cb.h |
404 |
- /usr/include/samba-4.0/ctdb_version.h |
405 |
-) |
406 |
- |
407 |
-# sys-apps/attr is an automagic dependency (see bug #489748) |
408 |
-CDEPEND=" |
409 |
- >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}] |
410 |
- dev-lang/perl:= |
411 |
- dev-libs/libaio[${MULTILIB_USEDEP}] |
412 |
- dev-libs/libbsd[${MULTILIB_USEDEP}] |
413 |
- dev-libs/iniparser:0 |
414 |
- dev-libs/popt[${MULTILIB_USEDEP}] |
415 |
- dev-python/subunit[${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
416 |
- >=dev-util/cmocka-1.1.1[${MULTILIB_USEDEP}] |
417 |
- net-libs/libnsl:=[${MULTILIB_USEDEP}] |
418 |
- sys-apps/attr[${MULTILIB_USEDEP}] |
419 |
- >=sys-libs/ldb-1.3.6[ldap(+)?,python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
420 |
- <sys-libs/ldb-1.4.0[ldap(+)?,python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
421 |
- sys-libs/libcap |
422 |
- sys-libs/ncurses:0=[${MULTILIB_USEDEP}] |
423 |
- sys-libs/readline:0= |
424 |
- >=sys-libs/talloc-2.1.11[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
425 |
- >=sys-libs/tdb-1.3.15[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
426 |
- >=sys-libs/tevent-0.9.36[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
427 |
- sys-libs/zlib[${MULTILIB_USEDEP}] |
428 |
- virtual/libiconv |
429 |
- pam? ( virtual/pam ) |
430 |
- acl? ( virtual/acl ) |
431 |
- addns? ( |
432 |
- net-dns/bind-tools[gssapi] |
433 |
- dev-python/dnspython:=[${PYTHON_USEDEP}] |
434 |
- ) |
435 |
- ceph? ( sys-cluster/ceph ) |
436 |
- cluster? ( |
437 |
- net-libs/rpcsvc-proto |
438 |
- !dev-db/ctdb |
439 |
- ) |
440 |
- cups? ( net-print/cups ) |
441 |
- debug? ( dev-util/lttng-ust ) |
442 |
- dmapi? ( sys-apps/dmapi ) |
443 |
- fam? ( virtual/fam ) |
444 |
- gnutls? ( |
445 |
- dev-libs/libgcrypt:0 |
446 |
- >=net-libs/gnutls-1.4.0 |
447 |
- ) |
448 |
- gpg? ( app-crypt/gpgme ) |
449 |
- ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] ) |
450 |
- system-heimdal? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] ) |
451 |
- system-mitkrb5? ( >=app-crypt/mit-krb5-1.15.1[${MULTILIB_USEDEP}] ) |
452 |
- systemd? ( sys-apps/systemd:0= ) |
453 |
-" |
454 |
-DEPEND="${CDEPEND} |
455 |
- ${PYTHON_DEPS} |
456 |
- app-text/docbook-xsl-stylesheets |
457 |
- dev-libs/libxslt |
458 |
- net-libs/libtirpc[${MULTILIB_USEDEP}] |
459 |
- virtual/pkgconfig |
460 |
- || ( |
461 |
- net-libs/rpcsvc-proto |
462 |
- <sys-libs/glibc-2.26[rpc(+)] |
463 |
- ) |
464 |
- test? ( |
465 |
- !system-mitkrb5? ( |
466 |
- >=sys-libs/nss_wrapper-1.1.3 |
467 |
- >=net-dns/resolv_wrapper-1.1.4 |
468 |
- >=net-libs/socket_wrapper-1.1.7 |
469 |
- >=sys-libs/uid_wrapper-1.2.1 |
470 |
- ) |
471 |
- )" |
472 |
-RDEPEND="${CDEPEND} |
473 |
- python? ( ${PYTHON_DEPS} ) |
474 |
- client? ( net-fs/cifs-utils[ads?] ) |
475 |
- selinux? ( sec-policy/selinux-samba ) |
476 |
- !dev-perl/Parse-Yapp |
477 |
-" |
478 |
- |
479 |
-REQUIRED_USE=" |
480 |
- addc? ( python gnutls winbind ) |
481 |
- addns? ( python ) |
482 |
- ads? ( acl gnutls ldap winbind ) |
483 |
- cluster? ( ads ) |
484 |
- gpg? ( addc ) |
485 |
- test? ( python ) |
486 |
- ?? ( system-heimdal system-mitkrb5 ) |
487 |
- ${PYTHON_REQUIRED_USE} |
488 |
-" |
489 |
- |
490 |
-# the test suite is messed, it uses system-installed samba |
491 |
-# bits instead of what was built, tests things disabled via use |
492 |
-# flags, and generally just fails to work in a way ebuilds could |
493 |
-# rely on in its current state |
494 |
-RESTRICT="test" |
495 |
- |
496 |
-S="${WORKDIR}/${MY_P}" |
497 |
- |
498 |
-PATCHES=( |
499 |
- "${FILESDIR}/${PN}-4.4.0-pam.patch" |
500 |
- "${FILESDIR}/${PN}-4.5.1-compile_et_fix.patch" |
501 |
-) |
502 |
- |
503 |
-#CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)" |
504 |
-CONFDIR="${FILESDIR}/4.4" |
505 |
- |
506 |
-WAF_BINARY="${S}/buildtools/bin/waf" |
507 |
- |
508 |
-SHAREDMODS="" |
509 |
- |
510 |
-pkg_setup() { |
511 |
- python-single-r1_pkg_setup |
512 |
- if use cluster ; then |
513 |
- SHAREDMODS="idmap_rid,idmap_tdb2,idmap_ad" |
514 |
- elif use ads ; then |
515 |
- SHAREDMODS="idmap_ad" |
516 |
- fi |
517 |
-} |
518 |
- |
519 |
-src_prepare() { |
520 |
- default |
521 |
- |
522 |
- # un-bundle dnspython |
523 |
- sed -i -e '/"dns.resolver":/d' "${S}"/third_party/wscript || die |
524 |
- |
525 |
- # unbundle iso8601 unless tests are enabled |
526 |
- use test || sed -i -e '/"iso8601":/d' "${S}"/third_party/wscript || die |
527 |
- |
528 |
- # ugly hackaround for bug #592502 |
529 |
- cp /usr/include/tevent_internal.h "${S}"/lib/tevent/ || die |
530 |
- |
531 |
- sed -e 's:<gpgme\.h>:<gpgme/gpgme.h>:' \ |
532 |
- -i source4/dsdb/samdb/ldb_modules/password_hash.c \ |
533 |
- || die |
534 |
- |
535 |
- # Friggin' WAF shit |
536 |
- multilib_copy_sources |
537 |
-} |
538 |
- |
539 |
-multilib_src_configure() { |
540 |
- # when specifying libs for samba build you must append NONE to the end to |
541 |
- # stop it automatically including things |
542 |
- local bundled_libs="NONE" |
543 |
- if ! use system-heimdal && ! use system-mitkrb5 ; then |
544 |
- bundled_libs="heimbase,heimntlm,hdb,kdc,krb5,wind,gssapi,hcrypto,hx509,roken,asn1,com_err,NONE" |
545 |
- fi |
546 |
- |
547 |
- local myconf=( |
548 |
- --enable-fhs |
549 |
- --sysconfdir="${EPREFIX}/etc" |
550 |
- --localstatedir="${EPREFIX}/var" |
551 |
- --with-modulesdir="${EPREFIX}/usr/$(get_libdir)/samba" |
552 |
- --with-piddir="${EPREFIX}/run/${PN}" |
553 |
- --bundled-libraries="${bundled_libs}" |
554 |
- --builtin-libraries=NONE |
555 |
- --disable-rpath |
556 |
- --disable-rpath-install |
557 |
- --nopyc |
558 |
- --nopyo |
559 |
- $(multilib_native_use_with acl acl-support) |
560 |
- $(multilib_native_usex addc '' '--without-ad-dc') |
561 |
- $(multilib_native_use_with addns dnsupdate) |
562 |
- $(multilib_native_use_with ads) |
563 |
- $(multilib_native_use_enable ceph cephfs) |
564 |
- $(multilib_native_use_with cluster cluster-support) |
565 |
- $(multilib_native_use_enable cups) |
566 |
- $(multilib_native_use_with dmapi) |
567 |
- $(multilib_native_use_with fam) |
568 |
- $(multilib_native_use_with gpg gpgme) |
569 |
- $(multilib_native_use_enable iprint) |
570 |
- $(multilib_native_use_with pam) |
571 |
- $(multilib_native_usex pam "--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '') |
572 |
- $(multilib_native_use_with quota quotas) |
573 |
- $(multilib_native_use_with syslog) |
574 |
- $(multilib_native_use_with systemd) |
575 |
- $(multilib_native_use_with winbind) |
576 |
- $(multilib_native_usex python '' '--disable-python') |
577 |
- $(multilib_native_use_enable zeroconf avahi) |
578 |
- $(multilib_native_usex test '--enable-selftest' '') |
579 |
- $(usex system-mitkrb5 '--with-system-mitkrb5' '') |
580 |
- $(use_enable gnutls) |
581 |
- $(use_with debug lttng) |
582 |
- $(use_with ldap) |
583 |
- ) |
584 |
- multilib_is_native_abi && myconf+=( --with-shared-modules=${SHAREDMODS} ) |
585 |
- |
586 |
- CPPFLAGS="-I${SYSROOT}${EPREFIX}/usr/include/et ${CPPFLAGS}" \ |
587 |
- waf-utils_src_configure ${myconf[@]} |
588 |
-} |
589 |
- |
590 |
-multilib_src_compile() { |
591 |
- waf-utils_src_compile |
592 |
-} |
593 |
- |
594 |
-multilib_src_install() { |
595 |
- waf-utils_src_install |
596 |
- |
597 |
- # Make all .so files executable |
598 |
- find "${ED}" -type f -name "*.so" -exec chmod +x {} + |
599 |
- |
600 |
- if multilib_is_native_abi ; then |
601 |
- # install ldap schema for server (bug #491002) |
602 |
- if use ldap ; then |
603 |
- insinto /etc/openldap/schema |
604 |
- doins examples/LDAP/samba.schema |
605 |
- fi |
606 |
- |
607 |
- # create symlink for cups (bug #552310) |
608 |
- if use cups ; then |
609 |
- dosym ../../../bin/smbspool /usr/libexec/cups/backend/smb |
610 |
- fi |
611 |
- |
612 |
- # install example config file |
613 |
- insinto /etc/samba |
614 |
- doins examples/smb.conf.default |
615 |
- |
616 |
- # Fix paths in example file (#603964) |
617 |
- sed \ |
618 |
- -e '/log file =/s@/usr/local/samba/var/@/var/log/samba/@' \ |
619 |
- -e '/include =/s@/usr/local/samba/lib/@/etc/samba/@' \ |
620 |
- -e '/path =/s@/usr/local/samba/lib/@/var/lib/samba/@' \ |
621 |
- -e '/path =/s@/usr/local/samba/@/var/lib/samba/@' \ |
622 |
- -e '/path =/s@/usr/spool/samba@/var/spool/samba@' \ |
623 |
- -i "${ED%/}"/etc/samba/smb.conf.default || die |
624 |
- |
625 |
- # Install init script and conf.d file |
626 |
- newinitd "${CONFDIR}/samba4.initd-r1" samba |
627 |
- newconfd "${CONFDIR}/samba4.confd" samba |
628 |
- |
629 |
- systemd_dotmpfilesd "${FILESDIR}"/samba.conf |
630 |
- systemd_dounit "${FILESDIR}"/nmbd.service |
631 |
- systemd_dounit "${FILESDIR}"/smbd.{service,socket} |
632 |
- systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service' |
633 |
- systemd_dounit "${FILESDIR}"/winbindd.service |
634 |
- systemd_dounit "${FILESDIR}"/samba.service |
635 |
- fi |
636 |
-} |
637 |
- |
638 |
-multilib_src_test() { |
639 |
- if multilib_is_native_abi ; then |
640 |
- "${WAF_BINARY}" test || die "test failed" |
641 |
- fi |
642 |
-} |
643 |
- |
644 |
-pkg_postinst() { |
645 |
- ewarn "Be aware the this release contains the best of all of Samba's" |
646 |
- ewarn "technology parts, both a file server (that you can reasonably expect" |
647 |
- ewarn "to upgrade existing Samba 3.x releases to) and the AD domain" |
648 |
- ewarn "controller work previously known as 'samba4'." |
649 |
- |
650 |
- elog "For further information and migration steps make sure to read " |
651 |
- elog "https://samba.org/samba/history/${P}.html " |
652 |
- elog "https://wiki.samba.org/index.php/Samba4/HOWTO " |
653 |
-} |
654 |
|
655 |
diff --git a/net-fs/samba/samba-4.9.1.ebuild b/net-fs/samba/samba-4.9.1.ebuild |
656 |
deleted file mode 100644 |
657 |
index 752d6d25059..00000000000 |
658 |
--- a/net-fs/samba/samba-4.9.1.ebuild |
659 |
+++ /dev/null |
660 |
@@ -1,288 +0,0 @@ |
661 |
-# Copyright 1999-2018 Gentoo Authors |
662 |
-# Distributed under the terms of the GNU General Public License v2 |
663 |
- |
664 |
-EAPI=6 |
665 |
-PYTHON_COMPAT=( python2_7 ) |
666 |
-PYTHON_REQ_USE='threads(+),xml(+)' |
667 |
- |
668 |
-inherit python-single-r1 waf-utils multilib-minimal linux-info systemd |
669 |
- |
670 |
-MY_PV="${PV/_rc/rc}" |
671 |
-MY_P="${PN}-${MY_PV}" |
672 |
- |
673 |
-SRC_PATH="stable" |
674 |
-[[ ${PV} = *_rc* ]] && SRC_PATH="rc" |
675 |
- |
676 |
-SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz" |
677 |
-[[ ${PV} = *_rc* ]] || \ |
678 |
-KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86" |
679 |
- |
680 |
-DESCRIPTION="Samba Suite Version 4" |
681 |
-HOMEPAGE="https://www.samba.org/" |
682 |
-LICENSE="GPL-3" |
683 |
- |
684 |
-SLOT="0" |
685 |
- |
686 |
-IUSE="acl addc addns ads ceph client cluster cups debug dmapi fam gnutls gpg iprint json ldap |
687 |
-pam python quota selinux syslog system-heimdal +system-mitkrb5 systemd test winbind zeroconf" |
688 |
- |
689 |
-MULTILIB_WRAPPED_HEADERS=( |
690 |
- /usr/include/samba-4.0/policy.h |
691 |
- /usr/include/samba-4.0/dcerpc_server.h |
692 |
- /usr/include/samba-4.0/ctdb.h |
693 |
- /usr/include/samba-4.0/ctdb_client.h |
694 |
- /usr/include/samba-4.0/ctdb_protocol.h |
695 |
- /usr/include/samba-4.0/ctdb_private.h |
696 |
- /usr/include/samba-4.0/ctdb_typesafe_cb.h |
697 |
- /usr/include/samba-4.0/ctdb_version.h |
698 |
-) |
699 |
- |
700 |
-# sys-apps/attr is an automagic dependency (see bug #489748) |
701 |
-CDEPEND=" |
702 |
- >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}] |
703 |
- dev-lang/perl:= |
704 |
- dev-libs/libaio[${MULTILIB_USEDEP}] |
705 |
- dev-libs/libbsd[${MULTILIB_USEDEP}] |
706 |
- dev-libs/iniparser:0 |
707 |
- dev-libs/popt[${MULTILIB_USEDEP}] |
708 |
- dev-python/subunit[${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
709 |
- >=dev-util/cmocka-1.1.1[${MULTILIB_USEDEP}] |
710 |
- net-libs/libnsl:=[${MULTILIB_USEDEP}] |
711 |
- sys-apps/attr[${MULTILIB_USEDEP}] |
712 |
- >=sys-libs/ldb-1.4.2[ldap(+)?,python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
713 |
- <sys-libs/ldb-1.5.0[ldap(+)?,python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
714 |
- sys-libs/libcap |
715 |
- sys-libs/ncurses:0=[${MULTILIB_USEDEP}] |
716 |
- sys-libs/readline:0= |
717 |
- >=sys-libs/talloc-2.1.14[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
718 |
- >=sys-libs/tdb-1.3.16[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
719 |
- >=sys-libs/tevent-0.9.37[python?,${PYTHON_USEDEP},${MULTILIB_USEDEP}] |
720 |
- sys-libs/zlib[${MULTILIB_USEDEP}] |
721 |
- virtual/libiconv |
722 |
- pam? ( virtual/pam ) |
723 |
- acl? ( virtual/acl ) |
724 |
- addns? ( |
725 |
- net-dns/bind-tools[gssapi] |
726 |
- dev-python/dnspython:=[${PYTHON_USEDEP}] |
727 |
- ) |
728 |
- ceph? ( sys-cluster/ceph ) |
729 |
- cluster? ( |
730 |
- net-libs/rpcsvc-proto |
731 |
- !dev-db/ctdb |
732 |
- ) |
733 |
- cups? ( net-print/cups ) |
734 |
- debug? ( dev-util/lttng-ust ) |
735 |
- dmapi? ( sys-apps/dmapi ) |
736 |
- fam? ( virtual/fam ) |
737 |
- gnutls? ( |
738 |
- dev-libs/libgcrypt:0 |
739 |
- >=net-libs/gnutls-1.4.0 |
740 |
- ) |
741 |
- gpg? ( app-crypt/gpgme ) |
742 |
- json? ( dev-libs/jansson ) |
743 |
- ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] ) |
744 |
- system-heimdal? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] ) |
745 |
- system-mitkrb5? ( >=app-crypt/mit-krb5-1.15.1[${MULTILIB_USEDEP}] ) |
746 |
- systemd? ( sys-apps/systemd:0= ) |
747 |
-" |
748 |
-DEPEND="${CDEPEND} |
749 |
- ${PYTHON_DEPS} |
750 |
- app-text/docbook-xsl-stylesheets |
751 |
- dev-libs/libxslt |
752 |
- net-libs/libtirpc[${MULTILIB_USEDEP}] |
753 |
- virtual/pkgconfig |
754 |
- || ( |
755 |
- net-libs/rpcsvc-proto |
756 |
- <sys-libs/glibc-2.26[rpc(+)] |
757 |
- ) |
758 |
- test? ( |
759 |
- !system-mitkrb5? ( |
760 |
- >=sys-libs/nss_wrapper-1.1.3 |
761 |
- >=net-dns/resolv_wrapper-1.1.4 |
762 |
- >=net-libs/socket_wrapper-1.1.7 |
763 |
- >=sys-libs/uid_wrapper-1.2.1 |
764 |
- ) |
765 |
- )" |
766 |
-RDEPEND="${CDEPEND} |
767 |
- python? ( ${PYTHON_DEPS} ) |
768 |
- client? ( net-fs/cifs-utils[ads?] ) |
769 |
- selinux? ( sec-policy/selinux-samba ) |
770 |
- !dev-perl/Parse-Yapp |
771 |
-" |
772 |
- |
773 |
-REQUIRED_USE=" |
774 |
- addc? ( python gnutls json winbind ) |
775 |
- addns? ( python ) |
776 |
- ads? ( acl gnutls ldap winbind ) |
777 |
- cluster? ( ads ) |
778 |
- gpg? ( addc ) |
779 |
- test? ( python ) |
780 |
- ?? ( system-heimdal system-mitkrb5 ) |
781 |
- ${PYTHON_REQUIRED_USE} |
782 |
-" |
783 |
- |
784 |
-# the test suite is messed, it uses system-installed samba |
785 |
-# bits instead of what was built, tests things disabled via use |
786 |
-# flags, and generally just fails to work in a way ebuilds could |
787 |
-# rely on in its current state |
788 |
-RESTRICT="test" |
789 |
- |
790 |
-S="${WORKDIR}/${MY_P}" |
791 |
- |
792 |
-PATCHES=( |
793 |
- "${FILESDIR}/${PN}-4.4.0-pam.patch" |
794 |
- "${FILESDIR}/${PN}-4.5.1-compile_et_fix.patch" |
795 |
-) |
796 |
- |
797 |
-#CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)" |
798 |
-CONFDIR="${FILESDIR}/4.4" |
799 |
- |
800 |
-WAF_BINARY="${S}/buildtools/bin/waf" |
801 |
- |
802 |
-SHAREDMODS="" |
803 |
- |
804 |
-pkg_setup() { |
805 |
- python-single-r1_pkg_setup |
806 |
- if use cluster ; then |
807 |
- SHAREDMODS="idmap_rid,idmap_tdb2,idmap_ad" |
808 |
- elif use ads ; then |
809 |
- SHAREDMODS="idmap_ad" |
810 |
- fi |
811 |
-} |
812 |
- |
813 |
-src_prepare() { |
814 |
- default |
815 |
- |
816 |
- # un-bundle dnspython |
817 |
- sed -i -e '/"dns.resolver":/d' "${S}"/third_party/wscript || die |
818 |
- |
819 |
- # unbundle iso8601 unless tests are enabled |
820 |
- use test || sed -i -e '/"iso8601":/d' "${S}"/third_party/wscript || die |
821 |
- |
822 |
- # ugly hackaround for bug #592502 |
823 |
- cp /usr/include/tevent_internal.h "${S}"/lib/tevent/ || die |
824 |
- |
825 |
- sed -e 's:<gpgme\.h>:<gpgme/gpgme.h>:' \ |
826 |
- -i source4/dsdb/samdb/ldb_modules/password_hash.c \ |
827 |
- || die |
828 |
- |
829 |
- # Friggin' WAF shit |
830 |
- multilib_copy_sources |
831 |
-} |
832 |
- |
833 |
-multilib_src_configure() { |
834 |
- # when specifying libs for samba build you must append NONE to the end to |
835 |
- # stop it automatically including things |
836 |
- local bundled_libs="NONE" |
837 |
- if ! use system-heimdal && ! use system-mitkrb5 ; then |
838 |
- bundled_libs="heimbase,heimntlm,hdb,kdc,krb5,wind,gssapi,hcrypto,hx509,roken,asn1,com_err,NONE" |
839 |
- fi |
840 |
- |
841 |
- local myconf=( |
842 |
- --enable-fhs |
843 |
- --sysconfdir="${EPREFIX}/etc" |
844 |
- --localstatedir="${EPREFIX}/var" |
845 |
- --with-modulesdir="${EPREFIX}/usr/$(get_libdir)/samba" |
846 |
- --with-piddir="${EPREFIX}/run/${PN}" |
847 |
- --bundled-libraries="${bundled_libs}" |
848 |
- --builtin-libraries=NONE |
849 |
- --disable-rpath |
850 |
- --disable-rpath-install |
851 |
- --nopyc |
852 |
- --nopyo |
853 |
- $(multilib_native_use_with acl acl-support) |
854 |
- $(multilib_native_usex addc '' '--without-ad-dc') |
855 |
- $(multilib_native_use_with addns dnsupdate) |
856 |
- $(multilib_native_use_with ads) |
857 |
- $(multilib_native_use_enable ceph cephfs) |
858 |
- $(multilib_native_use_with cluster cluster-support) |
859 |
- $(multilib_native_use_enable cups) |
860 |
- $(multilib_native_use_with dmapi) |
861 |
- $(multilib_native_use_with fam) |
862 |
- $(multilib_native_use_with gpg gpgme) |
863 |
- $(multilib_native_use_with json json-audit) |
864 |
- $(multilib_native_use_enable iprint) |
865 |
- $(multilib_native_use_with pam) |
866 |
- $(multilib_native_usex pam "--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '') |
867 |
- $(multilib_native_use_with quota quotas) |
868 |
- $(multilib_native_use_with syslog) |
869 |
- $(multilib_native_use_with systemd) |
870 |
- $(multilib_native_use_with winbind) |
871 |
- $(multilib_native_usex python '' '--disable-python') |
872 |
- $(multilib_native_use_enable zeroconf avahi) |
873 |
- $(multilib_native_usex test '--enable-selftest' '') |
874 |
- $(usex system-mitkrb5 '--with-system-mitkrb5' '') |
875 |
- $(use_enable gnutls) |
876 |
- $(use_with debug lttng) |
877 |
- $(use_with ldap) |
878 |
- ) |
879 |
- multilib_is_native_abi && myconf+=( --with-shared-modules=${SHAREDMODS} ) |
880 |
- |
881 |
- CPPFLAGS="-I${SYSROOT}${EPREFIX}/usr/include/et ${CPPFLAGS}" \ |
882 |
- waf-utils_src_configure ${myconf[@]} |
883 |
-} |
884 |
- |
885 |
-multilib_src_compile() { |
886 |
- waf-utils_src_compile |
887 |
-} |
888 |
- |
889 |
-multilib_src_install() { |
890 |
- waf-utils_src_install |
891 |
- |
892 |
- # Make all .so files executable |
893 |
- find "${ED}" -type f -name "*.so" -exec chmod +x {} + |
894 |
- |
895 |
- if multilib_is_native_abi ; then |
896 |
- # install ldap schema for server (bug #491002) |
897 |
- if use ldap ; then |
898 |
- insinto /etc/openldap/schema |
899 |
- doins examples/LDAP/samba.schema |
900 |
- fi |
901 |
- |
902 |
- # create symlink for cups (bug #552310) |
903 |
- if use cups ; then |
904 |
- dosym ../../../bin/smbspool /usr/libexec/cups/backend/smb |
905 |
- fi |
906 |
- |
907 |
- # install example config file |
908 |
- insinto /etc/samba |
909 |
- doins examples/smb.conf.default |
910 |
- |
911 |
- # Fix paths in example file (#603964) |
912 |
- sed \ |
913 |
- -e '/log file =/s@/usr/local/samba/var/@/var/log/samba/@' \ |
914 |
- -e '/include =/s@/usr/local/samba/lib/@/etc/samba/@' \ |
915 |
- -e '/path =/s@/usr/local/samba/lib/@/var/lib/samba/@' \ |
916 |
- -e '/path =/s@/usr/local/samba/@/var/lib/samba/@' \ |
917 |
- -e '/path =/s@/usr/spool/samba@/var/spool/samba@' \ |
918 |
- -i "${ED%/}"/etc/samba/smb.conf.default || die |
919 |
- |
920 |
- # Install init script and conf.d file |
921 |
- newinitd "${CONFDIR}/samba4.initd-r1" samba |
922 |
- newconfd "${CONFDIR}/samba4.confd" samba |
923 |
- |
924 |
- systemd_dotmpfilesd "${FILESDIR}"/samba.conf |
925 |
- systemd_dounit "${FILESDIR}"/nmbd.service |
926 |
- systemd_dounit "${FILESDIR}"/smbd.{service,socket} |
927 |
- systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service' |
928 |
- systemd_dounit "${FILESDIR}"/winbindd.service |
929 |
- systemd_dounit "${FILESDIR}"/samba.service |
930 |
- fi |
931 |
-} |
932 |
- |
933 |
-multilib_src_test() { |
934 |
- if multilib_is_native_abi ; then |
935 |
- "${WAF_BINARY}" test || die "test failed" |
936 |
- fi |
937 |
-} |
938 |
- |
939 |
-pkg_postinst() { |
940 |
- ewarn "Be aware the this release contains the best of all of Samba's" |
941 |
- ewarn "technology parts, both a file server (that you can reasonably expect" |
942 |
- ewarn "to upgrade existing Samba 3.x releases to) and the AD domain" |
943 |
- ewarn "controller work previously known as 'samba4'." |
944 |
- |
945 |
- elog "For further information and migration steps make sure to read " |
946 |
- elog "https://samba.org/samba/history/${P}.html " |
947 |
- elog "https://wiki.samba.org/index.php/Samba4/HOWTO " |
948 |
-} |