Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-fs/samba/files/4.3/, net-fs/samba/
Date: Mon, 30 Jan 2017 20:53:17
Message-Id: 1485809576.cb1dd4219ba47f548faaf960cf15047c773b740b.polynomial-c@gentoo
1 commit: cb1dd4219ba47f548faaf960cf15047c773b740b
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 30 20:41:02 2017 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 30 20:52:56 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb1dd421
7
8 net-fs/samba: Removed old.
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 net-fs/samba/Manifest | 6 -
13 net-fs/samba/files/4.3/samba4.confd | 38 -----
14 net-fs/samba/files/4.3/samba4.initd-r1 | 56 --------
15 net-fs/samba/samba-4.3.12.ebuild | 250 ---------------------------------
16 net-fs/samba/samba-4.4.7.ebuild | 234 ------------------------------
17 net-fs/samba/samba-4.4.9.ebuild | 234 ------------------------------
18 net-fs/samba/samba-4.5.3.ebuild | 237 -------------------------------
19 7 files changed, 1055 deletions(-)
20
21 diff --git a/net-fs/samba/Manifest b/net-fs/samba/Manifest
22 index 0237399..9cbb4df 100644
23 --- a/net-fs/samba/Manifest
24 +++ b/net-fs/samba/Manifest
25 @@ -1,15 +1,9 @@
26 DIST samba-4.2.11.tar.gz 20875348 SHA256 75bce53c922e51352933c9846f2c4b1e251fabb80927adb426a773a321ee01f8 SHA512 293365f2718e756b66ccaec4b0dbce7044ade615b332f58968cf42dd1ec6b6445576590eaf5bd35fa00ba9aa4ba3be7720afc33763652e97731eebc3149f4820 WHIRLPOOL 1e04fd527e55c8d438c96a43d9a25a9b3e09a3edc504a2a5fe44bc8f9101c833c90e3ba3188b8872b046370916f3798e4fce0ffa7848b65f452b5c51ec7107f1
27 DIST samba-4.2.14.tar.gz 20883281 SHA256 db820a9947e44f04b0eb25e4aa0c3db32c4042fca541775ee8e2905093e888e6 SHA512 269dd74ba788657434f51ac70953a293c94bcf98280eaa6f44634c5da54169a5ea7865d543a7c23860c4750a40cdee7caeaf5c7fc3dbc137f444e90f31a09890 WHIRLPOOL 925369c2f9c222d718bf4aacc7b1a83b8275acd96bbc1eca52ad96c86847327807560674ee9b180173d17a1e6109307ec4f70f1acbebe2efc8a9e67f2141e17d
28 -DIST samba-4.3.12.tar.gz 20587617 SHA256 7e9c75b1e269224fd2fcd80415c813c7cf8021389e40777c7b63348d94a25180 SHA512 cba129bae5bb01e85b48e82336ddf8e348852e922829a3ed37a8aa02860057441f3b941cab6d9989cd09099ca4c45ee89cb343f30c10de51dff398ffbcaa43ce WHIRLPOOL 8f885da2ea0a15a04d7deb6aeb1919214b9a19306285e4e1c1ee1557e26b6dcc6f252f50e41fe5d3bc0ac537c446610c820909321c4e6aeb22e4708e6e05dcbc
29 -DIST samba-4.4.7.tar.gz 20739248 SHA256 a69d6612e4a421640242ca66c4dbb0e4c20281e77dc24970a332770814d45c7c SHA512 a5c4fb9224c622c21efe479bccb5a14a9a55c92838dce2e45faf466cf9ca8cbf786dd4a4c0ed1b19d9fd0ee6a5b0c2a916d367ae96389d2280269971121b418c WHIRLPOOL 64d01c5041f12a4debec25fb5ec8a5f31a0aaa60274be34d96cccaf642dba3f0a709b12a5bbbc79633ad0e2548aa8f71c00fa52b67ac9e217ed849ec51af8f71
30 -DIST samba-4.4.9.tar.gz 20750010 SHA256 10f76fa113213ae512db4a4823351178c93fb6bc95d98d0ebc72e3a74d43386f SHA512 9fda913ece883fbd4309623b03676629d944c6f14df359904db938ac956a2f56b347d51fd7293417b021d5b18145fb693649a54ec2125868ae3fb88f63a17e12 WHIRLPOOL ba92ee892e64e0192b9198423cea86548b4f8b1552634d8775fcff1b7d5c85b874155e4150568e5364b921678d69b668d907de955c2de4f03bc0c0a8075724ee
31 -DIST samba-4.5.3.tar.gz 20946015 SHA256 f06dc454a1bb72b21a329e1ad75a14795886401671ec7439d69a6b824c492eca SHA512 3ba4002131a5d7db35a62bc5841ed7aa7c43d85f7f3509237aa97bd1ff8bac6358eb3acec178ddfa6e8fa9c390dadb947fa90eec27d1299e2a9ccdecc5e9bc16 WHIRLPOOL 6667ca8dac8f315f3d27ad8751f26538d0bc0749c16796640e09bdb8e085ceb095e780ff60c4bfcd29f77a65c56933bb42ec9358d706a62ca9d3612b70d68a8f
32 DIST samba-4.5.4.tar.gz 20958348 SHA256 1800d10ea14cabef67c83cc56a0f37f4f30ba5df218b3a1e7c874069a08c0f40 SHA512 7b24227e17ab091e6165c605f28af19fa846de63f3f24508411db2b509d942e599702dd278c8430481d7a404c5a97005148286ea4e94a35b57a1ec303b1a4409 WHIRLPOOL a1b84726b0a0addb1ca2de8d84429280a82001bf2fb0fbd7524dd2499fb18370d19e099b0852b93cb105b3db45583688b107533d404703ac635c2e6e8e2cb81b
33 DIST samba-4.5.5.tar.gz 20953640 SHA256 bff02762b3e4ee030f02266c6e24a0b888248b387246219b7fbe3e1758ef2184 SHA512 dd9bd2cdd16ef9289c46583b9809fb2757f821bcfedacbac384718b977f981a20d011065087b2fa985c57082512b9cc5d5e19daede3fc6c7e063e04a66349b4a WHIRLPOOL 0dcffe3071ef2e621a2bc5b317e05036b5a75c6a0231538026bdee76bb43743d72acff128025e7957791a65856794cbfa2bfbca203b5f0a685455e1798b29f40
34 DIST samba-4.6.0rc2.tar.gz 20956751 SHA256 e05a941d6d089a4781a51eb758661d66ce9c23b7e6286da756f5910424de22d5 SHA512 e66d9f50f0bda315c1a57cf94c5c06811bf5d0c709ebc513488635c1e044865abc27af9f60023e5ae4ae0c08f819bfc46886bd408be0c63aa8a09a945efa67e0 WHIRLPOOL 6fc370fbb4dc5501a3c134725bebe89869bb57d6d54c713d1920056ebe558ee378046e9fa1a6b70af6e23885b92ca4c3dde85e574e482e7a101b334cf0dc9705
35 DIST samba-disable-python-patches-4.2.12.tar.xz 6052 SHA256 8903eacbabdfaf7b64cbde03d7c367d1efdc92e54090f0f4b9ed5d2a462b1c18 SHA512 c527d0a052d3211e5b12c17bc94db56cc5e5545189ed65a760c0656c94c22e27a4b159e6439eb0370873e1619873a741f3b3bd10d3876b38eb3914a87eace372 WHIRLPOOL ad63db55d5dc96f56e6c9b30c2092e2f6e206b0ed5d13c249879d10753c8db2f475c5d4e651e2fc042ad992b648d3b4465f1b28c6b4bbf821cf503d27f741f7e
36 DIST samba-disable-python-patches-4.2.9.tar.xz 6016 SHA256 222d0153f03dddde28a0b906ee2b27076223ac88b84a998aaa285f658861edfa SHA512 02fc666a36f8e733e522663d80775d130fabee9d5fb4e1c261d28815e07be425ae8977213f9216c7af62dd8b2619e7e13d71f9a25780b058c8119901c2115a18 WHIRLPOOL ebba3a6d41a41844621759672aa8c984d26f44d12007c8e929405470c381bc262523ec68d3972e86cf675c45f092fa287496167e42940e70d704790753e47b03
37 -DIST samba-disable-python-patches-4.3.12.tar.xz 6172 SHA256 d46c03d906d3ab1009bcfd511b85107b276b7950854f2a36c714a6a73244f632 SHA512 5396419fb4e104564b889806596d76c8e84620c9236da7421e12e2eaeaa48811e4528f51fae49b832cb917010c2e10defd5fd70e8d65b6706f7833bdac4c8892 WHIRLPOOL f4aa70cf50e592e603f8e0a0e36e40d7eee1f2c336d701c84243d79ae5d43a7d247785730a91f16b5ec38c6dc387561cfd64ec476a96096e8ba3e6ca97c5ffbe
38 -DIST samba-disable-python-patches-4.4.6.tar.xz 6284 SHA256 64414f0fc431257693087be2a745f50c35d3256d5e9fad4e9fdb74606617cc4f SHA512 91e7c14096a9c1a5ccdd44fe8930604537b32d472c1e18866c20643e72729ab75f3ad1f0fb4233c168cfb987c0db69e636944df8e539b6564c74121497e00b79 WHIRLPOOL f16cff9a254e7caa2d76c89f3063853dfc25249414b70a9bb62183bdce4e4bbe582e8a9dbce2f70e9e1bff1f4f0c59f77f74012574611f61a90edda668597a98
39 DIST samba-disable-python-patches-4.5.0_rc1.tar.xz 6204 SHA256 fa0d776e04e3222c0dc4761e376717f4154937cdcb85f4117b8978dfb770a78e SHA512 920089ba3c6e8e7d913b1d7ef1017262a19d1af41215adb30cfc98a57556efc4b0116931d4ef774c01124149d8eca2be3a23814ce7e11daf0180d2c111799927 WHIRLPOOL 6d55710895435ad012e23f8c252e5276966241014710349ca7fa9cf037e8742030b8e053f7cb71309a0a45f48d2235d55393243bf4d19476a22dd39bb1b7748d
40 DIST samba-disable-python-patches-4.6.0_rc1.tar.xz 6208 SHA256 9d013d65759c66db89d99c6017c618f2eff9928c2d761e5865dd125c6ca2ba1b SHA512 f11faaab3ca92d7ca5e3b43fc0d9d8360c0773cfd085ab273622be8ea8769ec4783e8a81ecee005bdb73dc07e45073248b24a3c52da5455f3ff0c9416295188f WHIRLPOOL 7712e5d7af563da12c4cf8a06bb64eca021e5b7a390a7b64f209e304c365847013fc9be6381397b203bc9c4040b3d838afd0be8b72bc1bed4099f6ed21f70860
41
42 diff --git a/net-fs/samba/files/4.3/samba4.confd b/net-fs/samba/files/4.3/samba4.confd
43 deleted file mode 100644
44 index 58b2c78..00000000
45 --- a/net-fs/samba/files/4.3/samba4.confd
46 +++ /dev/null
47 @@ -1,38 +0,0 @@
48 -# Add "winbind" to the daemon_list if you also want winbind to start.
49 -# Replace "smbd nmbd" by "samba4" if you want the active directory domain controller part or the ntvfs
50 -# file server part or the rpc proxy to start.
51 -# Note that samba4 controls 'smbd' by itself, thus it can't be started manually. You can, however,
52 -# tweak the behaviour of a samba4-controlled smbd by modifying your '/etc/samba/smb.conf' file
53 -# accordingly.
54 -daemon_list="smbd nmbd"
55 -
56 -#----------------------------------------------------------------------------
57 -# Daemons calls: <daemon_name>_<command_option>
58 -#----------------------------------------------------------------------------
59 -my_service_name="samba"
60 -my_service_PRE="unset TMP TMPDIR"
61 -my_service_POST=""
62 -
63 -#----------------------------------------------------------------------------
64 -# Daemons calls: <daemon_name>_<command_option>
65 -#----------------------------------------------------------------------------
66 -smbd_start_options="-D"
67 -smbd_start="start-stop-daemon --start --exec /usr/sbin/smbd -- ${smbd_start_options}"
68 -smbd_stop="start-stop-daemon --stop --exec /usr/sbin/smbd"
69 -smbd_reload="killall -HUP smbd"
70 -
71 -nmbd_start_options="-D"
72 -nmbd_start="start-stop-daemon --start --exec /usr/sbin/nmbd -- ${nmbd_start_options}"
73 -nmbd_stop="start-stop-daemon --stop --exec /usr/sbin/nmbd"
74 -nmbd_reload="killall -HUP nmbd"
75 -
76 -samba4_start_options=""
77 -samba4_start="start-stop-daemon --start --exec /usr/sbin/samba -- ${samba4_start_options}"
78 -samba4_stop="start-stop-daemon --stop --exec /usr/sbin/samba"
79 -samba4_reload="killall -HUP samba"
80 -
81 -winbind_start_options=""
82 -winbind_start="start-stop-daemon --start --exec /usr/sbin/winbindd -- ${winbind_start_options}"
83 -winbind_stop="start-stop-daemon --stop --exec /usr/sbin/winbindd"
84 -winbind_reload="killall -HUP winbindd"
85 -
86
87 diff --git a/net-fs/samba/files/4.3/samba4.initd-r1 b/net-fs/samba/files/4.3/samba4.initd-r1
88 deleted file mode 100644
89 index bf162ad..00000000
90 --- a/net-fs/samba/files/4.3/samba4.initd-r1
91 +++ /dev/null
92 @@ -1,56 +0,0 @@
93 -#!/sbin/openrc-run
94 -# Copyright 1999-2016 Gentoo Foundation
95 -# Distributed under the terms of the GNU General Public License, v2 or later
96 -# $Id$
97 -
98 -extra_started_commands="reload"
99 -piddir="/run/samba"
100 -
101 -depend() {
102 - after slapd
103 - need net
104 - use cupsd
105 -}
106 -
107 -DAEMONNAME="${SVCNAME##samba.}"
108 -[ "${DAEMONNAME}" != "samba" ] && daemon_list=${DAEMONNAME}
109 -
110 -signal_do() {
111 - local signal="$1"
112 - [ -z "${signal}" ] && return 0
113 -
114 - local result=0 last_result=0 daemon= cmd_exec=
115 - for daemon in ${daemon_list} ; do
116 - eval cmd_exec=\$${daemon}_${signal}
117 - if [ -n "${cmd_exec}" ]; then
118 - ebegin "${my_service_name} -> ${signal}: ${daemon}"
119 - #echo ${cmd} '->' ${!cmd}
120 - ${cmd_exec} > /dev/null
121 - last_result=$?
122 - eend ${last_result}
123 - fi
124 - result=$(( ${result} + ${last_result} ))
125 - done
126 - return ${result}
127 -}
128 -
129 -start() {
130 - ${my_service_PRE}
131 - [ -d "${piddir}" ] || mkdir -p "${piddir}"
132 - signal_do start && return 0
133 -
134 - eerror "Error: starting services (see system logs)"
135 - signal_do stop
136 - return 1
137 -}
138 -stop() {
139 - ${my_service_PRE}
140 - if signal_do stop ; then
141 - ${my_service_POST}
142 - return 0
143 - fi
144 -}
145 -reload() {
146 - ${my_service_PRE}
147 - signal_do reload
148 -}
149
150 diff --git a/net-fs/samba/samba-4.3.12.ebuild b/net-fs/samba/samba-4.3.12.ebuild
151 deleted file mode 100644
152 index 0ed23c6..00000000
153 --- a/net-fs/samba/samba-4.3.12.ebuild
154 +++ /dev/null
155 @@ -1,250 +0,0 @@
156 -# Copyright 1999-2016 Gentoo Foundation
157 -# Distributed under the terms of the GNU General Public License v2
158 -# $Id$
159 -
160 -EAPI=6
161 -PYTHON_COMPAT=( python2_7 )
162 -PYTHON_REQ_USE='threads(+),xml(+)'
163 -
164 -inherit python-single-r1 waf-utils multilib-minimal linux-info systemd eutils
165 -
166 -MY_PV="${PV/_rc/rc}"
167 -MY_P="${PN}-${MY_PV}"
168 -
169 -SRC_PATH="stable"
170 -[[ ${PV} = *_rc* ]] && SRC_PATH="rc"
171 -
172 -SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz
173 - https://dev.gentoo.org/~polynomial-c/samba-disable-python-patches-4.3.12.tar.xz"
174 -[[ ${PV} = *_rc* ]] || \
175 -KEYWORDS="~amd64 ~hppa ~x86"
176 -
177 -DESCRIPTION="Samba Suite Version 4"
178 -HOMEPAGE="http://www.samba.org/"
179 -LICENSE="GPL-3"
180 -
181 -SLOT="0"
182 -
183 -IUSE="acl addc addns ads aio avahi client cluster cups dmapi fam gnutls iprint
184 -ldap pam quota selinux syslog +system-mitkrb5 systemd test winbind"
185 -
186 -MULTILIB_WRAPPED_HEADERS=(
187 - /usr/include/samba-4.0/policy.h
188 - /usr/include/samba-4.0/dcerpc_server.h
189 - /usr/include/samba-4.0/ctdb.h
190 - /usr/include/samba-4.0/ctdb_client.h
191 - /usr/include/samba-4.0/ctdb_protocol.h
192 - /usr/include/samba-4.0/ctdb_private.h
193 - /usr/include/samba-4.0/ctdb_typesafe_cb.h
194 - /usr/include/samba-4.0/ctdb_version.h
195 -)
196 -
197 -# sys-apps/attr is an automagic dependency (see bug #489748)
198 -CDEPEND="${PYTHON_DEPS}
199 - >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}]
200 - dev-lang/perl:=
201 - dev-libs/libbsd[${MULTILIB_USEDEP}]
202 - dev-libs/iniparser:0
203 - dev-libs/popt[${MULTILIB_USEDEP}]
204 - sys-libs/readline:=
205 - virtual/libiconv
206 - dev-python/subunit[${PYTHON_USEDEP},${MULTILIB_USEDEP}]
207 - sys-apps/attr[${MULTILIB_USEDEP}]
208 - sys-libs/libcap
209 - >=sys-libs/ldb-1.1.24[ldap(+)?,${MULTILIB_USEDEP}]
210 - sys-libs/ncurses:0=[${MULTILIB_USEDEP}]
211 - >=sys-libs/talloc-2.1.3[python,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
212 - >=sys-libs/tdb-1.3.7[python,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
213 - >=sys-libs/tevent-0.9.28[${MULTILIB_USEDEP}]
214 - sys-libs/zlib[${MULTILIB_USEDEP}]
215 - virtual/pam
216 - acl? ( virtual/acl )
217 - addns? ( net-dns/bind-tools[gssapi] )
218 - aio? ( dev-libs/libaio )
219 - cluster? ( !dev-db/ctdb )
220 - cups? ( net-print/cups )
221 - dmapi? ( sys-apps/dmapi )
222 - fam? ( virtual/fam )
223 - gnutls? ( dev-libs/libgcrypt:0
224 - >=net-libs/gnutls-1.4.0 )
225 - ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] )
226 - system-mitkrb5? ( app-crypt/mit-krb5[${MULTILIB_USEDEP}] )
227 - !system-mitkrb5? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] )
228 - systemd? ( sys-apps/systemd:0= )"
229 -DEPEND="${CDEPEND}
230 - virtual/pkgconfig"
231 -RDEPEND="${CDEPEND}
232 - client? ( net-fs/cifs-utils[ads?] )
233 - selinux? ( sec-policy/selinux-samba )
234 - !dev-perl/Parse-Yapp
235 -"
236 -
237 -REQUIRED_USE="addc? ( gnutls !system-mitkrb5 )
238 - ads? ( acl gnutls ldap )
239 - ${PYTHON_REQUIRED_USE}"
240 -
241 -S="${WORKDIR}/${MY_P}"
242 -
243 -PATCHES=(
244 - "${FILESDIR}/${PN}-4.2.3-heimdal_compilefix.patch"
245 - "${FILESDIR}/${PN}-4.2.7-pam.patch"
246 -)
247 -
248 -CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
249 -
250 -WAF_BINARY="${S}/buildtools/bin/waf"
251 -
252 -SHAREDMODS=""
253 -
254 -pkg_setup() {
255 - python-single-r1_pkg_setup
256 - if use aio ; then
257 - if ! linux_config_exists || ! linux_chkconfig_present AIO; then
258 - ewarn "You must enable AIO support in your kernel config, "
259 - ewarn "to be able to support asynchronous I/O. "
260 - ewarn "You can find it at"
261 - ewarn
262 - ewarn "General Support"
263 - ewarn " Enable AIO support "
264 - ewarn
265 - ewarn "and recompile your kernel..."
266 - fi
267 - fi
268 - if use cluster ; then
269 - SHAREDMODS="${SHAREDMODS}idmap_rid,idmap_tdb2,idmap_ad"
270 - fi
271 -}
272 -
273 -src_prepare() {
274 - default
275 -
276 - # install the patches from tarball(s)
277 - eapply "${WORKDIR}/patches/"
278 -
279 - multilib_copy_sources
280 -}
281 -
282 -multilib_src_configure() {
283 - local myconf=()
284 - myconf=(
285 - --enable-fhs
286 - --sysconfdir=/etc
287 - --localstatedir=/var
288 - --with-modulesdir=/usr/$(get_libdir)/samba
289 - --with-piddir=/run/${PN}
290 - --bundled-libraries=NONE
291 - --builtin-libraries=NONE
292 - --disable-rpath
293 - --disable-rpath-install
294 - --nopyc
295 - --nopyo
296 - )
297 - if multilib_is_native_abi ; then
298 - myconf+=(
299 - $(use_with acl acl-support)
300 - $(usex addc '' '--without-ad-dc')
301 - $(use_with addns dnsupdate)
302 - $(use_with ads)
303 - $(usex ads '--with-shared-modules=idmap_ad' '')
304 - $(use_with aio aio-support)
305 - $(use_enable avahi)
306 - $(use_with cluster cluster-support)
307 - $(use_enable cups)
308 - $(use_with dmapi)
309 - $(use_with fam)
310 - $(use_enable gnutls)
311 - $(use_enable iprint)
312 - $(use_with ldap)
313 - $(use_with pam)
314 - $(use_with pam pam_smbpass)
315 - $(usex pam "--with-pammodulesdir=/$(get_libdir)/security" '')
316 - $(use_with quota quotas)
317 - $(use_with syslog)
318 - $(use_with systemd)
319 - $(usex system-mitkrb5 '--with-system-mitkrb5' '')
320 - $(use_with winbind)
321 - $(usex test '--enable-selftest' '')
322 - --with-shared-modules=${SHAREDMODS}
323 - )
324 - else
325 - myconf+=(
326 - --without-acl-support
327 - --without-ad-dc
328 - --without-dnsupdate
329 - --without-ads
330 - --without-aio-support
331 - --disable-avahi
332 - --without-cluster-support
333 - --disable-cups
334 - --without-dmapi
335 - --without-fam
336 - --disable-gnutls
337 - --disable-iprint
338 - $(use_with ldap)
339 - --without-pam
340 - --without-pam_smbpass
341 - --without-quotas
342 - --without-syslog
343 - --without-systemd
344 - $(usex system-mitkrb5 '--with-system-mitkrb5' '')
345 - --without-winbind
346 - --disable-python
347 - )
348 - fi
349 -
350 - CPPFLAGS="-I${SYSROOT}/usr/include/et ${CPPFLAGS}" \
351 - waf-utils_src_configure ${myconf[@]}
352 -}
353 -
354 -multilib_src_install() {
355 - waf-utils_src_install
356 -
357 - # Make all .so files executable
358 - find "${D}" -type f -name "*.so" -exec chmod +x {} +
359 -
360 - if multilib_is_native_abi; then
361 - # install ldap schema for server (bug #491002)
362 - if use ldap ; then
363 - insinto /etc/openldap/schema
364 - doins examples/LDAP/samba.schema
365 - fi
366 -
367 - # create symlink for cups (bug #552310)
368 - if use cups ; then
369 - dosym /usr/bin/smbspool /usr/libexec/cups/backend/smb
370 - fi
371 -
372 - # install example config file
373 - insinto /etc/samba
374 - doins examples/smb.conf.default
375 -
376 - # Install init script and conf.d file
377 - newinitd "${CONFDIR}/samba4.initd-r1" samba
378 - newconfd "${CONFDIR}/samba4.confd" samba
379 -
380 - systemd_dotmpfilesd "${FILESDIR}"/samba.conf
381 - systemd_dounit "${FILESDIR}"/nmbd.service
382 - systemd_dounit "${FILESDIR}"/smbd.{service,socket}
383 - systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service'
384 - systemd_dounit "${FILESDIR}"/winbindd.service
385 - systemd_dounit "${FILESDIR}"/samba.service
386 - fi
387 -}
388 -
389 -multilib_src_test() {
390 - if multilib_is_native_abi ; then
391 - "${WAF_BINARY}" test || die "test failed"
392 - fi
393 -}
394 -
395 -pkg_postinst() {
396 - ewarn "Be aware the this release contains the best of all of Samba's"
397 - ewarn "technology parts, both a file server (that you can reasonably expect"
398 - ewarn "to upgrade existing Samba 3.x releases to) and the AD domain"
399 - ewarn "controller work previously known as 'samba4'."
400 -
401 - elog "For further information and migration steps make sure to read "
402 - elog "http://samba.org/samba/history/${P}.html "
403 - elog "http://samba.org/samba/history/${PN}-4.2.0.html and"
404 - elog "http://wiki.samba.org/index.php/Samba4/HOWTO "
405 -}
406
407 diff --git a/net-fs/samba/samba-4.4.7.ebuild b/net-fs/samba/samba-4.4.7.ebuild
408 deleted file mode 100644
409 index e7e5b55..00000000
410 --- a/net-fs/samba/samba-4.4.7.ebuild
411 +++ /dev/null
412 @@ -1,234 +0,0 @@
413 -# Copyright 1999-2016 Gentoo Foundation
414 -# Distributed under the terms of the GNU General Public License v2
415 -# $Id$
416 -
417 -EAPI=6
418 -PYTHON_COMPAT=( python2_7 )
419 -PYTHON_REQ_USE='threads(+),xml(+)'
420 -
421 -inherit python-single-r1 waf-utils multilib-minimal linux-info systemd eutils
422 -
423 -MY_PV="${PV/_rc/rc}"
424 -MY_P="${PN}-${MY_PV}"
425 -
426 -SRC_PATH="stable"
427 -[[ ${PV} = *_rc* ]] && SRC_PATH="rc"
428 -
429 -SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz
430 - https://dev.gentoo.org/~polynomial-c/samba-disable-python-patches-4.4.6.tar.xz"
431 -[[ ${PV} = *_rc* ]] || \
432 -KEYWORDS="~amd64 ~hppa ~x86"
433 -
434 -DESCRIPTION="Samba Suite Version 4"
435 -HOMEPAGE="http://www.samba.org/"
436 -LICENSE="GPL-3"
437 -
438 -SLOT="0"
439 -
440 -IUSE="acl addc addns ads avahi client cluster cups dmapi fam gnutls iprint
441 -ldap pam quota selinux syslog +system-mitkrb5 systemd test winbind"
442 -
443 -MULTILIB_WRAPPED_HEADERS=(
444 - /usr/include/samba-4.0/policy.h
445 - /usr/include/samba-4.0/dcerpc_server.h
446 - /usr/include/samba-4.0/ctdb.h
447 - /usr/include/samba-4.0/ctdb_client.h
448 - /usr/include/samba-4.0/ctdb_protocol.h
449 - /usr/include/samba-4.0/ctdb_private.h
450 - /usr/include/samba-4.0/ctdb_typesafe_cb.h
451 - /usr/include/samba-4.0/ctdb_version.h
452 -)
453 -
454 -# sys-apps/attr is an automagic dependency (see bug #489748)
455 -CDEPEND="${PYTHON_DEPS}
456 - >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}]
457 - dev-lang/perl:=
458 - dev-libs/libaio[${MULTILIB_USEDEP}]
459 - dev-libs/libbsd[${MULTILIB_USEDEP}]
460 - dev-libs/iniparser:0
461 - dev-libs/popt[${MULTILIB_USEDEP}]
462 - sys-libs/readline:=
463 - virtual/libiconv
464 - dev-python/subunit[${PYTHON_USEDEP},${MULTILIB_USEDEP}]
465 - sys-apps/attr[${MULTILIB_USEDEP}]
466 - sys-libs/libcap
467 - >=sys-libs/ldb-1.1.26[ldap(+)?,${MULTILIB_USEDEP}]
468 - sys-libs/ncurses:0=[${MULTILIB_USEDEP}]
469 - >=sys-libs/talloc-2.1.6[python,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
470 - >=sys-libs/tdb-1.3.8[python,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
471 - >=sys-libs/tevent-0.9.28[${MULTILIB_USEDEP}]
472 - sys-libs/zlib[${MULTILIB_USEDEP}]
473 - pam? ( virtual/pam )
474 - acl? ( virtual/acl )
475 - addns? ( net-dns/bind-tools[gssapi] )
476 - cluster? ( !dev-db/ctdb )
477 - cups? ( net-print/cups )
478 - dmapi? ( sys-apps/dmapi )
479 - fam? ( virtual/fam )
480 - gnutls? ( dev-libs/libgcrypt:0
481 - >=net-libs/gnutls-1.4.0 )
482 - ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] )
483 - system-mitkrb5? ( app-crypt/mit-krb5[${MULTILIB_USEDEP}] )
484 - !system-mitkrb5? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] )
485 - systemd? ( sys-apps/systemd:0= )"
486 -DEPEND="${CDEPEND}
487 - virtual/pkgconfig"
488 -RDEPEND="${CDEPEND}
489 - client? ( net-fs/cifs-utils[ads?] )
490 - selinux? ( sec-policy/selinux-samba )
491 - !dev-perl/Parse-Yapp
492 -"
493 -
494 -REQUIRED_USE="addc? ( gnutls !system-mitkrb5 )
495 - ads? ( acl gnutls ldap )
496 - ${PYTHON_REQUIRED_USE}"
497 -
498 -S="${WORKDIR}/${MY_P}"
499 -
500 -PATCHES=(
501 - "${FILESDIR}/${PN}-4.2.3-heimdal_compilefix.patch"
502 - "${FILESDIR}/${PN}-4.4.0-pam.patch"
503 -)
504 -
505 -CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
506 -
507 -WAF_BINARY="${S}/buildtools/bin/waf"
508 -
509 -SHAREDMODS=""
510 -
511 -pkg_setup() {
512 - python-single-r1_pkg_setup
513 - if use cluster ; then
514 - SHAREDMODS="${SHAREDMODS}idmap_rid,idmap_tdb2,idmap_ad"
515 - fi
516 -}
517 -
518 -src_prepare() {
519 - default
520 -
521 - # install the patches from tarball(s)
522 - eapply "${WORKDIR}/patches/"
523 -
524 - multilib_copy_sources
525 -}
526 -
527 -multilib_src_configure() {
528 - local myconf=()
529 - myconf=(
530 - --enable-fhs
531 - --sysconfdir="${EPREFIX}/etc"
532 - --localstatedir="${EPREFIX}/var"
533 - --with-modulesdir="${EPREFIX}/usr/$(get_libdir)/samba"
534 - --with-piddir="${EPREFIX}/run/${PN}"
535 - --bundled-libraries=NONE
536 - --builtin-libraries=NONE
537 - --disable-rpath
538 - --disable-rpath-install
539 - --nopyc
540 - --nopyo
541 - )
542 - if multilib_is_native_abi ; then
543 - myconf+=(
544 - $(use_with acl acl-support)
545 - $(usex addc '' '--without-ad-dc')
546 - $(use_with addns dnsupdate)
547 - $(use_with ads)
548 - $(usex ads '--with-shared-modules=idmap_ad' '')
549 - $(use_enable avahi)
550 - $(use_with cluster cluster-support)
551 - $(use_enable cups)
552 - $(use_with dmapi)
553 - $(use_with fam)
554 - $(use_enable gnutls)
555 - $(use_enable iprint)
556 - $(use_with ldap)
557 - $(use_with pam)
558 - $(usex pam "--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '')
559 - $(use_with quota quotas)
560 - $(use_with syslog)
561 - $(use_with systemd)
562 - $(usex system-mitkrb5 '--with-system-mitkrb5' '')
563 - $(use_with winbind)
564 - $(usex test '--enable-selftest' '')
565 - --with-shared-modules=${SHAREDMODS}
566 - )
567 - else
568 - myconf+=(
569 - --without-acl-support
570 - --without-ad-dc
571 - --without-dnsupdate
572 - --without-ads
573 - --disable-avahi
574 - --without-cluster-support
575 - --disable-cups
576 - --without-dmapi
577 - --without-fam
578 - --disable-gnutls
579 - --disable-iprint
580 - $(use_with ldap)
581 - --without-pam
582 - --without-quotas
583 - --without-syslog
584 - --without-systemd
585 - $(usex system-mitkrb5 '--with-system-mitkrb5' '')
586 - --without-winbind
587 - --disable-python
588 - )
589 - fi
590 -
591 - CPPFLAGS="-I${SYSROOT}${EPREFIX}/usr/include/et ${CPPFLAGS}" \
592 - waf-utils_src_configure ${myconf[@]}
593 -}
594 -
595 -multilib_src_install() {
596 - waf-utils_src_install
597 -
598 - # Make all .so files executable
599 - find "${D}" -type f -name "*.so" -exec chmod +x {} +
600 -
601 - if multilib_is_native_abi; then
602 - # install ldap schema for server (bug #491002)
603 - if use ldap ; then
604 - insinto /etc/openldap/schema
605 - doins examples/LDAP/samba.schema
606 - fi
607 -
608 - # create symlink for cups (bug #552310)
609 - if use cups ; then
610 - dosym /usr/bin/smbspool /usr/libexec/cups/backend/smb
611 - fi
612 -
613 - # install example config file
614 - insinto /etc/samba
615 - doins examples/smb.conf.default
616 -
617 - # Install init script and conf.d file
618 - newinitd "${CONFDIR}/samba4.initd-r1" samba
619 - newconfd "${CONFDIR}/samba4.confd" samba
620 -
621 - systemd_dotmpfilesd "${FILESDIR}"/samba.conf
622 - systemd_dounit "${FILESDIR}"/nmbd.service
623 - systemd_dounit "${FILESDIR}"/smbd.{service,socket}
624 - systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service'
625 - systemd_dounit "${FILESDIR}"/winbindd.service
626 - systemd_dounit "${FILESDIR}"/samba.service
627 - fi
628 -}
629 -
630 -multilib_src_test() {
631 - if multilib_is_native_abi ; then
632 - "${WAF_BINARY}" test || die "test failed"
633 - fi
634 -}
635 -
636 -pkg_postinst() {
637 - ewarn "Be aware the this release contains the best of all of Samba's"
638 - ewarn "technology parts, both a file server (that you can reasonably expect"
639 - ewarn "to upgrade existing Samba 3.x releases to) and the AD domain"
640 - ewarn "controller work previously known as 'samba4'."
641 -
642 - elog "For further information and migration steps make sure to read "
643 - elog "http://samba.org/samba/history/${P}.html "
644 - elog "http://samba.org/samba/history/${PN}-4.2.0.html and"
645 - elog "http://wiki.samba.org/index.php/Samba4/HOWTO "
646 -}
647
648 diff --git a/net-fs/samba/samba-4.4.9.ebuild b/net-fs/samba/samba-4.4.9.ebuild
649 deleted file mode 100644
650 index 28d38f5..00000000
651 --- a/net-fs/samba/samba-4.4.9.ebuild
652 +++ /dev/null
653 @@ -1,234 +0,0 @@
654 -# Copyright 1999-2017 Gentoo Foundation
655 -# Distributed under the terms of the GNU General Public License v2
656 -# $Id$
657 -
658 -EAPI=6
659 -PYTHON_COMPAT=( python2_7 )
660 -PYTHON_REQ_USE='threads(+),xml(+)'
661 -
662 -inherit python-single-r1 waf-utils multilib-minimal linux-info systemd eutils
663 -
664 -MY_PV="${PV/_rc/rc}"
665 -MY_P="${PN}-${MY_PV}"
666 -
667 -SRC_PATH="stable"
668 -[[ ${PV} = *_rc* ]] && SRC_PATH="rc"
669 -
670 -SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz
671 - https://dev.gentoo.org/~polynomial-c/samba-disable-python-patches-4.4.6.tar.xz"
672 -[[ ${PV} = *_rc* ]] || \
673 -KEYWORDS="~amd64 ~hppa ~x86"
674 -
675 -DESCRIPTION="Samba Suite Version 4"
676 -HOMEPAGE="http://www.samba.org/"
677 -LICENSE="GPL-3"
678 -
679 -SLOT="0"
680 -
681 -IUSE="acl addc addns ads avahi client cluster cups dmapi fam gnutls iprint
682 -ldap pam quota selinux syslog +system-mitkrb5 systemd test winbind"
683 -
684 -MULTILIB_WRAPPED_HEADERS=(
685 - /usr/include/samba-4.0/policy.h
686 - /usr/include/samba-4.0/dcerpc_server.h
687 - /usr/include/samba-4.0/ctdb.h
688 - /usr/include/samba-4.0/ctdb_client.h
689 - /usr/include/samba-4.0/ctdb_protocol.h
690 - /usr/include/samba-4.0/ctdb_private.h
691 - /usr/include/samba-4.0/ctdb_typesafe_cb.h
692 - /usr/include/samba-4.0/ctdb_version.h
693 -)
694 -
695 -# sys-apps/attr is an automagic dependency (see bug #489748)
696 -CDEPEND="${PYTHON_DEPS}
697 - >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}]
698 - dev-lang/perl:=
699 - dev-libs/libaio[${MULTILIB_USEDEP}]
700 - dev-libs/libbsd[${MULTILIB_USEDEP}]
701 - dev-libs/iniparser:0
702 - dev-libs/popt[${MULTILIB_USEDEP}]
703 - sys-libs/readline:=
704 - virtual/libiconv
705 - dev-python/subunit[${PYTHON_USEDEP},${MULTILIB_USEDEP}]
706 - sys-apps/attr[${MULTILIB_USEDEP}]
707 - sys-libs/libcap
708 - >=sys-libs/ldb-1.1.26[ldap(+)?,${MULTILIB_USEDEP}]
709 - sys-libs/ncurses:0=[${MULTILIB_USEDEP}]
710 - >=sys-libs/talloc-2.1.6[python,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
711 - >=sys-libs/tdb-1.3.8[python,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
712 - >=sys-libs/tevent-0.9.28[${MULTILIB_USEDEP}]
713 - sys-libs/zlib[${MULTILIB_USEDEP}]
714 - pam? ( virtual/pam )
715 - acl? ( virtual/acl )
716 - addns? ( net-dns/bind-tools[gssapi] )
717 - cluster? ( !dev-db/ctdb )
718 - cups? ( net-print/cups )
719 - dmapi? ( sys-apps/dmapi )
720 - fam? ( virtual/fam )
721 - gnutls? ( dev-libs/libgcrypt:0
722 - >=net-libs/gnutls-1.4.0 )
723 - ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] )
724 - system-mitkrb5? ( app-crypt/mit-krb5[${MULTILIB_USEDEP}] )
725 - !system-mitkrb5? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] )
726 - systemd? ( sys-apps/systemd:0= )"
727 -DEPEND="${CDEPEND}
728 - virtual/pkgconfig"
729 -RDEPEND="${CDEPEND}
730 - client? ( net-fs/cifs-utils[ads?] )
731 - selinux? ( sec-policy/selinux-samba )
732 - !dev-perl/Parse-Yapp
733 -"
734 -
735 -REQUIRED_USE="addc? ( gnutls !system-mitkrb5 )
736 - ads? ( acl gnutls ldap )
737 - ${PYTHON_REQUIRED_USE}"
738 -
739 -S="${WORKDIR}/${MY_P}"
740 -
741 -PATCHES=(
742 - "${FILESDIR}/${PN}-4.2.3-heimdal_compilefix.patch"
743 - "${FILESDIR}/${PN}-4.4.0-pam.patch"
744 -)
745 -
746 -CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
747 -
748 -WAF_BINARY="${S}/buildtools/bin/waf"
749 -
750 -SHAREDMODS=""
751 -
752 -pkg_setup() {
753 - python-single-r1_pkg_setup
754 - if use cluster ; then
755 - SHAREDMODS="${SHAREDMODS}idmap_rid,idmap_tdb2,idmap_ad"
756 - fi
757 -}
758 -
759 -src_prepare() {
760 - default
761 -
762 - # install the patches from tarball(s)
763 - eapply "${WORKDIR}/patches/"
764 -
765 - multilib_copy_sources
766 -}
767 -
768 -multilib_src_configure() {
769 - local myconf=()
770 - myconf=(
771 - --enable-fhs
772 - --sysconfdir="${EPREFIX}/etc"
773 - --localstatedir="${EPREFIX}/var"
774 - --with-modulesdir="${EPREFIX}/usr/$(get_libdir)/samba"
775 - --with-piddir="${EPREFIX}/run/${PN}"
776 - --bundled-libraries=NONE
777 - --builtin-libraries=NONE
778 - --disable-rpath
779 - --disable-rpath-install
780 - --nopyc
781 - --nopyo
782 - )
783 - if multilib_is_native_abi ; then
784 - myconf+=(
785 - $(use_with acl acl-support)
786 - $(usex addc '' '--without-ad-dc')
787 - $(use_with addns dnsupdate)
788 - $(use_with ads)
789 - $(usex ads '--with-shared-modules=idmap_ad' '')
790 - $(use_enable avahi)
791 - $(use_with cluster cluster-support)
792 - $(use_enable cups)
793 - $(use_with dmapi)
794 - $(use_with fam)
795 - $(use_enable gnutls)
796 - $(use_enable iprint)
797 - $(use_with ldap)
798 - $(use_with pam)
799 - $(usex pam "--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '')
800 - $(use_with quota quotas)
801 - $(use_with syslog)
802 - $(use_with systemd)
803 - $(usex system-mitkrb5 '--with-system-mitkrb5' '')
804 - $(use_with winbind)
805 - $(usex test '--enable-selftest' '')
806 - --with-shared-modules=${SHAREDMODS}
807 - )
808 - else
809 - myconf+=(
810 - --without-acl-support
811 - --without-ad-dc
812 - --without-dnsupdate
813 - --without-ads
814 - --disable-avahi
815 - --without-cluster-support
816 - --disable-cups
817 - --without-dmapi
818 - --without-fam
819 - --disable-gnutls
820 - --disable-iprint
821 - $(use_with ldap)
822 - --without-pam
823 - --without-quotas
824 - --without-syslog
825 - --without-systemd
826 - $(usex system-mitkrb5 '--with-system-mitkrb5' '')
827 - --without-winbind
828 - --disable-python
829 - )
830 - fi
831 -
832 - CPPFLAGS="-I${SYSROOT}${EPREFIX}/usr/include/et ${CPPFLAGS}" \
833 - waf-utils_src_configure ${myconf[@]}
834 -}
835 -
836 -multilib_src_install() {
837 - waf-utils_src_install
838 -
839 - # Make all .so files executable
840 - find "${D}" -type f -name "*.so" -exec chmod +x {} +
841 -
842 - if multilib_is_native_abi; then
843 - # install ldap schema for server (bug #491002)
844 - if use ldap ; then
845 - insinto /etc/openldap/schema
846 - doins examples/LDAP/samba.schema
847 - fi
848 -
849 - # create symlink for cups (bug #552310)
850 - if use cups ; then
851 - dosym /usr/bin/smbspool /usr/libexec/cups/backend/smb
852 - fi
853 -
854 - # install example config file
855 - insinto /etc/samba
856 - doins examples/smb.conf.default
857 -
858 - # Install init script and conf.d file
859 - newinitd "${CONFDIR}/samba4.initd-r1" samba
860 - newconfd "${CONFDIR}/samba4.confd" samba
861 -
862 - systemd_dotmpfilesd "${FILESDIR}"/samba.conf
863 - systemd_dounit "${FILESDIR}"/nmbd.service
864 - systemd_dounit "${FILESDIR}"/smbd.{service,socket}
865 - systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service'
866 - systemd_dounit "${FILESDIR}"/winbindd.service
867 - systemd_dounit "${FILESDIR}"/samba.service
868 - fi
869 -}
870 -
871 -multilib_src_test() {
872 - if multilib_is_native_abi ; then
873 - "${WAF_BINARY}" test || die "test failed"
874 - fi
875 -}
876 -
877 -pkg_postinst() {
878 - ewarn "Be aware the this release contains the best of all of Samba's"
879 - ewarn "technology parts, both a file server (that you can reasonably expect"
880 - ewarn "to upgrade existing Samba 3.x releases to) and the AD domain"
881 - ewarn "controller work previously known as 'samba4'."
882 -
883 - elog "For further information and migration steps make sure to read "
884 - elog "http://samba.org/samba/history/${P}.html "
885 - elog "http://samba.org/samba/history/${PN}-4.2.0.html and"
886 - elog "http://wiki.samba.org/index.php/Samba4/HOWTO "
887 -}
888
889 diff --git a/net-fs/samba/samba-4.5.3.ebuild b/net-fs/samba/samba-4.5.3.ebuild
890 deleted file mode 100644
891 index a4d2b1a..00000000
892 --- a/net-fs/samba/samba-4.5.3.ebuild
893 +++ /dev/null
894 @@ -1,237 +0,0 @@
895 -# Copyright 1999-2016 Gentoo Foundation
896 -# Distributed under the terms of the GNU General Public License v2
897 -# $Id$
898 -
899 -EAPI=6
900 -PYTHON_COMPAT=( python2_7 )
901 -PYTHON_REQ_USE='threads(+),xml(+)'
902 -
903 -inherit python-single-r1 waf-utils multilib-minimal linux-info systemd eutils
904 -
905 -MY_PV="${PV/_rc/rc}"
906 -MY_P="${PN}-${MY_PV}"
907 -
908 -SRC_PATH="stable"
909 -[[ ${PV} = *_rc* ]] && SRC_PATH="rc"
910 -
911 -SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz
912 - https://dev.gentoo.org/~polynomial-c/samba-disable-python-patches-4.5.0_rc1.tar.xz"
913 -[[ ${PV} = *_rc* ]] || \
914 -KEYWORDS="~amd64 ~hppa ~x86"
915 -
916 -DESCRIPTION="Samba Suite Version 4"
917 -HOMEPAGE="http://www.samba.org/"
918 -LICENSE="GPL-3"
919 -
920 -SLOT="0"
921 -
922 -IUSE="acl addc addns ads client cluster cups dmapi fam gnutls iprint
923 -ldap pam quota selinux syslog +system-mitkrb5 systemd test winbind zeroconf"
924 -
925 -MULTILIB_WRAPPED_HEADERS=(
926 - /usr/include/samba-4.0/policy.h
927 - /usr/include/samba-4.0/dcerpc_server.h
928 - /usr/include/samba-4.0/ctdb.h
929 - /usr/include/samba-4.0/ctdb_client.h
930 - /usr/include/samba-4.0/ctdb_protocol.h
931 - /usr/include/samba-4.0/ctdb_private.h
932 - /usr/include/samba-4.0/ctdb_typesafe_cb.h
933 - /usr/include/samba-4.0/ctdb_version.h
934 -)
935 -
936 -# sys-apps/attr is an automagic dependency (see bug #489748)
937 -CDEPEND="${PYTHON_DEPS}
938 - >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}]
939 - dev-lang/perl:=
940 - dev-libs/libaio[${MULTILIB_USEDEP}]
941 - dev-libs/libbsd[${MULTILIB_USEDEP}]
942 - dev-libs/iniparser:0
943 - dev-libs/popt[${MULTILIB_USEDEP}]
944 - sys-libs/readline:=
945 - virtual/libiconv
946 - dev-python/subunit[${PYTHON_USEDEP},${MULTILIB_USEDEP}]
947 - sys-apps/attr[${MULTILIB_USEDEP}]
948 - sys-libs/libcap
949 - >=sys-libs/ldb-1.1.27[ldap(+)?,${MULTILIB_USEDEP}]
950 - sys-libs/ncurses:0=[${MULTILIB_USEDEP}]
951 - >=sys-libs/talloc-2.1.8[python,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
952 - >=sys-libs/tdb-1.3.10[python,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
953 - >=sys-libs/tevent-0.9.31-r1[${MULTILIB_USEDEP}]
954 - sys-libs/zlib[${MULTILIB_USEDEP}]
955 - pam? ( virtual/pam )
956 - acl? ( virtual/acl )
957 - addns? ( net-dns/bind-tools[gssapi] )
958 - cluster? ( !dev-db/ctdb )
959 - cups? ( net-print/cups )
960 - dmapi? ( sys-apps/dmapi )
961 - fam? ( virtual/fam )
962 - gnutls? ( dev-libs/libgcrypt:0
963 - >=net-libs/gnutls-1.4.0 )
964 - ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] )
965 - system-mitkrb5? ( app-crypt/mit-krb5[${MULTILIB_USEDEP}] )
966 - !system-mitkrb5? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] )
967 - systemd? ( sys-apps/systemd:0= )"
968 -DEPEND="${CDEPEND}
969 - virtual/pkgconfig"
970 -RDEPEND="${CDEPEND}
971 - client? ( net-fs/cifs-utils[ads?] )
972 - selinux? ( sec-policy/selinux-samba )
973 - !dev-perl/Parse-Yapp
974 -"
975 -
976 -REQUIRED_USE="addc? ( gnutls !system-mitkrb5 )
977 - ads? ( acl gnutls ldap )
978 - ${PYTHON_REQUIRED_USE}"
979 -
980 -S="${WORKDIR}/${MY_P}"
981 -
982 -PATCHES=(
983 - "${FILESDIR}/${PN}-4.4.0-pam.patch"
984 -)
985 -
986 -#CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
987 -CONFDIR="${FILESDIR}/4.4"
988 -
989 -WAF_BINARY="${S}/buildtools/bin/waf"
990 -
991 -SHAREDMODS=""
992 -
993 -pkg_setup() {
994 - python-single-r1_pkg_setup
995 - if use cluster ; then
996 - SHAREDMODS="${SHAREDMODS}idmap_rid,idmap_tdb2,idmap_ad"
997 - fi
998 -}
999 -
1000 -src_prepare() {
1001 - default
1002 -
1003 - # install the patches from tarball(s)
1004 - eapply "${WORKDIR}/patches/"
1005 -
1006 - # ugly hackaround for bug #592502
1007 - cp /usr/include/tevent_internal.h "${S}"/lib/tevent/ || die
1008 -
1009 - multilib_copy_sources
1010 -}
1011 -
1012 -multilib_src_configure() {
1013 - local myconf=()
1014 - myconf=(
1015 - --enable-fhs
1016 - --sysconfdir="${EPREFIX}/etc"
1017 - --localstatedir="${EPREFIX}/var"
1018 - --with-modulesdir="${EPREFIX}/usr/$(get_libdir)/samba"
1019 - --with-piddir="${EPREFIX}/run/${PN}"
1020 - --bundled-libraries=NONE
1021 - --builtin-libraries=NONE
1022 - --disable-rpath
1023 - --disable-rpath-install
1024 - --nopyc
1025 - --nopyo
1026 - )
1027 - if multilib_is_native_abi ; then
1028 - myconf+=(
1029 - $(use_with acl acl-support)
1030 - $(usex addc '' '--without-ad-dc')
1031 - $(use_with addns dnsupdate)
1032 - $(use_with ads)
1033 - $(usex ads '--with-shared-modules=idmap_ad' '')
1034 - $(use_with cluster cluster-support)
1035 - $(use_enable cups)
1036 - $(use_with dmapi)
1037 - $(use_with fam)
1038 - $(use_enable gnutls)
1039 - $(use_enable iprint)
1040 - $(use_with ldap)
1041 - $(use_with pam)
1042 - $(usex pam "--with-pammodulesdir=${EPREFIX}/$(get_libdir)/security" '')
1043 - $(use_with quota quotas)
1044 - $(use_with syslog)
1045 - $(use_with systemd)
1046 - $(usex system-mitkrb5 '--with-system-mitkrb5' '')
1047 - $(use_with winbind)
1048 - $(usex test '--enable-selftest' '')
1049 - $(use_enable zeroconf avahi)
1050 - --with-shared-modules=${SHAREDMODS}
1051 - )
1052 - else
1053 - myconf+=(
1054 - --without-acl-support
1055 - --without-ad-dc
1056 - --without-dnsupdate
1057 - --without-ads
1058 - --disable-avahi
1059 - --without-cluster-support
1060 - --disable-cups
1061 - --without-dmapi
1062 - --without-fam
1063 - --disable-gnutls
1064 - --disable-iprint
1065 - $(use_with ldap)
1066 - --without-pam
1067 - --without-quotas
1068 - --without-syslog
1069 - --without-systemd
1070 - $(usex system-mitkrb5 '--with-system-mitkrb5' '')
1071 - --without-winbind
1072 - --disable-python
1073 - )
1074 - fi
1075 -
1076 - CPPFLAGS="-I${SYSROOT}${EPREFIX}/usr/include/et ${CPPFLAGS}" \
1077 - waf-utils_src_configure ${myconf[@]}
1078 -}
1079 -
1080 -multilib_src_install() {
1081 - waf-utils_src_install
1082 -
1083 - # Make all .so files executable
1084 - find "${D}" -type f -name "*.so" -exec chmod +x {} +
1085 -
1086 - if multilib_is_native_abi; then
1087 - # install ldap schema for server (bug #491002)
1088 - if use ldap ; then
1089 - insinto /etc/openldap/schema
1090 - doins examples/LDAP/samba.schema
1091 - fi
1092 -
1093 - # create symlink for cups (bug #552310)
1094 - if use cups ; then
1095 - dosym /usr/bin/smbspool /usr/libexec/cups/backend/smb
1096 - fi
1097 -
1098 - # install example config file
1099 - insinto /etc/samba
1100 - doins examples/smb.conf.default
1101 -
1102 - # Install init script and conf.d file
1103 - newinitd "${CONFDIR}/samba4.initd-r1" samba
1104 - newconfd "${CONFDIR}/samba4.confd" samba
1105 -
1106 - systemd_dotmpfilesd "${FILESDIR}"/samba.conf
1107 - systemd_dounit "${FILESDIR}"/nmbd.service
1108 - systemd_dounit "${FILESDIR}"/smbd.{service,socket}
1109 - systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service'
1110 - systemd_dounit "${FILESDIR}"/winbindd.service
1111 - systemd_dounit "${FILESDIR}"/samba.service
1112 - fi
1113 -}
1114 -
1115 -multilib_src_test() {
1116 - if multilib_is_native_abi ; then
1117 - "${WAF_BINARY}" test || die "test failed"
1118 - fi
1119 -}
1120 -
1121 -pkg_postinst() {
1122 - ewarn "Be aware the this release contains the best of all of Samba's"
1123 - ewarn "technology parts, both a file server (that you can reasonably expect"
1124 - ewarn "to upgrade existing Samba 3.x releases to) and the AD domain"
1125 - ewarn "controller work previously known as 'samba4'."
1126 -
1127 - elog "For further information and migration steps make sure to read "
1128 - elog "http://samba.org/samba/history/${P}.html "
1129 - elog "http://samba.org/samba/history/${PN}-4.2.0.html and"
1130 - elog "http://wiki.samba.org/index.php/Samba4/HOWTO "
1131 -}