5 # 2.2.4 and 1 replace by samba-team at release
6 %define pversion PVERSION
7 %define prelease PRELEASE
8 # For testing this setup:
9 #%define pversion1 2.2.5
10 #%define prelease1 %(date +%Y%m%d)
12 #Check to see if p(version|release) has been replaced (1 if replaced)
13 %define have_pversion %(if [ "%pversion" = `echo "pversion" |tr '[:lower:]' '[:upper:]'` ];then echo 0; else echo 1; fi)
14 %define have_prelease %(if [ "%prelease" = `echo "prelease" |tr '[:lower:]' '[:upper:]'` ];then echo 0; else echo 1; fi)
16 # We might have a alpha-/beta-/pre-/rc-release:
17 %define have_pre %(echo %pversion|awk '{p=0} /[a-z,A-Z][a-z,A-Z]/ {p=1} {print p}')
19 %define pre_ver %(perl -e '$name="%pversion"; print ($name =~ /(.*?)[a-z]/);')
20 %define pre_pre %(echo %pversion|sed -e 's/%pre_ver//g')
24 # Check to see if we are running a build from a tarball release from samba.org
25 # (%have_pversion) If so, disable vscan, unless explicitly requested
30 %{?_with_vscan: %define build_vscan 1}
33 # We now do detection of the Mandrake release we are building on:
34 #%define build_cooker %(if [ `awk '{print $3}' /etc/mandrake-release` = "Cooker" ];then echo 1; else echo 0; fi)
35 #%define build_cooker %(if [[ `cat /etc/mandrake-release|grep Cooker` ]];then echo 1; else echo 0; fi)
36 %define build_mdk91 %(if [ `awk '{print $4}' /etc/mandrake-release` = 9.1 ];then echo 1; else echo 0; fi)
37 %define build_mdk90 %(if [ `awk '{print $4}' /etc/mandrake-release` = 9.0 ];then echo 1; else echo 0; fi)
38 %define build_mdk83 %(if [ `awk '{print $4}' /etc/mandrake-release` = 8.3 ];then echo 1; else echo 0; fi)
39 %define build_mdk82 %(if [ `awk '{print $4}' /etc/mandrake-release` = 8.2 ];then echo 1; else echo 0; fi)
40 %define build_mdk81 %(if [ `awk '{print $4}' /etc/mandrake-release` = 8.1 ];then echo 1; else echo 0; fi)
41 %define build_mdk80 %(if [ `awk '{print $4}' /etc/mandrake-release` = 8.0 ];then echo 1; else echo 0; fi)
42 %define build_mdk72 %(if [ `awk '{print $4}' /etc/mandrake-release` = 7.2 ];then echo 1; else echo 0; fi)
43 %define build_non_default 0
47 %define build_winbind 1
50 %define build_scanners 0
52 # Set defaults for each version
70 %define build_winbind 0
77 %define build_winbind 0
84 %define build_winbind 0
89 # Allow commandline option overrides (borrowed from Vince's qmail srpm):
90 # To use it, do rpm [-ba|--rebuild] --with 'xxx'
91 # Check if the rpm was built with the defaults, otherwise we inform the user
92 %{?_with_acl: %{expand: %%define build_acl 1}}
93 %{?_with_acl: %{expand: %%define build_non_default 1}}
94 %{?_without_acl: %{expand: %%define build_acl 0}}
95 %{?_without_acl: %{expand: %%define build_non_default 1}}
96 %{?_with_winbind: %{expand: %%global build_winbind 1}}
97 %{?_with_winbind: %{expand: %%define build_non_default 1}}
98 %{?_without_winbind: %{expand: %%global build_winbind 0}}
99 %{?_without_winbind: %{expand: %%define build_non_default 1}}
100 %{?_with_wins: %{expand: %%global build_wins 1}}
101 %{?_with_wins: %{expand: %%define build_non_default 1}}
102 %{?_without_wins: %{expand: %%global build_wins 0}}
103 %{?_without_wins: %{expand: %%define build_non_default 1}}
104 %{?_with_ldap: %{expand: %%global build_ldap 1}}
105 %{?_with_ldap: %{expand: %%define build_non_default 1}}
106 %{?_without_ldap: %{expand: %%global build_ldap 0}}
107 %{?_without_ldap: %{expand: %%define build_non_default 1}}
108 %{?_with_scanners: %{expand: %%define build_scanners 1}}
109 %{?_with_scanners: %{expand: %%define build_non_default 1}}
111 # As if that weren't enough, we're going to try building with antivirus
112 # support as an option also
113 %define build_fprot 0
114 %define build_kaspersky 0
116 %define build_openantivirus 0
117 %define build_sophos 0
118 %define build_symantec 0
119 %define build_trend 0
120 %if %build_vscan && %build_scanners
121 #These can be enabled here by default
122 # (kaspersky requires their library present)
123 %define build_fprot 1
125 %define build_openantivirus 1
126 %define build_sophos 1
127 %define build_trend 1
130 %{?_with_fprot: %{expand: %%global build_fprot 1}}
131 %{?_with_kaspersky: %{expand: %%global build_kaspersky 1}}
132 %{?_with_mks: %{expand: %%global build_mks 1}}
133 %{?_with_openav: %{expand: %%global build_openantivirus 1}}
134 %{?_with_sophos: %{expand: %%global build_sophos 1}}
135 #%{?_with_symantec: %{expand: %%global build_symantec 1}}
136 %{?_with_trend: %{expand: %%global build_trend 1}}
137 %global vscandir samba-vscan-%{vscanver}
139 %global vfsdir examples.bin/VFS
141 #Workaround missing macros in 8.x:
142 %{!?perl_vendorlib: %{expand: %%global perl_vendorlib %{perl_sitearch}/../}}
144 Summary: Samba SMB server.
146 %if %have_pversion && %have_pre
148 %define source_ver %{pversion}
150 %if %have_pversion && !%have_pre
152 %define source_ver %{pversion}
156 %define source_ver %{ver}
158 %if %have_prelease && !%have_pre
159 Release: 1.%{prelease}mdk
161 %if %have_prelease && %have_pre
162 Release: 1.0.%{pre_pre}.%{prelease}mdk
168 URL: http://www.samba.org
169 Group: System/Servers
170 Source: ftp://samba.org/pub/samba/samba-%{source_ver}.tar.bz2
173 Source3: samba.xinetd
174 Source4: swat_48.xpm.bz2
175 Source5: swat_32.xpm.bz2
176 Source6: swat_16.xpm.bz2
177 Source7: README.%{name}-mandrake-rpm
179 Source8: samba-vscan-%{vscanver}.tar.bz2
181 Source10: samba-print-pdf.sh.bz2
182 Patch1: smbw.patch.bz2
183 Patch2: samba-2.2.0-gawk.patch.bz2
184 Patch3: samba-2.2.0-buildroot.patch.bz2
185 Patch4: smbmount-sbin.patch.bz2
186 Patch5: samba-2.2.5-gp-reloc-fix.patch.bz2
187 Patch6: samba-2.2.7a-smbldaptools-paths.patch.bz2
189 # Version specific patches: current version
190 Patch101: samba-2.2.7a-smbtar-large-file-fix.patch.bz2
191 Patch102: samba-2.2.7a-smbclient-large-file-fix.patch.bz2
192 Patch103: samba-2.2.7a-ldap-rebind.patch.bz2
193 Patch104: samba-2.2.7a-mandrake-packaging.patch.bz2
194 Patch105: samba-2.2.6-smbumount_lazy.patch.bz2
196 # Version specific patches: upcoming version
198 # Limbo patches (applied to prereleases, but not preleases, ie destined for
200 %if %have_pversion && %have_pre
202 Requires: pam >= 0.64, samba-common = %{version}
203 BuildRequires: pam-devel autoconf readline-devel libldap2-devel popt-devel
205 BuildRequires: libacl-devel
208 BuildRequires: cups-devel
210 BuildRequires: libcups-devel
213 #BuildRequires: libldap-devel
215 BuildRoot: %{_tmppath}/%{name}-root
217 Prereq: /sbin/chkconfig /bin/mktemp /usr/bin/killall
218 Prereq: fileutils sed /bin/grep
221 Samba provides an SMB server which can be used to provide
222 network services to SMB (sometimes called "Lan Manager")
223 clients, including various versions of MS Windows, OS/2,
224 and other Linux machines. Samba also provides some SMB
225 clients, which complement the built-in SMB filesystem
226 in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols
227 and does NOT need NetBEUI (Microsoft Raw NetBIOS frame)
230 Samba-2.2 features working NT Domain Control capability and
231 includes the SWAT (Samba Web Administration Tool) that
232 allows samba's smb.conf file to be remotely managed using your
233 favourite web browser. For the time being this is being
234 enabled on TCP port 901 via xinetd. SWAT is now included in
235 it's own subpackage, samba-swat.
237 Users are advised to use Samba-2.2 as a Windows NT4
238 Domain Controller only on networks that do NOT have a Windows
239 NT Domain Controller. This release does NOT as yet have
240 Backup Domain control ability.
242 Please refer to the WHATSNEW.txt document for fixup information.
243 This binary release includes encrypted password support.
245 Please read the smb.conf file and ENCRYPTION.txt in the
246 docs directory for implementation details.
248 %if %build_non_default
249 WARNING: This RPM was built with command-line options. Please
250 see README.%{name}-mandrake-rpm in the documentation for
256 Summary: Samba (SMB) server programs with LDAP (only) support
257 Obsoletes: samba-server
258 Provides: samba-server
259 Requires: samba-common-ldap = %{version}
262 Summary: Samba (SMB) server programs.
263 Obsoletes: samba-server-ldap
264 Requires: samba-common = %{version}
266 Group: Networking/Other
271 %description server-ldap
275 Samba-server provides a SMB server which can be used to provide
276 network services to SMB (sometimes called "Lan Manager")
277 clients. Samba uses NetBIOS over TCP/IP (NetBT) protocols
278 and does NOT need NetBEUI (Microsoft Raw NetBIOS frame)
281 Samba-2.2 features working NT Domain Control capability and
282 includes the SWAT (Samba Web Administration Tool) that
283 allows samba's smb.conf file to be remotely managed using your
284 favourite web browser. For the time being this is being
285 enabled on TCP port 901 via xinetd. SWAT is now included in
286 it's own subpackage, samba-swat.
288 Users are advised to use Samba-2.2 as a Windows NT4
289 Domain Controller only on networks that do NOT have a Windows
290 NT Domain Controller. This release does NOT as yet have
291 Backup Domain control ability.
293 Please refer to the WHATSNEW.txt document for fixup information.
294 This binary release includes encrypted password support.
296 Please read the smb.conf file and ENCRYPTION.txt in the
297 docs directory for implementation details.
300 This package was compiled with LDAP support, which means that
301 passwords can ONLY be stored in LDAP, not in smbpasswd files.
302 To migrate your passwords from smbpasswd into LDAP, try
303 examples/LDAP/import_smbpasswd.pl using:
304 /usr/share/samba/scripts/import_smbpasswd.pl </etc/samba/smbpasswd
306 Scripts for managing users in LDAP have been added to
307 /usr/share/samba/scripts, configuration is in /etc/samba/smbldap_conf.pm
311 Summary: Samba (SMB) client programs.
312 Group: Networking/Other
313 Requires: samba-common = %{version}
317 Samba-client provides some SMB clients, which complement the built-in
318 SMB filesystem in Linux. These allow the accessing of SMB shares, and
319 printing to SMB printers.
323 Summary: Files used by both Samba servers and clients with LDAP support
324 Obsoletes: samba-common
325 Provides: samba-common
328 Summary: Files used by both Samba servers and clients.
329 Obsoletes: samba-common-ldap
331 Group: System/Servers
334 %description common-ldap
338 Samba-common provides files necessary for both the server and client
342 Summary: Documentation for Samba servers and clients.
343 Group: System/Servers
344 Requires: samba-common = %{version}
347 Samba-doc provides documentation files for both the server and client
352 Summary: The Samba Web Administration Tool (with LDAP support)
353 Obsoletes: samba-swat
355 Requires: samba-server-ldap = %{version}
358 Summary: The Samba Web Administration Tool.
359 Obsoletes: samba-swat-ldap
360 Requires: samba-server = %{version}
363 Group: System/Servers
364 Provides: samba-swat swat
367 %description swat-ldap
371 SWAT (the Samba Web Administration Tool) allows the samba smb.conf file
372 to be remotely managed using your favourite web browser. For the time
373 being this is being enabled on TCP port 901 via xinetd. Note that
374 SWAT does not use SSL encryption, nor does it preserve comments in
375 your smb.conf file. Webmin uses SSL encryption by default, and
376 preserves comments in configuration files, even if it does not display
377 them, and is therefore the preferred method for remotely managing
381 %if %build_winbind && %build_ldap
382 %package winbind-ldap
383 Requires: samba-common-ldap = %{version}
384 Obsoletes: samba-winbind
385 Provides: samba-winbind
387 %if %build_winbind && !%build_ldap
389 Requires: samba-common = %{version}
390 Obsoletes: samba-winbind-ldap
393 Summary: Samba-winbind daemon, utilities and documentation
394 Group: System/Servers
395 Provides: winbind samba-winbind
397 %if %build_winbind && %build_ldap
398 %description winbind-ldap
400 %if %build_winbind && !%build_ldap
404 Provides the winbind daemon and testing tools to allow authentication
405 and group/user enumeration from a Windows or Samba domain controller.
410 Summary: Name Service Switch service for WINS
411 Group: System/Servers
412 Requires: samba-common = %{version}
414 %description -n nss_wins
415 Provides the libnss_wins shared library which resolves NetBIOS names to
422 Summary: On-access virus scanning for samba using FPROT
423 Group: System/Servers
424 Requires: samba = %{version}
425 Provides: samba-vscan
427 %description vscan-fprot
428 A vfs-module for samba to implement on-access scanning using the
429 FPROT antivirus software (which must be installed to use this).
433 %package vscan-kaspersky
434 Summary: On-access virus scanning for samba using Kaspersky
435 Group: System/Servers
436 Requires: samba = %{version}
437 Provides: samba-vscan
439 %description vscan-kaspersky
440 A vfs-module for samba to implement on-access scanning using the
441 Kaspersky antivirus software (which must be installed to use this).
446 Summary: On-access virus scanning for samba using MKS
447 Group: System/Servers
448 Requires: samba = %{version}
449 Provides: samba-vscan
451 %description vscan-mks
452 A vfs-module for samba to implement on-access scanning using the
453 MKS antivirus software (which must be installed to use this).
456 %if %build_openantivirus
457 %package vscan-openantivirus
458 Summary: On-access virus scanning for samba using OpenAntivirus
459 Group: System/Servers
460 Requires: samba = %{version}
461 Provides: samba-vscan
463 %description vscan-openantivirus
464 A vfs-module for samba to implement on-access scanning using the
465 OpenAntivirus antivirus software (which must be installed to use this).
469 %package vscan-sophos
470 Summary: On-access virus scanning for samba using Sophos
471 Group: System/Servers
472 Requires: samba = %{version}
473 Provides: samba-vscan
475 %description vscan-sophos
476 A vfs-module for samba to implement on-access scanning using the
477 Sophos antivirus software (which must be installed to use this).
481 %package vscan-symantec
482 Summary: On-access virus scanning for samba using Symantec
483 Group: System/Servers
484 Requires: samba = %{version}
485 Provides: samba-vscan
487 %description vscan-symantec
488 A vfs-module for samba to implement on-access scanning using the
489 Symantec antivirus software (which must be installed to use this).
494 Summary: On-access virus scanning for samba using Trend
495 Group: System/Servers
496 Requires: samba = %{version}
497 Provides: samba-vscan
499 %description vscan-trend
500 A vfs-module for samba to implement on-access scanning using the
501 Trend antivirus software (which must be installed to use this).
505 # Build a summary of how this RPM was built:
507 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --with acl"
509 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --without acl"
512 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --with winbind"
514 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --without winbind"
517 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --with wins"
519 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --without wins"
522 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --with ldap"
524 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --without ldap"
527 %if %build_non_default
528 echo "Building a non-default rpm with the following command-line arguments:"
529 echo "$RPM_EXTRA_OPTIONS"
530 echo "This rpm was built with non-default options, thus, to build ">%{SOURCE7}
531 echo "an identical rpm, you need to supply the following options">>%{SOURCE7}
532 echo "at build time: $RPM_EXTRA_OPTIONS">>%{SOURCE7}
533 echo -e "\n%{name}-%{version}-%{release}\n">>%{SOURCE7}
535 echo "This rpm was built with default options">%{SOURCE7}
536 echo -e "\n%{name}-%{version}-%{release}\n">>%{SOURCE7}
540 %setup -q -a 8 -n %{name}-%{source_ver}
542 %setup -q -n %{name}-%{source_ver}
545 echo "Applying patches for version: %{ver}"
548 %patch3 -p1 -b .buildroot
550 %patch5 -p1 -b .gp-reloc-fix
552 # Version specific patches: current version
554 echo "Applying patches for current version: %{ver}"
556 %patch101 -p0 -b .lfs
559 %patch102 -p0 -b .lfs
561 %patch103 -p1 -b .ldap
562 %patch104 -p1 -b .mdk
565 # Version specific patches: upcoming version
566 echo "Applying patches for new versions: %{pversion}"
570 %if %have_pversion && %have_pre
571 echo "Appling patches which should only be applied to prereleases"
576 # Make a copy of examples so that we have a clean one for doc:
577 cp -a examples examples.bin
580 # put antivirus files in examples.bin/VFS/
581 #for av in fprot kaspersky mks openantivirus sophos trend; do
582 # [ -e %{vscandir}/$av ] && cp -a %{vscandir}/$av %{vfsdir}
584 cp -a %{vscandir} %{vfsdir}
585 #fix stupid directory names:
586 mv %{vfsdir}/%{vscandir}/openantivirus %{vfsdir}/%{vscandir}/oav
593 CPPFLAGS="-I/usr/include/openssl"; export CPPFLAGS
594 CFLAGS="$RPM_OPT_FLAGS"
595 %configure --prefix=%{prefix} \
597 --libdir=/etc/samba \
598 --sysconfdir=/etc/samba \
599 --localstatedir=/var \
600 --with-configdir=/etc/samba \
601 --with-codepagedir=/var/lib/samba/codepages \
602 --with-privatedir=/etc/samba \
603 --with-swatdir=%{prefix}/share/swat \
608 --with-sendfile-support \
614 --with-libsmbclient \
620 --with-winbind-ldap-hack \
622 --with-winbind-auth-challenge \
625 #make CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" all
626 make CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" \
627 all smbfilter smbwrapper smbcacls pam_smbpass nsswitch nsswitch/libnss_wins.so debug2html
628 # Build VFS modules (experimental)
630 %configure --prefix=%{prefix} \
631 --mandir=%{prefix}/share/man
635 # Build mkntpasswd in examples/LDAP/ for smbldaptools
637 cd examples.bin/LDAP/smbldap-tools/mkntpwd
641 # Build antivirus vfs objects:
643 echo -e "\n\nBuild antivirus VFS modules\n\n"
644 echo "Building fprot"
645 (cd %{vfsdir}/%{vscandir}/fprot;make)
648 echo "Building Kaspersky"
649 (cd %{vfsdir}/%{vscandir}/kaspersky;make)
653 (cd %{vfsdir}/%{vscandir}/mks;make)
655 %if %build_openantivirus
656 echo "Building OpenAntivirus"
657 (cd %{vfsdir}/%{vscandir}/oav;make)
660 echo "building sophos"
661 (cd %{vfsdir}/%{vscandir}/sophos;make)
664 echo "Building symantec"
665 (cd %{vfsdir}/%{vscandir}/symantec;make)
668 echo "Building Trend"
669 (cd %{vfsdir}/%{vscandir}/trend;make)
673 rm -rf $RPM_BUILD_ROOT
674 mkdir -p $RPM_BUILD_ROOT
675 mkdir -p $RPM_BUILD_ROOT/sbin
676 mkdir -p $RPM_BUILD_ROOT/etc/samba
677 mkdir -p $RPM_BUILD_ROOT/etc/{logrotate.d,pam.d,xinetd.d}
678 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
679 mkdir -p $RPM_BUILD_ROOT/%{prefix}/{bin,sbin}
680 mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/swat/{images,help,include,using_samba}
681 mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/swat/using_samba/{figs,gifs}
682 mkdir -p $RPM_BUILD_ROOT/%{_mandir}/{man1,man5,man7,man8}
683 mkdir -p $RPM_BUILD_ROOT/var/cache/samba
684 mkdir -p $RPM_BUILD_ROOT/var/log/samba
685 mkdir -p $RPM_BUILD_ROOT/var/run/samba
686 mkdir -p $RPM_BUILD_ROOT/var/spool/samba
687 mkdir -p $RPM_BUILD_ROOT/var/lib/samba/{netlogon,profiles,printers}
688 mkdir -p $RPM_BUILD_ROOT/var/lib/samba/printers/{W32X86,WIN40,W32ALPHA,W32MIPS,W32PPC}
689 mkdir -p $RPM_BUILD_ROOT/var/lib/samba/codepages/src
690 mkdir -p $RPM_BUILD_ROOT/lib/security
691 mkdir -p $RPM_BUILD_ROOT%prefix/lib
692 mkdir -p $RPM_BUILD_ROOT%{_libdir}/samba/vfs
693 mkdir -p $RPM_BUILD_ROOT%{_datadir}/samba/scripts
695 # Install standard binary files
697 for i in nmblookup smbclient smbpasswd smbstatus testparm testprns \
698 make_smbcodepage make_unicodemap make_printerdef rpcclient smbspool \
699 smbcacls smbclient smbmount smbumount smbsh wbinfo
701 install -m755 source/bin/$i $RPM_BUILD_ROOT/%{prefix}/bin
704 install -m755 source/bin/smbwrapper.so $RPM_BUILD_ROOT%prefix/lib/smbwrapper.so
705 install -m755 source/bin/pam_smbpass.so $RPM_BUILD_ROOT/lib/security/pam_smbpass.so
706 install -m755 source/nsswitch/pam_winbind.so $RPM_BUILD_ROOT/lib/security/pam_winbind.so
707 install -m755 source/bin/libsmbclient.so $RPM_BUILD_ROOT%prefix/lib/libsmbclient.so
709 # Install VFS modules
710 install -m755 %vfsdir/audit.so $RPM_BUILD_ROOT/%{_libdir}/samba/vfs
711 for i in block recycle
713 install -m755 %vfsdir/$i/$i.so $RPM_BUILD_ROOT/%{_libdir}/samba/vfs
717 # mkdir -p $RPM_BUILD_ROOT%{_libdir}/samba/vfs/vscan
718 for av in fprot kavp mks oav sophos symantec trend; do
719 if [ -d %{vfsdir}/%{vscandir}/$av -a -e %{vfsdir}/%{vscandir}/$av/vscan-$av*.so ];then
720 cp %{vfsdir}/%{vscandir}/$av/vscan-$av*.so \
721 $RPM_BUILD_ROOT%{_libdir}/samba/vfs/
722 cp %{vfsdir}/%{vscandir}/$av/vscan-$av*.conf \
723 $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
727 for i in mksmbpasswd.sh smbtar convert_smbpasswd
729 install -m755 source/script/$i $RPM_BUILD_ROOT/%{prefix}/bin
732 # Install secure binary files
734 for i in smbd nmbd swat smbfilter debug2html smbmnt smbcontrol winbindd
736 install -m755 source/bin/$i $RPM_BUILD_ROOT/%{prefix}/sbin
739 # Install level 1,5,7,8 man pages
741 for mpl in 1 5 7 8;do
742 mp=$(ls docs/manpages/*.$mpl)
744 install -m644 $i $RPM_BUILD_ROOT/%{_mandir}/man$mpl
748 # Install codepage source files
750 for i in 437 737 775 850 852 857 861 862 866 932 936 949 950 1125 1251
752 install -m644 source/codepages/codepage_def.$i $RPM_BUILD_ROOT/var/lib/samba/codepages/src
755 for i in 437 737 775 850 852 857 861 862 866 932 936 949 950 1125 1251 ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 ISO8859-8 ISO8859-9 ISO8859-13 ISO8859-15 KOI8-R KOI8-U
757 install -m644 source/codepages/CP$i.TXT $RPM_BUILD_ROOT/var/lib/samba/codepages/src
760 # Build codepage load files
761 for i in 437 737 775 850 852 857 861 862 866 932 936 949 950 1125 1251; do
762 $RPM_BUILD_ROOT/%{prefix}/bin/make_smbcodepage c $i $RPM_BUILD_ROOT/var/lib/samba/codepages/src/codepage_def.$i $RPM_BUILD_ROOT/var/lib/samba/codepages/codepage.$i
765 # Build unicode load files
766 for i in 437 737 775 850 852 857 861 862 866 932 936 949 950 1125 1251 ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 ISO8859-8 ISO8859-9 ISO8859-13 ISO8859-15 KOI8-R KOI8-U; do
767 $RPM_BUILD_ROOT/%{prefix}/bin/make_unicodemap $i $RPM_BUILD_ROOT/var/lib/samba/codepages/src/CP$i.TXT $RPM_BUILD_ROOT/var/lib/samba/codepages/unicode_map.$i
769 rm -rf $RPM_BUILD_ROOT/var/lib/samba/codepages/src
771 # Install the nsswitch library extension file
772 for i in wins winbind; do
773 install -m755 source/nsswitch/libnss_$i.so $RPM_BUILD_ROOT/lib
775 # Make link for wins and winbind resolvers
776 ( cd $RPM_BUILD_ROOT/lib; ln -s libnss_wins.so libnss_wins.so.2; ln -s libnss_winbind.so libnss_winbind.so.2)
778 # Install SWAT helper files
779 for i in swat/help/*.html docs/htmldocs/*.html; do
780 install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/help
783 for i in swat/images/*.gif; do
784 install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/images
787 for i in swat/include/*.html; do
788 install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/include
791 # Install the O'Reilly "Using Samba" book
793 for i in docs/htmldocs/using_samba/*.html; do
794 install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/using_samba
797 for i in docs/htmldocs/using_samba/gifs/*.gif; do
798 install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/using_samba/gifs
801 for i in docs/htmldocs/using_samba/figs/*.gif; do
802 install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/using_samba/figs
805 # Install other stuff
807 install -m644 examples/VFS/recycle/recycle.conf $RPM_BUILD_ROOT/etc/samba/
808 install -m644 packaging/Mandrake/smb.conf $RPM_BUILD_ROOT/etc/samba/smb.conf
809 install -m644 packaging/Mandrake/smbusers $RPM_BUILD_ROOT/etc/samba/smbusers
810 install -m755 packaging/Mandrake/smbprint $RPM_BUILD_ROOT/usr/bin
811 install -m755 packaging/Mandrake/findsmb $RPM_BUILD_ROOT/usr/bin
812 install -m755 packaging/Mandrake/smb.init $RPM_BUILD_ROOT/etc/rc.d/init.d/smb
813 install -m755 packaging/Mandrake/smb.init $RPM_BUILD_ROOT/usr/sbin/samba
814 install -m755 packaging/Mandrake/winbind.init $RPM_BUILD_ROOT/etc/rc.d/init.d/winbind
815 install -m755 packaging/Mandrake/winbind.init $RPM_BUILD_ROOT/usr/sbin/winbind
816 install -m644 packaging/Mandrake/samba.pamd $RPM_BUILD_ROOT/etc/pam.d/samba
817 install -m644 packaging/Mandrake/system-auth-winbind.pamd $RPM_BUILD_ROOT/etc/pam.d/system-auth-winbind
819 install -m644 $RPM_SOURCE_DIR/samba.log $RPM_BUILD_ROOT/etc/logrotate.d/samba
820 install -m644 packaging/Mandrake/samba-slapd-include.conf $RPM_BUILD_ROOT%{_sysconfdir}/samba/samba-slapd.include
822 # Install smbldap-tools scripts:
823 for i in examples/LDAP/smbldap-tools/*.pl; do
824 install -m 750 $i $RPM_BUILD_ROOT/%{_datadir}/samba/scripts/
825 ln -s %{_datadir}/%{name}/scripts/`basename $i` $RPM_BUILD_ROOT/%{_bindir}/`basename $i|sed -e 's/\.pl//g'`
828 install -m 750 examples/LDAP/smbldap-tools/smbldap_tools.pm $RPM_BUILD_ROOT/%{_datadir}/samba/scripts/
831 install -m 640 examples/LDAP/smbldap-tools/smbldap_conf.pm $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}
833 # Link both smbldap*.pm into vendor-perl (any better ideas?)
834 mkdir -p %{buildroot}/%{perl_vendorlib}
835 ln -s %{_sysconfdir}/samba/smbldap_conf.pm $RPM_BUILD_ROOT/%{perl_vendorlib}
836 ln -s %{_datadir}/samba/scripts/smbldap_tools.pm $RPM_BUILD_ROOT/%{perl_vendorlib}
839 install -m750 examples.bin/LDAP/smbldap-tools/mkntpwd/mkntpwd %{buildroot}/%{_sbindir}
841 # Samba smbpasswd migration script:
842 install -m700 examples/LDAP/export_smbpasswd.pl $RPM_BUILD_ROOT/%{_datadir}/samba/scripts/
843 install -m700 examples/LDAP/import_smbpasswd.pl $RPM_BUILD_ROOT/%{_datadir}/samba/scripts/
847 # make a conf file for winbind from the default one:
848 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
849 install -m644 packaging/Mandrake/smb-winbind.conf $RPM_BUILD_ROOT/etc/samba/smb-winbind.conf
851 # Link smbmount to /sbin/mount.smb and /sbin/mount.smbfs
853 ln -s /%{prefix}/bin/smbmount $RPM_BUILD_ROOT/sbin/mount.smb
854 ln -s /%{prefix}/bin/smbmount $RPM_BUILD_ROOT/sbin/mount.smbfs
855 echo 127.0.0.1 localhost > $RPM_BUILD_ROOT/etc/samba/lmhosts
857 # Link smbspool to CUPS (does not require installed CUPS)
859 mkdir -p $RPM_BUILD_ROOT/usr/lib/cups/backend
860 ln -s /usr/bin/smbspool $RPM_BUILD_ROOT/usr/lib/cups/backend/smb
864 mkdir -p $RPM_BUILD_ROOT/etc/xinetd.d
865 install -m644 %{SOURCE3} $RPM_BUILD_ROOT/etc/xinetd.d/swat
869 mkdir -p $RPM_BUILD_ROOT%{_menudir}
870 cat > $RPM_BUILD_ROOT%{_menudir}/%{name} << EOF
871 ?package(%{name}):command="gnome-moz-remote http://localhost:901/" needs="gnome" \
872 icon="swat.xpm" section="Configuration/Networking" title="Samba Configuration" \
873 longtitle="The Swat Samba Administration Tool"
874 ?package(%{name}):command="sh -c '\$BROWSER http://localhost:901/'" needs="x11" \
875 icon="swat.xpm" section="Configuration/Networking" title="Samba Configuration" \
876 longtitle="The Swat Samba Administration Tool"
879 mkdir -p $RPM_BUILD_ROOT%{_liconsdir} $RPM_BUILD_ROOT%{_iconsdir} $RPM_BUILD_ROOT%{_miconsdir}
881 bzcat %{SOURCE4} > $RPM_BUILD_ROOT%{_liconsdir}/swat.xpm
882 bzcat %{SOURCE5} > $RPM_BUILD_ROOT%{_iconsdir}/swat.xpm
883 bzcat %{SOURCE6} > $RPM_BUILD_ROOT%{_miconsdir}/swat.xpm
885 bzcat %{SOURCE10}> $RPM_BUILD_ROOT%{_datadir}/samba/scripts/print-pdf
887 # Delete files which will not be included, so that /usr/lib/rpm/check-files
888 # doesn't error out when Checking for unpackaged file(s)
896 rm -f $RPM_BUILD_ROOT%{_sbindir}/winbind
897 rm -f $RPM_BUILD_ROOT%{_sbindir}/winbindd
898 rm -f $RPM_BUILD_ROOT%{_bindir}/wbinfo
899 rm -f $RPM_BUILD_ROOT/lib/security/pam_winbind*
900 rm -f $RPM_BUILD_ROOT/lib/libnss_winbind*
901 rm -f $RPM_BUILD_ROOT/etc/rc.d/init.d/winbind
902 rm -f $RPM_BUILD_ROOT/etc/pam.d/system-auth-winbind
903 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/winbindd.8*
904 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/wbinfo.1*
908 rm -f $RPM_BUILD_ROOT/lib/libnss_wins.so*
912 rm -f $RPM_BUILD_ROOT/sbin/mount.smb
913 rm -f $RPM_BUILD_ROOT/sbin/mount.smbfs
914 rm -f $RPM_BUILD_ROOT%{_bindir}/smbmount
915 rm -f $RPM_BUILD_ROOT%{_bindir}/smbumount
916 rm -f $RPM_BUILD_ROOT%{_sbindir}/smbmnt
917 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/smbmnt.8*
918 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/smbmount.8*
919 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/smbumount.8*
922 #Files for antivirus support:
924 rm -f $RPM_BUILD_ROOT%{_libdir}/samba/vfs/vscan-fprotd.so
927 %if ! %build_kaspersky
928 rm -f $RPM_BUILD_ROOT%{_libdir}/samba/vfs/vscan-kavp.so
932 rm -f $RPM_BUILD_ROOT%{_libdir}/samba/vfs/vscan-mksd.so
935 %if ! %build_openantivirus
936 rm -f $RPM_BUILD_ROOT%{_libdir}/samba/vfs/vscan-oav.so
940 rm -f $RPM_BUILD_ROOT%{_libdir}/samba/vfs/vscan-sophos.so
943 %if ! %build_symantec
944 rm -f $RPM_BUILD_ROOT%{_libdir}/samba/vfs/vscan-symantec.so
948 rm -f $RPM_BUILD_ROOT%{_libdir}/samba/vfs/vscan-trend.so
952 rm -rf $RPM_BUILD_ROOT
955 %post -n samba-server-ldap
957 %post -n samba-server
960 #/sbin/chkconfig --level 35 smb on
962 # Add a unix group for samba machine accounts
963 groupadd -frg 421 machines
966 %post -n samba-common-ldap
968 %post -n samba-common
970 # Basic migration script for pre-2.2.1 users,
971 # since smb config moved from /etc to /etc/samba
974 for s in smb.conf smbusers smbpasswd printers.def secrets.tdb lmhosts; do
976 cp -f /etc/$s /etc/$s.OLD
977 mv -f /etc/$s /etc/samba/
981 # Migrate tdb's from /var/lock/samba (taken from official samba spec file):
982 for i in /var/lock/samba/*.tdb
985 newname=`echo $i | sed -e's|var\/lock\/samba|var\/cache\/samba|'`
986 echo "Moving $i to $newname"
991 # Remove the transient tdb files (modified from version in off. samba spec:
992 for TDB in brlock unexpected locking messages; do
993 if [ -e /var/cache/samba/$TDB.tdb ]; then
994 rm -f /var/cache/samba/$TDB.tdb;
998 if [ -d /var/lock/samba ]; then
999 rm -rf /var/lock/samba
1001 # Make a symlink on /usr/lib/smbwrapper.so in /usr/bin
1002 # to fix smbsh problem (another way to do that, anyone???)
1004 ln -sf /usr/lib/smbwrapper.so /usr/bin/smbwrapper.so
1006 # Let's create a proper /etc/samba/smbpasswd file
1007 [ -f /etc/samba/smbpasswd ] || {
1008 echo "Creating password file for samba..."
1009 touch /etc/samba/smbpasswd
1012 # And this too, in case we don't have smbd to create it for us
1013 [ -f /var/cache/samba/unexpected.tdb ] || {
1014 touch /var/cache/samba/unexpected.tdb
1017 # Let's define the proper paths for config files
1018 perl -pi -e 's/(\/etc\/)(smb)/\1samba\/\2/' /etc/samba/smb.conf
1020 # Fix the logrotate.d file from smb and nmb to smbd and nmbd
1021 if [ -f /etc/logrotate.d/samba ]; then
1022 perl -pi -e 's/smb /smbd /' /etc/logrotate.d/samba
1023 perl -pi -e 's/nmb /nmbd /' /etc/logrotate.d/samba
1026 # And not loose our machine account SID
1027 [ -f /etc/MACHINE.SID ] && mv -f /etc/MACHINE.SID /etc/samba/ ||:
1029 %if %build_winbind && %build_ldap
1030 %post -n samba-winbind-ldap
1032 %if %build_winbind && !%build_ldap
1033 %post -n samba-winbind
1036 %_post_service winbind
1038 # /sbin/chkconfig winbind on
1039 cp -af /etc/nsswitch.conf /etc/nsswitch.conf.rpmsave
1040 cp -af /etc/nsswitch.conf /etc/nsswitch.conf.rpmtemp
1041 for i in passwd group;do
1042 grep ^$i /etc/nsswitch.conf |grep -v 'winbind' 1>/dev/null 2>/dev/null
1044 echo "Adding a winbind entry to the $i section of /etc/nsswitch.conf"
1045 awk '/^'$i'/ {print $0 " winbind"};!/^'$i'/ {print}' /etc/nsswitch.conf.rpmtemp >/etc/nsswitch.conf;
1046 cp -af /etc/nsswitch.conf /etc/nsswitch.conf.rpmtemp
1048 echo "$i entry found in /etc/nsswitch.conf"
1051 if [ -f /etc/nsswitch.conf.rpmtemp ];then
1052 rm -f /etc/nsswitch.conf.rpmtemp;fi
1056 %if %build_winbind && %build_ldap
1057 %preun -n samba-winbind-ldap
1059 %if %build_winbind && !%build_ldap
1060 %preun -n samba-winbind
1063 %_preun_service winbind
1065 echo "Removing winbind entries from /etc/nsswitch.conf"
1066 perl -pi -e 's/ winbind//' /etc/nsswitch.conf
1068 # /sbin/chkconfig winbind reset
1075 cp -af /etc/nsswitch.conf /etc/nsswitch.conf.rpmsave
1076 grep '^hosts' /etc/nsswitch.conf |grep -v 'wins' >/dev/null
1078 echo "Adding a wins entry to the hosts section of /etc/nsswitch.conf"
1079 awk '/^hosts/ {print $0 " wins"};!/^hosts/ {print}' /etc/nsswitch.conf.rpmsave >/etc/nsswitch.conf;
1081 echo "wins entry found in /etc/nsswitch.conf"
1084 # echo "Upgrade, leaving nsswitch.conf intact"
1089 echo "Removing wins entry from /etc/nsswitch.conf"
1090 perl -pi -e 's/ wins//' /etc/nsswitch.conf
1092 # echo "Leaving /etc/nsswitch.conf intact"
1097 %preun -n samba-server-ldap
1099 %preun -n samba-server
1102 if [ $1 = 0 ] ; then
1104 if [ -d /var/log/samba ]; then
1105 rm -rf /var/log/samba/*
1107 if [ -d /var/cache/samba ]; then
1108 mv -f /var/cache/samba /var/cache/samba.BAK
1113 %preun -n samba-common-ldap
1115 %preun -n samba-common
1118 if [ $1 = 0 ] ; then
1119 for n in /etc/samba/codepages/*; do
1120 if [ "$n" != "/etc/samba/codepages/src" ]; then
1128 %post -n samba-swat-ldap
1132 # Change only_from entry in /etc/xinetd.d/swat (localhost bug)
1133 [[ `/bin/grep "localhost" /etc/xinetd.d/swat` ]] && {
1134 echo "-- Setting swat xinetd only_from entry to 127.0.0.1"
1135 perl -pi -e 's/localhost/127.0.0.1/' /etc/xinetd.d/swat
1137 if [ -f /var/lock/subsys/xinetd ]; then
1138 service xinetd reload >/dev/null 2>&1 || :
1143 %postun -n samba-swat-ldap
1145 %postun -n samba-swat
1147 # Remove swat entry from xinetd
1148 if [ -f /var/lock/subsys/xinetd ]; then
1149 service xinetd reload &>/dev/null || :
1153 %triggerpostun -- samba < 1.9.18p7
1155 if [ $1 != 0 ]; then
1156 /sbin/chkconfig --level 35 smb on
1159 %triggerpostun -- samba < 2.0.5a-3, samba >= 2.0.0
1161 if [ $1 != 0 ]; then
1162 [ ! -d /var/lock/samba ] && mkdir -m 0755 /var/lock/samba ||:
1163 [ ! -d /var/spool/samba ] && mkdir -m 1777 /var/spool/samba ||:
1164 [ -f /etc/inetd.conf ] && chmod 644 /etc/services /etc/inetd.conf ||:
1172 %defattr(-,root,root)
1173 #%attr(-,root,root) %{prefix}/sbin/*
1174 %attr(-,root,root) /sbin/*
1175 #%attr(-,root,root) %{prefix}/bin/*
1176 #%attr(755,root,root) /lib/*
1180 %{_sbindir}/smbcontrol
1182 #%{prefix}/bin/addtosmbpass
1183 %{_bindir}/mksmbpasswd.sh
1184 %{_bindir}/smbstatus
1185 %{_bindir}/convert_smbpasswd
1186 %attr(755,root,root) /lib/security/pam_smbpass*
1187 %attr(-,root,root) %config(noreplace) /etc/samba/smbusers
1188 %attr(-,root,root) %config /etc/rc.d/init.d/smb
1189 %attr(-,root,root) %config(noreplace) /etc/logrotate.d/samba
1190 %attr(-,root,root) %config(noreplace) /etc/pam.d/samba
1191 %attr(-,root,root) %config(noreplace) /etc/samba/samba-slapd.include
1192 %{_mandir}/man1/smbstatus.1*
1193 %{_mandir}/man5/smbpasswd.5*
1194 %{_mandir}/man7/samba.7*
1195 %{_mandir}/man8/smbd.8*
1196 %{_mandir}/man8/nmbd.8*
1197 %{_mandir}/man1/smbcontrol.1*
1198 #%{_mandir}/man1/lmhosts.1*
1199 %attr(755,root,root) %dir /var/lib/samba/netlogon
1200 %attr(775,root,users) %dir /var/lib/samba/profiles
1201 %attr(775,root,adm) %dir /var/lib/samba/printers/*
1202 %attr(755,root,root) %dir %{_libdir}/samba/vfs
1203 %attr(755,root,root) %{_libdir}/samba/vfs/audit.so
1204 %attr(755,root,root) %{_libdir}/samba/vfs/block.so
1205 %attr(755,root,root) %{_libdir}/samba/vfs/recycle.so
1206 %attr(-,root,root) %config(noreplace) %{_sysconfdir}/samba/recycle.conf
1207 #%attr(775,root,root) %dir %{_libdir}/samba/vfs/vscan
1208 %attr(1777,root,root) %dir /var/spool/samba
1209 %dir %{_datadir}/%{name}/scripts
1210 %attr(0755,root,root) %{_datadir}/%{name}/scripts/print-pdf
1211 %attr(0750,root,adm) %{_datadir}/%{name}/scripts/smbldap*.pl
1212 %attr(0750,root,adm) %{_bindir}/smbldap*
1213 %attr(0640,root,adm) %config(noreplace) %{_sysconfdir}/%{name}/smbldap_conf.pm
1214 %attr(0644,root,root) %{_datadir}/%{name}/scripts/smbldap_tools.pm
1215 %{perl_vendorlib}/*.pm
1216 %attr(0700,root,root) %{_datadir}/%{name}/scripts/*port_smbpasswd.pl
1220 %defattr(644,root,root,755)
1221 %doc README COPYING Manifest Read-Manifest-Now
1222 %doc WHATSNEW.txt Roadmap
1223 %doc README.%{name}-mandrake-rpm
1227 %attr(-,root,root) %{prefix}/share/swat/using_samba/*
1234 %defattr(-,root,root)
1235 %config(noreplace) /etc/xinetd.d/swat
1236 %attr(-,root,root) /sbin/*
1242 %attr(-,root,root) %{_datadir}/swat/help/*
1243 %attr(-,root,root) %{_datadir}/swat/images/*
1244 %attr(-,root,root) %{_datadir}/swat/include/*
1245 %{_mandir}/man8/swat.8*
1248 %defattr(-,root,root)
1252 %attr(755,root,root) %{_bindir}/smbmount
1253 %attr(4755,root,root) %{_bindir}/smbumount
1254 %attr(4755,root,root) %{_sbindir}/smbmnt
1255 %{_mandir}/man8/smbmnt.8*
1256 %{_mandir}/man8/smbmount.8*
1257 %{_mandir}/man8/smbumount.8*
1259 %{_bindir}/nmblookup
1261 %{_bindir}/smbclient
1265 # Link of smbspool to CUPS
1266 %{_libdir}/cups/backend/smb
1267 %{_mandir}/man1/nmblookup.1*
1268 %{_mandir}/man1/findsmb.1*
1269 %{_mandir}/man1/smbclient.1*
1270 %{_mandir}/man1/smbtar.1*
1271 %{_mandir}/man8/smbspool.8*
1278 %defattr(-,root,root)
1279 %dir /var/cache/samba
1282 %{_bindir}/make_smbcodepage
1283 %{_bindir}/make_unicodemap
1286 %{_bindir}/make_printerdef
1287 %{_bindir}/rpcclient
1289 %{_bindir}/smbpasswd
1291 %{_sbindir}/debug2html
1292 %{_sbindir}/smbfilter
1293 %{_libdir}/smbwrapper.so
1294 %{_libdir}/libsmbclient.so
1295 %attr(-,root,root) %config(noreplace) /etc/samba/smb.conf
1296 %attr(-,root,root) %config(noreplace) /etc/samba/smb-winbind.conf
1297 %attr(-,root,root) %config(noreplace) /etc/samba/lmhosts
1298 %attr(-,root,root) /var/lib/samba/codepages
1299 %{_mandir}/man1/make_smbcodepage.1*
1300 %{_mandir}/man1/make_unicodemap.1*
1301 %{_mandir}/man1/testparm.1*
1302 %{_mandir}/man1/smbsh.1*
1303 %{_mandir}/man1/testprns.1*
1304 %{_mandir}/man5/smb.conf.5*
1305 %{_mandir}/man5/lmhosts.5*
1306 %{_mandir}/man8/smbpasswd.8*
1307 %{_mandir}/man1/smbcacls.1*
1308 %{_mandir}/man1/rpcclient.1*
1309 %{_mandir}/man8/pdbedit.8*
1313 %if %build_winbind && %build_ldap
1317 %if %build_winbind && !%build_ldap
1321 %defattr(-,root,root)
1322 %{_sbindir}/winbindd
1325 %attr(755,root,root) /lib/security/pam_winbind*
1326 %attr(755,root,root) /lib/libnss_winbind*
1327 %attr(-,root,root) %config /etc/rc.d/init.d/winbind
1328 %attr(-,root,root) %config(noreplace) /etc/pam.d/system-auth-winbind
1329 %{_mandir}/man8/winbindd.8*
1330 %{_mandir}/man1/wbinfo.1*
1335 %defattr(-,root,root)
1336 %attr(755,root,root) /lib/libnss_wins.so*
1339 #Files for antivirus support:
1342 %defattr(-,root,root)
1343 %{_libdir}/samba/vfs/vscan-fprotd.so
1344 %config(noreplace) %{_sysconfdir}/%{name}/vscan-fprotd.conf
1345 %doc %{vfsdir}/%{vscandir}/INSTALL
1348 %if %build_kaspersky
1349 %files vscan-kaspersky
1350 %defattr(-,root,root)
1351 %{_libdir}/samba/vfs/vscan-kavp.so
1352 %config(noreplace) %{_sysconfdir}/%{name}/vscan-kavp.conf
1353 %doc %{vfsdir}/%{vscandir}/examples.bin/VFS/kaspersky/INSTALL
1358 %defattr(-,root,root)
1359 %{_libdir}/samba/vfs/vscan-mksd.so
1360 %config(noreplace) %{_sysconfdir}/%{name}/vscan-mks*.conf
1361 %doc %{vfsdir}/%{vscandir}/INSTALL
1364 %if %build_openantivirus
1365 %files vscan-openantivirus
1366 %defattr(-,root,root)
1367 %{_libdir}/samba/vfs/vscan-oav.so
1368 %config(noreplace) %{_sysconfdir}/%{name}/vscan-oav.conf
1369 %doc %{vfsdir}/%{vscandir}/INSTALL
1374 %defattr(-,root,root)
1375 %{_libdir}/samba/vfs/vscan-sophos.so
1376 %config(noreplace) %{_sysconfdir}/%{name}/vscan-sophos.conf
1377 %doc %{vfsdir}/%{vscandir}/INSTALL
1381 %files vscan-symantec
1382 %defattr(-,root,root)
1383 %{_libdir}/samba/vfs/vscan-symantec.so
1384 %config(noreplace) %{_sysconfdir}/%{name}/vscan-symantec.conf
1385 %doc %{vfsdir}/%{vscandir}/INSTALL
1390 %defattr(-,root,root)
1391 %{_libdir}/samba/vfs/vscan-trend.so
1392 %config(noreplace) %{_sysconfdir}/%{name}/vscan-trend.conf
1393 %doc %{vfsdir}/%{vscandir}/INSTALL
1397 * Fri Feb 14 2003 Buchan Milne <bgmilne@linux-mandrake.com> 2.2.7a-4mdk
1398 - Fix build openantivirus with default scanners
1399 - buildrequire popt-devel
1400 - From Jim Collings <jcllings@tsunamicomm.net>
1401 - Patched smbldap-tools and created links to same in /usr/bin
1403 * Thu Jan 23 2003 Buchan Milne <bgmilne@linux-mandrake.com> 2.2.7a-3mdk
1404 - Two patches to fix large file support (smbtar:p101 and smbclient:p102)
1405 - Patch to enable ldap referral (103)
1406 - Build all vscan except kav (requires kaspersky lib) with --with-scanners
1407 - Allow adm group to install printer drivers and use smbldaptools by default
1408 - Remove smb.conf man page conflict
1410 * Thu Jan 02 2003 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.7a-2mdk
1411 - Rebuilt because of new rpm macros and new glibc.
1412 - Happy new year 2003 to all samba developers, contributors and users!
1414 * Wed Dec 11 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.7a-1mdk
1415 - Upgraded to 2.2.7a.
1417 * Sun Dec 08 2002 Buchan Milne <bgmilne@linux-mandrake.com> 2.2.7-5mdk
1418 - samba-vscan 0.3.1 (and make it build again)
1419 - Make all vscan packages provide samba-vscan
1420 - All scanner packages (besides kaspersky) can be built without the
1421 scanner installed, but we don't quite to this yet ...
1422 - Add vscan-(scanner).conf files
1423 - Add winbind-auth-challenge to configure, for squid support
1424 - Use winbind-ldap-hack only when building with ldapsam support
1425 since no-one has been able to test this thoroughly, and my only
1426 tests indicated performance problems with it (and I need this RPM to
1429 * Tue Nov 26 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.7-4mdk
1431 - Cleaned up specfile a bit.
1432 - Added support for upcoming Mandrake Linux 9.1 in auto build process.
1434 * Tue Nov 26 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.7-3mdk
1435 - Put (noreplace) back in %files swat.
1436 - Changed only_from entry in sample swat to "127.0.0.1".
1437 - Change only_from entry in /etc/xinetd.d/swat to "127.0.0.1" on %post swat.
1439 * Fri Nov 22 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.7-2mdk
1440 - Removed noreplace of /etc/xinetd.d/swat on update.
1441 - Updated samba-vscan (0.3.0).
1443 * Wed Nov 20 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.7-1mdk
1447 * Sat Nov 16 2002 Alexander Skwar <ASkwar@DigitalProjects.com> 2.2.6-6mdk
1448 - Remove installed files which will not be included due to build options,
1449 so that /usr/lib/rpm/check-files doesn't error out when
1450 Checking for unpackaged file(s)
1451 - Add debug2html, smbfilter to common package
1452 - Add /usr/sbin/winbind to winbind package
1453 - Add rpcclient manpage to common package
1454 - Add smbspool, pdbedit manpage to client package
1456 * Wed Nov 06 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.6-5mdk
1457 - add winbind ldap hack again, with proper build-require (libldap2-devel)
1458 - enable --with-sendfile-support (default in 3.0. Increases performance).
1460 * Wed Oct 30 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.6-4mdk
1461 - Patch to fix fd leak with kernel change notify. (38) (--Jeremy Allison)
1463 * Fri Oct 25 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.6-3mdk
1464 - Add URL to http://www.samba.org
1465 - Add --with-winbind-ldap-hack to remove the need to enable
1466 pre-windows2000-compatible access for winbind.
1468 * Tue Oct 22 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.6-2mdk
1469 - Really switch back to std versioning.
1470 - samba-vscan v-0.2.5e
1472 * Fri Oct 18 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.6-1.3mdk
1474 - Switch back to normal versioning.
1475 - added ISO8859-8 (Hebrew).
1477 * Fri Oct 18 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.6-1.2mdk
1478 - Birthday release ;o)
1479 - Added smbumount patch back (37).
1481 * Thu Oct 17 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.6-1.1mdk
1482 - New version: 2.2.6
1484 * Wed Oct 16 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.5-23mdk
1485 - Upgrade to 2.2.6rc4
1486 - 2.2.6-1.0.rc4.1mdk
1489 * Mon Oct 14 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.5-22mdk
1490 - Upgrade to 2.2.6rc3
1491 - 2.2.6-1.0.rc3.1mdk
1493 * Thu Oct 10 2002 Buchan Milne <bgmilne@linux-mandrake.com> 2.2.5-21mdk
1494 - Put docs back (aka rpm sucks, builds cleanly when doc fails)
1495 - 2.2.6-1.0.rc2.3mdk
1497 * Thu Oct 10 2002 Buchan Milne <bgmilne@linux-mandrake.com> 2.2.5-20mdk
1498 - Fix typo in print-pdf script
1499 - Make spec resistant to arbitrary pre/alpha/rc/beta/iamnotfinishedyet strings
1501 - Stop filling CVS with READMEs (use README.samba-mandrake-rpm instead)
1502 - Make example profiles share writeable by default, and add auto-creation
1504 - Make ps printing example remove printed files by default (smb.conf)
1505 - Fix ntlogon example (smb.conf)
1507 * Thu Oct 10 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.5-19mdk
1508 - almost 2.26 (rc2)!
1510 * Mon Oct 07 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.5-18mdk
1511 - add lazy umount patch for smbumount to allow smbumount to handle
1512 broken connection. (36) (-- <kevin@vega.idv.tw>)
1514 * Thu Sep 05 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.5-17mdk
1515 - changed localhost entry in /etc/xinetd.d/swat to 127.0.0.1
1516 for resolving issue.
1518 * Thu Aug 15 2002 Buchan Milne <bgmilne@linux-mandrake.com> 2.2.5-16mdk
1519 - Don't remove swat xinetd config (that's what RPM is for!)
1520 - Don't clean menus twice
1521 - This should also be 2.2.6-1.1mdk (build from official samba tarball)
1522 - Use samba-slapd-include.conf from packaging dir (patch it in for 2.2.5)
1524 * Wed Aug 07 2002 Buchan Milne <bgmilne@linux-mandrake.com> 2.2.5-15mdk
1525 - put /var/log/samba and /var/run/samba in common (for winbind - sbenedict)
1526 - Integrate smbldap-tools, now in /usr/share/scripts/samba, with examples
1527 in smb.conf, configuration is /etc/samba/smbldap_conf.pm (please test!)
1528 This links smbldap_tools.pm and smbldap_conf.pm into perl_vendorlib
1530 - Add mkntpwd (for smbldap-tools)
1531 - Samba smbpasswd->ldap migration script also in samba scripts dir.
1532 - Add recycle.conf, fix recycle example in smb.conf (pascal@vmfacility.fr)
1534 - bump samba-vscan to 0.2.5c (not tested though - yet).
1536 * Wed Jul 24 2002 Buchan Milne <bgmilne@linux-mandrake.com> 2.2.5-14mdk
1537 - Fix ldap description (really only when built with LDAP)
1538 - Expand -server description
1539 - more winbind examples in smb.conf
1540 - add winbind version of default smb.conf (smb-winbind.conf)
1541 - Add PDF-creation script and share
1542 - Rebuild for new acl
1544 * Wed Jul 24 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 2.2.5-13mdk
1545 - rebuild for new readline
1547 * Mon Jul 22 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.5-12mdk
1548 - fixed source no. for samba-slapd.include (-- Oden Eriksson)
1549 - added CVS win2k copy bug patch (34) (-- Jeremy Alison)
1551 * Tue Jul 16 2002 Buchan Milne <bgmilne@linux-mandrake.com> 2.2.5-11mdk
1552 - Fix winbind init script (doesn't need nmbd)
1553 - Add ldap examples, pam password change, obey pam restrictions (winbind)
1554 in smb.conf (disabled of course)
1555 - Add sample LDAP configuration (/etc/samba/samba-slapd.include
1556 - Add password section to /etc/pam.d/samba (pam password change)
1557 - buildrequires readline-devel
1558 - Ensure unexpected.tdb exists for winbind/client without smbd (post in common)
1560 * Wed Jul 10 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.5-10mdk
1561 - patch (30) to randomize the way smb re-reads config files (-- Jonathan Knight)
1563 * Thu Jul 04 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.5-9mdk
1564 - changed a few perms from 775 to 755 to make rpmlint happy.
1566 * Mon Jul 01 2002 Geoffrey Lee <snailtalk@mandrakesoft.com> 2.2.5-8mdk
1567 - Don't make smbmnt and smbumount group writable.
1569 * Mon Jul 01 2002 Geoffrey Lee <snailtalk@mandrakesoft.com> 2.2.5-7mdk
1570 - Really fix the Alpha (I suck).
1572 * Thu Jun 27 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.5-6mdk
1573 - directory listings vs NT/win2k servers helper patch (30) (--Urban Widmark)
1574 - build --with-libsmbclient
1576 * Thu Jun 27 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.5-5mdk
1577 - parsing fix for spoolss (29) (-- Jerry Carter)
1578 - Don't make the -ldap packages conflicts with the "normal" packages,
1579 but make them Obsoletes (-- Alexander Skwar)
1581 * Thu Jun 27 2002 Geoffrey Lee <snailtalk@mandrakesoft.com> 2.2.5-4mdk
1584 * Wed Jun 26 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.5-3mdk
1585 - ldap patch (28) (-- Jerry Carter)
1587 * Wed Jun 19 2002 Buchan Milne <bgmilne@linux-mandrake.com> 2.2.5-2mdk
1588 - Fix build on 8.1 (no nested conditionals)
1589 - Make provision for newer Mandrake releases
1591 * Wed Jun 19 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.5-1mdk
1593 - removed patch27 (included in new release)
1595 * Mon Jun 18 2002 Buchan Milne <bgmilne@linux-mandrake.com> 2.2.5-0.pre1.5mdk
1596 - Modifications for samba-2.2.5 source release
1597 - New samba-vscan (0.2.5a)
1598 - Samba releases will be 1.prelease.mdk (to upgrade prereleases nicely).
1600 * Mon Jun 17 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.5-0.pre1.4mdk
1602 - Please TEST, REBUILD with or without LDAP etc., and report any errors... Thanks!
1604 * Mon Jun 17 2002 Buchan Milne <bgmilne@linux-mandrake.com> 2.2.5-0.pre1.3mdk
1605 - s/%%define/%%global for macros used for package definitions (so --with
1606 ldap and --with sophos actually build appropriate packages f.e.)
1607 - Obsoletes: samba in samba-server
1608 - Prevent vscan vfs objects going into samba-server (!deps on scanner)
1609 - Disable automatic dependency checks for vscan subpackages
1610 - Build vfs objects in a copy of examples (examples.bin) so no bins in doc
1611 - Make vi faster ;-) (remove spurious single quote in swat description)
1612 - Add doc (INSTALL) for vscan packages
1613 - Try and sort out dependencies and conflicts
1615 * Fri Jun 14 2002 Buchan Milne <bgmilne@linux-mandrake.com> 2.2.5-0.pre1.2mdk
1616 - Patch27 (prevent all samba binaries linking to libldap)
1617 - New samba-swat-ldap and samba-winbind-ldap packages
1618 - move smbcacls to samba-common(-ldap), since it links to libldap
1619 - Only packages which don't build ldap-specific are nss_wins,doc and client
1621 * Mon Jun 10 2002 Buchan Milne <bgmilne@linux-mandrake.com> 2.2.5-0.pre1.1mdk
1622 - Introduce new samba-server-ldap and samba-common-ldap packages
1624 * Mon Jun 10 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.5-0.pre1.0mdk
1625 - first release with 2.2.5pre1.
1626 - samba-*.rpm now renamed samba-server-*.rpm
1627 - vfs modules are back in town
1629 * Tue Jun 04 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.4-5mdk
1630 - changed vfs location in sample mdk smb.conf.
1632 * Mon Jun 03 2002 Buchan Milne <bgmilne@linux-mandrake.com> 2.2.4-4mdk
1633 - More patch cleaning
1634 - Antivirus support (optional at build time). Please test if you have one of
1635 fprot, kaspersky,mks,symantec or trend. Sophos has been tested and builds
1637 - Move all vfs objects to /usr/lib/samba/vfs
1639 * Mon May 27 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.4-3mdk
1640 - Rollup patch for most of the printing fixes in SAMBA_2_2. (-- Jerry Carter)
1641 - build + install VFS objects
1642 - patched VFS network recycle_bin (-- Kohei Yoshida)
1643 - added VFS examples in smb.conf
1645 * Mon May 13 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.4-2mdk
1646 - Cleaned a few useless patches.
1647 - Added a few codepages.
1648 - LDAP support in option.
1650 * Fri May 03 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.4-1mdk
1652 - Default build for cooker now includes LDAP support (as in 2.2.X).
1653 - Commented pversion/prelease defs.
1654 - Modif of the Cooker detection routine (use of grep).
1656 * Fri Apr 26 2002 Buchan Milne <bgmilne@cae.co.za> 2.2.3a-12mdk
1657 - Final changes for 2.2.4 release
1658 - Removed patches 4(nsl),11(smbspool-guest)
1659 - Made patch 7 (2.2.3a-init) release specific
1661 * Sun Apr 21 2002 Buchan Milne <bgmilne@cae.co.za> 2.2.3a-11mdk
1662 - Tested with CVS snapshot (upcoming relaese, sync packaging)
1663 - Added detection of samba-official release (so we can keep one spec
1664 file in sync in both cvs trees)
1665 - Add Distro-detection(tm) (allows us to remove some arbitrary repitition)
1666 - Made patches 20,21,23 (merged upstream), and 22 (breaks pam_smbpass
1667 compilation, pam_smbpass.so seems to be built correctly without it)
1669 - Removed patches 18,19 (only applicable to 2.2.2)
1671 * Sat Mar 16 2002 Pixel <pixel@mandrakesoft.com> 2.2.3a-10mdk
1672 - fix Patch 7 to fix samba not starting at boot time
1674 * Tue Mar 12 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.3a-9mdk
1675 - Patch 7 to fix samba not starting at boot time (-- Pixel)
1677 * Sat Mar 9 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.3a-8mdk
1678 - Patch 23 from CVS to fix saving changes in printer properties (-- Gerald Carter)
1680 * Fri Mar 8 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.3a-7mdk
1681 - Added a few new codepage/character sets.
1682 - replace deletion of /var/cache/samba by simple backup when removing samba
1683 to avoid loosing winbind rid->uid map and print driver tdbs.
1684 - Moved /var/cache/samba migration process from %post samba to %post samba-common.
1685 - Moved require xinetd from samba to samba-swat.
1687 * Mon Feb 27 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.3a-6mdk
1688 - Fixed pam_smbpass compiling problem. (-- Ilia Chipitsine)
1689 - moved /var/cache/samba from server to common as it's used by client too.
1690 - symlinked smbwrapper.so back to /usr/bin to fix smbsh pb. (-- Alexander Skwar)
1691 - added %_post/preun_service macro for smb & winbind.
1693 * Fri Feb 22 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.3a-5mdk
1694 - added cli_spoolss_notify patch to prevent smbd dying when a printer
1695 is opened from Win2k. (-- Gerald Carter)
1697 * Mon Feb 18 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.3a-4mdk
1698 - fixed the chkconfig --reset when upgrading form previos version.
1699 - added correct LDAP schema in example section.
1701 * Fri Feb 08 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.3a-3mdk
1702 - _Really_ suid back smbumount; OK, you can laugh now...
1704 * Fri Feb 08 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.3a-2mdk
1705 - suid back smbumount.
1707 * Thu Feb 07 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.3a-1mdk
1708 - upped to 2.2.3a bugfix version.
1709 - removed suid on smb(u)mount, suid smbmnt instead.
1711 * Mon Feb 04 2002 Buchan Milne <bgmilne@cae.co.za> 2.2.3-2mdk
1712 - Added --without xxx support for all the --with xxx command-
1713 line options. Now also detects (and warns) when built
1714 for non-default distro.
1715 - Fix %post -n samba-winbind
1717 * Mon Feb 04 2002 Buchan Milne <bgmilne@cae.co.za> 2.2.3-1mdk
1718 - Samba-2.2.3. Disabled patches 6,18,19, which should have been
1719 applied in samba CVS.
1721 * Sun Feb 03 2002 Buchan Milne <bgmilne@cae.co.za> 2.2.2-10mdk
1722 - Reenable patches 6 and 19 (applied in CVS, but this is 2.2.2!)
1723 - Added option to use --with xxx when building, options so far
1724 for mdk72, mdk80, mdk81, mdk82, cooker, ldap, winbind, wins, acl
1725 - Put warning text in %description if the RPM was built with
1728 * Mon Jan 21 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-9mdk
1729 - Fixed %post scripts here and there.
1730 - samba-common %post scriptlet is now clean (-- thanks Zytho).
1732 * Mon Jan 21 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-8mdk
1733 - rebuilt on cooker.
1734 - please test extensively this package,
1735 but consider our target _is_ 2.2.3.
1737 * Thu Jan 17 2002 Buchan Milne <bgmilne@cae.co.za> 2.2.2-7mdk
1738 - Make a 2.2.2 package for the changes in 2.2.3:
1739 - reenable XFS quota patch, turned off ldap
1741 * Thu Jan 17 2002 Buchan Milne <bgmilne@cae.co.za> 2.2.3-0.20020117mdk
1742 - New scripts for winbind from 3.0alpha spec file
1744 * Wed Jan 16 2002 Buchan Milne <bgmilne@cae.co.za> 2.2.3-0.20020116mdk
1745 - Updated CVS snapshot
1747 * Sun Dec 23 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.3-0.20011222mdk
1749 - Sync up with changes made in 2.2.2 to support Mandrake 8.0, 7.2
1750 - Added new subpackage for swat
1751 - More %if's for ldap.
1753 * Thu Dec 06 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.3-0.20011205mdk
1754 - Build from CVS snapshot of SAMBA_2_2 to test XFS quotas
1755 - Removed XFS quota patch (applied upstream)
1757 * Wed Dec 05 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-6mdk
1758 - fixed typo in system-auth-winbind.pamd (--Thanks J. Gluck).
1759 - fixed %post xxx problem (smb not started in chkconfig --Thanks Viet & B. Kenworthy).
1761 * Fri Nov 23 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-5mdk
1762 - Had to remove the network recycle bin patch: it seems to mess up
1763 file deletion from windows (files appear to be "already in use")
1765 * Tue Nov 13 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-4mdk
1766 - added network recycle bin patch:
1767 <http://www.amherst.edu/~bbstone/howto/samba.html>
1768 - added "recycle bin = .recycled" parameter in smb.conf [homes].
1769 - fixed winbind/nss_wins perms (oh no I don't own that stuff ;o)
1771 * Mon Nov 12 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-3mdk
1772 - added %build 8.0 and 7.2, for tweakers to play around.
1773 - changed configure options:
1774 . removed --with-mmap, --with-netatalk (obsolete).
1775 . added --with-msdfs, --with-vfs (seems stable, but still need testing).
1777 * Mon Nov 12 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-2mdk
1778 - rebuilt with winbind and nss_wins enabled.
1780 * Wed Oct 31 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-1mdk
1781 - Rebuilt on cooker.
1783 * Wed Oct 31 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.992mdk
1784 - Patch for smb.conf to fix incorrect lpq command, typo in winbind,
1785 and add sample linpopup command. Added print driver directories.
1786 - New XFS quota patch (untested!, samba runs, but do quotas work? We
1787 can't check yet since the kernel doesn't seem to support XFS quotas!)
1789 * Fri Oct 19 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-0.99mdk
1790 - New samba.spec, almost ready for winbind operations. OLA for Buchan Milne
1791 Who did a tremendous integration work on 2.2.2.
1792 Rebuild on cooker, please test XFS (ACLs and quotas) again...
1794 * Mon Oct 15 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.9mdk
1795 - Samba-2.2.2. released! Use %defines to determine which subpackages
1796 are built and which Mandrake release we are buiding on/for (hint: define
1797 build_mdk81 1 for Mandrake 8.1 updates)
1799 * Sun Oct 14 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011014mdk
1800 - %post and %postun for nss_wins
1802 * Wed Oct 10 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011010mdk
1803 - New CVS snapshot, /etc/pam.d/system-auth-winbind added
1804 with configuration to allow easy winbind setup.
1806 * Sun Oct 7 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011007mdk
1807 - Added new package nss_wins and moved smbpasswd to common (required by
1810 * Sat Oct 6 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011006mdk
1811 - Added new package winbind.
1813 * Mon Oct 1 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011001mdk
1814 - Removed patch to smb init.d file (applied in cvs)
1816 * Sun Sep 30 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20010930mdk
1817 - Added winbind init script, which still needs to check for running nmbd.
1819 * Thu Sep 27 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20010927mdk
1820 - Built from samba-2.2.2-pre cvs, added winbindd, wbinfo, nss_winbind and
1821 pam_winbind, moved pam_smbpass from samba-common to samba. We still
1822 need a start-up script for winbind, or need to modify existing one.
1824 * Mon Sep 10 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-15mdk
1825 - Enabled acl support (XFS acls now supported by kernel-2.4.8-21mdk thx Chmou)
1826 Added smbd patch to support XFS quota (Nathan Scott)
1828 * Mon Sep 10 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-14mdk
1829 - Oops! smbpasswd created in wrong directory...
1831 * Tue Sep 06 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-13mdk
1832 - Removed a wrong comment in smb.conf.
1833 Added creation of smbpasswd during install.
1835 * Mon Aug 27 2001 Pixel <pixel@mandrakesoft.com> 2.2.1a-12mdk
1836 - really less verbose %%post
1838 * Sat Aug 25 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 2.2.1a-11mdk
1839 - Fix shared libs in /usr/bin silliness.
1841 * Thu Aug 23 2001 Pixel <pixel@mandrakesoft.com> 2.2.1a-10mdk
1842 - less verbose %%post
1844 * Wed Aug 22 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1a-9mdk
1845 - Added smbcacls (missing in %files), modification to smb.conf: ([printers]
1846 is still needed, even with point-and-print!, user add script should
1847 use name and not gid, since we may not get the gid . New script for
1848 putting manpages in place (still need to be added in %files!). Moved
1849 smbcontrol to sbin and added it and its man page to %files.
1851 * Wed Aug 22 2001 Pixel <pixel@mandrakesoft.com> 2.2.1a-8mdk
1852 - cleanup /var/lib/samba/codepage/src
1854 * Tue Aug 21 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-7mdk
1855 - moved codepage generation to %install and codepage dir to /var/lib/samba
1857 * Tue Aug 21 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-6mdk
1858 - /lib/* was in both samba and samba-common
1859 Introducing samba-doc: "alas, for the sake of thy modem, shalt thou remember
1860 when Samba was under the Megabyte..."
1862 * Fri Aug 03 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-5mdk
1863 - Added "the gc touch" to smbinit through the use of killall -0 instead of
1864 grep cupsd | grep -v grep (too many greps :o)
1866 * Wed Jul 18 2001 Stefan van der Eijk <stefan@eijk.nu> 2.2.1a-4mdk
1867 - BuildRequires: libcups-devel
1868 - Removed BuildRequires: openssl-devel
1870 * Fri Jul 13 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-3mdk
1871 - replace chkconfig --add/del with --level 35 on/reset.
1873 * Fri Jul 13 2001 Geoffrey Lee <snailtalk@mandrakesoft.cm> 2.2.1a-2mdk
1874 - Replace discription s/inetd/xinetd/, we all love xinetd, blah.
1876 * Thu Jul 12 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1a-1mdk
1877 - Bugfix release. Fixed add user script, added print$ share and printer admin
1878 We need to test interaction of new print support with CUPS, but printer
1879 driver uploads should work.
1881 * Wed Jul 11 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-17mdk
1882 - fixed smb.conf a bit, rebuilt on cooker.
1884 * Tue Jul 10 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1-16mdk
1885 - Finally, samba 2.2.1 has actually been release. At least we were ready!
1886 Cleaned up smb.conf, and added some useful entries for domain controlling.
1887 Migrated changes made in samba's samba2.spec for 2.2.1 to this file.
1888 Added groupadd command in post to create a group for samba machine accounts.
1889 (We should still check the postun, samba removes pam, logs and cache)
1891 * Tue Jun 26 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-15mdk
1892 - fixed smbwrapper compile options.
1894 * Tue Jun 26 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-14mdk
1895 - added LFS support.
1896 added smbwrapper support (smbsh)
1898 * Wed Jun 20 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-13mdk
1899 - /sbin/mount.smb and /sbin/mount.smbfs now point to the correct location
1900 of smbmount (/usr/bin/smbmount)
1902 * Tue Jun 19 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-12mdk
1903 - smbmount and smbumount are now in /usr/bin and SUID.
1904 added ||: to triggerpostun son you don't get error 1 anymore when rpm -e
1905 Checked the .bz2 sources with file *: everything is OK now (I'm so stupid ;o)!
1907 * Tue Jun 19 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 2.2.1-11mdk
1908 - s/Copyright/License/;
1909 - Stop Sylvester from pretending .gz source to be .bz2 source via filename
1910 aka really bzip2 the source.
1912 * Mon Jun 18 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-10mdk
1913 - changed Till's startup script modifications: now samba is being reloaded
1914 automatically 1 minute after it has started (same reasons as below in 9mdk)
1915 added _post_ and _preun_ for service smb
1916 fixed creation of /var/lib/samba/{netlogon,profiles} (%dir was missing)
1918 * Thu Jun 14 2001 Till Kamppeter <till@mandrakesoft.com> 2.2.1-9mdk
1919 - Modified the Samba startup script so that in case of CUPS being used as
1920 printing system Samba only starts when the CUPS daemon is ready to accept
1921 requests. Otherwise the CUPS queues would not appear as Samba shares.
1923 * Mon Jun 11 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-8mdk
1924 - patched smbmount.c to have it call smbmnt in sbin (thanks Seb).
1926 * Wed May 30 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-7mdk
1927 - put SWAT menu icons back in place.
1929 * Mon May 28 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-6mdk
1930 - OOPS! fixed smbmount symlinks
1932 * Mon May 28 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-5mdk
1933 - removed inetd postun script, replaced with xinetd.
1934 updated binary list (smbcacls...)
1937 * Mon May 28 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1-4mdk
1938 - Changed configure options to point to correct log and codepage directories,
1939 added crude script to fix logrotate file for new log file names, updated
1940 patches to work with current CVS.
1942 * Thu May 24 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-3mdk
1943 - Cleaned and updated the %files section.
1945 * Sat May 19 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-2mdk
1946 - Moved all samba files from /etc to /etc/samba (Thanks DomS!).
1947 Fixed fixinit patch (/etc/samba/smb.conf)
1949 * Fri May 18 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1-1mdk
1950 - Now use packaging/Mandrake/smb.conf, removed unused and obsolete
1951 patches, moved netlogon and profile shares to /var/lib/samba in the
1952 smb.conf to match the spec file. Added configuration for ntlogon to
1953 smb.conf. Removed pam-foo, fixinit and makefilepath patches. Removed
1954 symlink I introduced in 2.2.0-1mdk
1956 * Thu May 3 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.0-5mdk
1957 - Added more configure options. Changed Description field (thx John T).
1959 * Wed Apr 25 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.0-4mdk
1960 - moved netlogon and profiles to /var/lib/samba by popular demand ;o)
1962 * Tue Apr 24 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.0-3mdk
1963 - moved netlogon and profiles back to /home.
1965 * Fri Apr 20 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.0-2mdk
1966 - fixed post inetd/xinetd script&
1968 * Thu Apr 19 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.0-1mdk
1969 - Upgrade to 2.2.0. Merged most of 2.0.7-25mdk's patches (beware
1970 nasty "ln -sf samba-%{ver} ../samba-2.0.7" hack to force some patches
1971 to take. smbadduser and addtosmbpass seem to have disappeared. Moved
1972 all Mandrake-specific files to packaging/Mandrake and made patches
1973 from those shipped with samba. Moved netlogon to /home/samba and added
1974 /home/samba/profiles. Added winbind,smbfilter and debug2html to make command.
1976 * Thu Apr 12 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 2.0.7-25mdk
1977 - Fix menu entry and provide separate menu entry for GNOME
1978 (nautilus doesn't support HTTP authentication yet)
1979 - Add icons in package
1981 * Fri Mar 30 2001 Frederic Lepied <flepied@mandrakesoft.com> 2.0.7-24mdk
1982 - use new server macros
1984 * Wed Mar 21 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-23mdk
1985 - check whether /etc/inetd.conf exists (upgrade) or not (fresh install).
1987 * Thu Mar 15 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-22mdk
1988 - spec cosmetics, added '-r' option to lpr-cups command line so files are
1989 removed from /var/spool/samba after printing.
1991 * Tue Mar 06 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-21mdk
1992 - merged last rh patches.
1994 * Thu Nov 23 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-20mdk
1995 - removed dependencies on cups and cups-devel so one can install samba without using cups
1996 - added /home/netlogon
1998 * Mon Nov 20 2000 Till Kamppeter <till@mandrakesoft.com> 2.0.7-19mdk
1999 - Changed default print command in /etc/smb.conf, so that the Windows
2000 driver of the printer has to be used on the client.
2001 - Fixed bug in smbspool which prevented from printing from a
2002 Linux-Samba-CUPS client to a Windows server through the guest account.
2004 * Mon Oct 16 2000 Till Kamppeter <till@mandrakesoft.com> 2.0.7-18mdk
2005 - Moved "smbspool" (Samba client of CUPS) to the samba-client package
2007 * Sat Oct 7 2000 Stefan van der Eijk <s.vandereijk@chello.nl> 2.0.7-17mdk
2008 - Added RedHat's "quota" patch to samba-glibc21.patch.bz2, this fixes
2009 quota related compile problems on the alpha.
2011 * Wed Oct 4 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-16mdk
2012 - Fixed 'guest ok = ok' flag in smb.conf
2014 * Tue Oct 3 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-15mdk
2015 - Allowed guest account to print in smb.conf
2016 - added swat icon in menu
2018 * Tue Oct 3 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-14mdk
2019 - Removed rh ssl patch and --with-ssl flag: not appropriate for 7.2
2021 * Tue Oct 3 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-13mdk
2022 - Changed fixinit patch.
2023 - Changed smb.conf for better CUPS configuration.
2024 - Thanks Fred for doing this ---vvv.
2026 * Tue Oct 3 2000 Frederic Lepied <flepied@mandrakesoft.com> 2.0.7-12mdk
2027 - menu entry for web configuration tool.
2028 - merge with rh: xinetd + ssl + pam_stack.
2029 - Added smbadduser rh-bugfix w/o relocation of config-files.
2031 * Mon Oct 2 2000 Frederic Lepied <flepied@mandrakesoft.com> 2.0.7-11mdk
2032 - added build requires on cups-devel and pam-devel.
2034 * Mon Oct 2 2000 Till Kamppeter <till@mandrakesoft.com> 2.0.7-10mdk
2035 - Fixed smb.conf entry for CUPS: "printcap name = lpstat", "lpstats" was
2038 * Mon Sep 25 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-9mdk
2039 - Cosmetic changes to make rpmlint more happy
2041 * Wed Sep 11 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-8mdk
2042 - added linkage to the using_samba book in swat
2044 * Fri Sep 01 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-7mdk
2045 - Added CUPS support to smb.conf
2046 - Added internationalization options to smb.conf [Global]
2048 * Wed Aug 30 2000 Till Kamppeter <till@mandrakesoft.com> 2.0.7-6mdk
2049 - Put "smbspool" to the files to install
2051 * Wed Aug 30 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-5mdk
2052 - Did some cleaning in the patches
2054 * Fri Jul 28 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-4mdk
2055 - relocated man pages from /usr/man to /usr/share/man for compatibility reasons
2057 * Fri Jul 28 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-3mdk
2058 - added make_unicodemap and build of unicode_map.$i in the spec file
2060 * Fri Jul 28 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-2mdk
2061 - renamed /etc/codepage/codepage.$i into /etc/codepage/unicode_map.$i to fix smbmount bug.
2063 * Fri Jul 07 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-1mdk
2066 * Wed Apr 05 2000 Francis Galiegue <fg@mandrakesoft.com> 2.0.6-4mdk
2068 - Titi sucks, does not put versions in changelog
2069 - Fixed groups for -common and -client
2070 - /usr/sbin/samba is no config file
2072 * Thu Mar 23 2000 Thierry Vignaud <tvignaud@mandrakesoft.com>
2073 - fix buggy post install script (pixel)
2075 * Fri Mar 17 2000 Francis Galiegue <francis@mandrakesoft.com> 2.0.6-2mdk
2077 - Changed group according to 7.1 specs
2078 - Some spec file changes
2079 - Let spec-helper do its job
2081 * Thu Nov 25 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
2084 * Tue Nov 2 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
2085 - Merge with rh changes.
2086 - Split in 3 packages.
2088 * Fri Aug 13 1999 Pablo Saratxaga <pablo@@mandrakesoft.com>
2089 - corrected a bug with %post (the $1 parameter is "1" in case of
2090 a first install, not "0". That parameter is the number of packages
2091 of the same name that will exist after running all the steps if nothing
2092 is removed; so it is "1" after first isntall, "2" for a second install
2093 or an upgrade, and "0" for a removal)
2095 * Wed Jul 28 1999 Pablo Saratxaga <pablo@@mandrakesoft.com>
2096 - made smbmnt and smbumount suid root, and only executable by group 'smb'
2097 add to 'smb' group any user that should be allowed to mount/unmount
2098 SMB shared directories
2100 * Fri Jul 23 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
2101 - 2.0.5a (bug security fix).
2103 * Wed Jul 21 1999 Axalon Bloodstone <axalon@linux-mandrake.com>
2105 - cs/da/de/fi/fr/it/tr descriptions/summaries
2107 * Sun Jun 13 1999 Bernhard Rosenkränzer <bero@mandrakesoft.com>
2109 - recompile on a system that works ;)
2111 * Wed Apr 21 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
2112 - Mandrake adaptations.
2115 * Fri Mar 26 1999 Bill Nottingham <notting@redhat.com>
2116 - add a mount.smb to make smb mounting a little easier.
2117 - smb filesystems apparently do not work on alpha. Oops.
2119 * Thu Mar 25 1999 Bill Nottingham <notting@redhat.com>
2120 - always create codepages
2122 * Tue Mar 23 1999 Bill Nottingham <notting@redhat.com>
2125 * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
2126 - auto rebuild in the new build environment (release 3)
2128 * Fri Mar 19 1999 Preston Brown <pbrown@redhat.com>
2129 - updated init script to use graceful restart (not stop/start)
2131 * Tue Mar 9 1999 Bill Nottingham <notting@redhat.com>
2134 * Thu Feb 18 1999 Bill Nottingham <notting@redhat.com>
2137 * Mon Feb 15 1999 Bill Nottingham <notting@redhat.com>
2140 * Tue Feb 9 1999 Bill Nottingham <notting@redhat.com>
2141 - fix bash2 breakage in post script
2143 * Fri Feb 5 1999 Bill Nottingham <notting@redhat.com>
2146 * Mon Oct 12 1998 Cristian Gafton <gafton@redhat.com>
2147 - make sure all binaries are stripped
2149 * Thu Sep 17 1998 Jeff Johnson <jbj@redhat.com>
2150 - update to 1.9.18p10.
2151 - fix %triggerpostun.
2153 * Tue Jul 07 1998 Erik Troan <ewt@redhat.com>
2154 - updated postun triggerscript to check $0
2155 - clear /etc/codepages from %preun instead of %postun
2157 * Mon Jun 08 1998 Erik Troan <ewt@redhat.com>
2158 - made the %postun script a tad less agressive; no reason to remove
2159 the logs or lock file (after all, if the lock file is still there,
2160 samba is still running)
2161 - the %postun and %preun should only exectute if this is the final
2163 - migrated %triggerpostun from Red Hat's samba package to work around
2164 packaging problems in some Red Hat samba releases
2166 * Sun Apr 26 1998 John H Terpstra <jht@samba.anu.edu.au>
2167 - minor tidy up in preparation for release of 1.9.18p5
2168 - added findsmb utility from SGI package
2170 * Wed Mar 18 1998 John H Terpstra <jht@samba.anu.edu.au>
2171 - Updated version and codepage info.
2172 - Release to test name resolve order
2174 * Sat Jan 24 1998 John H Terpstra <jht@samba.anu.edu.au>
2175 - Many optimisations (some suggested by Manoj Kasichainula <manojk@io.com>
2176 - Use of chkconfig in place of individual symlinks to /etc/rc.d/init/smb
2177 - Compounded make line
2178 - Updated smb.init restart mechanism
2179 - Use compound mkdir -p line instead of individual calls to mkdir
2180 - Fixed smb.conf file path for log files
2181 - Fixed smb.conf file path for incoming smb print spool directory
2182 - Added a number of options to smb.conf file
2183 - Added smbadduser command (missed from all previous RPMs) - Doooh!
2184 - Added smbuser file and smb.conf file updates for username map