Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: net-fs/samba/, net-fs/samba/files/4.3/, net-fs/samba/files/
Date: Sun, 29 May 2016 01:04:28
Message-Id: 1464443226.fbb0cc1418419103a3d12838351fc640d27cc299.blueness@gentoo
1 commit: fbb0cc1418419103a3d12838351fc640d27cc299
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 28 13:47:06 2016 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Sat May 28 13:47:06 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=fbb0cc14
7
8 net-fs/samba: added for testing
9
10 Package-Manager: portage-2.2.28
11
12 net-fs/samba/Manifest | 15 ++
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/files/nmbd.service | 12 +
16 .../files/samba-4.2.3-heimdal_compilefix.patch | 22 ++
17 net-fs/samba/files/samba-4.2.7-pam.patch | 36 +++
18 net-fs/samba/files/samba.conf | 2 +
19 net-fs/samba/files/samba.service | 10 +
20 net-fs/samba/files/smbd.service | 12 +
21 net-fs/samba/files/smbd.socket | 9 +
22 net-fs/samba/files/smbd_at.service | 7 +
23 net-fs/samba/files/winbindd.service | 12 +
24 net-fs/samba/metadata.xml | 32 +++
25 net-fs/samba/samba-4.3.9-r99.ebuild | 250 +++++++++++++++++++++
26 14 files changed, 513 insertions(+)
27
28 diff --git a/net-fs/samba/Manifest b/net-fs/samba/Manifest
29 new file mode 100644
30 index 0000000..7f77a4a
31 --- /dev/null
32 +++ b/net-fs/samba/Manifest
33 @@ -0,0 +1,15 @@
34 +AUX 4.3/samba4.confd 1783 SHA256 53755809cc27fdbaf98752cd3da45b5c2bda62dd46fcc37570c6e237f7954ffa SHA512 6fc7edf192957f97b171c97482317bf563385917cfdbf950ed28d9387961bd16f82844c6f9b5c430508ec6dc7331ecdf5f81fa3135663316061c1d0b1808f53d WHIRLPOOL 868539ecf658f9da3574847cb1447dafe422c60a9208de5580cf7f53e4346e9c7d1c6b3e7ea5c684b83e613dd912c5245ffce6a43bc8bd9bf8417a9c7a5f2557
35 +AUX 4.3/samba4.initd-r1 1110 SHA256 44b53a5d5f516cb944a308613579b3e8e2716651961274b0b01afc70feede342 SHA512 f69c400d08be6f19864d06ea2a0b3518804b5ad64deac0279b2ad17827b51ef2170bb5b7ef57e8b7041170c66dc7c362f847d2eca0275b74c13adfa156055253 WHIRLPOOL f45d26e8e3f3b86459ee0b4447eab4d585ed025e1f62971dfa48013921d1473c50f0c7aab5b002b7ec6e41281a6638a86ec7188b19773407d15ff1da05215801
36 +AUX nmbd.service 224 SHA256 a5e25c11714206c4fb129333dd45152c5753716c6445cbe78c28275df1a1cb77 SHA512 098dfb270c5a5c29f59b4fd8d51b17931771e25e481124832f1a086677825527e2afa7276e8614e5007fbf044d253ce2eaf3a7caf7461ad5d90d0b1c7f157f9d WHIRLPOOL 2f7c342a60c09d5e40e968a026aa17d8c2fe3fd032331c7bb26599bb0f8ec8a77c2a3e329498ed16b1602451fd85a8ef076c436e8a092740cfbd01a82ca52e30
37 +AUX samba-4.2.3-heimdal_compilefix.patch 819 SHA256 6cf93d127aa900c1e9a4fb8a3bdff6054d78a7adb798c6f409feffc13c714ee9 SHA512 0f6ddbf58e5d5b83e3fb9738dd10c2ab0f1ed96fb62f9b4389a40729b3fe2d4af1a5c5bd2d44fa7d568136072b787b6358aeca3026f1acec4f5a6869e74f2536 WHIRLPOOL 882a52598013a40165d87616eaa016139fa89ff218dc43a6e6518123ccc18ca84e4ba275731e10ec762b22f26576eac56ad6b257cfae2e1cbc45f518a0d37007
38 +AUX samba-4.2.7-pam.patch 1273 SHA256 e1abd99fcf4ff721dafa64c77a60b07962e3e818eaf5d10fecead61a2af81e07 SHA512 5f900ebfdfb15af38814864f7ec8cd52d3525098d6f2017ab2f29d301e6a0e622d2ab37976fbd97180cbfe23c7853e91ab7966655eb46ebd9bdd2951205e46bc WHIRLPOOL 91e1fc2e49944d1ded93d902fc50437763388a12b8c2eab70e2dcd8124860746c71fa8b4c26e7b43e5ebc2c0fc94c4c005a2c1eb8b9af68e77c9c6cc1d92927c
39 +AUX samba.conf 61 SHA256 e4fc68bc14a44e3c452e767d996ff693d131da317eb513de10d752dd96cb6f12 SHA512 4a75185762c90d110c399215fbfc939d30804b558ffdb11cc68dee6f87a94c86cadbcd63935884db1266cf40fe24fefb75f9067fe4751ad9838d7a43e8973b9e WHIRLPOOL ad21bc3738c2ec721ad3be746c66719385390835c7f4da881fc0cc1c982bb6821a56300157b1169d1a35264e44dab1a0c29cd9919455a02a8f4c53c665a4bed3
40 +AUX samba.service 199 SHA256 0ae738fa2a15b476dbca016dfa4e1cf4b8c4a575e13edf518eb70b615c02a059 SHA512 eb277917f15de958f4a0404b66c6d2cc82ae4319b85f2f442489988d523bf92e2a9d23a6051ee693cd4bcfbc67947e8028c59906ad3e537578daf5caee8a6f16 WHIRLPOOL 1132081b63b1e0e1a9342d59493ebfe1d918133a4091e48c42dae7845dcaa24a0b8e7a1183d5a41b0173c3f6dbc17838a9b7a6297fc8ea0775ab150a22ae3151
41 +AUX smbd.service 250 SHA256 e1f5da902cd97891852f6463b2c7eddbc61e7fbd3e3c281028a806319627fc68 SHA512 a54e3c337f7c27766a81f68ad6d8f4eb6ddb1d1aec3303f274e419a49114755bc5dd711701d5e64954ae7153a8be4a7063371af286696c0b81d543b9276703c3 WHIRLPOOL 18b6a57603a41303d207249fdb46cb4f6e887f8b9bd4921dca6b4f28a59951368d6abead2dc9d3be2c09cb2c9f295087ef5f20d121a309791b9031e3fad28b13
42 +AUX smbd.socket 121 SHA256 d62a239cba39ae03dbb7a291843b2c202973341c85d93ffc87b4e78813be44c2 SHA512 2db4a707fcc6ef1928ac010e5e92cdaf0f6ff3ffa8aef918e0db1ce910abfb481d6a19082337f9c8444cd780d1d442fa8df2bb65e6142fc109d29657532572ed WHIRLPOOL aef792f27a7cd91ee258b6137015269cf2e6310c24a060acb7c6a97162aaebe37f32f66e46f4399cd1160bcc65e5608da7bc87bf933bccd2ffdfe51a6a7cdd8d
43 +AUX smbd_at.service 145 SHA256 909dddfd80982035739081d86d2c524f6a25440d9c10b8a80626d9b4eee424cd SHA512 e6486c35dfa6f77ad46547a78fcae55fb71e4dad7dc7b4580c2b8c1be232c0a870f56714b2b103a1fd8717298f41347d7178fbebb90f0f2d0324fe5233f0f9f3 WHIRLPOOL f5ac03a1e7b653458d49fa2c2afe674e9d8f1e5a81e72a5e49781de3e5111bbe23eedc38c78a6f5e7edc4c32300ddaf76caf889de256fc799cf117edcd6ce6fb
44 +AUX winbindd.service 240 SHA256 755036bc419cce90200ac3c04986fbb7cf718c128c2a1288c634658bb779bf3a SHA512 f1ce6d035e8e0fcdc73f14e3b60c9647043777ff6b2a982a81ed07eb4df5ff245a9511e3e4a9d8163f9c8f3fb86d2a39a67621ace68392eb7c2f2e2a55d587f7 WHIRLPOOL eb4d7f30b4ce3341e3d24a6c05965bdce9ded78a7327b44d3d04d00837d6e8109857b1fb1b78c8325680588cf9abe94158755a962fb8f7e8dac04b336308c268
45 +DIST samba-4.3.9.tar.gz 20570849 SHA256 1f22c61a7f24c5357a9ef4d10833a2cd161f40f3db03bcbe586d7cd3a56139f3 SHA512 bc90c88d8defd3acec7c671e8ceacec31e3111540aabee7ec6f11cdeaf61bbd993525e2b765e3b50801c8079e1168cf496b3e5e6a56118d6493ae5da60d34c41 WHIRLPOOL e33efba4bfbaab5278ec62cbadb5f14fe2220d4b4ad1e57a4d26233d8b6bdf4318ad86d839b2638a490a195c04aabb02dafff67bb1e2999fab4f116b3c6367cc
46 +DIST samba-disable-python-patches-4.3.9.tar.xz 6116 SHA256 83206112e04c375e170e86ea6b29d6dc2c172b55ba9fb89130be14708d758cf5 SHA512 ca8b62337afd1cc6059b9aefc0a3972d18ba90fba3f043d9730f6967e1b80c40bc918b0445b8ae8a1f3df74d3551f90c721df3c0514edccb881ed0b4fc54e1b5 WHIRLPOOL 3aebd6758e5e7dc2920b1e8f8825d2b7b7efac7c5f2d91d5ed6fed75597bfdced1b27d9e2a00385af5df19e5462a4e014df6a7274c0b25a660702268235ef746
47 +EBUILD samba-4.3.9-r99.ebuild 6684 SHA256 9cc9763e58a0b6cf537287eefd98b1ad0ef33106ab3f61e4398141f4fe644d0f SHA512 00764d3a3ec15f0e47e4d3ed9e83fdc665ffc685b93ab58798c0eb920d7f067cdec99037b7641b4a7d28ffd4b9d6e6ea1a07df83f9f2f479456327ac18c4f9a9 WHIRLPOOL 70e120156cd09100b1c930f94d89aa09a53b256e04641d0ee089abd31cb64cf6fd9b86c1a08f270e1196eb82fb9d4597bc75d64277a695f43564d3e1bdd03970
48 +MISC metadata.xml 1714 SHA256 94b726fc2c6f741402a9a6139fd507a9b7b56d0920ae83a095e0e5c416250f3d SHA512 ccf8143ca9c586a5313f8e4d82ae9114ad9685def8b12729804ebd5279ce53e58685cf21257a7fe11f0a40227df5b3987550d4d8f3fde1752310eec3da27ba4f WHIRLPOOL 7c35b3a07535c0e3e9e716a394f06535c343a44dcd4ec49c28460ef337e9d920fc91210f083bf6ca098774369bec065e280ef11f296372242ea94b72b70a9fc2
49
50 diff --git a/net-fs/samba/files/4.3/samba4.confd b/net-fs/samba/files/4.3/samba4.confd
51 new file mode 100644
52 index 0000000..58b2c78
53 --- /dev/null
54 +++ b/net-fs/samba/files/4.3/samba4.confd
55 @@ -0,0 +1,38 @@
56 +# Add "winbind" to the daemon_list if you also want winbind to start.
57 +# Replace "smbd nmbd" by "samba4" if you want the active directory domain controller part or the ntvfs
58 +# file server part or the rpc proxy to start.
59 +# Note that samba4 controls 'smbd' by itself, thus it can't be started manually. You can, however,
60 +# tweak the behaviour of a samba4-controlled smbd by modifying your '/etc/samba/smb.conf' file
61 +# accordingly.
62 +daemon_list="smbd nmbd"
63 +
64 +#----------------------------------------------------------------------------
65 +# Daemons calls: <daemon_name>_<command_option>
66 +#----------------------------------------------------------------------------
67 +my_service_name="samba"
68 +my_service_PRE="unset TMP TMPDIR"
69 +my_service_POST=""
70 +
71 +#----------------------------------------------------------------------------
72 +# Daemons calls: <daemon_name>_<command_option>
73 +#----------------------------------------------------------------------------
74 +smbd_start_options="-D"
75 +smbd_start="start-stop-daemon --start --exec /usr/sbin/smbd -- ${smbd_start_options}"
76 +smbd_stop="start-stop-daemon --stop --exec /usr/sbin/smbd"
77 +smbd_reload="killall -HUP smbd"
78 +
79 +nmbd_start_options="-D"
80 +nmbd_start="start-stop-daemon --start --exec /usr/sbin/nmbd -- ${nmbd_start_options}"
81 +nmbd_stop="start-stop-daemon --stop --exec /usr/sbin/nmbd"
82 +nmbd_reload="killall -HUP nmbd"
83 +
84 +samba4_start_options=""
85 +samba4_start="start-stop-daemon --start --exec /usr/sbin/samba -- ${samba4_start_options}"
86 +samba4_stop="start-stop-daemon --stop --exec /usr/sbin/samba"
87 +samba4_reload="killall -HUP samba"
88 +
89 +winbind_start_options=""
90 +winbind_start="start-stop-daemon --start --exec /usr/sbin/winbindd -- ${winbind_start_options}"
91 +winbind_stop="start-stop-daemon --stop --exec /usr/sbin/winbindd"
92 +winbind_reload="killall -HUP winbindd"
93 +
94
95 diff --git a/net-fs/samba/files/4.3/samba4.initd-r1 b/net-fs/samba/files/4.3/samba4.initd-r1
96 new file mode 100644
97 index 0000000..bf162ad
98 --- /dev/null
99 +++ b/net-fs/samba/files/4.3/samba4.initd-r1
100 @@ -0,0 +1,56 @@
101 +#!/sbin/openrc-run
102 +# Copyright 1999-2016 Gentoo Foundation
103 +# Distributed under the terms of the GNU General Public License, v2 or later
104 +# $Id$
105 +
106 +extra_started_commands="reload"
107 +piddir="/run/samba"
108 +
109 +depend() {
110 + after slapd
111 + need net
112 + use cupsd
113 +}
114 +
115 +DAEMONNAME="${SVCNAME##samba.}"
116 +[ "${DAEMONNAME}" != "samba" ] && daemon_list=${DAEMONNAME}
117 +
118 +signal_do() {
119 + local signal="$1"
120 + [ -z "${signal}" ] && return 0
121 +
122 + local result=0 last_result=0 daemon= cmd_exec=
123 + for daemon in ${daemon_list} ; do
124 + eval cmd_exec=\$${daemon}_${signal}
125 + if [ -n "${cmd_exec}" ]; then
126 + ebegin "${my_service_name} -> ${signal}: ${daemon}"
127 + #echo ${cmd} '->' ${!cmd}
128 + ${cmd_exec} > /dev/null
129 + last_result=$?
130 + eend ${last_result}
131 + fi
132 + result=$(( ${result} + ${last_result} ))
133 + done
134 + return ${result}
135 +}
136 +
137 +start() {
138 + ${my_service_PRE}
139 + [ -d "${piddir}" ] || mkdir -p "${piddir}"
140 + signal_do start && return 0
141 +
142 + eerror "Error: starting services (see system logs)"
143 + signal_do stop
144 + return 1
145 +}
146 +stop() {
147 + ${my_service_PRE}
148 + if signal_do stop ; then
149 + ${my_service_POST}
150 + return 0
151 + fi
152 +}
153 +reload() {
154 + ${my_service_PRE}
155 + signal_do reload
156 +}
157
158 diff --git a/net-fs/samba/files/nmbd.service b/net-fs/samba/files/nmbd.service
159 new file mode 100644
160 index 0000000..44b4ffb
161 --- /dev/null
162 +++ b/net-fs/samba/files/nmbd.service
163 @@ -0,0 +1,12 @@
164 +[Unit]
165 +Description=Samba NetBIOS name server
166 +After=network.target
167 +
168 +[Service]
169 +Type=forking
170 +PIDFile=/var/run/samba/nmbd.pid
171 +ExecStart=/usr/sbin/nmbd -D
172 +ExecReload=/bin/kill -HUP $MAINPID
173 +
174 +[Install]
175 +WantedBy=multi-user.target
176
177 diff --git a/net-fs/samba/files/samba-4.2.3-heimdal_compilefix.patch b/net-fs/samba/files/samba-4.2.3-heimdal_compilefix.patch
178 new file mode 100644
179 index 0000000..c6f5007
180 --- /dev/null
181 +++ b/net-fs/samba/files/samba-4.2.3-heimdal_compilefix.patch
182 @@ -0,0 +1,22 @@
183 +https://bugs.gentoo.org/542638
184 +
185 +From: Stephan Wolf <stephan@××××××××××××××××.de>
186 +
187 +Samba uses the build in implementation of heimdal from year 2011.
188 +The ebuild uses the portage version of heimdal.
189 +I got it fixed to patch samba kdc_init function.
190 +
191 +--- samba-4.2.3/source4/kdc/kdc.c
192 ++++ samba-4.2.3/source4/kdc/kdc.c
193 +@@ -967,9 +967,9 @@
194 + * The old behavior in the _kdc_get_preferred_key()
195 + * function is use_strongest_server_key=TRUE.
196 + */
197 +- kdc->config->as_use_strongest_session_key = false;
198 ++ kdc->config->tgt_use_strongest_session_key = false;
199 + kdc->config->preauth_use_strongest_session_key = false;
200 +- kdc->config->tgs_use_strongest_session_key = false;
201 ++ kdc->config->svc_use_strongest_session_key = false;
202 + kdc->config->use_strongest_server_key = true;
203 +
204 + /* Register hdb-samba4 hooks for use as a keytab */
205
206 diff --git a/net-fs/samba/files/samba-4.2.7-pam.patch b/net-fs/samba/files/samba-4.2.7-pam.patch
207 new file mode 100644
208 index 0000000..22b393e
209 --- /dev/null
210 +++ b/net-fs/samba/files/samba-4.2.7-pam.patch
211 @@ -0,0 +1,36 @@
212 +--- samba-4.2.7/source3/wscript
213 ++++ samba-4.2.7/source3/wscript
214 +@@ -853,11 +853,11 @@
215 + if not conf.CHECK_FUNCS_IN('iconv_open', 'iconv', headers='iconv.h'):
216 + conf.env.with_iconv = False
217 + if conf.env.with_iconv:
218 + conf.DEFINE('HAVE_ICONV', 1)
219 +
220 +- if Options.options.with_pam:
221 ++ if Options.options.with_pam != False:
222 + use_pam=True
223 + conf.CHECK_HEADERS('security/pam_appl.h pam/pam_appl.h')
224 + if not conf.CONFIG_SET('HAVE_SECURITY_PAM_APPL_H') and not conf.CONFIG_SET('HAVE_PAM_PAM_APPL_H'):
225 + Logs.warn("--with-pam=yes but pam_appl.h not found")
226 + use_pam=False
227 +@@ -926,10 +926,20 @@
228 + msg="Checking whether PAM_RADIO_TYPE is available");
229 + if use_pam:
230 + conf.DEFINE('WITH_PAM', 1)
231 + conf.DEFINE('WITH_PAM_MODULES', 1)
232 +
233 ++ else:
234 ++ Logs.warn("PAM disabled")
235 ++ use_pam=False
236 ++ conf.undefine('WITH_PAM')
237 ++ conf.undefine('WITH_PAM_MODULES')
238 ++ conf.undefine('HAVE_SECURITY_PAM_APPL_H')
239 ++ conf.undefine('PAM_RHOST')
240 ++ conf.undefine('PAM_TTY')
241 ++ conf.undefine('HAVE_PAM_PAM_APPL_H')
242 ++
243 + if Options.options.with_pam_smbpass:
244 + conf.env.with_pam_smbpass = True
245 +
246 + seteuid = False
247 +
248
249 diff --git a/net-fs/samba/files/samba.conf b/net-fs/samba/files/samba.conf
250 new file mode 100644
251 index 0000000..e0a6f32
252 --- /dev/null
253 +++ b/net-fs/samba/files/samba.conf
254 @@ -0,0 +1,2 @@
255 +D /run/samba 0755 root root
256 +D /run/lock/samba 0755 root root
257
258 diff --git a/net-fs/samba/files/samba.service b/net-fs/samba/files/samba.service
259 new file mode 100644
260 index 0000000..8214ff8
261 --- /dev/null
262 +++ b/net-fs/samba/files/samba.service
263 @@ -0,0 +1,10 @@
264 +[Unit]
265 +Description=Samba AD server
266 +After=network.target winbindd.service
267 +Conflicts=nmbd.service smbd.service
268 +
269 +[Service]
270 +ExecStart=/usr/sbin/samba --interactive
271 +
272 +[Install]
273 +WantedBy=multi-user.target
274
275 diff --git a/net-fs/samba/files/smbd.service b/net-fs/samba/files/smbd.service
276 new file mode 100644
277 index 0000000..5c006a4
278 --- /dev/null
279 +++ b/net-fs/samba/files/smbd.service
280 @@ -0,0 +1,12 @@
281 +[Unit]
282 +Description=Samba SMB/CIFS server
283 +After=network.target nmbd.service winbindd.service
284 +
285 +[Service]
286 +Type=forking
287 +PIDFile=/var/run/samba/smbd.pid
288 +ExecStart=/usr/sbin/smbd -D
289 +ExecReload=/bin/kill -HUP $MAINPID
290 +
291 +[Install]
292 +WantedBy=multi-user.target
293
294 diff --git a/net-fs/samba/files/smbd.socket b/net-fs/samba/files/smbd.socket
295 new file mode 100644
296 index 0000000..833bf43
297 --- /dev/null
298 +++ b/net-fs/samba/files/smbd.socket
299 @@ -0,0 +1,9 @@
300 +[Unit]
301 +Description=Samba SMB/CIFS server socket
302 +
303 +[Socket]
304 +ListenStream=445
305 +Accept=yes
306 +
307 +[Install]
308 +WantedBy=sockets.target
309
310 diff --git a/net-fs/samba/files/smbd_at.service b/net-fs/samba/files/smbd_at.service
311 new file mode 100644
312 index 0000000..e1f71be
313 --- /dev/null
314 +++ b/net-fs/samba/files/smbd_at.service
315 @@ -0,0 +1,7 @@
316 +[Unit]
317 +Description=Samba SMB/CIFS server instance
318 +
319 +[Service]
320 +ExecStart=/usr/sbin/smbd -F
321 +ExecReload=/bin/kill -HUP $MAINPID
322 +StandardInput=socket
323
324 diff --git a/net-fs/samba/files/winbindd.service b/net-fs/samba/files/winbindd.service
325 new file mode 100644
326 index 0000000..67a778f
327 --- /dev/null
328 +++ b/net-fs/samba/files/winbindd.service
329 @@ -0,0 +1,12 @@
330 +[Unit]
331 +Description=Samba Winbind daemon
332 +After=network.target nmbd.service
333 +
334 +[Service]
335 +Type=forking
336 +PIDFile=/var/run/samba/winbindd.pid
337 +ExecStart=/usr/sbin/winbindd -D
338 +ExecReload=/bin/kill -HUP $MAINPID
339 +
340 +[Install]
341 +WantedBy=multi-user.target
342
343 diff --git a/net-fs/samba/metadata.xml b/net-fs/samba/metadata.xml
344 new file mode 100644
345 index 0000000..73d475c
346 --- /dev/null
347 +++ b/net-fs/samba/metadata.xml
348 @@ -0,0 +1,32 @@
349 +<?xml version="1.0" encoding="UTF-8"?>
350 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
351 +<pkgmetadata>
352 + <maintainer type="project">
353 + <email>samba@g.o</email>
354 + <name>Samba Team</name>
355 + </maintainer>
356 + <longdescription>
357 + Samba is an Open Source/Free Software suite that provides seamless file and print services to SMB/CIFS clients. Integration with various accounting and antivirus backends. License: GNU General Public License.
358 + </longdescription>
359 + <use>
360 + <flag name="addc">Enable Active Directory Domain Controller support</flag>
361 + <flag name="ads">Enable Active Directory support</flag>
362 + <flag name="swat">Enables support for swat configuration gui</flag>
363 + <flag name="winbind">Enables support for the winbind auth daemon</flag>
364 + <flag name="client">Enables the client part</flag>
365 + <flag name="server">Enables the server part</flag>
366 + <flag name="netapi">Enable building of netapi bits</flag>
367 + <flag name="addns">Enable AD DNS integration</flag>
368 + <flag name="aio">Enable asynchronous IO support</flag>
369 + <flag name="cluster">Enable support for clustering</flag>
370 + <flag name="dmapi">Enable support for DMAPI. This currently works only in combination with XFS.</flag>
371 + <flag name="ldb">Enable the ldb tools</flag>
372 + <flag name="quota">Enables support for user quotas</flag>
373 + <flag name="smbclient">Enable smbclient tool</flag>
374 + <flag name="smbsharemodes">Enable special smb share modes (?) </flag>
375 + <flag name="smbtav2">Enable Samba Traffic Analyzer version 2 </flag>
376 + <flag name="system-mitkrb5">Use <pkg>app-crypt/mit-krb5</pkg> instead of
377 + <pkg>app-crypt/heimdal</pkg>.</flag>
378 + <flag name="iprint">Enabling iPrint technology by Novell</flag>
379 + </use>
380 +</pkgmetadata>
381
382 diff --git a/net-fs/samba/samba-4.3.9-r99.ebuild b/net-fs/samba/samba-4.3.9-r99.ebuild
383 new file mode 100644
384 index 0000000..f58f54d
385 --- /dev/null
386 +++ b/net-fs/samba/samba-4.3.9-r99.ebuild
387 @@ -0,0 +1,250 @@
388 +# Copyright 1999-2016 Gentoo Foundation
389 +# Distributed under the terms of the GNU General Public License v2
390 +# $Id$
391 +
392 +EAPI=6
393 +PYTHON_COMPAT=( python2_7 )
394 +PYTHON_REQ_USE='threads(+),xml(+)'
395 +
396 +inherit python-single-r1 waf-utils multilib-minimal linux-info systemd eutils
397 +
398 +MY_PV="${PV/_rc/rc}"
399 +MY_P="${PN}-${MY_PV}"
400 +
401 +SRC_PATH="stable"
402 +[[ ${PV} = *_rc* ]] && SRC_PATH="rc"
403 +
404 +SRC_URI="mirror://samba/${SRC_PATH}/${MY_P}.tar.gz
405 + https://dev.gentoo.org/~polynomial-c/samba-disable-python-patches-4.3.9.tar.xz"
406 +[[ ${PV} = *_rc* ]] || \
407 +KEYWORDS="~amd64 ~hppa ~x86"
408 +
409 +DESCRIPTION="Samba Suite Version 4"
410 +HOMEPAGE="http://www.samba.org/"
411 +LICENSE="GPL-3"
412 +
413 +SLOT="0"
414 +
415 +IUSE="acl addc addns ads aio avahi client cluster cups dmapi fam gnutls iprint
416 +ldap pam quota selinux syslog +system-mitkrb5 systemd test winbind"
417 +
418 +MULTILIB_WRAPPED_HEADERS=(
419 + /usr/include/samba-4.0/policy.h
420 + /usr/include/samba-4.0/dcerpc_server.h
421 + /usr/include/samba-4.0/ctdb.h
422 + /usr/include/samba-4.0/ctdb_client.h
423 + /usr/include/samba-4.0/ctdb_protocol.h
424 + /usr/include/samba-4.0/ctdb_private.h
425 + /usr/include/samba-4.0/ctdb_typesafe_cb.h
426 + /usr/include/samba-4.0/ctdb_version.h
427 +)
428 +
429 +# sys-apps/attr is an automagic dependency (see bug #489748)
430 +CDEPEND="${PYTHON_DEPS}
431 + >=app-arch/libarchive-3.1.2[${MULTILIB_USEDEP}]
432 + dev-lang/perl:=
433 + dev-libs/libbsd[${MULTILIB_USEDEP}]
434 + dev-libs/iniparser:0
435 + dev-libs/popt[${MULTILIB_USEDEP}]
436 + sys-libs/readline:=
437 + virtual/libiconv
438 + dev-python/subunit[${PYTHON_USEDEP},${MULTILIB_USEDEP}]
439 + sys-apps/attr[${MULTILIB_USEDEP}]
440 + sys-libs/libcap
441 + >=sys-libs/ldb-1.1.24[${MULTILIB_USEDEP}]
442 + sys-libs/ncurses:0=[${MULTILIB_USEDEP}]
443 + >=sys-libs/talloc-2.1.3[python,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
444 + >=sys-libs/tdb-1.3.7[python,${PYTHON_USEDEP},${MULTILIB_USEDEP}]
445 + >=sys-libs/tevent-0.9.25[${MULTILIB_USEDEP}]
446 + sys-libs/zlib[${MULTILIB_USEDEP}]
447 + virtual/pam
448 + acl? ( virtual/acl )
449 + addns? ( net-dns/bind-tools[gssapi] )
450 + aio? ( dev-libs/libaio )
451 + cluster? ( !dev-db/ctdb )
452 + cups? ( net-print/cups )
453 + dmapi? ( sys-apps/dmapi )
454 + fam? ( virtual/fam )
455 + gnutls? ( dev-libs/libgcrypt:0
456 + >=net-libs/gnutls-1.4.0 )
457 + ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] )
458 + system-mitkrb5? ( app-crypt/mit-krb5[${MULTILIB_USEDEP}] )
459 + !system-mitkrb5? ( >=app-crypt/heimdal-1.5[-ssl,${MULTILIB_USEDEP}] )
460 + systemd? ( sys-apps/systemd:0= )"
461 +DEPEND="${CDEPEND}
462 + virtual/pkgconfig"
463 +RDEPEND="${CDEPEND}
464 + client? ( net-fs/cifs-utils[ads?] )
465 + selinux? ( sec-policy/selinux-samba )
466 + !dev-perl/Parse-Yapp
467 +"
468 +
469 +REQUIRED_USE="addc? ( gnutls !system-mitkrb5 )
470 + ads? ( acl gnutls ldap )
471 + ${PYTHON_REQUIRED_USE}"
472 +
473 +S="${WORKDIR}/${MY_P}"
474 +
475 +PATCHES=(
476 + "${FILESDIR}/${PN}-4.2.3-heimdal_compilefix.patch"
477 + "${FILESDIR}/${PN}-4.2.7-pam.patch"
478 +)
479 +
480 +CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
481 +
482 +WAF_BINARY="${S}/buildtools/bin/waf"
483 +
484 +SHAREDMODS=""
485 +
486 +pkg_setup() {
487 + python-single-r1_pkg_setup
488 + if use aio ; then
489 + if ! linux_config_exists || ! linux_chkconfig_present AIO; then
490 + ewarn "You must enable AIO support in your kernel config, "
491 + ewarn "to be able to support asynchronous I/O. "
492 + ewarn "You can find it at"
493 + ewarn
494 + ewarn "General Support"
495 + ewarn " Enable AIO support "
496 + ewarn
497 + ewarn "and recompile your kernel..."
498 + fi
499 + fi
500 + if use cluster ; then
501 + SHAREDMODS="${SHAREDMODS}idmap_rid,idmap_tdb2,idmap_ad"
502 + fi
503 +}
504 +
505 +src_prepare() {
506 + default
507 +
508 + # install the patches from tarball(s)
509 + eapply "${WORKDIR}/patches/"
510 +
511 + multilib_copy_sources
512 +}
513 +
514 +multilib_src_configure() {
515 + local myconf=()
516 + myconf=(
517 + --enable-fhs
518 + --sysconfdir=/etc
519 + --localstatedir=/var
520 + --with-modulesdir=/usr/$(get_libdir)/samba
521 + --with-piddir=/run/${PN}
522 + --bundled-libraries=NONE
523 + --builtin-libraries=NONE
524 + --disable-rpath
525 + --disable-rpath-install
526 + --nopyc
527 + --nopyo
528 + )
529 + if multilib_is_native_abi ; then
530 + myconf+=(
531 + $(use_with acl acl-support)
532 + $(usex addc '' '--without-ad-dc')
533 + $(use_with addns dnsupdate)
534 + $(use_with ads)
535 + $(usex ads '--with-shared-modules=idmap_ad' '')
536 + $(use_with aio aio-support)
537 + $(use_enable avahi)
538 + $(use_with cluster cluster-support)
539 + $(use_enable cups)
540 + $(use_with dmapi)
541 + $(use_with fam)
542 + $(use_enable gnutls)
543 + $(use_enable iprint)
544 + $(use_with ldap)
545 + $(use_with pam)
546 + $(use_with pam pam_smbpass)
547 + $(usex pam "--with-pammodulesdir=/$(get_libdir)/security" '')
548 + $(use_with quota quotas)
549 + $(use_with syslog)
550 + $(use_with systemd)
551 + $(usex system-mitkrb5 '--with-system-mitkrb5' '')
552 + $(use_with winbind)
553 + $(usex test '--enable-selftest' '')
554 + --with-shared-modules=${SHAREDMODS}
555 + )
556 + else
557 + myconf+=(
558 + --without-acl-support
559 + --without-ad-dc
560 + --without-dnsupdate
561 + --without-ads
562 + --without-aio-support
563 + --disable-avahi
564 + --without-cluster-support
565 + --disable-cups
566 + --without-dmapi
567 + --without-fam
568 + --disable-gnutls
569 + --disable-iprint
570 + $(use_with ldap)
571 + --without-pam
572 + --without-pam_smbpass
573 + --without-quotas
574 + --without-syslog
575 + --without-systemd
576 + $(usex system-mitkrb5 '--with-system-mitkrb5' '')
577 + --without-winbind
578 + --disable-python
579 + )
580 + fi
581 +
582 + CPPFLAGS="-I${SYSROOT}/usr/include/et ${CPPFLAGS}" \
583 + waf-utils_src_configure ${myconf[@]}
584 +}
585 +
586 +multilib_src_install() {
587 + waf-utils_src_install
588 +
589 + # Make all .so files executable
590 + find "${D}" -type f -name "*.so" -exec chmod +x {} +
591 +
592 + if multilib_is_native_abi; then
593 + # install ldap schema for server (bug #491002)
594 + if use ldap ; then
595 + insinto /etc/openldap/schema
596 + doins examples/LDAP/samba.schema
597 + fi
598 +
599 + # create symlink for cups (bug #552310)
600 + if use cups ; then
601 + dosym /usr/bin/smbspool /usr/libexec/cups/backend/smb
602 + fi
603 +
604 + # install example config file
605 + insinto /etc/samba
606 + doins examples/smb.conf.default
607 +
608 + # Install init script and conf.d file
609 + newinitd "${CONFDIR}/samba4.initd-r1" samba
610 + newconfd "${CONFDIR}/samba4.confd" samba
611 +
612 + systemd_dotmpfilesd "${FILESDIR}"/samba.conf
613 + systemd_dounit "${FILESDIR}"/nmbd.service
614 + systemd_dounit "${FILESDIR}"/smbd.{service,socket}
615 + systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service'
616 + systemd_dounit "${FILESDIR}"/winbindd.service
617 + systemd_dounit "${FILESDIR}"/samba.service
618 + fi
619 +}
620 +
621 +multilib_src_test() {
622 + if multilib_is_native_abi ; then
623 + "${WAF_BINARY}" test || die "test failed"
624 + fi
625 +}
626 +
627 +pkg_postinst() {
628 + ewarn "Be aware the this release contains the best of all of Samba's"
629 + ewarn "technology parts, both a file server (that you can reasonably expect"
630 + ewarn "to upgrade existing Samba 3.x releases to) and the AD domain"
631 + ewarn "controller work previously known as 'samba4'."
632 +
633 + elog "For further information and migration steps make sure to read "
634 + elog "http://samba.org/samba/history/${P}.html "
635 + elog "http://samba.org/samba/history/${PN}-4.2.0.html and"
636 + elog "http://wiki.samba.org/index.php/Samba4/HOWTO "
637 +}