Applied Buchan Milne's patches.
[nivanova/samba-autobuild/.git] / packaging / Mandrake / samba2.spec.tmpl
1 %define pkg_name samba
2 %define ver 2.2.5
3 %define rel 17mdk
4 %define vscanver 0.2.5c
5
6 # Determine whether this is the system samba or not.
7 %define build_system    0
8 %if %build_system
9 %define samba_major     %{null}
10 %else
11 %define samba_major     3
12 %global _iconsdir       %{_datadir}/icons/
13 %global _miconsdir      %{_datadir}/icons/mini
14 %global _liconsdir      %{_datadir}/icons/large
15 %global _menudir        %{_libdir}/menu
16 #%%%%global __prefix            /opt/samba%{samba_major}
17
18 %global _mandir         %{_datadir}/man
19 %endif
20
21 # 2.2.4 and 1 replace by samba-team at release
22 %define pversion PVERSION
23 %define prelease PRELEASE
24 # For testing this setup:
25 #%define pversion1 2.2.5
26 #%define prelease1 %(date +%Y%m%d)
27
28 #Check to see if p(version|release) has been replaced (1 if replaced)
29 %define have_pversion %(if [ "%pversion" = `echo "pversion" |tr '[:lower:]' '[:upper:]'` ];then echo 0; else echo 1; fi)
30 %define have_prelease %(if [ "%prelease" = `echo "prelease" |tr '[:lower:]' '[:upper:]'` ];then echo 0; else echo 1; fi)
31
32 # We might have a prerelease:
33 %define have_pre %(echo %pversion|awk '{p=0} /[a-z,A-Z][a-z,A-Z]/ {p=1} {print p}')
34 %if %have_pre
35 %define pre_ver %(perl -e '$name="%pversion"; print ($name =~ /(.*?)[a-z]/);')
36 %define pre_pre %(echo %pversion|sed -e 's/%pre_ver//g')
37 %endif
38
39
40 # Check to see if we are running a build from a tarball release from samba.org
41 # (%have_pversion) If so, disable vscan, unless explicitly requested
42 # (--with vscan).
43 %define build_vscan 1
44 %if %have_pversion
45 %define build_vscan 0
46 %{?_with_vscan: %define build_vscan 1}
47 %endif
48
49 # We now do detection of the Mandrake release we are building on:
50 #%define build_cooker %(if [ `awk '{print $3}' /etc/mandrake-release` = "Cooker" ];then echo 1; else echo 0; fi)
51 #%define build_cooker %(if [[ `cat /etc/mandrake-release|grep Cooker` ]];then echo 1; else echo 0; fi)
52 %define build_mdk91 %(if [ `awk '{print $4}' /etc/mandrake-release` = 9.1 ];then echo 1; else echo 0; fi)
53 %define build_mdk90 %(if [ `awk '{print $4}' /etc/mandrake-release` = 9.0 ];then echo 1; else echo 0; fi)
54 %define build_mdk83 %(if [ `awk '{print $4}' /etc/mandrake-release` = 8.3 ];then echo 1; else echo 0; fi)
55 %define build_mdk82 %(if [ `awk '{print $4}' /etc/mandrake-release` = 8.2 ];then echo 1; else echo 0; fi)
56 %define build_mdk81 %(if [ `awk '{print $4}' /etc/mandrake-release` = 8.1 ];then echo 1; else echo 0; fi)
57 %define build_mdk80 %(if [ `awk '{print $4}' /etc/mandrake-release` = 8.0 ];then echo 1; else echo 0; fi)
58 %define build_mdk72 %(if [ `awk '{print $4}' /etc/mandrake-release` = 7.2 ];then echo 1; else echo 0; fi)
59 %define build_non_default 0
60
61 # Default options
62 %define build_acl       1
63 %define build_winbind   1
64 %define build_wins      1
65 %define build_ldap      1
66 %define build_ads       1
67
68 # Set defaults for each version
69 %if %build_mdk91
70 %endif
71
72 %if %build_mdk90
73 %endif
74
75 %if %build_mdk83
76 %endif
77
78 %if %build_mdk82
79 %endif
80
81 %if %build_mdk81
82 %define build_winbind   0
83 %define build_wins      0
84 %endif
85
86 %if %build_mdk80
87 %define build_acl       0
88 %define build_winbind   0
89 %define build_wins      0
90 %endif
91
92 %if %build_mdk72
93 %define build_acl       0
94 %define build_winbind   0
95 %define build_wins      0
96 %endif
97
98 # Allow commandline option overrides (borrowed from Vince's qmail srpm):
99 # To use it, do rpm [-ba|--rebuild] --with 'xxx'
100 # Check if the rpm was built with the defaults, otherwise we inform the user
101 %define build_non_default 0
102 %{?_with_acl: %{expand: %%define build_acl 1}}
103 %{?_with_acl: %{expand: %%define build_non_default 1}}
104 %{?_without_acl: %{expand: %%define build_acl 0}}
105 %{?_without_acl: %{expand: %%define build_non_default 1}}
106 %{?_with_winbind: %{expand: %%global build_winbind 1}}
107 %{?_with_winbind: %{expand: %%define build_non_default 1}}
108 %{?_without_winbind: %{expand: %%define build_winbind 0}}
109 %{?_without_winbind: %{expand: %%define build_non_default 1}}
110 %{?_with_wins: %{expand: %%global build_wins 1}}
111 %{?_with_wins: %{expand: %%define build_non_default 1}}
112 %{?_without_wins: %{expand: %%global build_wins 0}}
113 %{?_without_wins: %{expand: %%define build_non_default 1}}
114 %{?_with_ldap: %{expand: %%global build_ldap 1}}
115 %{?_with_ldap: %{expand: %%define build_non_default 1}}
116 %{?_without_ldap: %{expand: %%global build_ldap 0}}
117 %{?_without_ldap: %{expand: %%define build_non_default 1}}
118 %{?_with_ads: %{expand: %%define build_ads 1}}
119 %{?_with_ads: %{expand: %%define build_non_default 1}}
120 %{?_without_ads: %{expand: %%define build_ads 0}}
121 %{?_without_ads: %{expand: %%define build_non_default 1}}
122
123 # As if that weren't enough, we're going to try building with antivirus
124 # support as an option also
125 %define build_fprot 0
126 %define build_kaspersky 0
127 %define build_mks 0
128 %define build_openantivirus 0
129 %define build_sophos 0
130 %define build_symantec 0
131 %define build_trend 0
132 %if %build_vscan
133 %{?_with_fprot: %{expand: %%global build_fprot 1}}
134 %{?_with_kaspersky: %{expand: %%global build_kaspersky 1}}
135 %{?_with_mks: %{expand: %%global build_mks 1}}
136 %{?_with_openav: %{expand: %%global build_openantivirus 1}}
137 %{?_with_sophos: %{expand: %%global build_sophos 1}}
138 %{?_with_symantec: %{expand: %%global build_symantec 1}}
139 %{?_with_trend: %{expand: %%global build_trend 1}}
140 %define vscandir "samba-vscan-%{vscanver}"
141 %endif
142 %define vfsdir "examples.bin/VFS"
143
144 #Workaround missing macros in 8.x:
145 %{!?perl_vendorlib: %{expand: %%global perl_vendorlib %{perl_sitearch}/../}}
146
147 Summary: Samba SMB server.
148 Name: %{pkg_name}%{samba_major}
149 %if %have_pversion && %have_pre
150 Version: %{pre_ver}
151 %define source_ver %{pversion}
152 %endif
153 %if %have_pversion && !%have_pre
154 Version: %{pversion}
155 %define source_ver %{pversion}
156 %endif
157 %if !%have_pversion
158 Version: %{ver}
159 %define source_ver %{ver}
160 %endif
161 %if %have_prelease && !%have_pre
162 Release: 1.%{prelease}mdk
163 %endif
164 %if %have_prelease && %have_pre
165 Release: 0.%{pre_pre}.%{prelease}mdk
166 %endif
167 %if !%have_prelease
168 Release: %{rel}
169 %endif
170 License: GPL
171 Group: System/Servers
172 Source: ftp://samba.org/pub/samba/samba-%{source_ver}.tar.bz2
173 URL:    http://www.samba.org
174 Source1: samba.log
175 Source3: samba.xinetd
176 Source4: swat_48.xpm.bz2
177 Source5: swat_32.xpm.bz2
178 Source6: swat_16.xpm.bz2
179 Source7: README.%{name}-mandrake-rpm
180 %if %build_vscan
181 Source8: samba-vscan-%{vscanver}.tar.bz2
182 %endif
183 Source10: samba-print-pdf.sh.bz2
184 Patch1: smbw.patch.bz2
185 Patch5: samba-2.2.0-gawk.patch.bz2
186 Patch12: samba-2.2.0-buildroot.patch.bz2
187 Patch17: samba-3.0-smbmount-sbin.patch.bz2
188 Requires: pam >= 0.64, samba-common = %{version}
189 BuildRequires: pam-devel autoconf readline-devel
190 %if %build_acl
191 BuildRequires: libacl-devel
192 %endif
193 %if %build_mdk72
194 BuildRequires: cups-devel
195 %else
196 BuildRequires: libcups-devel
197 %endif
198 %if %build_ldap
199 BuildRequires: libldap-devel
200 %endif
201 %if %build_ads
202 BuildRequires: libldap-devel krb5-devel
203 %endif
204 BuildRoot: %{_tmppath}/%{name}-root
205 Prefix: /usr
206 Prereq: /sbin/chkconfig /bin/mktemp /usr/bin/killall
207 Prereq: fileutils sed /bin/grep
208
209 %description
210 Samba provides an SMB server which can be used to provide
211 network services to SMB (sometimes called "Lan Manager")
212 clients, including various versions of MS Windows, OS/2,
213 and other Linux machines. Samba also provides some SMB
214 clients, which complement the built-in SMB filesystem
215 in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols
216 and does NOT need NetBEUI (Microsoft Raw NetBIOS frame)
217 protocol.
218
219 Samba-3.0 features working NT Domain Control capability and
220 includes the SWAT (Samba Web Administration Tool) that
221 allows samba's smb.conf file to be remotely managed using your
222 favourite web browser. For the time being this is being
223 enabled on TCP port 901 via xinetd. SWAT is now included in
224 it's own subpackage, samba-swat.
225
226 Please refer to the WHATSNEW.txt document for fixup information.
227 This binary release includes encrypted password support.
228
229 Please read the smb.conf file and ENCRYPTION.txt in the
230 docs directory for implementation details.
231
232 %if !%build_system
233 NOTE: This is a prerelease of samba-%{samba_major}, not intended
234 for production use. If something breaks, file a bug report.
235 %endif
236
237 %if %build_non_default
238 WARNING: This RPM was built with command-line options. Please
239 see README.%{name}-mandrake-rpm in the documentation for
240 more information.
241 %endif
242
243 %package server
244 URL:    http://www.samba.org
245 Summary: Samba (SMB) server programs.
246 Requires: %{name}-common = %{version}
247 Group: Networking/Other
248 Provides: samba
249 Obsoletes: samba
250 %if %build_system
251 Obsoletes: samba-server-ldap
252 Obsoletes: samba3-server
253 %else
254 Provides: samba-server
255 %endif
256
257 %description server
258 Samba-server provides a SMB server which can be used to provide
259 network services to SMB (sometimes called "Lan Manager")
260 clients. Samba uses NetBIOS over TCP/IP (NetBT) protocols
261 and does NOT need NetBEUI (Microsoft Raw NetBIOS frame)
262 protocol.
263
264 Samba-3.0 features working NT Domain Control capability and
265 includes the SWAT (Samba Web Administration Tool) that
266 allows samba's smb.conf file to be remotely managed using your
267 favourite web browser. For the time being this is being
268 enabled on TCP port 901 via xinetd. SWAT is now included in
269 it's own subpackage, samba-swat.
270
271 Please refer to the WHATSNEW.txt document for fixup information.
272 This binary release includes encrypted password support.
273
274 Please read the smb.conf file and ENCRYPTION.txt in the
275 docs directory for implementation details.
276
277 %if %build_ldap
278 This package was compiled with LDAP support, which means that 
279 passwords can be stored in LDAP or in smbpasswd files.
280 To migrate your passwords from smbpasswd into LDAP, try
281 examples/LDAP/import_smbpasswd.pl using:
282 %{_datadir}/%{name}/scripts/import_smbpasswd.pl </etc/%{name}/smbpasswd
283
284 Scripts for managing users in LDAP have been added to 
285 %{_datadir}/%{name}/scripts, configuration is in /etc/%{name}/smbldap_conf.pm
286 %endif
287
288 %if !%build_system
289 NOTE: This is a prerelease of samba-%{samba_major}, not intended
290 for production use. If something breaks, file a bug report.
291 %endif
292
293 %package client
294 URL:    http://www.samba.org
295 Summary: Samba (SMB) client programs.
296 Group: Networking/Other
297 Requires: %{name}-common = %{version}
298 Obsoletes: smbfs
299 %if %build_system
300 Obsoletes: samba3-client
301 %else
302 Provides: samba-client
303 %endif
304
305 %description client
306 Samba-client provides some SMB clients, which complement the built-in
307 SMB filesystem in Linux. These allow the accessing of SMB shares, and
308 printing to SMB printers.
309
310 %if !%build_system
311 NOTE: This is a prerelease of samba-%{samba_major}, not intended
312 for production use. If something breaks, file a bug report.
313 %endif
314
315 %package common
316 URL:    http://www.samba.org
317 Summary: Files used by both Samba servers and clients.
318 Group: System/Servers
319 %if %build_system
320 Obsoletes: samba-common-ldap
321 Obsoletes: samba3-common
322 %else
323 Provides: samba-common
324 %endif
325
326 %description common
327 Samba-common provides files necessary for both the server and client
328 packages of Samba.
329
330 %if !%build_system
331 NOTE: This is a prerelease of samba-%{samba_major}, not intended
332 for production use. If something breaks, file a bug report.
333 %endif
334
335 %package doc
336 URL:    http://www.samba.org
337 Summary: Documentation for Samba servers and clients.
338 Group: System/Servers
339 Requires: %{name}-common = %{version}
340 %if %build_system
341 Obsoletes: samba3-doc
342 %else
343 Provides: samba-doc
344 %endif
345
346 %description doc
347 Samba-doc provides documentation files for both the server and client
348 packages of Samba.
349
350 %if !%build_system
351 NOTE: This is a prerelease of samba-%{samba_major}, not intended
352 for production use. If something breaks, file a bug report.
353 %endif
354
355 %package swat
356 URL:    http://www.samba.org
357 Summary: The Samba Web Administration Tool.
358 Requires: %{name}-server = %{version}
359 Requires: xinetd
360 Group: System/Servers
361 %if %build_system
362 Obsoletes: samba-swat-ldap
363 Obsoletes: samba3-swat
364 %else
365 Provides: samba-swat
366 %endif
367
368 %description swat
369 SWAT (the Samba Web Administration Tool) allows samba's smb.conf file
370 to be remotely managed using your favourite web browser. For the time
371 being this is being enabled on TCP port 901 via xinetd. Note that
372 SWAT does not use SSL encryption, nor does it preserve comments in
373 your smb.conf file. Webmin uses SSL encryption by default, and
374 preserves comments in configuration files, even if it does not display
375 them, and is therefore the preferred method for remotely managing
376 Samba.
377
378 %if !%build_system
379 NOTE: This is a prerelease of samba-%{samba_major}, not intended
380 for production use. If something breaks, file a bug report.
381 %endif
382
383 %if %build_winbind
384 %package winbind
385 URL:    http://www.samba.org
386 Summary: Samba-winbind daemon, utilities and documentation
387 Group: System/Servers
388 Requires: %{name}-common = %{version}
389 %description winbind
390 Provides the winbind daemon and testing tools to allow authentication 
391 and group/user enumeration from a Windows or Samba domain controller.
392 %endif
393
394 %if !%build_system
395 NOTE: This is a prerelease of samba-%{samba_major}, not intended
396 for production use. If something breaks, file a bug report.
397 %endif
398
399 %if %build_wins
400 %package -n nss_wins%{samba_major}
401 URL:    http://www.samba.org
402 Summary: Name Service Switch service for WINS
403 Group: System/Servers
404 Requires: %{name}-common = %{version}
405 PreReq: glibc
406 %description -n nss_wins%{samba_major}
407 Provides the libnss_wins shared library which resolves NetBIOS names to 
408 IP addresses.
409 %endif
410
411 %if !%build_system
412 NOTE: This is a prerelease of samba-%{samba_major}, not intended
413 for production use. If something breaks, file a bug report.
414 %endif
415
416 #Antivirus packages:
417 %if %build_fprot
418 %package vscan-fprot
419 Summary: On-access virus scanning for samba using FPROT
420 Group: System/Servers
421 Requires: %{name}-server = %{version}
422 Autoreq: 0
423 %description vscan-fprot
424 A vfs-module for samba to implement on-access scanning using the
425 FPROT antivirus software (which must be installed to use this).
426 %endif
427
428 %if %build_kaspersky
429 %package vscan-kaspersky
430 Summary: On-access virus scanning for samba using Kaspersky
431 Group: System/Servers
432 Requires: %{name}-server = %{version}
433 Autoreq: 0
434 %description vscan-kaspersky
435 A vfs-module for samba to implement on-access scanning using the
436 Kaspersky antivirus software (which must be installed to use this).
437 %endif
438
439 %if %build_mks
440 %package vscan-mks
441 Summary: On-access virus scanning for samba using MKS
442 Group: System/Servers
443 Requires: %{name}-server = %{version}
444 Autoreq: 0
445 %description vscan-mks
446 A vfs-module for samba to implement on-access scanning using the
447 MKS antivirus software (which must be installed to use this).
448 %endif
449
450 %if %build_openantivirus
451 %package vscan-openantivirus
452 Summary: On-access virus scanning for samba using OpenAntivirus
453 Group: System/Servers
454 Requires: %{name}-server = %{version}
455 Autoreq: 0
456 %description vscan-openantivirus
457 A vfs-module for samba to implement on-access scanning using the
458 OpenAntivirus antivirus software (which must be installed to use this).
459 %endif
460
461 %if %build_sophos
462 %package vscan-sophos
463 Summary: On-access virus scanning for samba using Sophos
464 Group: System/Servers
465 Requires: %{name}-server = %{version}
466 Autoreq: 0
467 %description vscan-sophos
468 A vfs-module for samba to implement on-access scanning using the
469 Sophos antivirus software (which must be installed to use this).
470 %endif
471
472 %if %build_symantec
473 %package vscan-symantec
474 Summary: On-access virus scanning for samba using Symantec
475 Group: System/Servers
476 Requires: %{name}-server = %{version}
477 Autoreq: 0
478 %description vscan-symantec
479 A vfs-module for samba to implement on-access scanning using the
480 Symantec antivirus software (which must be installed to use this).
481 %endif
482
483 %if %build_trend
484 %package vscan-trend
485 Summary: On-access virus scanning for samba using Trend
486 Group: System/Servers
487 Requires: %{name}-server = %{version}
488 Autoreq: 0
489 %description vscan-trend
490 A vfs-module for samba to implement on-access scanning using the
491 Trend antivirus software (which must be installed to use this).
492 %endif
493
494 %prep
495 # Build a summary of how this RPM was built:
496 %if %build_acl
497 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --with acl"
498 %else
499 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --without acl"
500 %endif
501 %if %build_winbind
502 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --with winbind"
503 %else
504 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --without winbind"
505 %endif
506 %if %build_wins
507 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --with wins"
508 %else
509 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --without wins"
510 %endif
511 %if %build_ldap
512 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --with ldap"
513 %else
514 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --without ldap"
515 %endif 
516 %if %build_ads
517 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --with ads"
518 %else
519 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --without ads"
520 %endif
521
522 %if %build_non_default
523 echo "Building a non-default rpm with the following command-line arguments:"
524 echo "$RPM_EXTRA_OPTIONS"
525 echo "This rpm was built with non-default options, thus, to build ">%{SOURCE7}
526 echo "an identical rpm, you need to supply the following options">>%{SOURCE7}
527 echo "at build time: $RPM_EXTRA_OPTIONS">>%{SOURCE7}
528 echo -e "\n%{name}-%{version}-%{release}\n">>%{SOURCE7}
529 %else 
530 echo "This rpm was built with default options">%{SOURCE7}
531 echo -e "\n%{name}-%{version}-%{release}\n">>%{SOURCE7}
532 %endif
533
534 %if %build_vscan
535 %setup -q -a 8 -n %{pkg_name}-%{source_ver}
536 %else
537 %setup -q -n %{pkg_name}-%{source_ver}
538 %endif
539 %patch1 -p1 -b .smbw
540 %patch5 -p1 -b .gawk
541 %patch12 -p1 -b .buildroot
542 %patch17 -p1 -b .sbin
543 cp %{SOURCE7} .
544
545 # Make a copy of examples so that we have a clean one for doc:
546 cp -a examples examples.bin
547
548 %if %build_vscan
549 # put antivirus files in examples.bin/VFS/
550 for av in fprot kaspersky mks openantivirus sophos symantec trend; do
551         cp -a %{vscandir}/$av %{vfsdir}
552 done
553 %endif
554
555 # Edit some files when not building system samba:
556 %if !%build_system
557 perl -pi -e 's/%{pkg_name}/%{name}/g' source/auth/pampass.c
558 %endif
559
560 %build
561 #%serverbuild
562 (cd source
563 autoconf
564 CPPFLAGS="-I/usr/include/openssl"; export CPPFLAGS
565 CFLAGS="$RPM_OPT_FLAGS"
566 %configure      --prefix=%{_prefix} \
567                 --with-fhs \
568                 --libdir=/etc/%{name} \
569                 --sysconfdir=/etc/%{name} \
570                 --localstatedir=/var \
571                 --with-configdir=/etc/%{name} \
572                 --with-codepagedir=/var/lib/%{name}/codepages \
573                 --with-privatedir=/etc/%{name} \
574                 --with-swatdir=%{_datadir}/swat%{samba_major} \
575                 --with-smbmount \
576                 --with-syslog \
577                 --with-automount \
578                 --with-pam \
579                 --with-vfs \
580                 --with-utmp \
581                 --with-msdfs \
582                 --with-smbwrapper \
583                 --with-manpages-langs=en        \
584                 --with-logfilebase=/var/log/%{name} \
585                 --with-lockdir=/var/cache/%{name} \
586                 --with-piddir=/var/run/%{name} \
587 %if !%build_system
588                 --program-suffix=%{samba_major} \
589 %endif          
590 %if %build_acl
591                 --with-acl-support      \
592 %endif
593 %if !%build_ldap
594                 --with-ldap=no          \
595 %endif
596 %if !%build_ads
597                 --with-ads=no   \
598 %endif
599                 --with-quotas
600 #                --with-pam_smbpass \
601 #               --with-manpages-langs=en,ja,pl  \
602
603 #make CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" all
604 make CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" \
605         all smbfilter smbwrapper smbcacls pam_smbpass nsswitch nsswitch/libnss_wins.so debug2html
606 # Build VFS modules (experimental)
607 cd ../%vfsdir
608 %configure      --prefix=%{prefix} \
609                 --mandir=%{prefix}/share/man
610 make
611 #make CFLAGS="$RPM_OPT_FLAGS -I../../source -I../../source/include -I../../source/ubiqx \
612 #       -I../../source/smbwrapper -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"
613 )
614
615 # Build mkntpasswd in examples/LDAP/ for smbldaptools
616 (
617 cd examples.bin/LDAP/smbldap-tools/mkntpwd
618 make
619 )
620
621 # Build antivirus vfs objects:
622 %if %build_fprot
623 echo "Building fprot"
624 %endif
625 %if %build_kaspersky
626 echo "Building Kaspersky"
627 (cd %{vfsdir}/kaspersky;make)
628 %endif
629 %if %build_mks
630 echo "Building mks"
631 (cd %{vfsdir}/mks;make)
632 %endif
633 %if %build_openantivirus
634 echo "Building OpenAntivirus"
635 (cd %{vfsdir}/openantivirus;make)
636 %endif
637 %if %build_sophos
638 echo "building sophos"
639 (cd %{vfsdir}/sophos;make)
640 %endif
641 %if %build_symantec
642 echo "Building symantec"
643 (cd %{vfsdir}/symantec;make)
644 %endif
645 %if %build_trend
646 echo "Building Trend"
647 (cd %{vfsdir}/trend;make)
648 %endif
649
650 %install
651 rm -rf $RPM_BUILD_ROOT
652 mkdir -p $RPM_BUILD_ROOT
653
654 # Any entries here mean samba makefile is *really* broken:
655 mkdir -p $RPM_BUILD_ROOT/etc/%{name}
656 mkdir -p $RPM_BUILD_ROOT/%{_datadir}
657
658 (cd source
659 make DESTDIR=$RPM_BUILD_ROOT install)
660
661 #need to stay
662 mkdir -p $RPM_BUILD_ROOT/sbin
663 mkdir -p $RPM_BUILD_ROOT/etc/{logrotate.d,pam.d,xinetd.d}
664 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
665 mkdir -p $RPM_BUILD_ROOT/var/cache/%{name}
666 mkdir -p $RPM_BUILD_ROOT/var/log/%{name}
667 mkdir -p $RPM_BUILD_ROOT/var/run/%{name}
668 mkdir -p $RPM_BUILD_ROOT/var/spool/%{name}
669 mkdir -p $RPM_BUILD_ROOT/var/lib/%{name}/{netlogon,profiles,printers}
670 mkdir -p $RPM_BUILD_ROOT/var/lib/%{name}/printers/{W32X86,WIN40,W32ALPHA,W32MIPS,W32PPC}
671 mkdir -p $RPM_BUILD_ROOT/var/lib/%{name}/codepages/src
672 mkdir -p $RPM_BUILD_ROOT/lib/security
673 mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib
674 mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{name}/vfs
675 mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/scripts
676
677 #smbwrapper and pam_winbind not handled by make, pam_smbpass.so doesn't build
678 install -m 755 source/bin/smbwrapper.so $RPM_BUILD_ROOT%{_libdir}/smbwrapper%{samba_major}.so
679 #install -m 755 source/bin/pam_smbpass.so $RPM_BUILD_ROOT/lib/security/pam_smbpass.so
680 install -m 755 source/nsswitch/pam_winbind.so $RPM_BUILD_ROOT/lib/security/pam_winbind%{samba_major}.so
681
682 # Install VFS modules
683 #install -m755 %vfsdir/audit.so $RPM_BUILD_ROOT/%{_libdir}/samba/vfs
684 #for i in block recycle
685 #do
686 # install -m755 %vfsdir/$i/$i.so $RPM_BUILD_ROOT/%{_libdir}/samba/vfs
687 #done
688
689 # Antivirus support:
690 #       mkdir -p $RPM_BUILD_ROOT%{_libdir}/samba/vfs/vscan
691         for av in fprotd kavp mksd oav sophos symantec trend; do
692                 if [ -d %{vfsdir}/$av -a -e %{vfsdir}/$av/vscan-$av.so ];then
693                         cp %{vfsdir}/$av/vscan-$av.so \
694                                 $RPM_BUILD_ROOT%{_libdir}/samba/vfs/
695                 fi
696         done
697         
698 #These scripts are not handled by make:
699 #for i in addtosmbpass mksmbpasswd.sh smbtar convert_smbpasswd
700 for i in addtosmbpass mksmbpasswd.sh convert_smbpasswd
701 do
702   install -m755 source/script/$i $RPM_BUILD_ROOT/%{_bindir}
703 done
704
705 #libnss_* not handled by make:
706 # Install the nsswitch library extension file
707 for i in wins winbind; do
708   install -m755 source/nsswitch/libnss_${i}.so $RPM_BUILD_ROOT/lib/libnss_${i}%{samba_major}.so
709 done
710 # Make link for wins and winbind resolvers
711 ( cd $RPM_BUILD_ROOT/lib; ln -s libnss_wins%{samba_major}.so libnss_wins%{samba_major}.so.2; ln -s libnss_winbind%{samba_major}.so libnss_winbind%{samba_major}.so.2)
712
713 # Install other stuff
714
715 #        install -m644 examples/VFS/recycle/recycle.conf $RPM_BUILD_ROOT/etc/samba/
716         install -m644 packaging/Mandrake/smb.conf $RPM_BUILD_ROOT/etc/%{name}/smb.conf
717         install -m644 packaging/Mandrake/smbusers $RPM_BUILD_ROOT/etc/%{name}/smbusers
718         install -m755 packaging/Mandrake/smbprint $RPM_BUILD_ROOT/%{_bindir}
719         #install -m755 packaging/RedHat/smbadduser $RPM_BUILD_ROOT/usr/bin
720         install -m755 packaging/Mandrake/findsmb $RPM_BUILD_ROOT/%{_bindir}
721         install -m755 packaging/Mandrake/smb.init $RPM_BUILD_ROOT/etc/rc.d/init.d/smb%{samba_major}
722         install -m755 packaging/Mandrake/smb.init $RPM_BUILD_ROOT/%{_sbindir}/%{name}
723         install -m755 packaging/Mandrake/winbind.init $RPM_BUILD_ROOT/etc/rc.d/init.d/winbind%{samba_major}
724         install -m755 packaging/Mandrake/winbind.init $RPM_BUILD_ROOT/%{_sbindir}/winbind%{samba_major}
725         install -m644 packaging/Mandrake/samba.pamd $RPM_BUILD_ROOT/etc/pam.d/%{name}
726         install -m644 packaging/Mandrake/system-auth-winbind.pamd $RPM_BUILD_ROOT/etc/pam.d/system-auth-winbind%{samba_major}
727 #
728         install -m644 $RPM_SOURCE_DIR/samba.log $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
729 #       install -m644 packaging/Mandrake/samba-slapd-include.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/samba-slapd.include
730
731 # Install smbldap-tools scripts:
732 #for i in examples/LDAP/smbldap-tools/*.pl; do
733 #       install -m 750 $i $RPM_BUILD_ROOT/%{_datadir}/%{name}/scripts/
734 #done
735
736 #install -m 750 examples/LDAP/smbldap-tools/smbldap_tools.pm $RPM_BUILD_ROOT/%{_datadir}/%{name}/scripts/
737
738 # The conf file 
739 #install -m 640 examples/LDAP/smbldap-tools/smbldap_conf.pm $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}
740
741 # Link both smbldap*.pm into vendor-perl (any better ideas?)
742 #mkdir -p %{buildroot}/%{perl_vendorlib}
743 #ln -s %{_sysconfdir}/%{name}/smbldap_conf.pm $RPM_BUILD_ROOT/%{perl_vendorlib}
744 #ln -s %{_datadir}/%{name}/scripts/smbldap_tools.pm $RPM_BUILD_ROOT/%{perl_vendorlib}
745
746 #mkntpwd
747 #install -m750 examples.bin/LDAP/smbldap-tools/mkntpwd/mkntpwd %{buildroot}/%{_sbindir}
748
749 # Samba smbpasswd migration script:
750 install -m700 examples/LDAP/export_smbpasswd.pl $RPM_BUILD_ROOT/%{_datadir}/%{name}/scripts/
751 install -m700 examples/LDAP/import_smbpasswd.pl $RPM_BUILD_ROOT/%{_datadir}/%{name}/scripts/
752
753
754
755 # make a conf file for winbind from the default one:
756         cat packaging/Mandrake/smb.conf|sed -e  's/^;  winbind/  winbind/g;s/^;  obey pam/  obey pam/g; s/^;   printer admin = @"D/   printer admin = @"D/g;s/^;   password server = \*/   password server = \*/g;s/^;  template/  template/g; s/^   security = user/   security = domain/g' > packaging/Mandrake/smb-winbind.conf
757         install -m644 packaging/Mandrake/smb-winbind.conf $RPM_BUILD_ROOT/etc/%{name}/smb-winbind.conf
758
759 # Link smbmount to /sbin/mount.smb and /sbin/mount.smbfs
760 #I don't think it's possible for make to do this ...
761         ln -s $RPM_BUILD_ROOT/%{_bindir}/smbmount%{samba_major} $RPM_BUILD_ROOT/sbin/mount.smb%{samba_major}
762         ln -s $RPM_BUILD_ROOT/%{_bindir}/smbmount%{samba_major} $RPM_BUILD_ROOT/sbin/mount.smbfs%{samba_major}
763         echo 127.0.0.1 localhost > $RPM_BUILD_ROOT/etc/%{name}/lmhosts
764
765 # Link smbspool to CUPS (does not require installed CUPS)
766
767         mkdir -p $RPM_BUILD_ROOT/%{_libdir}/cups/backend
768         ln -s %{_bindir}/smbspool $RPM_BUILD_ROOT/%{_libdir}/cups/backend/smb%{samba_major}
769
770 # xinetd support
771
772         mkdir -p $RPM_BUILD_ROOT/etc/xinetd.d
773         install -m644 %{SOURCE3} $RPM_BUILD_ROOT/etc/xinetd.d/swat%{samba_major}
774
775 # menu support
776
777 mkdir -p $RPM_BUILD_ROOT%{_menudir}
778 cat > $RPM_BUILD_ROOT%{_menudir}/%{name} << EOF
779 ?package(%{name}):command="gnome-moz-remote http://localhost:901/" needs="gnome" \
780 icon="swat%{samba_major}.xpm" section="Configuration/Networking" title="Samba Configuration" \
781 longtitle="The Swat Samba Administration Tool"
782 ?package(%{name}):command="sh -c '\$BROWSER http://localhost:901/'" needs="x11" \
783 icon="swat%{samba_major}.xpm" section="Configuration/Networking" title="Samba Configuration" \
784 longtitle="The Swat Samba Administration Tool"
785 EOF
786
787 mkdir -p $RPM_BUILD_ROOT%{_liconsdir} $RPM_BUILD_ROOT%{_iconsdir} $RPM_BUILD_ROOT%{_miconsdir}
788
789 bzcat %{SOURCE4} > $RPM_BUILD_ROOT%{_liconsdir}/swat%{samba_major}.xpm
790 bzcat %{SOURCE5} > $RPM_BUILD_ROOT%{_iconsdir}/swat%{samba_major}.xpm
791 bzcat %{SOURCE6} > $RPM_BUILD_ROOT%{_miconsdir}/swat%{samba_major}.xpm
792
793 bzcat %{SOURCE10}> $RPM_BUILD_ROOT%{_datadir}/%{name}/scripts/print-pdf
794
795 # Fix configs when not building system samba:
796 %if !%build_system
797 # Work around non-existent but claimed --program-suffix support :-(
798 for dir in %{_sbindir} %{_bindir};do
799     FILES=`find %{buildroot}$dir -type f |grep -v "\."|grep -v %{samba_major}$`
800     for OLD in $FILES; do
801         NEW=`echo ${OLD}%{samba_major}`
802         mv $OLD $NEW
803     done
804 done
805 # And the man pages too:
806 FILES=`find %{buildroot}%{_mandir} -type f `
807 for OLD in $FILES; do
808     BASE=`perl -e '$name="'${OLD}'"; print "",($name =~ /(.*?)\.[0-9]/), "\n";'`
809     EXT=`echo $OLD|sed -e 's,'${BASE}',,g'`
810     NEW=`echo ${BASE}%{samba_major}${EXT}`
811     mv $OLD $NEW
812 done            
813 # Replace paths in config files and init scripts:
814 for i in smb winbind;do
815         perl -pi -e 's,/subsys/'$i',/subsys/'$i'%{samba_major},g' $RPM_BUILD_ROOT/etc/rc.d/init.d/${i}%{samba_major}
816 done
817 for i in /etc/%{name}/smb.conf /etc/rc.d/init.d/smb%{samba_major} %{_sbindir}/%{name} /etc/rc.d/init.d/winbind%{samba_major} %{_sbindir}/winbind%{samba_major} /etc/logrotate.d/%{name} /etc/xinetd.d/swat%{samba_major}; do
818         perl -pi -e 's,/%{pkg_name},/%{name},g; s,smbd,%{_sbindir}/smbd%{samba_major},g; s,nmbd,%{_sbindir}/nmbd%{samba_major},g; s,winbindd,%{_sbindir}/winbindd%{samba_major},g; s,/usr/sbin/swat,%{_sbindir}/swat%{samba_major},g' $RPM_BUILD_ROOT/$i;
819 done
820 # Fix pam files
821 perl -pi -e 's/winbind/winbind%{samba_major}/g' $RPM_BUILD_ROOT/etc/pam.d/system-auth-winbind%{samba_major}
822 # Fix xinetd file for swat:
823 perl -pi -e 's,/usr/sbin,%{_sbindir},g' $RPM_BUILD_ROOT/etc/xinetd.d/swat%{samba_major}
824 %endif
825
826 %clean
827 rm -rf $RPM_BUILD_ROOT
828
829 %post server
830
831 /sbin/chkconfig --level 35 smb%{samba_major} on
832
833 # Add a unix group for samba machine accounts
834 groupadd -frg 421 machines
835
836 # Migrate tdb's from /var/lock/samba (taken from official samba spec file):
837 for i in /var/lock/samba/*.tdb
838 do
839 if [ -f $i ]; then
840         newname=`echo $i | sed -e's|var\/lock\/samba|var\/cache\/samba|'`
841         echo "Moving $i to $newname"
842         mv $i $newname
843 fi
844 done
845
846 # Remove the transient tdb files (modified from version in off. samba spec:
847 for TDB in brlock unexpected locking messages; do
848         if [ -e /var/cache/%{name}/$TDB.tdb ]; then
849                 rm -f /var/cache/%{name}/$TDB.tdb;
850         fi;
851 done
852
853 if [ -d /var/lock/samba ]; then
854         rm -rf /var/lock/samba
855 fi
856
857 %post common
858 # Basic migration script for pre-2.2.1 users,
859 # since smb config moved from /etc to /etc/samba
860
861 # Let's create a proper /etc/samba/smbpasswd file
862 [ -f /etc/%{name}/smbpasswd ] || {
863         echo "Creating password file for samba..."
864         touch /etc/%{name}/smbpasswd
865 }
866
867 # And this too, in case we don't have smbd to create it for us
868 [ -f /var/cache/%{name}/unexpected.tdb ] || {
869         touch /var/cache/%{name}/unexpected.tdb
870 }
871
872 # Let's define the proper paths for config files
873 perl -pi -e 's/(\/etc\/)(smb)/\1%{name}\/\2/' /etc/%{name}/smb.conf
874
875 # Fix the logrotate.d file from smb and nmb to smbd and nmbd
876 if [ -f /etc/logrotate.d/samba ]; then
877         perl -pi -e 's/smb /smbd /' /etc/logrotate.d/samba
878         perl -pi -e 's/nmb /nmbd /' /etc/logrotate.d/samba
879 fi
880
881 # And not loose our machine account SID
882 [ -f /etc/MACHINE.SID ] && mv -f /etc/MACHINE.SID /etc/%{name}/ ||:
883
884 %if %build_winbind
885 %post winbind
886 if [ $1 = 1 ]; then
887     /sbin/chkconfig winbind%{samba_major} on
888     cp -af /etc/nsswitch.conf /etc/nsswitch.conf.rpmsave
889     cp -af /etc/nsswitch.conf /etc/nsswitch.conf.rpmtemp
890     for i in passwd group;do
891         grep ^$i /etc/nsswitch.conf |grep -v 'winbind%{samba_major}' >/dev/null
892         if [ $? = 0 ];then
893             echo "Adding a winbind%{samba_major} entry to the $i section of /etc/nsswitch.conf"
894             awk '/^'$i'/ {print $0 " winbind%{samba_major}"};!/^'$i'/ {print}' /etc/nsswitch.conf.rpmtemp >/etc/nsswitch.conf;
895             cp -af /etc/nsswitch.conf /etc/nsswitch.conf.rpmtemp
896         else
897             echo "$i entry found in /etc/nsswitch.conf"
898         fi
899     done
900     if [ -f /etc/nsswitch.conf.rpmtemp ];then rm -f /etc/nsswitch.conf.rpmtemp;fi
901 fi
902
903 %preun winbind
904 if [ $1 = 0 ]; then
905         echo "Removing winbind%{samba_major} entries from /etc/nsswitch.conf"
906         perl -pi -e 's/ winbind%{samba_major}//' /etc/nsswitch.conf
907
908         /sbin/chkconfig winbind%{samba_major} reset
909 fi
910 %endif %build_winbind
911
912 %if %build_wins
913 %post -n nss_wins%{samba_major}
914 if [ $1 = 1 ]; then
915     cp -af /etc/nsswitch.conf /etc/nsswitch.conf.rpmsave
916     grep '^hosts' /etc/nsswitch.conf |grep -v 'wins%{samba_major}' >/dev/null
917     if [ $? = 0 ];then
918         echo "Adding a wins entry to the hosts section of /etc/nsswitch.conf"
919         awk '/^hosts/ {print $0 " wins%{samba_major}"};!/^hosts/ {print}' /etc/nsswitch.conf.rpmsave >/etc/nsswitch.conf;
920     else
921         echo "wins entry found in /etc/nsswitch.conf"
922     fi
923 #    else
924 #        echo "Upgrade, leaving nsswitch.conf intact"
925 fi
926
927 %preun -n nss_wins%{samba_major}
928 if [ $1 = 0 ]; then
929         echo "Removing wins entry from /etc/nsswitch.conf"
930         perl -pi -e 's/ wins%{samba_major}//' /etc/nsswitch.conf
931 #else
932 #       echo "Leaving /etc/nsswitch.conf intact"
933 fi
934 %endif %build_wins
935
936 %preun
937
938 /sbin/chkconfig --level 35 smb%{samba_major} reset
939
940 if [ $1 = 0 ] ; then
941 %_preun_service smb%{samba_major}
942 #    /sbin/chkconfig --level 35 smb reset
943 # Let's not loose /var/cache/samba
944
945 #    for i in browse.dat wins.dat brlock.tdb unexpected.tdb connections.tdb \
946 #locking.tdb messages.tdb;do
947 #        if [ -e /var/cache/samba/$i ]; then
948 #                mv -f /var/cache/samba/$i /var/cache/samba/$i.BAK
949 #        fi;
950 #    done
951     if [ -d /var/log/%{name} ]; then
952       rm -rf /var/log/%{name}/*
953     fi
954     if [ -d /var/cache/%{name} ]; then
955       mv -f /var/cache/%{name} /var/cache/%{name}.BAK
956     fi
957 fi
958
959 %post swat
960 if [ -f /var/lock/subsys/xinetd ]; then
961         service xinetd reload >/dev/null 2>&1 || :
962 fi
963 %update_menus
964
965 %postun swat
966
967 # Remove swat entry from xinetd
968 if [ $1 = 0 -a -f /etc/xinetd.conf ] ; then
969 rm -f /etc/xinetd.d/swat%{samba_major}
970         service xinetd reload &>/dev/null || :
971 fi
972
973 if [ "$1" = "0" -a -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi
974
975 %clean_menus
976
977 %triggerpostun -- samba < 1.9.18p7
978
979 if [ $1 != 0 ]; then
980     /sbin/chkconfig --level 35 smb on
981 fi
982
983 %triggerpostun -- samba < 2.0.5a-3, samba >= 2.0.0
984
985 if [ $1 != 0 ]; then
986         [ ! -d /var/lock/samba ] && mkdir -m 0755 /var/lock/samba ||:
987         [ ! -d /var/spool/samba ] && mkdir -m 1777 /var/spool/samba ||:
988         [ -f /etc/inetd.conf ] && chmod 644 /etc/services /etc/inetd.conf ||:
989 fi
990
991 %files server
992 %defattr(-,root,root)
993 #%attr(-,root,root) /sbin/*
994 %{_sbindir}/%{name}
995 %{_sbindir}/smbd%{samba_major}
996 %{_sbindir}/nmbd%{samba_major}
997 #%{_sbindir}/smbcontrol
998 #%{_sbindir}/mkntpwd
999 #%{prefix}/bin/addtosmbpass
1000 %{_bindir}/mksmbpasswd.sh
1001 %{_bindir}/smbstatus%{samba_major}
1002 %{_bindir}/convert_smbpasswd%{samba_major}
1003 %{_bindir}/pdbedit%{samba_major}
1004 %{_bindir}/smbgroupedit%{samba_major}
1005 #%attr(755,root,root) /lib/security/pam_smbpass*
1006 #/usr/share/swat
1007 %attr(-,root,root) %config(noreplace) /etc/%{name}/smbusers
1008 %attr(-,root,root) %config /etc/rc.d/init.d/smb%{samba_major}
1009 %attr(-,root,root) %config(noreplace) /etc/logrotate.d/%{name}
1010 %attr(-,root,root) %config(noreplace) /etc/pam.d/%{name}
1011 #%attr(-,root,root) %config(noreplace) /etc/%{name}/samba-slapd.include
1012 %{_mandir}/man1/smbstatus*.1*
1013 %{_mandir}/man5/smbpasswd*.5*
1014 %{_mandir}/man7/samba*.7*
1015 %{_mandir}/man8/smbd*.8*
1016 %{_mandir}/man8/nmbd*.8*
1017 %{_mandir}/man1/smbcontrol*.1*
1018 %{_mandir}/man5/lmhosts*.5*
1019 %{_mandir}/man5/smb.conf*.5*
1020 %attr(775,root,root) %dir /var/lib/%{name}/netlogon
1021 %attr(775,root,root) %dir /var/lib/%{name}/profiles
1022 %attr(775,root,root) %dir /var/lib/%{name}/printers/*
1023 %dir /var/cache/%{name}
1024 %dir /var/log/%{name}
1025 %attr(1777,root,root) %dir /var/spool/%{name}
1026 %dir %{_datadir}/%{name}/scripts
1027 %attr(0755,root,root) %{_datadir}/%{name}/scripts/print-pdf
1028 #%attr(0750,root,root) %{_datadir}/%{name}/scripts/smbldap*.pl
1029 #%attr(0640,root,root) %config(noreplace) %{_sysconfdir}/%{name}/smbldap_conf.pm
1030 #%attr(0644,root,root) %{_datadir}/%{name}/scripts/smbldap_tools.pm
1031 #%{perl_vendorlib}/*.pm
1032 %attr(0700,root,root) %{_datadir}/%{name}/scripts/*port_smbpasswd.pl
1033
1034
1035 %files doc
1036 %defattr(-,root,root)
1037 %doc README COPYING Manifest Read-Manifest-Now
1038 %doc WHATSNEW.txt Roadmap
1039 %doc README.%{name}-mandrake-rpm
1040 %doc docs
1041 %doc examples
1042 %doc swat/README
1043 %attr(-,root,root) %{_datadir}/swat%{samba_major}/using_samba/*
1044
1045 %files swat
1046 %defattr(-,root,root)
1047 %config(noreplace) /etc/xinetd.d/swat%{samba_major}
1048 #%attr(-,root,root) /sbin/*
1049 %{_sbindir}/swat%{samba_major}
1050 %{_menudir}/%{name}
1051 %{_miconsdir}/*.xpm
1052 %{_liconsdir}/*.xpm
1053 %{_iconsdir}/*.xpm
1054 %attr(-,root,root) %{_datadir}/swat%{samba_major}/help/*
1055 %attr(-,root,root) %{_datadir}/swat%{samba_major}/images/*
1056 %attr(-,root,root) %{_datadir}/swat%{samba_major}/include/*
1057 %{_mandir}/man8/swat*.8*
1058
1059 %files client
1060 %defattr(-,root,root)
1061 %ifnarch alpha
1062 /sbin/mount.smb%{samba_major}
1063 /sbin/mount.smbfs%{samba_major}
1064 %attr(755,root,root) %{_bindir}/smbmount%{samba_major}
1065 %attr(4755,root,root) %{_bindir}/smbumount%{samba_major}
1066 #%attr(4755,root,root) %{_sbindir}/smbmnt
1067 %{_mandir}/man8/smbmnt*.8*
1068 %{_mandir}/man8/smbmount*.8*
1069 %{_mandir}/man8/smbumount*.8*
1070 %endif
1071 %{_bindir}/nmblookup%{samba_major}
1072 %{_bindir}/findsmb%{samba_major}
1073 %{_bindir}/smbclient%{samba_major}
1074 %{_bindir}/smbprint%{samba_major}
1075 %{_bindir}/smbtar%{samba_major}
1076 %{_bindir}/smbspool%{samba_major}
1077 # Link of smbspool to CUPS
1078 /%{_libdir}/cups/backend/smb%{samba_major}
1079 /%{_mandir}/man1/nmblookup*.1*
1080 /%{_mandir}/man1/findsmb*.1*
1081 /%{_mandir}/man1/smbclient*.1*
1082 /%{_mandir}/man1/smbtar*.1*
1083
1084 %files common
1085 %defattr(-,root,root)
1086 %dir /var/cache/%{name}
1087 %dir /var/log/%{name}
1088 %dir /var/run/%{name}
1089 %{_bindir}/testparm%{samba_major}
1090 %{_bindir}/testprns%{samba_major}
1091 %{_bindir}/rpcclient%{samba_major}
1092 %{_bindir}/smbsh%{samba_major}
1093 %{_bindir}/smbpasswd%{samba_major}
1094 %{_bindir}/net%{samba_major}
1095 %{_bindir}/smbtree%{samba_major}
1096 %{_libdir}/smbwrapper%{samba_major}.so
1097 %attr(-,root,root) %config(noreplace) /etc/%{name}/smb.conf
1098 %attr(-,root,root) %config(noreplace) /etc/%{name}/smb-winbind.conf
1099 %attr(-,root,root) %config(noreplace) /etc/%{name}/lmhosts
1100 %attr(-,root,root) /var/lib/%{name}/codepages
1101 %{_mandir}/man1/testparm*.1*
1102 %{_mandir}/man1/smbsh*.1*
1103 %{_mandir}/man1/testprns*.1*
1104 %{_mandir}/man5/smb.conf*.5*
1105 %{_mandir}/man5/lmhosts*.5*
1106 %{_mandir}/man8/smbpasswd*.8*
1107 /%{_mandir}/man1/smbcacls*.1*
1108
1109 %if %build_winbind
1110 %files winbind
1111 %defattr(-,root,root)
1112 %{_sbindir}/winbindd%{samba_major}
1113 %{_bindir}/wbinfo%{samba_major}
1114 %attr(755,root,root) /lib/security/pam_winbind*
1115 %attr(755,root,root) /lib/libnss_winbind%{samba_major}*
1116 %attr(-,root,root) %config /etc/rc.d/init.d/winbind%{samba_major}
1117 %attr(-,root,root) %config(noreplace) /etc/pam.d/system-auth-winbind*
1118 %{_mandir}/man8/winbindd*.8*
1119 %{_mandir}/man1/wbinfo*.1*
1120 %endif
1121
1122 %if %build_wins
1123 %files -n nss_wins%{samba_major}
1124 %defattr(-,root,root)
1125 %attr(755,root,root) /lib/libnss_wins%{samba_major}.so*
1126 %endif
1127
1128 #Files for antivirus support:
1129 %if %build_fprot
1130 %files vscan-fprot
1131 %defattr(-,root,root)
1132 %{_libdir}/%{name}/vfs/vscan-fprotd.so
1133 %doc examples.bin/VFS/fprot/INSTALL
1134 %endif
1135
1136 %if %build_kaspersky
1137 %files vscan-kaspersky
1138 %defattr(-,root,root)
1139 %{_libdir}/%{name}/vfs/vscan-kavp.so
1140 %doc examples.bin/VFS/kaspersky/INSTALL
1141 %endif
1142
1143 %if %build_mks
1144 %files vscan-mks
1145 %defattr(-,root,root)
1146 %{_libdir}/%{name}/vfs/vscan-mksd.so
1147 %doc examples.bin/VFS/mks/INSTALL
1148 %endif
1149
1150 %if %build_openantivirus
1151 %files vscan-openantivirus
1152 %defattr(-,root,root)
1153 %{_libdir}/%{name}/vfs/vscan-oav.so
1154 %doc examples.bin/VFS/openantivirus/INSTALL
1155 %endif
1156
1157 %if %build_sophos
1158 %files vscan-sophos
1159 %defattr(-,root,root)
1160 %{_libdir}/%{name}/vfs/vscan-sophos.so
1161 %doc examples.bin/VFS/sophos/INSTALL
1162 %endif
1163
1164 %if %build_symantec
1165 %files vscan-symantec
1166 %defattr(-,root,root)
1167 %{_libdir}/%{name}/vfs/vscan-symantec.so
1168 %doc examples.bin/VFS/symantec/INSTALL
1169 %endif
1170
1171 %if %build_trend
1172 %files vscan-trend
1173 %defattr(-,root,root)
1174 %{_libdir}/%{name}/vfs/vscan-trend.so
1175 %doc examples.bin/VFS/trend/INSTALL
1176 %endif
1177
1178 %changelog
1179 * Mon Oct 28 2002 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha20.3mdk
1180 - Fix mount.smbfs3 pointing to smbmount not in package
1181 - Remove unnecessary lines from install (now done by make)
1182 - Build with ldap and ads on all releases by default
1183 - Put av-stuff back
1184
1185 * Mon Oct 21 2002 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha20.2mdk
1186 - When not building as system samba, avoid conflicting with system samba
1187 - Macro-ize as much as possible for above (aka finish cleanups)
1188 - Fix paths in init scripts and logrotate and xinetd
1189 - Fix provides and obsoletes so as to provide samba, but not obsolete
1190   current stable until we have a stable release (when it's the system samba).
1191 - Add warnings to descriptions when not system samba.
1192 - This is now parallel installable with the normal samba release, for easy
1193   testing. It shouldn't touch existing installations. Of course, only
1194   one samba at a time on the same interface!
1195
1196 * Sat Sep 28 2002 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha20.1mdk
1197 - Merge with 2.2.6pre2.2mdk
1198 - Detect alpha- and beta-, along with pre-releases
1199
1200 * Tue Feb 05 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha14-0.1mdk
1201 - Sync with 2.2.3-2mdk (new --without options, detect when 
1202   building for a different distribution.
1203
1204 * Mon Feb 04 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha14-0.0mdk
1205 - Sync with 2.2.2-10mdk, which added build-time options --with ldap,
1206   winbind, acl, wins, mdk72, mdk80, mdk81, mdk82, cooker. Added
1207   warning in description if built with these options.
1208
1209 * Wed Jan 23 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha13-0.2mdk
1210 - Added %%if's for build_ads, which hopefully will add Active Directory
1211   Support (by request).
1212
1213 * Thu Jan 17 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha13-0.1mdk
1214 - More syncing with 2.2 rpm (post and postun scripts)
1215 - Testing without ldap
1216
1217 * Thu Jan 17 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha13-0.0mdk
1218 - 3.0-alpha13
1219 - Fixed installman.sh patch.
1220
1221 * Wed Jan 09 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha12-0.1mdk
1222 - Fixed %post and %preun for nss_wins, added %post and %preun for
1223   samba-winbind (chkconfig and winbind entries in nsswitch.conf)
1224
1225 * Sun Dec 23 2001 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha12-0.0mdk
1226 - 3.0-alpha12
1227 - Sync up with changes made in 2.2.2 to support Mandrake 8.0, 7.2
1228 - Added new subpackage for swat
1229 - More %if's for ldap.
1230
1231 * Thu Dec 20 2001 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha11-0.0mdk
1232 - 3.0-alpha11
1233
1234 * Wed Dec 19 2001 Buchan Milne <bgmilne@cae.co.za> 3.0alpha10-0.0mdk
1235 - 3.0-alpha10
1236
1237 * Tue Dec 18 2001 Buchan Milne <bgmilne@cae.co.za> 3.0alpha9-0.0mdk
1238 - 3.0-alpha9
1239
1240 * Mon Dec 17 2001 Buchan Milne <bgmilne@cae.co.za> 3.0alpha8-0.1mdk
1241 - Added net command to %files common, pdbedit and smbgroupedit to
1242   %files, s/%{prefix}\/bin/%{_bindir}/ (the big cleanup).
1243   Added patch to smb.init from 2.2.2 (got missed with 3.0-alpha1 patches)
1244
1245 * Sun Dec 16 2001 Buchan Milne <bgmilne@cae.co.za> 3.0alpha8-0.0mdk
1246 - Patch for installman.sh to handle lang=en correctly (p24)
1247 - added --with-manpages-langs=en,ja,pl (translated manpages), but there
1248   aren't any manpages for these languages yet ... so we still
1249   need %dir and %doc entries for them ...
1250 - patch (p25) to configure.in to support more than 2 languages.
1251 - addtosmbpass seems to have returned for now, but make_* have disappeared!
1252
1253 * Fri Dec 14 2001 Buchan Milne <bgmilne@cae.co.za> 3.0alpha6-0.0mdk
1254 - DESTDIR patch for Makefile.in (p23), remove a lot of %install scripts
1255   this forces move of smbcontrol and smbmnt to %{prefix}/bin
1256   removed --with-pam_smbpass as it doesn't compile.
1257
1258 * Thu Dec 06 2001 Buchan Milne <bgmilne@cae.co.za> 3.0-0.0alpha1mdk
1259 - Samba 3.0alpha1 released (we missed Samba 3.0alpha0!)
1260 - Redid smbmount-sbin patch and smb.conf patch (20), removed xfs quota patch 
1261   (applied upstream), removed ook-patch (codepage directory totally different).
1262 - Added winbind.init (21) and system-auth-winbind.pamd (22). Patches 20-23 
1263   should be applied upstream before 3.0 ships ...
1264
1265 * Wed Dec 05 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-6mdk
1266 - fixed typo in system-auth-winbind.pamd (--Thanks J. Gluck).
1267 - fixed %post xxx problem (smb not started in chkconfig --Thanks Viet & B. Kenworthy).
1268
1269 * Fri Nov 23 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-5mdk
1270 - Had to remove the network recycle bin patch: it seems to mess up 
1271   file deletion from windows (files appear to be "already in use")
1272
1273 * Tue Nov 13 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-4mdk
1274 - added network recycle bin patch:
1275   <http://www.amherst.edu/~bbstone/howto/samba.html>
1276 - added "recycle bin = .recycled" parameter in smb.conf [homes].
1277 - fixed winbind/nss_wins perms (oh no I don't own that stuff ;o)
1278
1279 * Mon Nov 12 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-3mdk
1280 - added %build 8.0 and 7.2, for tweakers to play around.
1281 - changed configure options:
1282   . removed --with-mmap, --with-netatalk (obsolete).
1283   . added --with-msdfs, --with-vfs (seems stable, but still need testing).
1284
1285 * Mon Nov 12 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-2mdk
1286 - rebuilt with winbind and nss_wins enabled.
1287
1288 * Wed Oct 31 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-1mdk
1289 - Rebuilt on cooker.
1290
1291 * Wed Oct 31 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.992mdk
1292 - Patch for smb.conf to fix incorrect lpq command, typo in winbind,
1293   and add sample linpopup command. Added print driver directories.
1294 - New XFS quota patch (untested!, samba runs, but do quotas work? We
1295   can't check yet since the kernel doesn't seem to support XFS quotas!)
1296
1297 * Fri Oct 19 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-0.99mdk
1298 - New samba.spec, almost ready for winbind operations. OLA for Buchan Milne
1299   Who did a tremendous integration work on 2.2.2.
1300   Rebuild on cooker, please test XFS (ACLs and quotas) again...
1301   
1302 * Mon Oct 15 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.9mdk
1303 - Samba-2.2.2. released! Use %defines to determine which subpackages
1304   are built and which Mandrake release we are buiding on/for (hint: define 
1305   build_mdk81 1 for Mandrake 8.1 updates)
1306
1307 * Sun Oct 14 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011014mdk
1308 - %post and %postun for nss_wins
1309
1310 * Wed Oct 10 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011010mdk
1311 - New CVS snapshot, /etc/pam.d/system-auth-winbind added
1312   with configuration to allow easy winbind setup.
1313   
1314 * Sun Oct 7 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011007mdk
1315 - Added new package nss_wins and moved smbpasswd to common (required by
1316   winbind).
1317
1318 * Sat Oct 6 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011006mdk
1319 - Added new package winbind.
1320
1321 * Mon Oct 1 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011001mdk
1322 - Removed patch to smb init.d file (applied in cvs)
1323
1324 * Sun Sep 30 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20010930mdk
1325 - Added winbind init script, which still needs to check for running nmbd.
1326
1327 * Thu Sep 27 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20010927mdk
1328 - Built from samba-2.2.2-pre cvs, added winbindd, wbinfo, nss_winbind and 
1329   pam_winbind, moved pam_smbpass from samba-common to samba. We still
1330   need a start-up script for winbind, or need to modify existing one.
1331   
1332 * Mon Sep 10 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-15mdk
1333 - Enabled acl support (XFS acls now supported by kernel-2.4.8-21mdk thx Chmou)
1334   Added smbd patch to support XFS quota (Nathan Scott)
1335   
1336 * Mon Sep 10 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-14mdk
1337 - Oops! smbpasswd created in wrong directory...
1338
1339 * Tue Sep 06 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-13mdk
1340 - Removed a wrong comment in smb.conf.
1341   Added creation of smbpasswd during install.
1342
1343 * Mon Aug 27 2001 Pixel <pixel@mandrakesoft.com> 2.2.1a-12mdk
1344 - really less verbose %%post
1345
1346 * Sat Aug 25 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 2.2.1a-11mdk
1347 - Fix shared libs in /usr/bin silliness.
1348
1349 * Thu Aug 23 2001 Pixel <pixel@mandrakesoft.com> 2.2.1a-10mdk
1350 - less verbose %%post
1351
1352 * Wed Aug 22 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1a-9mdk
1353 - Added smbcacls (missing in %files), modification to smb.conf: ([printers]
1354   is still needed, even with point-and-print!, user add script should
1355   use name and not gid, since we may not get the gid . New script for
1356   putting manpages in place (still need to be added in %files!). Moved
1357   smbcontrol to sbin and added it and its man page to %files.
1358
1359 * Wed Aug 22 2001 Pixel <pixel@mandrakesoft.com> 2.2.1a-8mdk
1360 - cleanup /var/lib/samba/codepage/src
1361
1362 * Tue Aug 21 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-7mdk
1363 - moved codepage generation to %install and codepage dir to /var/lib/samba
1364
1365 * Tue Aug 21 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-6mdk
1366 - /lib/* was in both samba and samba-common
1367   Introducing samba-doc: "alas, for the sake of thy modem, shalt thou remember
1368   when Samba was under the Megabyte..."
1369
1370 * Fri Aug 03 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-5mdk
1371 - Added "the gc touch" to smbinit through the use of killall -0 instead of
1372   grep cupsd | grep -v grep (too many greps :o)
1373
1374 * Wed Jul 18 2001 Stefan van der Eijk <stefan@eijk.nu> 2.2.1a-4mdk
1375 - BuildRequires: libcups-devel
1376 - Removed BuildRequires: openssl-devel
1377
1378 * Fri Jul 13 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-3mdk
1379 - replace chkconfig --add/del with --level 35 on/reset.
1380
1381 * Fri Jul 13 2001 Geoffrey Lee <snailtalk@mandrakesoft.cm> 2.2.1a-2mdk
1382 - Replace discription s/inetd/xinetd/, we all love xinetd, blah.
1383
1384 * Thu Jul 12 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1a-1mdk
1385 - Bugfix release. Fixed add user script, added print$ share and printer admin
1386   We need to test interaction of new print support with CUPS, but printer
1387   driver uploads should work.
1388
1389 * Wed Jul 11 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-17mdk
1390 - fixed smb.conf a bit, rebuilt on cooker.
1391
1392 * Tue Jul 10 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1-16mdk
1393 - Finally, samba 2.2.1 has actually been release. At least we were ready!
1394   Cleaned up smb.conf, and added some useful entries for domain controlling.
1395   Migrated changes made in samba's samba2.spec for 2.2.1  to this file.
1396   Added groupadd command in post to create a group for samba machine accounts.
1397   (We should still check the postun, samba removes pam, logs and cache)
1398
1399 * Tue Jun 26 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-15mdk
1400 - fixed smbwrapper compile options.
1401
1402 * Tue Jun 26 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-14mdk
1403 - added LFS support.
1404   added smbwrapper support (smbsh)
1405
1406 * Wed Jun 20 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-13mdk
1407 - /sbin/mount.smb and /sbin/mount.smbfs now point to the correct location
1408   of smbmount (/usr/bin/smbmount)
1409
1410 * Tue Jun 19 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-12mdk
1411 - smbmount and smbumount are now in /usr/bin and SUID.
1412   added ||: to triggerpostun son you don't get error 1 anymore when rpm -e
1413   Checked the .bz2 sources with file *: everything is OK now (I'm so stupid ;o)!
1414
1415 * Tue Jun 19 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 2.2.1-11mdk
1416 - s/Copyright/License/;
1417 - Stop Sylvester from pretending .gz source to be .bz2 source via filename
1418   aka really bzip2 the source.
1419
1420 * Mon Jun 18 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-10mdk
1421 - changed Till's startup script modifications: now samba is being reloaded
1422   automatically 1 minute after it has started (same reasons as below in 9mdk)
1423   added _post_ and _preun_ for service smb
1424   fixed creation of /var/lib/samba/{netlogon,profiles} (%dir was missing)
1425
1426 * Thu Jun 14 2001 Till Kamppeter <till@mandrakesoft.com> 2.2.1-9mdk
1427 - Modified the Samba startup script so that in case of CUPS being used as
1428   printing system Samba only starts when the CUPS daemon is ready to accept
1429   requests. Otherwise the CUPS queues would not appear as Samba shares.
1430
1431 * Mon Jun 11 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-8mdk
1432 - patched smbmount.c to have it call smbmnt in sbin (thanks Seb).
1433
1434 * Wed May 30 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-7mdk
1435 - put SWAT menu icons back in place.
1436
1437 * Mon May 28 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-6mdk
1438 - OOPS! fixed smbmount symlinks
1439
1440 * Mon May 28 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-5mdk
1441 - removed inetd postun script, replaced with xinetd.
1442   updated binary list (smbcacls...)
1443   cleaned samba.spec
1444
1445 * Mon May 28 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1-4mdk
1446 - Changed configure options to point to correct log and codepage directories,
1447   added crude script to fix logrotate file for new log file names, updated
1448   patches to work with current CVS.
1449
1450 * Thu May 24 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-3mdk
1451 - Cleaned and updated the %files section.
1452
1453 * Sat May 19 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-2mdk
1454 - Moved all samba files from /etc to /etc/samba (Thanks DomS!).
1455   Fixed fixinit patch (/etc/samba/smb.conf)
1456
1457 * Fri May 18 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1-1mdk
1458 - Now use packaging/Mandrake/smb.conf, removed unused and obsolete
1459   patches, moved netlogon and profile shares to /var/lib/samba in the
1460   smb.conf to match the spec file. Added configuration for ntlogon to
1461   smb.conf. Removed pam-foo, fixinit and makefilepath patches. Removed
1462   symlink I introduced in 2.2.0-1mdk
1463
1464 * Thu May 3 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.0-5mdk
1465 - Added more configure options. Changed Description field (thx John T).
1466
1467 * Wed Apr 25 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.0-4mdk
1468 - moved netlogon and profiles to /var/lib/samba by popular demand ;o)
1469
1470 * Tue Apr 24 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.0-3mdk
1471 - moved netlogon and profiles back to /home.
1472
1473 * Fri Apr 20 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.0-2mdk
1474 - fixed post inetd/xinetd script&
1475
1476 * Thu Apr 19 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.0-1mdk
1477 - Upgrade to 2.2.0. Merged most of 2.0.7-25mdk's patches (beware
1478   nasty "ln -sf samba-%{ver} ../samba-2.0.7" hack to force some patches
1479   to take. smbadduser and addtosmbpass seem to have disappeared. Moved
1480   all Mandrake-specific files to packaging/Mandrake and made patches
1481   from those shipped with samba. Moved netlogon to /home/samba and added
1482   /home/samba/profiles. Added winbind,smbfilter and debug2html to make command.
1483
1484 * Thu Apr 12 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 2.0.7-25mdk
1485 - Fix menu entry and provide separate menu entry for GNOME
1486   (nautilus doesn't support HTTP authentication yet)
1487 - Add icons in package
1488
1489 * Fri Mar 30 2001 Frederic Lepied <flepied@mandrakesoft.com> 2.0.7-24mdk
1490 - use new server macros
1491
1492 * Wed Mar 21 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-23mdk
1493 - check whether /etc/inetd.conf exists (upgrade) or not (fresh install).
1494
1495 * Thu Mar 15 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-22mdk
1496 - spec cosmetics, added '-r' option to lpr-cups command line so files are
1497   removed from /var/spool/samba after printing.
1498
1499 * Tue Mar 06 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-21mdk
1500 - merged last rh patches.
1501
1502 * Thu Nov 23 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-20mdk
1503 - removed dependencies on cups and cups-devel so one can install samba without using cups
1504 - added /home/netlogon
1505
1506 * Mon Nov 20 2000 Till Kamppeter <till@mandrakesoft.com> 2.0.7-19mdk
1507 - Changed default print command in /etc/smb.conf, so that the Windows
1508   driver of the printer has to be used on the client.
1509 - Fixed bug in smbspool which prevented from printing from a
1510   Linux-Samba-CUPS client to a Windows server through the guest account.
1511
1512 * Mon Oct 16 2000 Till Kamppeter <till@mandrakesoft.com> 2.0.7-18mdk
1513 - Moved "smbspool" (Samba client of CUPS) to the samba-client package
1514
1515 * Sat Oct 7 2000 Stefan van der Eijk <s.vandereijk@chello.nl> 2.0.7-17mdk
1516 - Added RedHat's "quota" patch to samba-glibc21.patch.bz2, this fixes
1517   quota related compile problems on the alpha.
1518
1519 * Wed Oct 4 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-16mdk
1520 - Fixed 'guest ok = ok' flag in smb.conf
1521
1522 * Tue Oct 3 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-15mdk
1523 - Allowed guest account to print in smb.conf
1524 - added swat icon in menu
1525
1526 * Tue Oct 3 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-14mdk
1527 - Removed rh ssl patch and --with-ssl flag: not appropriate for 7.2
1528
1529 * Tue Oct 3 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-13mdk
1530 - Changed fixinit patch.
1531 - Changed smb.conf for better CUPS configuration.
1532 - Thanks Fred for doing this ---vvv.
1533
1534 * Tue Oct  3 2000 Frederic Lepied <flepied@mandrakesoft.com> 2.0.7-12mdk
1535 - menu entry for web configuration tool.
1536 - merge with rh: xinetd + ssl + pam_stack.
1537 - Added smbadduser rh-bugfix w/o relocation of config-files.
1538
1539 * Mon Oct  2 2000 Frederic Lepied <flepied@mandrakesoft.com> 2.0.7-11mdk
1540 - added build requires on cups-devel and pam-devel.
1541
1542 * Mon Oct  2 2000 Till Kamppeter <till@mandrakesoft.com> 2.0.7-10mdk
1543 - Fixed smb.conf entry for CUPS: "printcap name = lpstat", "lpstats" was
1544   wrong.
1545
1546 * Mon Sep 25 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-9mdk
1547 - Cosmetic changes to make rpmlint more happy
1548
1549 * Wed Sep 11 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-8mdk
1550 - added linkage to the using_samba book in swat
1551
1552 * Fri Sep 01 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-7mdk
1553 - Added CUPS support to smb.conf
1554 - Added internationalization options to smb.conf [Global]
1555
1556 * Wed Aug 30 2000 Till Kamppeter <till@mandrakesoft.com> 2.0.7-6mdk
1557 - Put "smbspool" to the files to install
1558
1559 * Wed Aug 30 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-5mdk
1560 - Did some cleaning in the patches
1561
1562 * Fri Jul 28 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-4mdk
1563 - relocated man pages from /usr/man to /usr/share/man for compatibility reasons
1564
1565 * Fri Jul 28 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-3mdk
1566 - added make_unicodemap and build of unicode_map.$i in the spec file
1567
1568 * Fri Jul 28 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-2mdk
1569 - renamed /etc/codepage/codepage.$i into /etc/codepage/unicode_map.$i to fix smbmount bug.
1570
1571 * Fri Jul 07 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-1mdk
1572 - 2.0.7
1573
1574 * Wed Apr 05 2000 Francis Galiegue <fg@mandrakesoft.com> 2.0.6-4mdk
1575
1576 - Titi sucks, does not put versions in changelog
1577 - Fixed groups for -common and -client
1578 - /usr/sbin/samba is no config file
1579
1580 * Thu Mar 23 2000 Thierry Vignaud <tvignaud@mandrakesoft.com>
1581 - fix buggy post install script (pixel)
1582
1583 * Fri Mar 17 2000 Francis Galiegue <francis@mandrakesoft.com> 2.0.6-2mdk
1584
1585 - Changed group according to 7.1 specs
1586 - Some spec file changes
1587 - Let spec-helper do its job
1588
1589 * Thu Nov 25 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
1590 - 2.0.6.
1591
1592 * Tue Nov  2 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
1593 - Merge with rh changes.
1594 - Split in 3 packages.
1595
1596 * Fri Aug 13 1999 Pablo Saratxaga <pablo@@mandrakesoft.com>
1597 - corrected a bug with %post (the $1 parameter is "1" in case of
1598   a first install, not "0". That parameter is the number of packages
1599   of the same name that will exist after running all the steps if nothing
1600   is removed; so it is "1" after first isntall, "2" for a second install
1601   or an upgrade, and "0" for a removal)
1602
1603 * Wed Jul 28 1999 Pablo Saratxaga <pablo@@mandrakesoft.com>
1604 - made smbmnt and smbumount suid root, and only executable by group 'smb'
1605   add to 'smb' group any user that should be allowed to mount/unmount
1606   SMB shared directories
1607
1608 * Fri Jul 23 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
1609 - 2.0.5a (bug security fix).
1610
1611 * Wed Jul 21 1999 Axalon Bloodstone <axalon@linux-mandrake.com>
1612 - 2.0.5
1613 - cs/da/de/fi/fr/it/tr descriptions/summaries
1614
1615 * Sun Jun 13 1999 Bernhard Rosenkränzer <bero@mandrakesoft.com>
1616 - 2.0.4b
1617 - recompile on a system that works ;)
1618
1619 * Wed Apr 21 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
1620 - Mandrake adaptations.
1621 - Bzip2 man-pages.
1622
1623 * Fri Mar 26 1999 Bill Nottingham <notting@redhat.com>
1624 - add a mount.smb to make smb mounting a little easier.
1625 - smb filesystems apparently do not work on alpha. Oops.
1626
1627 * Thu Mar 25 1999 Bill Nottingham <notting@redhat.com>
1628 - always create codepages
1629
1630 * Tue Mar 23 1999 Bill Nottingham <notting@redhat.com>
1631 - logrotate changes
1632
1633 * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
1634 - auto rebuild in the new build environment (release 3)
1635
1636 * Fri Mar 19 1999 Preston Brown <pbrown@redhat.com>
1637 - updated init script to use graceful restart (not stop/start)
1638
1639 * Tue Mar  9 1999 Bill Nottingham <notting@redhat.com>
1640 - update to 2.0.3
1641
1642 * Thu Feb 18 1999 Bill Nottingham <notting@redhat.com>
1643 - update to 2.0.2
1644
1645 * Mon Feb 15 1999 Bill Nottingham <notting@redhat.com>
1646 - swat swat
1647
1648 * Tue Feb  9 1999 Bill Nottingham <notting@redhat.com>
1649 - fix bash2 breakage in post script
1650
1651 * Fri Feb  5 1999 Bill Nottingham <notting@redhat.com>
1652 - update to 2.0.0
1653
1654 * Mon Oct 12 1998 Cristian Gafton <gafton@redhat.com>
1655 - make sure all binaries are stripped
1656
1657 * Thu Sep 17 1998 Jeff Johnson <jbj@redhat.com>
1658 - update to 1.9.18p10.
1659 - fix %triggerpostun.
1660
1661 * Tue Jul 07 1998 Erik Troan <ewt@redhat.com>
1662 - updated postun triggerscript to check $0
1663 - clear /etc/codepages from %preun instead of %postun
1664
1665 * Mon Jun 08 1998 Erik Troan <ewt@redhat.com>
1666 - made the %postun script a tad less agressive; no reason to remove
1667   the logs or lock file (after all, if the lock file is still there,
1668   samba is still running)
1669 - the %postun and %preun should only exectute if this is the final
1670   removal
1671 - migrated %triggerpostun from Red Hat's samba package to work around
1672   packaging problems in some Red Hat samba releases
1673
1674 * Sun Apr 26 1998 John H Terpstra <jht@samba.anu.edu.au>
1675 - minor tidy up in preparation for release of 1.9.18p5
1676 - added findsmb utility from SGI package
1677
1678 * Wed Mar 18 1998 John H Terpstra <jht@samba.anu.edu.au>
1679 - Updated version and codepage info.
1680 - Release to test name resolve order
1681
1682 * Sat Jan 24 1998 John H Terpstra <jht@samba.anu.edu.au>
1683 - Many optimisations (some suggested by Manoj Kasichainula <manojk@io.com>
1684 - Use of chkconfig in place of individual symlinks to /etc/rc.d/init/smb
1685 - Compounded make line
1686 - Updated smb.init restart mechanism
1687 - Use compound mkdir -p line instead of individual calls to mkdir
1688 - Fixed smb.conf file path for log files
1689 - Fixed smb.conf file path for incoming smb print spool directory
1690 - Added a number of options to smb.conf file
1691 - Added smbadduser command (missed from all previous RPMs) - Doooh!
1692 - Added smbuser file and smb.conf file updates for username map