Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-fs/samba/, net-fs/samba/files/3.5/, profiles/
Date: Sun, 26 Jun 2016 14:35:46
Message-Id: 1466950860.82d49d4c28cdec3387c0298a4bbd1baa0f0f494b.mgorny@gentoo
1 commit: 82d49d4c28cdec3387c0298a4bbd1baa0f0f494b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 26 14:21:00 2016 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 26 14:21:00 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82d49d4c
7
8 net-fs/samba: Remove <3.6, bonsaikitten approved
9
10 net-fs/samba/Manifest | 3 -
11 net-fs/samba/files/3.5/lmhosts | 2 -
12 net-fs/samba/files/3.5/nsswitch.conf-winbind | 17 -
13 net-fs/samba/files/3.5/nsswitch.conf-wins | 17 -
14 .../files/3.5/samba-3.5.6-kerberos-dummy.patch | 30 --
15 .../samba/files/3.5/samba-3.5.8-uclib-build.patch | 58 ---
16 net-fs/samba/files/3.5/samba.confd | 28 --
17 net-fs/samba/files/3.5/samba.initd | 59 ---
18 net-fs/samba/files/3.5/samba.pam | 8 -
19 net-fs/samba/files/3.5/smb.conf.default | 271 ------------
20 net-fs/samba/files/3.5/smb.conf.default.patch | 86 ----
21 net-fs/samba/files/3.5/smbusers | 7 -
22 net-fs/samba/files/3.5/swat.xinetd | 17 -
23 net-fs/samba/files/3.5/system-auth-winbind.pam | 18 -
24 net-fs/samba/samba-3.5.21.ebuild | 453 ---------------------
25 net-fs/samba/samba-3.5.22.ebuild | 453 ---------------------
26 profiles/package.mask | 6 -
27 17 files changed, 1533 deletions(-)
28
29 diff --git a/net-fs/samba/Manifest b/net-fs/samba/Manifest
30 index d7e2439..ef297d5 100644
31 --- a/net-fs/samba/Manifest
32 +++ b/net-fs/samba/Manifest
33 @@ -1,5 +1,3 @@
34 -DIST samba-3.5.21.tar.gz 35377315 SHA256 fd9a66056b1ba9496762394efff41fcaa0e58f2e50e71910e6d202b8a59a1c10 SHA512 e6d52530094b2f8284f8536f97411c3944a83e9f1a808836acdca19fe4aee3cc47e136cc2a2eab96ba89526fe289ec1a3d22fb836bd261bf7c8ddfbccd1cf975 WHIRLPOOL a476ea24841cfdec0f640880e0362173a3f6b957afd2d2448f7b4a8b7c927ef558fd22e7fe20b05bd8aecf1169d8e488b87830a99ddfddcbc8be0c9a414966ad
35 -DIST samba-3.5.22.tar.gz 35385144 SHA256 b4c98f77f5634478da109063334acd9b6ad7bcb38151a5b1cac6dc5feb6679dc SHA512 0e1b4816d921ca82f0426a254cf103066634cc54e28d707a62da951118413f7f5ca5f87d60688cab802a58b0af87f797fbbe12f4e1284d5d7f545a98aba97616 WHIRLPOOL 6e59655dd7a537f0c7c889c43ddf5afb8060706e1ec79b3835698181c5c7478059f91c93eefbde50b03e0154a686eda35eabf807bb7ae01dd2b9b39648a009ae
36 DIST samba-3.6.25.tar.gz 34121828 SHA256 8f2c8a7f2bd89b0dfd228ed917815852f7c625b2bc0936304ac3ed63aaf83751 SHA512 25a5c56dae4517e82e196b59fa301b661ec75db57effbb0ede35fb23b018f78cdea6513e8760966caf58abc43335fcebda77fe5bf5bb9d4b27fd3ca6e5a3b626 WHIRLPOOL 68c4a335b3912bf3c6baecae337b1131127515191052366ca9a04ec6d919f2fb69c912aefb087e2578134f3a9bde7b496ea880f2197a8dbf8221058dd1e8444d
37 DIST samba-4.2.11.tar.gz 20875348 SHA256 75bce53c922e51352933c9846f2c4b1e251fabb80927adb426a773a321ee01f8 SHA512 293365f2718e756b66ccaec4b0dbce7044ade615b332f58968cf42dd1ec6b6445576590eaf5bd35fa00ba9aa4ba3be7720afc33763652e97731eebc3149f4820 WHIRLPOOL 1e04fd527e55c8d438c96a43d9a25a9b3e09a3edc504a2a5fe44bc8f9101c833c90e3ba3188b8872b046370916f3798e4fce0ffa7848b65f452b5c51ec7107f1
38 DIST samba-4.2.12.tar.gz 20878216 SHA256 b334a86a92a1c2759c0b3dce20965e7fe820f0abafee38e6fd82eb9c5cd80514 SHA512 0edf606e03fbfbf8efda6e918f5ab0fd4284d38ae1b0c829f30ea01646eca73dd61b1239363960371a8dc64eaeaffbc4b1c216872ae431f7dfef2139b620e0be WHIRLPOOL f1de51eedd5172cc7c8fb3d0093be5aa1678de1f0b7a686be2c9eb962abb3219ed9232e79d03065c58a14f0b6482cb8bf5c8b3e166fec95911ace2b5dced0782
39 @@ -12,4 +10,3 @@ DIST samba-disable-python-patches-4.2.12.tar.xz 6052 SHA256 8903eacbabdfaf7b64cb
40 DIST samba-disable-python-patches-4.2.9.tar.xz 6016 SHA256 222d0153f03dddde28a0b906ee2b27076223ac88b84a998aaa285f658861edfa SHA512 02fc666a36f8e733e522663d80775d130fabee9d5fb4e1c261d28815e07be425ae8977213f9216c7af62dd8b2619e7e13d71f9a25780b058c8119901c2115a18 WHIRLPOOL ebba3a6d41a41844621759672aa8c984d26f44d12007c8e929405470c381bc262523ec68d3972e86cf675c45f092fa287496167e42940e70d704790753e47b03
41 DIST samba-disable-python-patches-4.3.9.tar.xz 6116 SHA256 83206112e04c375e170e86ea6b29d6dc2c172b55ba9fb89130be14708d758cf5 SHA512 ca8b62337afd1cc6059b9aefc0a3972d18ba90fba3f043d9730f6967e1b80c40bc918b0445b8ae8a1f3df74d3551f90c721df3c0514edccb881ed0b4fc54e1b5 WHIRLPOOL 3aebd6758e5e7dc2920b1e8f8825d2b7b7efac7c5f2d91d5ed6fed75597bfdced1b27d9e2a00385af5df19e5462a4e014df6a7274c0b25a660702268235ef746
42 DIST samba-disable-python-patches-4.4.2.tar.xz 6244 SHA256 774994cc6b1fcb7099667769159fe2f49eccbdadfc579793f733fe93e7e19874 SHA512 c79fa89b49d558e64e3e4406e2794651d300b8cf678a6714e03aa85352e3aeb21f8012f37fc6e488a39e7a13e86b92a82ee9fb3aabc2dfc86e5928f805a1a989 WHIRLPOOL 66fd03d0edb9b58c36c7e1beb7db6ddf60b194fe6d83f7c3b046a02cab565175e3332c92822f4ba0245f69d1d9f32f2ede2b5b5fe42d51ba17acbdca797ce3c8
43 -DIST smb_traffic_analyzer_v2.diff.bz2 12226 SHA256 1bae7eafbe8ac2382313d5ab9d43d73ba64b63a714f0f588516952d476fb868d SHA512 aa0e457a0dd282e61e6dfcd5705c29b319832dca9711b1b5baf8373e2f079991399c3537c050219ccb861a93f86353ebff677a5c625d2e3f1f3a13ee5c4087d0 WHIRLPOOL 85ee72a360f67ebe71be5cd400ecd635280a0d7c64ebb8b94656a5ef1a94f74a987de86408af00ce1b81cc8363b1b3cf14726860d29b72ee610d4bab73d6b139
44
45 diff --git a/net-fs/samba/files/3.5/lmhosts b/net-fs/samba/files/3.5/lmhosts
46 deleted file mode 100644
47 index fe7b466..0000000
48 --- a/net-fs/samba/files/3.5/lmhosts
49 +++ /dev/null
50 @@ -1,2 +0,0 @@
51 -# $Id$
52 -127.0.0.1 localhost
53
54 diff --git a/net-fs/samba/files/3.5/nsswitch.conf-winbind b/net-fs/samba/files/3.5/nsswitch.conf-winbind
55 deleted file mode 100644
56 index 32d9b98..0000000
57 --- a/net-fs/samba/files/3.5/nsswitch.conf-winbind
58 +++ /dev/null
59 @@ -1,17 +0,0 @@
60 -# $Id$
61 -passwd: files winbind
62 -group: files winbind
63 -
64 -hosts: files dns
65 -networks: files dns
66 -
67 -services: db files
68 -protocols: db files
69 -rpc: db files
70 -ethers: db files
71 -netmasks: files
72 -netgroup: files
73 -bootparams: files
74 -
75 -automount: files
76 -aliases: files
77
78 diff --git a/net-fs/samba/files/3.5/nsswitch.conf-wins b/net-fs/samba/files/3.5/nsswitch.conf-wins
79 deleted file mode 100644
80 index 44c01ae..0000000
81 --- a/net-fs/samba/files/3.5/nsswitch.conf-wins
82 +++ /dev/null
83 @@ -1,17 +0,0 @@
84 -# $Id$
85 -passwd: files
86 -group: files
87 -
88 -hosts: files dns wins
89 -networks: files dns
90 -
91 -services: db files
92 -protocols: db files
93 -rpc: db files
94 -ethers: db files
95 -netmasks: files
96 -netgroup: files
97 -bootparams: files
98 -
99 -automount: files
100 -aliases: files
101
102 diff --git a/net-fs/samba/files/3.5/samba-3.5.6-kerberos-dummy.patch b/net-fs/samba/files/3.5/samba-3.5.6-kerberos-dummy.patch
103 deleted file mode 100644
104 index ef76aff..0000000
105 --- a/net-fs/samba/files/3.5/samba-3.5.6-kerberos-dummy.patch
106 +++ /dev/null
107 @@ -1,30 +0,0 @@
108 -diff -NrU5 samba-3.5.6.original/source3/include/krb5_protos.h samba-3.5.6/source3/include/krb5_protos.h
109 ---- samba-3.5.6.original/source3/include/krb5_protos.h 2010-10-07 10:41:16.000000000 -0600
110 -+++ samba-3.5.6/source3/include/krb5_protos.h 2010-12-23 11:01:09.000000000 -0600
111 -@@ -86,15 +86,10 @@
112 - const char *name,
113 - krb5_principal *principal);
114 - bool smb_krb5_principal_compare_any_realm(krb5_context context,
115 - krb5_const_principal princ1,
116 - krb5_const_principal princ2);
117 --int cli_krb5_get_ticket(const char *principal, time_t time_offset,
118 -- DATA_BLOB *ticket, DATA_BLOB *session_key_krb5,
119 -- uint32 extra_ap_opts, const char *ccname,
120 -- time_t *tgs_expire,
121 -- const char *impersonate_princ_s);
122 - krb5_error_code smb_krb5_renew_ticket(const char *ccache_string, const char *client_string, const char *service_string, time_t *expire_time);
123 - krb5_error_code kpasswd_err_to_krb5_err(krb5_error_code res_code);
124 - krb5_error_code smb_krb5_gen_netbios_krb5_address(smb_krb5_addresses **kerb_addr);
125 - krb5_error_code smb_krb5_free_addresses(krb5_context context, smb_krb5_addresses *addr);
126 - NTSTATUS krb5_to_nt_status(krb5_error_code kerberos_error);
127 -@@ -144,5 +139,10 @@
128 - krb5_creds **creds_p);
129 - char *smb_krb5_principal_get_realm(krb5_context context,
130 - krb5_principal principal);
131 - #endif /* HAVE_KRB5 */
132 -
133 -+int cli_krb5_get_ticket(const char *principal, time_t time_offset,
134 -+ DATA_BLOB *ticket, DATA_BLOB *session_key_krb5,
135 -+ uint32 extra_ap_opts, const char *ccname,
136 -+ time_t *tgs_expire,
137 -+ const char *impersonate_princ_s);
138
139 diff --git a/net-fs/samba/files/3.5/samba-3.5.8-uclib-build.patch b/net-fs/samba/files/3.5/samba-3.5.8-uclib-build.patch
140 deleted file mode 100644
141 index 905b06a..0000000
142 --- a/net-fs/samba/files/3.5/samba-3.5.8-uclib-build.patch
143 +++ /dev/null
144 @@ -1,58 +0,0 @@
145 -From a5bfd634ecd0e81eb92b065da311ee4cf6f08757 Mon Sep 17 00:00:00 2001
146 -From: Jeff Layton <jlayton@×××××.org>
147 -Date: Mon, 5 Jul 2010 08:39:45 -0400
148 -Subject: [PATCH] mount.cifs: switch to using _PATH_MNTTAB and paths.h
149 -
150 -The code currently uses fstab.h and _PATH_FSTAB, but uClibc apparently
151 -doesn't have that header. It does have paths.h and _PATH_MNTTAB however
152 -and so does glibc, so use that instead.
153 -
154 -Reported-by: Armin Kuster <linux@×××××××××.net>
155 -Signed-off-by: Jeff Layton <jlayton@×××××.org>
156 ----
157 -diff -NrU5 samba-3.5.8.original/client/mount.cifs.c samba-3.5.8/client/mount.cifs.c
158 ---- samba-3.5.8.original/client/mount.cifs.c 2011-03-06 12:48:05.000000000 -0600
159 -+++ samba-3.5.8/client/mount.cifs.c 2011-05-04 08:51:42.000000000 -0600
160 -@@ -37,11 +37,11 @@
161 - #include <netdb.h>
162 - #include <string.h>
163 - #include <mntent.h>
164 - #include <fcntl.h>
165 - #include <limits.h>
166 --#include <fstab.h>
167 -+#include <paths.h>
168 - #include "mount.h"
169 -
170 - #define MOUNT_CIFS_VERSION_MAJOR "1"
171 - #define MOUNT_CIFS_VERSION_MINOR "14"
172 -
173 -@@ -261,14 +261,14 @@
174 - {
175 - FILE *fstab;
176 - struct mntent *mnt;
177 -
178 - /* make sure this mount is listed in /etc/fstab */
179 -- fstab = setmntent(_PATH_FSTAB, "r");
180 -+ fstab = setmntent(_PATH_MNTTAB, "r");
181 - if (!fstab) {
182 - fprintf(stderr, "Couldn't open %s for reading!\n",
183 -- _PATH_FSTAB);
184 -+ _PATH_MNTTAB);
185 - return EX_FILEIO;
186 - }
187 -
188 - while((mnt = getmntent(fstab))) {
189 - if (!strcmp(mountpoint, mnt->mnt_dir))
190 -@@ -277,11 +277,11 @@
191 - endmntent(fstab);
192 -
193 - if (mnt == NULL || strcmp(mnt->mnt_fsname, devname)) {
194 - fprintf(stderr, "%s: permission denied: no match for "
195 - "%s found in %s\n", progname, mountpoint,
196 -- _PATH_FSTAB);
197 -+ _PATH_MNTTAB);
198 - return EX_USAGE;
199 - }
200 -
201 - /*
202 - * 'mount' munges the options from fstab before passing them
203
204 diff --git a/net-fs/samba/files/3.5/samba.confd b/net-fs/samba/files/3.5/samba.confd
205 deleted file mode 100644
206 index 1b329da..0000000
207 --- a/net-fs/samba/files/3.5/samba.confd
208 +++ /dev/null
209 @@ -1,28 +0,0 @@
210 -#add "winbind" to the daemon_list if you also want winbind to start
211 -daemon_list="smbd nmbd"
212 -
213 -#----------------------------------------------------------------------------
214 -# Daemons calls: <daemon_name>_<command_option>
215 -#----------------------------------------------------------------------------
216 -my_service_name="samba"
217 -my_service_PRE="unset TMP TMPDIR"
218 -my_service_POST=""
219 -
220 -#----------------------------------------------------------------------------
221 -# Daemons calls: <daemon_name>_<command_option>
222 -#----------------------------------------------------------------------------
223 -smbd_start_options="-D"
224 -smbd_start="start-stop-daemon --start --exec /usr/sbin/smbd -- ${smbd_start_options}"
225 -smbd_stop="start-stop-daemon --stop --exec /usr/sbin/smbd"
226 -smbd_reload="killall -HUP smbd"
227 -
228 -nmbd_start_options="-D"
229 -nmbd_start="start-stop-daemon --start --exec /usr/sbin/nmbd -- ${nmbd_start_options}"
230 -nmbd_stop="start-stop-daemon --stop --exec /usr/sbin/nmbd"
231 -nmbd_reload="killall -HUP nmbd"
232 -
233 -winbind_start_options=""
234 -winbind_start="start-stop-daemon --start --exec /usr/sbin/winbindd -- ${winbind_start_options}"
235 -winbind_stop="start-stop-daemon --stop --exec /usr/sbin/winbindd"
236 -winbind_reload="killall -HUP winbindd"
237 -
238
239 diff --git a/net-fs/samba/files/3.5/samba.initd b/net-fs/samba/files/3.5/samba.initd
240 deleted file mode 100644
241 index 18804da..0000000
242 --- a/net-fs/samba/files/3.5/samba.initd
243 +++ /dev/null
244 @@ -1,59 +0,0 @@
245 -#!/sbin/openrc-run
246 -# Copyright 1999-2011 Gentoo Foundation
247 -# Distributed under the terms of the GNU General Public License, v2 or later
248 -# $Id$
249 -
250 -extra_started_commands="reload"
251 -
252 -depend() {
253 - after slapd
254 - need net
255 - use cupsd
256 -}
257 -
258 -DAEMONNAME="${SVCNAME##samba.}"
259 -[ "${DAEMONNAME}" != "samba" ] && daemon_list=${DAEMONNAME}
260 -
261 -signal_do() {
262 - local signal="$1"
263 - [ -z "${signal}" ] && return 0
264 -
265 - local result=0 last_result=0 daemon= cmd_exec=
266 - for daemon in ${daemon_list} ; do
267 - eval cmd_exec=\$${daemon}_${signal}
268 - if [ -n "${cmd_exec}" ]; then
269 - ebegin "${my_service_name} -> ${signal}: ${daemon}"
270 - #echo ${cmd} '->' ${!cmd}
271 - ${cmd_exec} > /dev/null
272 - last_result=$?
273 - eend ${last_result}
274 - fi
275 - result=$(( ${result} + ${last_result} ))
276 - done
277 - return ${result}
278 -}
279 -
280 -mkdir_sambadirs() {
281 - [ -d /var/run/samba ] || mkdir -p /var/run/samba
282 -}
283 -
284 -start() {
285 - ${my_service_PRE}
286 - mkdir_sambadirs
287 - signal_do start && return 0
288 -
289 - eerror "Error: starting services (see system logs)"
290 - signal_do stop
291 - return 1
292 -}
293 -stop() {
294 - ${my_service_PRE}
295 - if signal_do stop ; then
296 - ${my_service_POST}
297 - return 0
298 - fi
299 -}
300 -reload() {
301 - ${my_service_PRE}
302 - signal_do reload
303 -}
304
305 diff --git a/net-fs/samba/files/3.5/samba.pam b/net-fs/samba/files/3.5/samba.pam
306 deleted file mode 100644
307 index 91beadd..0000000
308 --- a/net-fs/samba/files/3.5/samba.pam
309 +++ /dev/null
310 @@ -1,8 +0,0 @@
311 -#%PAM-1.0
312 -# * pam_smbpass.so authenticates against the smbpasswd file
313 -# * changed Redhat's 'pam_stack' with 'include' for *BSD compatibility
314 -# (Diego "Flameeyes" Petteno'): enable with pam>=0.78 only
315 -auth required pam_smbpass.so nodelay
316 -account include system-auth
317 -session include system-auth
318 -password required pam_smbpass.so nodelay smbconf=/etc/samba/smb.conf
319
320 diff --git a/net-fs/samba/files/3.5/smb.conf.default b/net-fs/samba/files/3.5/smb.conf.default
321 deleted file mode 100644
322 index 4c9a4a6..0000000
323 --- a/net-fs/samba/files/3.5/smb.conf.default
324 +++ /dev/null
325 @@ -1,271 +0,0 @@
326 -# This is the main Samba configuration file. You should read the
327 -# smb.conf(5) manual page in order to understand the options listed
328 -# here. Samba has a huge number of configurable options (perhaps too
329 -# many!) most of which are not shown in this example
330 -#
331 -# For a step to step guide on installing, configuring and using samba,
332 -# read the Samba-HOWTO-Collection. This may be obtained from:
333 -# http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf
334 -#
335 -# Many working examples of smb.conf files can be found in the
336 -# Samba-Guide which is generated daily and can be downloaded from:
337 -# http://www.samba.org/samba/docs/Samba-Guide.pdf
338 -#
339 -# Any line which starts with a ; (semi-colon) or a # (hash)
340 -# is a comment and is ignored. In this example we will use a #
341 -# for commentry and a ; for parts of the config file that you
342 -# may wish to enable
343 -#
344 -# NOTE: Whenever you modify this file you should run the command "testparm"
345 -# to check that you have not made any basic syntactic errors.
346 -#
347 -#======================= Global Settings =====================================
348 -[global]
349 -
350 -# workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
351 - workgroup = MYGROUP
352 -
353 -# server string is the equivalent of the NT Description field
354 - server string = Samba Server
355 -
356 -# Security mode. Defines in which mode Samba will operate. Possible
357 -# values are share, user, server, domain and ads. Most people will want
358 -# user level security. See the Samba-HOWTO-Collection for details.
359 - security = user
360 -
361 -# This option is important for security. It allows you to restrict
362 -# connections to machines which are on your local network. The
363 -# following example restricts access to two C class networks and
364 -# the "loopback" interface. For more examples of the syntax see
365 -# the smb.conf man page
366 -; hosts allow = 192.168.1. 192.168.2. 127.
367 -
368 -# If you want to automatically load your printer list rather
369 -# than setting them up individually then you'll need this
370 - load printers = yes
371 -
372 -# you may wish to override the location of the printcap file
373 -; printcap name = /etc/printcap
374 -
375 -# on SystemV system setting printcap name to lpstat should allow
376 -# you to automatically obtain a printer list from the SystemV spool
377 -# system
378 -; printcap name = lpstat
379 -
380 -# It should not be necessary to specify the print system type unless
381 -# it is non-standard. Currently supported print systems include:
382 -# bsd, cups, sysv, plp, lprng, aix, hpux, qnx
383 -; printing = cups
384 -
385 -# Uncomment this if you want a guest account, you must add this to /etc/passwd
386 -# otherwise the user "nobody" is used
387 -; guest account = pcguest
388 -
389 -# this tells Samba to use a separate log file for each machine
390 -# that connects
391 - log file = /var/log/samba/log.%m
392 -
393 -# Put a capping on the size of the log files (in Kb).
394 - max log size = 50
395 -
396 -# Use password server option only with security = server
397 -# The argument list may include:
398 -# password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
399 -# or to auto-locate the domain controller/s
400 -# password server = *
401 -; password server = <NT-Server-Name>
402 -
403 -# Use the realm option only with security = ads
404 -# Specifies the Active Directory realm the host is part of
405 -; realm = MY_REALM
406 -
407 -# Backend to store user information in. New installations should
408 -# use either tdbsam or ldapsam. smbpasswd is available for backwards
409 -# compatibility. tdbsam requires no further configuration.
410 -; passdb backend = tdbsam
411 -
412 -# Using the following line enables you to customise your configuration
413 -# on a per machine basis. The %m gets replaced with the netbios name
414 -# of the machine that is connecting.
415 -# Note: Consider carefully the location in the configuration file of
416 -# this line. The included file is read at that point.
417 -; include = /etc/samba/smb.conf.%m
418 -
419 -# Configure Samba to use multiple interfaces
420 -# If you have multiple network interfaces then you must list them
421 -# here. See the man page for details.
422 -; interfaces = 192.168.12.2/24 192.168.13.2/24
423 -
424 -# Browser Control Options:
425 -# set local master to no if you don't want Samba to become a master
426 -# browser on your network. Otherwise the normal election rules apply
427 -; local master = no
428 -
429 -# OS Level determines the precedence of this server in master browser
430 -# elections. The default value should be reasonable
431 -; os level = 33
432 -
433 -# Domain Master specifies Samba to be the Domain Master Browser. This
434 -# allows Samba to collate browse lists between subnets. Don't use this
435 -# if you already have a Windows NT domain controller doing this job
436 -; domain master = yes
437 -
438 -# Preferred Master causes Samba to force a local browser election on startup
439 -# and gives it a slightly higher chance of winning the election
440 -; preferred master = yes
441 -
442 -# Enable this if you want Samba to be a domain logon server for
443 -# Windows95 workstations.
444 -; domain logons = yes
445 -
446 -# if you enable domain logons then you may want a per-machine or
447 -# per user logon script
448 -# run a specific logon batch file per workstation (machine)
449 -; logon script = %m.bat
450 -# run a specific logon batch file per username
451 -; logon script = %U.bat
452 -
453 -# Where to store roving profiles (only for Win95 and WinNT)
454 -# %L substitutes for this servers netbios name, %U is username
455 -# You must uncomment the [Profiles] share below
456 -; logon path = \\%L\Profiles\%U
457 -
458 -# Windows Internet Name Serving Support Section:
459 -# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
460 -; wins support = yes
461 -
462 -# WINS Server - Tells the NMBD components of Samba to be a WINS Client
463 -# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
464 -; wins server = w.x.y.z
465 -
466 -# WINS Proxy - Tells Samba to answer name resolution queries on
467 -# behalf of a non WINS capable client, for this to work there must be
468 -# at least one WINS Server on the network. The default is NO.
469 -; wins proxy = yes
470 -
471 -# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
472 -# via DNS nslookups. The default is NO.
473 - dns proxy = no
474 -
475 -# These scripts are used on a domain controller or stand-alone
476 -# machine to add or delete corresponding unix accounts
477 -; add user script = /usr/sbin/useradd %u
478 -; add group script = /usr/sbin/groupadd %g
479 -; add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
480 -; delete user script = /usr/sbin/userdel %u
481 -; delete user from group script = /usr/sbin/deluser %u %g
482 -; delete group script = /usr/sbin/groupdel %g
483 -
484 -
485 -#============================ Share Definitions ==============================
486 -[homes]
487 - comment = Home Directories
488 - browseable = no
489 - writable = yes
490 -
491 -# Un-comment the following and create the netlogon directory for Domain Logons
492 -; [netlogon]
493 -; comment = Network Logon Service
494 -; path = /var/lib/samba/netlogon
495 -; guest ok = yes
496 -; writable = no
497 -; share modes = no
498 -
499 -
500 -# Un-comment the following to provide a specific roving profile share
501 -# the default is to use the user's home directory
502 -;[Profiles]
503 -; path = /var/lib/samba/profiles
504 -; browseable = no
505 -; guest ok = yes
506 -
507 -
508 -# NOTE: If you have a BSD-style print system there is no need to
509 -# specifically define each individual printer
510 -[printers]
511 - comment = All Printers
512 - path = /var/spool/samba
513 - browseable = no
514 -# Set public = yes to allow user 'guest account' to print
515 - guest ok = no
516 - writable = no
517 - printable = yes
518 -
519 -# This one is useful for people to share files
520 -;[tmp]
521 -; comment = Temporary file space
522 -; path = /tmp
523 -; read only = no
524 -; public = yes
525 -
526 -# A publicly accessible directory, but read only, except for people in
527 -# the "staff" group
528 -;[public]
529 -; comment = Public Stuff
530 -; path = /home/samba
531 -; public = yes
532 -; writable = yes
533 -; printable = no
534 -; write list = @staff
535 -
536 -# Other examples.
537 -#
538 -# A private printer, usable only by fred. Spool data will be placed in fred's
539 -# home directory. Note that fred must have write access to the spool directory,
540 -# wherever it is.
541 -;[fredsprn]
542 -; comment = Fred's Printer
543 -; valid users = fred
544 -; path = /homes/fred
545 -; printer = freds_printer
546 -; public = no
547 -; writable = no
548 -; printable = yes
549 -
550 -# A private directory, usable only by fred. Note that fred requires write
551 -# access to the directory.
552 -;[fredsdir]
553 -; comment = Fred's Service
554 -; path = /usr/somewhere/private
555 -; valid users = fred
556 -; public = no
557 -; writable = yes
558 -; printable = no
559 -
560 -# a service which has a different directory for each machine that connects
561 -# this allows you to tailor configurations to incoming machines. You could
562 -# also use the %U option to tailor it by user name.
563 -# The %m gets replaced with the machine name that is connecting.
564 -;[pchome]
565 -; comment = PC Directories
566 -; path = /usr/pc/%m
567 -; public = no
568 -; writable = yes
569 -
570 -# A publicly accessible directory, read/write to all users. Note that all files
571 -# created in the directory by users will be owned by the default user, so
572 -# any user with access can delete any other user's files. Obviously this
573 -# directory must be writable by the default user. Another user could of course
574 -# be specified, in which case all files would be owned by that user instead.
575 -;[public]
576 -; path = /usr/somewhere/else/public
577 -; public = yes
578 -; only guest = yes
579 -; writable = yes
580 -; printable = no
581 -
582 -# The following two entries demonstrate how to share a directory so that two
583 -# users can place files there that will be owned by the specific users. In this
584 -# setup, the directory should be writable by both users and should have the
585 -# sticky bit set on it to prevent abuse. Obviously this could be extended to
586 -# as many users as required.
587 -;[myshare]
588 -; comment = Mary's and Fred's stuff
589 -; path = /usr/somewhere/shared
590 -; valid users = mary fred
591 -; public = no
592 -; writable = yes
593 -; printable = no
594 -; create mask = 0765
595 -
596 -
597
598 diff --git a/net-fs/samba/files/3.5/smb.conf.default.patch b/net-fs/samba/files/3.5/smb.conf.default.patch
599 deleted file mode 100644
600 index e9d62db..0000000
601 --- a/net-fs/samba/files/3.5/smb.conf.default.patch
602 +++ /dev/null
603 @@ -1,86 +0,0 @@
604 ---- samba-3.5.9/examples/smb.conf.default 2011-06-14 05:17:28.000000000 -0600
605 -+++ /etc/samba/smb.conf.default 2011-06-29 10:12:13.000000000 -0600
606 -@@ -61,11 +61,11 @@
607 - # otherwise the user "nobody" is used
608 - ; guest account = pcguest
609 -
610 - # this tells Samba to use a separate log file for each machine
611 - # that connects
612 -- log file = /usr/local/samba/var/log.%m
613 -+ log file = /var/log/samba/log.%m
614 -
615 - # Put a capping on the size of the log files (in Kb).
616 - max log size = 50
617 -
618 - # Use password server option only with security = server
619 -@@ -79,19 +79,22 @@
620 - # Specifies the Active Directory realm the host is part of
621 - ; realm = MY_REALM
622 -
623 - # Backend to store user information in. New installations should
624 - # use either tdbsam or ldapsam. smbpasswd is available for backwards
625 --# compatibility. tdbsam requires no further configuration.
626 -+# compatibility. tdbsam requires no further configuration. If you're
627 -+# migrating from < samba 3.4, you'll have to convert your old user
628 -+# passwords to the new backend with the command:
629 -+# pdbedit -i smbpasswd:/var/lib/samba/private/smbpasswd -e
630 - ; passdb backend = tdbsam
631 -
632 - # Using the following line enables you to customise your configuration
633 - # on a per machine basis. The %m gets replaced with the netbios name
634 - # of the machine that is connecting.
635 - # Note: Consider carefully the location in the configuration file of
636 - # this line. The included file is read at that point.
637 --; include = /usr/local/samba/lib/smb.conf.%m
638 -+; include = /etc/samba/smb.conf.%m
639 -
640 - # Configure Samba to use multiple interfaces
641 - # If you have multiple network interfaces then you must list them
642 - # here. See the man page for details.
643 - ; interfaces = 192.168.12.2/24 192.168.13.2/24
644 -@@ -164,29 +167,29 @@
645 - writable = yes
646 -
647 - # Un-comment the following and create the netlogon directory for Domain Logons
648 - ; [netlogon]
649 - ; comment = Network Logon Service
650 --; path = /usr/local/samba/lib/netlogon
651 -+; path = /var/lib/samba/netlogon
652 - ; guest ok = yes
653 - ; writable = no
654 - ; share modes = no
655 -
656 -
657 - # Un-comment the following to provide a specific roving profile share
658 - # the default is to use the user's home directory
659 - ;[Profiles]
660 --; path = /usr/local/samba/profiles
661 -+; path = /var/lib/samba/profiles
662 - ; browseable = no
663 - ; guest ok = yes
664 -
665 -
666 - # NOTE: If you have a BSD-style print system there is no need to
667 - # specifically define each individual printer
668 - [printers]
669 - comment = All Printers
670 -- path = /usr/spool/samba
671 -+ path = /var/spool/samba
672 - browseable = no
673 - # Set public = yes to allow user 'guest account' to print
674 - guest ok = no
675 - writable = no
676 - printable = yes
677 -@@ -202,11 +205,11 @@
678 - # the "staff" group
679 - ;[public]
680 - ; comment = Public Stuff
681 - ; path = /home/samba
682 - ; public = yes
683 --; writable = no
684 -+; writable = yes
685 - ; printable = no
686 - ; write list = @staff
687 -
688 - # Other examples.
689 - #
690
691 diff --git a/net-fs/samba/files/3.5/smbusers b/net-fs/samba/files/3.5/smbusers
692 deleted file mode 100644
693 index 7acb6dc..0000000
694 --- a/net-fs/samba/files/3.5/smbusers
695 +++ /dev/null
696 @@ -1,7 +0,0 @@
697 -# $Id$
698 -
699 -# Syntax:
700 -# Unix_name = SMB_name1 SMB_name2 ...
701 -
702 -root = Administrator admin
703 -nobody = guest pcguest smbguest
704
705 diff --git a/net-fs/samba/files/3.5/swat.xinetd b/net-fs/samba/files/3.5/swat.xinetd
706 deleted file mode 100644
707 index 45e977d..0000000
708 --- a/net-fs/samba/files/3.5/swat.xinetd
709 +++ /dev/null
710 @@ -1,17 +0,0 @@
711 -# default: off
712 -# description: SWAT is the Samba Web Admin Tool. Use swat \
713 -# to configure your Samba server. To use SWAT, \
714 -# connect to port 901 with your favorite web browser.
715 -# $Id$
716 -
717 -service swat
718 -{
719 - port = 901
720 - socket_type = stream
721 - wait = no
722 - only_from = localhost
723 - user = root
724 - server = /usr/sbin/swat
725 - log_on_failure += USERID
726 - disable = yes
727 -}
728
729 diff --git a/net-fs/samba/files/3.5/system-auth-winbind.pam b/net-fs/samba/files/3.5/system-auth-winbind.pam
730 deleted file mode 100644
731 index 8d6746b..0000000
732 --- a/net-fs/samba/files/3.5/system-auth-winbind.pam
733 +++ /dev/null
734 @@ -1,18 +0,0 @@
735 -#%PAM-1.0
736 -# $Id$
737 -
738 -auth required pam_env.so
739 -auth sufficient pam_winbind.so
740 -auth sufficient pam_unix.so likeauth nullok use_first_pass
741 -auth required pam_deny.so
742 -
743 -account sufficient pam_winbind.so
744 -account required pam_unix.so
745 -
746 -password required pam_cracklib.so retry=3
747 -password sufficient pam_unix.so nullok use_authtok md5 shadow
748 -password required pam_deny.so
749 -
750 -session required pam_mkhomedir.so skel=/etc/skel/ umask=0022
751 -session required pam_limits.so
752 -session required pam_unix.so
753
754 diff --git a/net-fs/samba/samba-3.5.21.ebuild b/net-fs/samba/samba-3.5.21.ebuild
755 deleted file mode 100644
756 index fc876a5..0000000
757 --- a/net-fs/samba/samba-3.5.21.ebuild
758 +++ /dev/null
759 @@ -1,453 +0,0 @@
760 -# Copyright 1999-2015 Gentoo Foundation
761 -# Distributed under the terms of the GNU General Public License v2
762 -# $Id$
763 -
764 -EAPI=4
765 -
766 -inherit pam versionator multilib eutils flag-o-matic
767 -
768 -MY_PV=${PV/_/}
769 -MY_P="${PN}-${MY_PV}"
770 -
771 -DESCRIPTION="Library bits of the samba network filesystem"
772 -HOMEPAGE="http://www.samba.org/"
773 -SRC_URI="mirror://samba/stable/${P}.tar.gz
774 - https://dev.gentoo.org/~dagger/files/smb_traffic_analyzer_v2.diff.bz2"
775 -LICENSE="GPL-3"
776 -SLOT="0"
777 -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
778 -IUSE="acl addns ads +aio avahi caps +client cluster debug doc examples fam
779 - ldap ldb +netapi pam quota +readline selinux +server +smbclient smbsharemodes smbtav2
780 - swat syslog winbind"
781 -
782 -DEPEND="dev-libs/popt
783 - !net-fs/samba-client
784 - !net-fs/samba-libs
785 - !net-fs/samba-server
786 - !net-fs/cifs-utils
787 - sys-libs/talloc
788 - sys-libs/tdb
789 - virtual/libiconv
790 - ads? ( virtual/krb5 sys-fs/e2fsprogs
791 - client? ( sys-apps/keyutils ) )
792 - avahi? ( net-dns/avahi[dbus] )
793 - caps? ( sys-libs/libcap )
794 - client? ( !net-fs/mount-cifs
795 - dev-libs/iniparser:0 )
796 - cluster? ( >=dev-db/ctdb-1.0.114_p1 )
797 - fam? ( virtual/fam )
798 - ldap? ( net-nds/openldap )
799 - pam? ( virtual/pam
800 - winbind? ( dev-libs/iniparser:0 )
801 - )
802 - readline? ( >=sys-libs/readline-5.2 )
803 - selinux? ( sec-policy/selinux-samba )
804 - syslog? ( virtual/logger )"
805 -
806 -RDEPEND="${DEPEND}"
807 -
808 -# Disable tests since we don't want to build that much here
809 -RESTRICT="test"
810 -
811 -SBINPROGS=""
812 -BINPROGS=""
813 -KRBPLUGIN=""
814 -PLUGINEXT=".so"
815 -SHAREDMODS=""
816 -
817 -S="${WORKDIR}/${MY_P}/source3"
818 -
819 -# TODO:
820 -# - enable iPrint on Prefix/OSX and Darwin?
821 -# - selftest-prefix? selftest?
822 -# - AFS?
823 -
824 -CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
825 -
826 -REQUIRED_USE="
827 - ads? ( ldap )
828 - swat? ( server )
829 -"
830 -
831 -pkg_setup() {
832 - if use server ; then
833 - SBINPROGS="${SBINPROGS} bin/smbd bin/nmbd"
834 - BINPROGS="${BINPROGS} bin/testparm bin/smbstatus bin/smbcontrol bin/pdbedit
835 - bin/profiles bin/sharesec bin/eventlogadm"
836 -
837 - use smbtav2 && BINPROGS="${BINPROGS} bin/smbta-util"
838 - use swat && SBINPROGS="${SBINPROGS} bin/swat"
839 - use winbind && SBINPROGS="${SBINPROGS} bin/winbindd"
840 - use ads && use winbind && KRBPLUGIN="${KRBPLUGIN} bin/winbind_krb5_locator"
841 - fi
842 -
843 - if use client ; then
844 - BINPROGS="${BINPROGS} bin/smbclient bin/net bin/smbget bin/smbtree
845 - bin/nmblookup bin/smbpasswd bin/rpcclient bin/smbcacls bin/smbcquotas
846 - bin/ntlm_auth"
847 -
848 - use ads && SBINPROGS="${SBINPROGS} bin/cifs.upcall"
849 - fi
850 -
851 - use ldb && BINPROGS="${BINPROGS} bin/ldbedit bin/ldbsearch bin/ldbadd bin/ldbdel bin/ldbmodify bin/ldbrename";
852 -
853 - if use winbind ; then
854 - BINPROGS="${BINPROGS} bin/wbinfo"
855 - SHAREDMODS="${SHAREDMODS}idmap_rid,idmap_hash"
856 - use ads && SHAREDMODS="${SHAREDMODS},idmap_ad"
857 - use ldap && SHAREDMODS="${SHAREDMODS},idmap_ldap,idmap_adex"
858 - fi
859 -
860 - if use winbind &&
861 - [[ $(tc-getCC)$ == *gcc* ]] &&
862 - [[ $(gcc-major-version)$(gcc-minor-version) -lt 43 ]]
863 - then
864 - eerror "It is a known issue that ${P} will not build with "
865 - eerror "winbind use flag enabled when using gcc < 4.3 ."
866 - eerror "Please use at least the latest stable gcc version."
867 - die "Using sys-devel/gcc < 4.3 with winbind use flag."
868 - fi
869 -}
870 -
871 -src_prepare() {
872 - cp "${FILESDIR}/samba-3.4.2-lib.tevent.python.mk" "../lib/tevent/python.mk"
873 -
874 - # ensure that winbind has correct ldflags (QA notice)
875 - sed -i \
876 - -e 's|LDSHFLAGS="|LDSHFLAGS="\\${LDFLAGS} |g' \
877 - configure || die "sed failed"
878 -
879 - epatch "${CONFDIR}"/${PN}-3.5.6-kerberos-dummy.patch
880 - use smbtav2 && cd "${WORKDIR}/${P}" && epatch "${WORKDIR}"/smb_traffic_analyzer_v2.diff
881 - cd "${WORKDIR}/${MY_P}" && epatch "${CONFDIR}"/${PN}-3.5.8-uclib-build.patch
882 - epatch "${CONFDIR}"/smb.conf.default.patch
883 -}
884 -
885 -src_configure() {
886 - local myconf
887 -
888 - # Filter out -fPIE
889 - [[ ${CHOST} == *-*bsd* ]] && myconf+=" --disable-pie"
890 -
891 - #Allowing alpha/s390/sh to build
892 - if use alpha || use s390 || use sh; then
893 - replace-flags -O? -O1
894 - fi
895 -
896 - # Upstream refuses to make this configurable
897 - use caps && export ac_cv_header_sys_capability_h=yes || export ac_cv_header_sys_capability_h=no
898 -
899 - # use_with doesn't accept 2 USE-flags
900 - if use client && use ads ; then
901 - myconf+=" --with-cifsupcall"
902 - else
903 - myconf+=" --without-cifsupcall"
904 - fi
905 -
906 - if use client && use kernel_linux ; then
907 - myconf+=" --with-cifsmount --with-cifsumount"
908 - else
909 - myconf+=" --without-cifsmount --without-cifsumount"
910 - fi
911 -
912 - #bug #399141 wrap newer iniparser version
913 - has_version ">=dev-libs/iniparser-3.0.0:0" && \
914 - export CPPFLAGS+=" -Diniparser_getstr\(d,i\)=iniparser_getstring\(d,i,NULL\)"
915 -
916 - # Notes:
917 - # - automount is only needed in conjunction with NIS and we don't have that
918 - # anymore => LDAP?
919 - # - --without-dce-dfs and --without-nisplus-home can't be passed to configure but are disabled by default
920 - econf ${myconf} \
921 - --with-piddir=/var/run/samba \
922 - --sysconfdir=/etc/samba \
923 - --localstatedir=/var \
924 - $(use_enable debug developer) \
925 - --enable-largefile \
926 - --enable-socket-wrapper \
927 - --enable-nss-wrapper \
928 - $(use_enable swat) \
929 - --disable-cups \
930 - --disable-iprint \
931 - $(use_enable fam) \
932 - --enable-shared-libs \
933 - --disable-dnssd \
934 - $(use_enable avahi) \
935 - --with-fhs \
936 - --with-privatedir=/var/lib/samba/private \
937 - --with-rootsbindir=/var/cache/samba \
938 - --with-lockdir=/var/cache/samba \
939 - --with-swatdir=/usr/share/doc/${PF}/swat \
940 - --with-configdir=/etc/samba \
941 - --with-logfilebase=/var/log/samba \
942 - --with-pammodulesdir=$(getpam_mod_dir) \
943 - --without-afs \
944 - --without-fake-kaserver \
945 - --without-vfs-afsacl \
946 - $(use_with ldap) \
947 - $(use_with ads) \
948 - $(use_with ads krb5 /usr) \
949 - $(use_with ads dnsupdate) \
950 - --without-automount \
951 - $(use_with pam) \
952 - $(use_with pam pam_smbpass) \
953 - $(use_with syslog) \
954 - $(use_with quota quotas) \
955 - $(use_with quota sys-quotas) \
956 - --without-utmp \
957 - --without-lib{talloc,tdb} \
958 - $(use_with netapi libnetapi) \
959 - $(use_with smbclient libsmbclient) \
960 - $(use_with smbsharemodes libsmbsharemodes) \
961 - $(use_with addns libaddns) \
962 - $(use_with cluster ctdb /usr) \
963 - $(use_with cluster cluster-support) \
964 - $(use_with acl acl-support) \
965 - $(use_with aio aio-support) \
966 - --with-sendfile-support \
967 - $(use_with winbind) \
968 - --with-shared-modules=${SHAREDMODS} \
969 - --without-included-popt \
970 - --without-included-iniparser
971 -}
972 -
973 -src_compile() {
974 - # compile libs
975 - if use addns ; then
976 - einfo "make addns library"
977 - emake libaddns
978 - fi
979 - if use netapi ; then
980 - einfo "make netapi library"
981 - emake libnetapi
982 - fi
983 - if use smbclient ; then
984 - einfo "make smbclient library"
985 - emake libsmbclient
986 - fi
987 - if use smbsharemodes ; then
988 - einfo "make smbsharemodes library"
989 - emake libsmbsharemodes
990 - fi
991 -
992 - # compile modules
993 - emake modules
994 -
995 - # compile pam moudles
996 - if use pam ; then
997 - einfo "make pam modules"
998 - emake pam_modules
999 - fi
1000 -
1001 - # compile winbind nss modules
1002 - if use winbind ; then
1003 - einfo "make nss modules"
1004 - emake nss_modules
1005 - fi
1006 -
1007 - # compile utilities
1008 - if [ -n "${BINPROGS}" ] ; then
1009 - einfo "make binprogs"
1010 - emake ${BINPROGS}
1011 - fi
1012 - if [ -n "${SBINPROGS}" ] ; then
1013 - einfo "make sbinprogs"
1014 - emake ${SBINPROGS}
1015 - fi
1016 -
1017 - if [ -n "${KRBPLUGIN}" ] ; then
1018 - einfo "make krbplugin"
1019 - emake ${KRBPLUGIN}${PLUGINEXT}
1020 - fi
1021 -
1022 - if use client && use kernel_linux; then
1023 - einfo "make {,u}mount.cifs"
1024 - emake bin/{,u}mount.cifs
1025 - fi
1026 -}
1027 -
1028 -src_install() {
1029 - # install libs
1030 - if use addns ; then
1031 - einfo "install addns library"
1032 - emake installlibaddns DESTDIR="${D}"
1033 - fi
1034 - if use netapi ; then
1035 - einfo "install netapi library"
1036 - emake installlibnetapi DESTDIR="${D}"
1037 - fi
1038 - if use smbclient ; then
1039 - einfo "install smbclient library"
1040 - emake installlibsmbclient DESTDIR="${D}"
1041 - fi
1042 - if use smbsharemodes ; then
1043 - einfo "install smbsharemodes library"
1044 - emake installlibsmbsharemodes DESTDIR="${D}"
1045 - fi
1046 -
1047 - # install modules
1048 - emake installmodules DESTDIR="${D}"
1049 -
1050 - if use pam ; then
1051 - einfo "install pam modules"
1052 - emake installpammodules DESTDIR="${D}"
1053 -
1054 - if use winbind ; then
1055 - newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind
1056 - doman ../docs/manpages/pam_winbind.8
1057 - # bug #376853
1058 - insinto /etc/security
1059 - doins ../examples/pam_winbind/pam_winbind.conf || die
1060 - fi
1061 -
1062 - newpamd "${CONFDIR}/samba.pam" samba
1063 - dodoc pam_smbpass/README
1064 - fi
1065 -
1066 - # Nsswitch extensions. Make link for wins and winbind resolvers
1067 - if use winbind ; then
1068 - einfo "install libwbclient"
1069 - emake installlibwbclient DESTDIR="${D}"
1070 - dolib.so ../nsswitch/libnss_wins.so
1071 - dosym libnss_wins.so /usr/$(get_libdir)/libnss_wins.so.2
1072 - dolib.so ../nsswitch/libnss_winbind.so
1073 - dosym libnss_winbind.so /usr/$(get_libdir)/libnss_winbind.so.2
1074 - einfo "install libwbclient related manpages"
1075 - doman ../docs/manpages/idmap_rid.8
1076 - doman ../docs/manpages/idmap_hash.8
1077 - if use ldap ; then
1078 - doman ../docs/manpages/idmap_adex.8
1079 - doman ../docs/manpages/idmap_ldap.8
1080 - fi
1081 - if use ads ; then
1082 - doman ../docs/manpages/idmap_ad.8
1083 - fi
1084 - fi
1085 -
1086 - # install binaries
1087 - insinto /usr
1088 - for prog in ${SBINPROGS} ; do
1089 - dosbin ${prog}
1090 - doman ../docs/manpages/${prog/bin\/}*
1091 - done
1092 -
1093 - for prog in ${BINPROGS} ; do
1094 - dobin ${prog}
1095 - doman ../docs/manpages/${prog/bin\/}*
1096 - done
1097 -
1098 - # install krbplugin
1099 - if [ -n "${KRBPLUGIN}" ] ; then
1100 - if has_version app-crypt/mit-krb5 ; then
1101 - insinto /usr/$(get_libdir)/krb5/plugins/libkrb5
1102 - doins ${KRBPLUGIN}${PLUGINEXT}
1103 - elif has_version app-crypt/heimdal ; then
1104 - insinto /usr/$(get_libdir)/plugin/krb5
1105 - doins ${KRBPLUGIN}${PLUGINEXT}
1106 - fi
1107 - insinto /usr
1108 - for prog in ${KRBPLUGIN} ; do
1109 - doman ../docs/manpages/${prog/bin\/}*
1110 - done
1111 - fi
1112 -
1113 - # install server components
1114 - if use server ; then
1115 - doman ../docs/manpages/vfs* ../docs/manpages/samba.7
1116 -
1117 - diropts -m0700
1118 - keepdir /var/lib/samba/private
1119 -
1120 - diropts -m1777
1121 - keepdir /var/spool/samba
1122 -
1123 - diropts -m0755
1124 - keepdir /var/{cache,log}/samba
1125 - keepdir /var/lib/samba/{netlogon,profiles}
1126 - keepdir /var/lib/samba/printers/{W32X86,WIN40,W32ALPHA,W32MIPS,W32PPC,X64,IA64,COLOR}
1127 - keepdir /usr/$(get_libdir)/samba/{auth,pdb,rpc,idmap,nss_info,gpext}
1128 -
1129 - newconfd "${CONFDIR}/samba.confd" samba
1130 - newinitd "${CONFDIR}/samba.initd" samba
1131 -
1132 - insinto /etc/samba
1133 - doins "${CONFDIR}"/{smbusers,lmhosts}
1134 -
1135 - if use ldap ; then
1136 - insinto /etc/openldap/schema
1137 - doins ../examples/LDAP/samba.schema
1138 - fi
1139 -
1140 - if use swat ; then
1141 - insinto /etc/xinetd.d
1142 - newins "${CONFDIR}/swat.xinetd" swat
1143 - script/installswat.sh "${D}" "${ROOT}/usr/share/doc/${PF}/swat" "${S}"
1144 - fi
1145 -
1146 - dodoc ../MAINTAINERS ../README* ../Roadmap ../WHATSNEW.txt ../docs/THANKS
1147 - fi
1148 -
1149 - # install client files ({u,}mount.cifs into /)
1150 - if use client && use kernel_linux ; then
1151 - into /
1152 - dosbin bin/{u,}mount.cifs
1153 - doman ../docs/manpages/{u,}mount.cifs.8
1154 - fi
1155 -
1156 - # install misc files
1157 - insinto /etc/samba
1158 - doins ../examples/smb.conf.default
1159 - doman ../docs/manpages/smb.conf.5
1160 -
1161 - insinto /usr/"$(get_libdir)"/samba
1162 - doins ../codepages/{valid.dat,upcase.dat,lowcase.dat}
1163 -
1164 - # install docs
1165 - if use doc ; then
1166 - dohtml -r ../docs/htmldocs/*
1167 - dodoc ../docs/*.pdf
1168 - fi
1169 -
1170 - # install examples
1171 - if use examples ; then
1172 - insinto /usr/share/doc/${PF}/examples
1173 -
1174 - if use smbclient ; then
1175 - doins -r ../examples/libsmbclient
1176 - fi
1177 -
1178 - if use winbind ; then
1179 - doins -r ../examples/pam_winbind ../examples/nss
1180 - fi
1181 -
1182 - if use server ; then
1183 - cd ../examples
1184 - doins -r auth autofs dce-dfs LDAP logon misc pdb \
1185 - perfcounter printer-accounting printing scripts tridge \
1186 - validchars VFS
1187 - fi
1188 - fi
1189 -
1190 - # Remove empty installation directories
1191 - rmdir --ignore-fail-on-non-empty \
1192 - "${D}/usr/$(get_libdir)/samba" \
1193 - "${D}/usr"/{sbin,bin} \
1194 - "${D}/usr/share"/{man,locale,} \
1195 - "${D}/var"/{run,lib/samba/private,lib/samba,lib,cache/samba,cache,} \
1196 - # || die "tried to remove non-empty dirs, this seems like a bug in the ebuild"
1197 -}
1198 -
1199 -pkg_postinst() {
1200 - elog "The default value of 'wide links' has been changed to 'no' in samba 3.5"
1201 - elog "to avoid an insecure default configuration"
1202 - elog "('wide links = yes' and 'unix extensions = yes'). For more details,"
1203 - elog "please see http://www.samba.org/samba/news/symlink_attack.html ."
1204 - elog ""
1205 - elog "An EXPERIMENTAL implementation of the SMB2 protocol has been added."
1206 - elog "SMB2 can be enabled by setting 'max protocol = smb2'. SMB2 is a new "
1207 - elog "implementation of the SMB protocol used by Windows Vista and higher"
1208 - elog ""
1209 - elog "For further information make sure to read the release notes at"
1210 - elog "http://samba.org/samba/history/${P}.html and "
1211 - elog "http://samba.org/samba/history/${PN}-3.5.0.html"
1212 -}
1213
1214 diff --git a/net-fs/samba/samba-3.5.22.ebuild b/net-fs/samba/samba-3.5.22.ebuild
1215 deleted file mode 100644
1216 index e68cb33..0000000
1217 --- a/net-fs/samba/samba-3.5.22.ebuild
1218 +++ /dev/null
1219 @@ -1,453 +0,0 @@
1220 -# Copyright 1999-2015 Gentoo Foundation
1221 -# Distributed under the terms of the GNU General Public License v2
1222 -# $Id$
1223 -
1224 -EAPI=4
1225 -
1226 -inherit pam versionator multilib eutils flag-o-matic
1227 -
1228 -MY_PV=${PV/_/}
1229 -MY_P="${PN}-${MY_PV}"
1230 -
1231 -DESCRIPTION="Library bits of the samba network filesystem"
1232 -HOMEPAGE="http://www.samba.org/"
1233 -SRC_URI="mirror://samba/stable/${P}.tar.gz
1234 - https://dev.gentoo.org/~dagger/files/smb_traffic_analyzer_v2.diff.bz2"
1235 -LICENSE="GPL-3"
1236 -SLOT="0"
1237 -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ~ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd"
1238 -IUSE="acl addns ads +aio avahi caps +client cluster debug doc examples fam
1239 - ldap ldb +netapi pam quota +readline selinux +server +smbclient smbsharemodes smbtav2
1240 - swat syslog winbind"
1241 -
1242 -DEPEND="dev-libs/popt
1243 - !net-fs/samba-client
1244 - !net-fs/samba-libs
1245 - !net-fs/samba-server
1246 - !net-fs/cifs-utils
1247 - sys-libs/talloc
1248 - sys-libs/tdb
1249 - virtual/libiconv
1250 - ads? ( virtual/krb5 sys-fs/e2fsprogs
1251 - client? ( sys-apps/keyutils ) )
1252 - avahi? ( net-dns/avahi[dbus] )
1253 - caps? ( sys-libs/libcap )
1254 - client? ( !net-fs/mount-cifs
1255 - dev-libs/iniparser:0 )
1256 - cluster? ( >=dev-db/ctdb-1.0.114_p1 )
1257 - fam? ( virtual/fam )
1258 - ldap? ( net-nds/openldap )
1259 - pam? ( virtual/pam
1260 - winbind? ( dev-libs/iniparser:0 )
1261 - )
1262 - readline? ( >=sys-libs/readline-5.2 )
1263 - selinux? ( sec-policy/selinux-samba )
1264 - syslog? ( virtual/logger )"
1265 -
1266 -RDEPEND="${DEPEND}"
1267 -
1268 -# Disable tests since we don't want to build that much here
1269 -RESTRICT="test"
1270 -
1271 -SBINPROGS=""
1272 -BINPROGS=""
1273 -KRBPLUGIN=""
1274 -PLUGINEXT=".so"
1275 -SHAREDMODS=""
1276 -
1277 -S="${WORKDIR}/${MY_P}/source3"
1278 -
1279 -# TODO:
1280 -# - enable iPrint on Prefix/OSX and Darwin?
1281 -# - selftest-prefix? selftest?
1282 -# - AFS?
1283 -
1284 -CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"
1285 -
1286 -REQUIRED_USE="
1287 - ads? ( ldap )
1288 - swat? ( server )
1289 -"
1290 -
1291 -pkg_setup() {
1292 - if use server ; then
1293 - SBINPROGS="${SBINPROGS} bin/smbd bin/nmbd"
1294 - BINPROGS="${BINPROGS} bin/testparm bin/smbstatus bin/smbcontrol bin/pdbedit
1295 - bin/profiles bin/sharesec bin/eventlogadm"
1296 -
1297 - use smbtav2 && BINPROGS="${BINPROGS} bin/smbta-util"
1298 - use swat && SBINPROGS="${SBINPROGS} bin/swat"
1299 - use winbind && SBINPROGS="${SBINPROGS} bin/winbindd"
1300 - use ads && use winbind && KRBPLUGIN="${KRBPLUGIN} bin/winbind_krb5_locator"
1301 - fi
1302 -
1303 - if use client ; then
1304 - BINPROGS="${BINPROGS} bin/smbclient bin/net bin/smbget bin/smbtree
1305 - bin/nmblookup bin/smbpasswd bin/rpcclient bin/smbcacls bin/smbcquotas
1306 - bin/ntlm_auth"
1307 -
1308 - use ads && SBINPROGS="${SBINPROGS} bin/cifs.upcall"
1309 - fi
1310 -
1311 - use ldb && BINPROGS="${BINPROGS} bin/ldbedit bin/ldbsearch bin/ldbadd bin/ldbdel bin/ldbmodify bin/ldbrename";
1312 -
1313 - if use winbind ; then
1314 - BINPROGS="${BINPROGS} bin/wbinfo"
1315 - SHAREDMODS="${SHAREDMODS}idmap_rid,idmap_hash"
1316 - use ads && SHAREDMODS="${SHAREDMODS},idmap_ad"
1317 - use ldap && SHAREDMODS="${SHAREDMODS},idmap_ldap,idmap_adex"
1318 - fi
1319 -
1320 - if use winbind &&
1321 - [[ $(tc-getCC)$ == *gcc* ]] &&
1322 - [[ $(gcc-major-version)$(gcc-minor-version) -lt 43 ]]
1323 - then
1324 - eerror "It is a known issue that ${P} will not build with "
1325 - eerror "winbind use flag enabled when using gcc < 4.3 ."
1326 - eerror "Please use at least the latest stable gcc version."
1327 - die "Using sys-devel/gcc < 4.3 with winbind use flag."
1328 - fi
1329 -}
1330 -
1331 -src_prepare() {
1332 - cp "${FILESDIR}/samba-3.4.2-lib.tevent.python.mk" "../lib/tevent/python.mk"
1333 -
1334 - # ensure that winbind has correct ldflags (QA notice)
1335 - sed -i \
1336 - -e 's|LDSHFLAGS="|LDSHFLAGS="\\${LDFLAGS} |g' \
1337 - configure || die "sed failed"
1338 -
1339 - epatch "${CONFDIR}"/${PN}-3.5.6-kerberos-dummy.patch
1340 - use smbtav2 && cd "${WORKDIR}/${P}" && epatch "${WORKDIR}"/smb_traffic_analyzer_v2.diff
1341 - cd "${WORKDIR}/${MY_P}" && epatch "${CONFDIR}"/${PN}-3.5.8-uclib-build.patch
1342 - epatch "${CONFDIR}"/smb.conf.default.patch
1343 -}
1344 -
1345 -src_configure() {
1346 - local myconf
1347 -
1348 - # Filter out -fPIE
1349 - [[ ${CHOST} == *-*bsd* ]] && myconf+=" --disable-pie"
1350 -
1351 - #Allowing alpha/s390/sh to build
1352 - if use alpha || use s390 || use sh; then
1353 - replace-flags -O? -O1
1354 - fi
1355 -
1356 - # Upstream refuses to make this configurable
1357 - use caps && export ac_cv_header_sys_capability_h=yes || export ac_cv_header_sys_capability_h=no
1358 -
1359 - # use_with doesn't accept 2 USE-flags
1360 - if use client && use ads ; then
1361 - myconf+=" --with-cifsupcall"
1362 - else
1363 - myconf+=" --without-cifsupcall"
1364 - fi
1365 -
1366 - if use client && use kernel_linux ; then
1367 - myconf+=" --with-cifsmount --with-cifsumount"
1368 - else
1369 - myconf+=" --without-cifsmount --without-cifsumount"
1370 - fi
1371 -
1372 - #bug #399141 wrap newer iniparser version
1373 - has_version ">=dev-libs/iniparser-3.0.0:0" && \
1374 - export CPPFLAGS+=" -Diniparser_getstr\(d,i\)=iniparser_getstring\(d,i,NULL\)"
1375 -
1376 - # Notes:
1377 - # - automount is only needed in conjunction with NIS and we don't have that
1378 - # anymore => LDAP?
1379 - # - --without-dce-dfs and --without-nisplus-home can't be passed to configure but are disabled by default
1380 - econf ${myconf} \
1381 - --with-piddir=/var/run/samba \
1382 - --sysconfdir=/etc/samba \
1383 - --localstatedir=/var \
1384 - $(use_enable debug developer) \
1385 - --enable-largefile \
1386 - --enable-socket-wrapper \
1387 - --enable-nss-wrapper \
1388 - $(use_enable swat) \
1389 - --disable-cups \
1390 - --disable-iprint \
1391 - $(use_enable fam) \
1392 - --enable-shared-libs \
1393 - --disable-dnssd \
1394 - $(use_enable avahi) \
1395 - --with-fhs \
1396 - --with-privatedir=/var/lib/samba/private \
1397 - --with-rootsbindir=/var/cache/samba \
1398 - --with-lockdir=/var/cache/samba \
1399 - --with-swatdir=/usr/share/doc/${PF}/swat \
1400 - --with-configdir=/etc/samba \
1401 - --with-logfilebase=/var/log/samba \
1402 - --with-pammodulesdir=$(getpam_mod_dir) \
1403 - --without-afs \
1404 - --without-fake-kaserver \
1405 - --without-vfs-afsacl \
1406 - $(use_with ldap) \
1407 - $(use_with ads) \
1408 - $(use_with ads krb5 /usr) \
1409 - $(use_with ads dnsupdate) \
1410 - --without-automount \
1411 - $(use_with pam) \
1412 - $(use_with pam pam_smbpass) \
1413 - $(use_with syslog) \
1414 - $(use_with quota quotas) \
1415 - $(use_with quota sys-quotas) \
1416 - --without-utmp \
1417 - --without-lib{talloc,tdb} \
1418 - $(use_with netapi libnetapi) \
1419 - $(use_with smbclient libsmbclient) \
1420 - $(use_with smbsharemodes libsmbsharemodes) \
1421 - $(use_with addns libaddns) \
1422 - $(use_with cluster ctdb /usr) \
1423 - $(use_with cluster cluster-support) \
1424 - $(use_with acl acl-support) \
1425 - $(use_with aio aio-support) \
1426 - --with-sendfile-support \
1427 - $(use_with winbind) \
1428 - --with-shared-modules=${SHAREDMODS} \
1429 - --without-included-popt \
1430 - --without-included-iniparser
1431 -}
1432 -
1433 -src_compile() {
1434 - # compile libs
1435 - if use addns ; then
1436 - einfo "make addns library"
1437 - emake libaddns
1438 - fi
1439 - if use netapi ; then
1440 - einfo "make netapi library"
1441 - emake libnetapi
1442 - fi
1443 - if use smbclient ; then
1444 - einfo "make smbclient library"
1445 - emake libsmbclient
1446 - fi
1447 - if use smbsharemodes ; then
1448 - einfo "make smbsharemodes library"
1449 - emake libsmbsharemodes
1450 - fi
1451 -
1452 - # compile modules
1453 - emake modules
1454 -
1455 - # compile pam moudles
1456 - if use pam ; then
1457 - einfo "make pam modules"
1458 - emake pam_modules
1459 - fi
1460 -
1461 - # compile winbind nss modules
1462 - if use winbind ; then
1463 - einfo "make nss modules"
1464 - emake nss_modules
1465 - fi
1466 -
1467 - # compile utilities
1468 - if [ -n "${BINPROGS}" ] ; then
1469 - einfo "make binprogs"
1470 - emake ${BINPROGS}
1471 - fi
1472 - if [ -n "${SBINPROGS}" ] ; then
1473 - einfo "make sbinprogs"
1474 - emake ${SBINPROGS}
1475 - fi
1476 -
1477 - if [ -n "${KRBPLUGIN}" ] ; then
1478 - einfo "make krbplugin"
1479 - emake ${KRBPLUGIN}${PLUGINEXT}
1480 - fi
1481 -
1482 - if use client && use kernel_linux; then
1483 - einfo "make {,u}mount.cifs"
1484 - emake bin/{,u}mount.cifs
1485 - fi
1486 -}
1487 -
1488 -src_install() {
1489 - # install libs
1490 - if use addns ; then
1491 - einfo "install addns library"
1492 - emake installlibaddns DESTDIR="${D}"
1493 - fi
1494 - if use netapi ; then
1495 - einfo "install netapi library"
1496 - emake installlibnetapi DESTDIR="${D}"
1497 - fi
1498 - if use smbclient ; then
1499 - einfo "install smbclient library"
1500 - emake installlibsmbclient DESTDIR="${D}"
1501 - fi
1502 - if use smbsharemodes ; then
1503 - einfo "install smbsharemodes library"
1504 - emake installlibsmbsharemodes DESTDIR="${D}"
1505 - fi
1506 -
1507 - # install modules
1508 - emake installmodules DESTDIR="${D}"
1509 -
1510 - if use pam ; then
1511 - einfo "install pam modules"
1512 - emake installpammodules DESTDIR="${D}"
1513 -
1514 - if use winbind ; then
1515 - newpamd "${CONFDIR}/system-auth-winbind.pam" system-auth-winbind
1516 - doman ../docs/manpages/pam_winbind.8
1517 - # bug #376853
1518 - insinto /etc/security
1519 - doins ../examples/pam_winbind/pam_winbind.conf || die
1520 - fi
1521 -
1522 - newpamd "${CONFDIR}/samba.pam" samba
1523 - dodoc pam_smbpass/README
1524 - fi
1525 -
1526 - # Nsswitch extensions. Make link for wins and winbind resolvers
1527 - if use winbind ; then
1528 - einfo "install libwbclient"
1529 - emake installlibwbclient DESTDIR="${D}"
1530 - dolib.so ../nsswitch/libnss_wins.so
1531 - dosym libnss_wins.so /usr/$(get_libdir)/libnss_wins.so.2
1532 - dolib.so ../nsswitch/libnss_winbind.so
1533 - dosym libnss_winbind.so /usr/$(get_libdir)/libnss_winbind.so.2
1534 - einfo "install libwbclient related manpages"
1535 - doman ../docs/manpages/idmap_rid.8
1536 - doman ../docs/manpages/idmap_hash.8
1537 - if use ldap ; then
1538 - doman ../docs/manpages/idmap_adex.8
1539 - doman ../docs/manpages/idmap_ldap.8
1540 - fi
1541 - if use ads ; then
1542 - doman ../docs/manpages/idmap_ad.8
1543 - fi
1544 - fi
1545 -
1546 - # install binaries
1547 - insinto /usr
1548 - for prog in ${SBINPROGS} ; do
1549 - dosbin ${prog}
1550 - doman ../docs/manpages/${prog/bin\/}*
1551 - done
1552 -
1553 - for prog in ${BINPROGS} ; do
1554 - dobin ${prog}
1555 - doman ../docs/manpages/${prog/bin\/}*
1556 - done
1557 -
1558 - # install krbplugin
1559 - if [ -n "${KRBPLUGIN}" ] ; then
1560 - if has_version app-crypt/mit-krb5 ; then
1561 - insinto /usr/$(get_libdir)/krb5/plugins/libkrb5
1562 - doins ${KRBPLUGIN}${PLUGINEXT}
1563 - elif has_version app-crypt/heimdal ; then
1564 - insinto /usr/$(get_libdir)/plugin/krb5
1565 - doins ${KRBPLUGIN}${PLUGINEXT}
1566 - fi
1567 - insinto /usr
1568 - for prog in ${KRBPLUGIN} ; do
1569 - doman ../docs/manpages/${prog/bin\/}*
1570 - done
1571 - fi
1572 -
1573 - # install server components
1574 - if use server ; then
1575 - doman ../docs/manpages/vfs* ../docs/manpages/samba.7
1576 -
1577 - diropts -m0700
1578 - keepdir /var/lib/samba/private
1579 -
1580 - diropts -m1777
1581 - keepdir /var/spool/samba
1582 -
1583 - diropts -m0755
1584 - keepdir /var/{cache,log}/samba
1585 - keepdir /var/lib/samba/{netlogon,profiles}
1586 - keepdir /var/lib/samba/printers/{W32X86,WIN40,W32ALPHA,W32MIPS,W32PPC,X64,IA64,COLOR}
1587 - keepdir /usr/$(get_libdir)/samba/{auth,pdb,rpc,idmap,nss_info,gpext}
1588 -
1589 - newconfd "${CONFDIR}/samba.confd" samba
1590 - newinitd "${CONFDIR}/samba.initd" samba
1591 -
1592 - insinto /etc/samba
1593 - doins "${CONFDIR}"/{smbusers,lmhosts}
1594 -
1595 - if use ldap ; then
1596 - insinto /etc/openldap/schema
1597 - doins ../examples/LDAP/samba.schema
1598 - fi
1599 -
1600 - if use swat ; then
1601 - insinto /etc/xinetd.d
1602 - newins "${CONFDIR}/swat.xinetd" swat
1603 - script/installswat.sh "${D}" "${ROOT}/usr/share/doc/${PF}/swat" "${S}"
1604 - fi
1605 -
1606 - dodoc ../MAINTAINERS ../README* ../Roadmap ../WHATSNEW.txt ../docs/THANKS
1607 - fi
1608 -
1609 - # install client files ({u,}mount.cifs into /)
1610 - if use client && use kernel_linux ; then
1611 - into /
1612 - dosbin bin/{u,}mount.cifs
1613 - doman ../docs/manpages/{u,}mount.cifs.8
1614 - fi
1615 -
1616 - # install misc files
1617 - insinto /etc/samba
1618 - doins ../examples/smb.conf.default
1619 - doman ../docs/manpages/smb.conf.5
1620 -
1621 - insinto /usr/"$(get_libdir)"/samba
1622 - doins ../codepages/{valid.dat,upcase.dat,lowcase.dat}
1623 -
1624 - # install docs
1625 - if use doc ; then
1626 - dohtml -r ../docs/htmldocs/*
1627 - dodoc ../docs/*.pdf
1628 - fi
1629 -
1630 - # install examples
1631 - if use examples ; then
1632 - insinto /usr/share/doc/${PF}/examples
1633 -
1634 - if use smbclient ; then
1635 - doins -r ../examples/libsmbclient
1636 - fi
1637 -
1638 - if use winbind ; then
1639 - doins -r ../examples/pam_winbind ../examples/nss
1640 - fi
1641 -
1642 - if use server ; then
1643 - cd ../examples
1644 - doins -r auth autofs dce-dfs LDAP logon misc pdb \
1645 - perfcounter printer-accounting printing scripts tridge \
1646 - validchars VFS
1647 - fi
1648 - fi
1649 -
1650 - # Remove empty installation directories
1651 - rmdir --ignore-fail-on-non-empty \
1652 - "${D}/usr/$(get_libdir)/samba" \
1653 - "${D}/usr"/{sbin,bin} \
1654 - "${D}/usr/share"/{man,locale,} \
1655 - "${D}/var"/{run,lib/samba/private,lib/samba,lib,cache/samba,cache,} \
1656 - # || die "tried to remove non-empty dirs, this seems like a bug in the ebuild"
1657 -}
1658 -
1659 -pkg_postinst() {
1660 - elog "The default value of 'wide links' has been changed to 'no' in samba 3.5"
1661 - elog "to avoid an insecure default configuration"
1662 - elog "('wide links = yes' and 'unix extensions = yes'). For more details,"
1663 - elog "please see http://www.samba.org/samba/news/symlink_attack.html ."
1664 - elog ""
1665 - elog "An EXPERIMENTAL implementation of the SMB2 protocol has been added."
1666 - elog "SMB2 can be enabled by setting 'max protocol = smb2'. SMB2 is a new "
1667 - elog "implementation of the SMB protocol used by Windows Vista and higher"
1668 - elog ""
1669 - elog "For further information make sure to read the release notes at"
1670 - elog "http://samba.org/samba/history/${P}.html and "
1671 - elog "http://samba.org/samba/history/${PN}-3.5.0.html"
1672 -}
1673
1674 diff --git a/profiles/package.mask b/profiles/package.mask
1675 index 0c1cc10..0fd8a15 100644
1676 --- a/profiles/package.mask
1677 +++ b/profiles/package.mask
1678 @@ -747,12 +747,6 @@ app-eselect/eselect-lua
1679 # Security mask of vulnerable versions, wrt bug #424167
1680 <net-nds/openldap-2.4.35
1681
1682 -# Lars Wendler <polynomial-c@g.o> (14 Mar 2014)
1683 -# Masked for security reasons.
1684 -# Do NOT remove this mask or the affected packages without speaking to
1685 -# bonsaikitten first! You have been warned!
1686 -<net-fs/samba-3.6
1687 -
1688 # Mike Gilbert <floppym@g.o> (04 Mar 2014)
1689 # Dev channel releases are only for people who are developers or want more
1690 # experimental features and accept a more unstable release.