1 # Note that this file exists in Mandrake packaging cvs (as samba3.spec)
2 # and samba cvs (as packaging/Mandrake/samba2.spec.tmpl).
3 # Keep in mind that any changes should take both locations into account
4 # Considerable effort has gone into making this possible, so that only
5 # one spec file is maintained, please don't break it.
6 # It should be possible, without any changes to this file, to build
7 # binary packages on most recent Mandrake releases:
8 # 1)from official source releases, using 'cd packaging/Mandrake; sh makerpms.sh'
9 # 2)from cvs snapshots, using 'cd packaging/Mandrake; sh makerpms-cvs.sh <ver>'
10 # 3)using official source releases and updated Mandrake packaging, by
11 # 'rpm -ba samba.spec'
12 # As such, any sources or patches used in a build from a samba release or
13 # cvs should be submitted for inclusion in samba cvs.
15 %define pkg_name samba
16 %define ver 3.0alpha22
18 %define vscanver 0.3.1
21 # Determine whether this is the system samba or not.
22 %define build_system 0
24 %define samba_major %{null}
29 # Version and release replaced by samba-team at release from samba cvs
30 %define pversion PVERSION
31 %define prelease PRELEASE
33 #Check to see if p(version|release) has been replaced (1 if replaced)
34 %define have_pversion %(if [ "%pversion" = `echo "pversion" |tr '[:lower:]' '[:upper:]'` ];then echo 0; else echo 1; fi)
35 %define have_prelease %(if [ "%prelease" = `echo "prelease" |tr '[:lower:]' '[:upper:]'` ];then echo 0; else echo 1; fi)
38 %define source_ver %{pversion}
40 %define source_ver %{ver}
43 # We might have a prerelease:
44 %define have_pre %(echo %source_ver|awk '{p=0} /[a-z,A-Z][a-z,A-Z]/ {p=1} {print p}')
46 %define pre_ver %(perl -e '$name="%source_ver"; print ($name =~ /(.*?)[a-z]/);')
47 %define pre_pre %(echo %source_ver|sed -e 's/%pre_ver//g')
50 # Check to see if we are running a build from a tarball release from samba.org
51 # (%have_pversion) If so, disable vscan, unless explicitly requested
56 %{?_with_vscan: %define build_vscan 1}
59 # We now do detection of the Mandrake release we are building on:
60 #%define build_cooker %(if [ `awk '{print $3}' /etc/mandrake-release` = "Cooker" ];then echo 1; else echo 0; fi)
61 #%define build_cooker %(if [[ `cat /etc/mandrake-release|grep Cooker` ]];then echo 1; else echo 0; fi)
62 %define build_mdk91 %(if [ `awk '{print $4}' /etc/mandrake-release` = 9.1 ];then echo 1; else echo 0; fi)
63 %define build_mdk90 %(if [ `awk '{print $4}' /etc/mandrake-release` = 9.0 ];then echo 1; else echo 0; fi)
64 %define build_mdk82 %(if [ `awk '{print $4}' /etc/mandrake-release` = 8.2 ];then echo 1; else echo 0; fi)
65 %define build_mdk81 %(if [ `awk '{print $4}' /etc/mandrake-release` = 8.1 ];then echo 1; else echo 0; fi)
66 %define build_mdk80 %(if [ `awk '{print $4}' /etc/mandrake-release` = 8.0 ];then echo 1; else echo 0; fi)
67 %define build_mdk72 %(if [ `awk '{print $4}' /etc/mandrake-release` = 7.2 ];then echo 1; else echo 0; fi)
68 %define build_non_default 0
72 %define build_winbind 1
76 %define build_scanners 0
77 # CUPS supports functionality for 'printcap name = cups' (9.0 and later):
78 %define build_cupspc 0
80 # Set defaults for each version
82 %define build_cupspc 1
92 %define build_winbind 0
98 %define build_winbind 0
104 %define build_winbind 0
108 # Allow commandline option overrides (borrowed from Vince's qmail srpm):
109 # To use it, do rpm [-ba|--rebuild] --with 'xxx'
110 # Check if the rpm was built with the defaults, otherwise we inform the user
111 %define build_non_default 0
112 %{?_with_acl: %{expand: %%define build_acl 1}}
113 %{?_with_acl: %{expand: %%define build_non_default 1}}
114 %{?_without_acl: %{expand: %%define build_acl 0}}
115 %{?_without_acl: %{expand: %%define build_non_default 1}}
116 %{?_with_winbind: %{expand: %%global build_winbind 1}}
117 %{?_with_winbind: %{expand: %%define build_non_default 1}}
118 %{?_without_winbind: %{expand: %%define build_winbind 0}}
119 %{?_without_winbind: %{expand: %%define build_non_default 1}}
120 %{?_with_wins: %{expand: %%global build_wins 1}}
121 %{?_with_wins: %{expand: %%define build_non_default 1}}
122 %{?_without_wins: %{expand: %%global build_wins 0}}
123 %{?_without_wins: %{expand: %%define build_non_default 1}}
124 %{?_with_ldap: %{expand: %%global build_ldap 1}}
125 %{?_with_ldap: %{expand: %%define build_non_default 1}}
126 %{?_without_ldap: %{expand: %%global build_ldap 0}}
127 %{?_without_ldap: %{expand: %%define build_non_default 1}}
128 %{?_with_ads: %{expand: %%define build_ads 1}}
129 %{?_with_ads: %{expand: %%define build_non_default 1}}
130 %{?_without_ads: %{expand: %%define build_ads 0}}
131 %{?_without_ads: %{expand: %%define build_non_default 1}}
132 %{?_with_scanners: %{expand: %%define build_scanners 1}}
133 %{?_with_scanners: %{expand: %%define build_non_default 1}}
135 # As if that weren't enough, we're going to try building with antivirus
136 # support as an option also
137 %define build_fprot 0
138 %define build_kaspersky 0
140 %define build_openav 0
141 %define build_sophos 0
142 %define build_symantec 0
143 %define build_trend 0
144 %if %build_vscan && %build_scanners
145 #These can be enabled here by default
146 # (kaspersky requires their library present)
147 %define build_fprot 1
149 %define build_openav 1
150 %define build_sophos 1
151 %define build_trend 1
154 %{?_with_fprot: %{expand: %%global build_fprot 1}}
155 %{?_with_kaspersky: %{expand: %%global build_kaspersky 1}}
156 %{?_with_mks: %{expand: %%global build_mks 1}}
157 %{?_with_openav: %{expand: %%global build_openav 1}}
158 %{?_with_sophos: %{expand: %%global build_sophos 1}}
159 #%{?_with_symantec: %{expand: %%global build_symantec 1}}
160 %{?_with_trend: %{expand: %%global build_trend 1}}
161 %global vscandir samba-vscan-%{vscanver}
163 %global vfsdir examples.bin/VFS
165 #Workaround missing macros in 8.x:
166 %{!?perl_vendorlib: %{expand: %%global perl_vendorlib %{perl_sitearch}/../}}
168 Summary: Samba SMB server.
169 Name: %{pkg_name}%{samba_major}
174 Version: %{source_ver}
177 %if %have_prelease && !%have_pre
178 Release: 1.%{prelease}mdk
180 %if %have_prelease && %have_pre
181 Release: 0.%{pre_pre}.%{prelease}mdk
183 %if !%have_prelease && !%have_pre
186 %if !%have_prelease && %have_pre
187 Release: 0.%{pre_pre}.%{rel}
191 Group: System/Servers
192 Source: ftp://samba.org/pub/samba/samba-%{source_ver}.tar.bz2
193 URL: http://www.samba.org
195 Source3: samba.xinetd
196 Source4: swat_48.xpm.bz2
197 Source5: swat_32.xpm.bz2
198 Source6: swat_16.xpm.bz2
199 Source7: README.%{name}-mandrake-rpm
201 Source8: samba-vscan-%{vscanver}.tar.bz2
203 Source10: samba-print-pdf.sh.bz2
204 Patch1: smbw.patch.bz2
205 Patch2: samba-2.2.0-gawk.patch.bz2
206 Patch3: samba-2.2.0-buildroot.patch.bz2
207 Patch4: samba-3.0-smbmount-sbin.patch.bz2
209 # Version specific patches: current version
210 Patch101: samba-Makefile-3.0alpha21.patch.bz2
211 Patch102: samba-3.0alpha22-mandrake-packaging.patch.bz2
212 Patch110: samba-2.2.7a-fix-build.patch.bz2
214 # Version specific patches: upcoming version
216 # Limbo patches (applied to prereleases, but not preleases, ie destined for
218 %if %have_pversion && %have_pre
220 Requires: pam >= 0.64, samba-common = %{version}
221 BuildRequires: pam-devel autoconf readline-devel
222 BuildRequires: libxml2-devel
223 BuildRequires: mysql-devel
225 BuildRequires: libacl-devel
228 BuildRequires: cups-devel
230 BuildRequires: libcups-devel
232 BuildRequires: libldap-devel
234 BuildRequires: libldap-devel krb5-devel
236 BuildRoot: %{_tmppath}/%{name}-root
238 Prereq: /sbin/chkconfig /bin/mktemp /usr/bin/killall
239 Prereq: fileutils sed /bin/grep
242 Samba provides an SMB server which can be used to provide
243 network services to SMB (sometimes called "Lan Manager")
244 clients, including various versions of MS Windows, OS/2,
245 and other Linux machines. Samba also provides some SMB
246 clients, which complement the built-in SMB filesystem
247 in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols
248 and does NOT need NetBEUI (Microsoft Raw NetBIOS frame)
251 Samba-3.0 features working NT Domain Control capability and
252 includes the SWAT (Samba Web Administration Tool) that
253 allows samba's smb.conf file to be remotely managed using your
254 favourite web browser. For the time being this is being
255 enabled on TCP port 901 via xinetd. SWAT is now included in
256 it's own subpackage, samba-swat.
258 Please refer to the WHATSNEW.txt document for fixup information.
259 This binary release includes encrypted password support.
261 Please read the smb.conf file and ENCRYPTION.txt in the
262 docs directory for implementation details.
265 NOTE: This is a prerelease of samba-%{samba_major}, not intended
266 for production use. If something breaks, file a bug report.
269 %if %build_non_default
270 WARNING: This RPM was built with command-line options. Please
271 see README.%{name}-mandrake-rpm in the documentation for
276 URL: http://www.samba.org
277 Summary: Samba (SMB) server programs.
278 Requires: %{name}-common = %{version}
280 Group: Networking/Other
284 Obsoletes: samba-server-ldap
285 Obsoletes: samba3-server
287 #Provides: samba-server
291 Samba-server provides a SMB server which can be used to provide
292 network services to SMB (sometimes called "Lan Manager")
293 clients. Samba uses NetBIOS over TCP/IP (NetBT) protocols
294 and does NOT need NetBEUI (Microsoft Raw NetBIOS frame)
297 Samba-3.0 features working NT Domain Control capability and
298 includes the SWAT (Samba Web Administration Tool) that
299 allows samba's smb.conf file to be remotely managed using your
300 favourite web browser. For the time being this is being
301 enabled on TCP port 901 via xinetd. SWAT is now included in
302 it's own subpackage, samba-swat.
304 Please refer to the WHATSNEW.txt document for fixup information.
305 This binary release includes encrypted password support.
307 Please read the smb.conf file and ENCRYPTION.txt in the
308 docs directory for implementation details.
311 This package was compiled with LDAP support, which means that
312 passwords can be stored in LDAP or in smbpasswd files.
313 To migrate your passwords from smbpasswd into LDAP, try
314 examples/LDAP/import_smbpasswd.pl using:
315 %{_datadir}/%{name}/scripts/import_smbpasswd.pl </etc/%{name}/smbpasswd
317 Scripts for managing users in LDAP have been added to
318 %{_datadir}/%{name}/scripts, configuration is in /etc/%{name}/smbldap_conf.pm
322 NOTE: This is a prerelease of samba-%{samba_major}, not intended
323 for production use. If something breaks, file a bug report.
327 URL: http://www.samba.org
328 Summary: Samba (SMB) client programs.
329 Group: Networking/Other
330 Requires: %{name}-common = %{version}
332 Obsoletes: samba3-client
335 #Provides: samba-client
339 Samba-client provides some SMB clients, which complement the built-in
340 SMB filesystem in Linux. These allow the accessing of SMB shares, and
341 printing to SMB printers.
344 NOTE: This is a prerelease of samba-%{samba_major}, not intended
345 for production use. If something breaks, file a bug report.
349 URL: http://www.samba.org
350 Summary: Files used by both Samba servers and clients.
351 Group: System/Servers
353 Obsoletes: samba-common-ldap
354 Obsoletes: samba3-common
356 #Provides: samba-common
360 Samba-common provides files necessary for both the server and client
364 NOTE: This is a prerelease of samba-%{samba_major}, not intended
365 for production use. If something breaks, file a bug report.
369 URL: http://www.samba.org
370 Summary: Documentation for Samba servers and clients.
371 Group: System/Servers
372 Requires: %{name}-common = %{version}
374 Obsoletes: samba3-doc
380 Samba-doc provides documentation files for both the server and client
384 NOTE: This is a prerelease of samba-%{samba_major}, not intended
385 for production use. If something breaks, file a bug report.
389 URL: http://www.samba.org
390 Summary: The Samba Web Administration Tool.
391 Requires: %{name}-server = %{version}
393 Group: System/Servers
395 Obsoletes: samba-swat-ldap
396 Obsoletes: samba3-swat
398 #Provides: samba-swat
402 SWAT (the Samba Web Administration Tool) allows samba's smb.conf file
403 to be remotely managed using your favourite web browser. For the time
404 being this is being enabled on TCP port 901 via xinetd. Note that
405 SWAT does not use SSL encryption, nor does it preserve comments in
406 your smb.conf file. Webmin uses SSL encryption by default, and
407 preserves comments in configuration files, even if it does not display
408 them, and is therefore the preferred method for remotely managing
412 NOTE: This is a prerelease of samba-%{samba_major}, not intended
413 for production use. If something breaks, file a bug report.
418 URL: http://www.samba.org
419 Summary: Samba-winbind daemon, utilities and documentation
420 Group: System/Servers
421 Requires: %{name}-common = %{version}
423 Provides the winbind daemon and testing tools to allow authentication
424 and group/user enumeration from a Windows or Samba domain controller.
428 NOTE: This is a prerelease of samba-%{samba_major}, not intended
429 for production use. If something breaks, file a bug report.
433 %package -n nss_wins%{samba_major}
434 URL: http://www.samba.org
435 Summary: Name Service Switch service for WINS
436 Group: System/Servers
437 Requires: %{name}-common = %{version}
439 %description -n nss_wins%{samba_major}
440 Provides the libnss_wins shared library which resolves NetBIOS names to
445 NOTE: This is a prerelease of samba-%{samba_major}, not intended
446 for production use. If something breaks, file a bug report.
450 URL: http://www.samba.org
451 Summary: Debugging and benchmarking tools for samba
452 Group: System/Servers
453 Requires: %{name}-common = %{version}
455 Obsoletes: samba3-debug
457 Provides: samba-debug
461 This package provides tools for benchmarking samba, and debugging
462 the correct operation of tools against smb servers.
465 %package -n libsmbclient%{libsmbmajor}
466 URL: http://www.samba.org
467 Summary: SMB Client Library
468 Group: System/Libraries
469 Provides: libsmbclient
471 %description -n libsmbclient%{libsmbmajor}
472 This package contains the SMB client library, part of the samba
473 suite of networking software, allowing other software to access
478 NOTE: This is a prerelease of samba-%{samba_major}, not intended
479 for production use. If something breaks, file a bug report.
483 %package -n libsmbclient%{libsmbmajor}-devel
484 URL: http://www.samba.org
485 Summary: SMB Client Library Development files
486 Group: System/Libraries
487 Provides: libsmbclient-devel
489 %description -n libsmbclient%{libsmbmajor}-devel
490 This package contains the development files for the SMB client
491 library, part of the samba suite of networking software, allowing
492 the development of other software to access SMB shares.
496 NOTE: This is a prerelease of samba-%{samba_major}, not intended
497 for production use. If something breaks, file a bug report.
500 %package passdb-mysql
501 URL: http://www.samba.org
502 Summary: Samba password database plugin for MySQL
503 Group: System/Libraries
505 %description passdb-mysql
506 The passdb-mysql package for samba provides a password database
507 backend allowing samba to store account details in a MySQL
511 NOTE: This is a prerelease of samba-%{samba_major}, not intended
512 for production use. If something breaks, file a bug report.
516 URL: http://www.samba.org
517 Summary: Samba password database plugin for XML files
518 Group: System/Libraries
520 %description passdb-xml
521 The passdb-xml package for samba provides a password database
522 backend allowing samba to store account details in XML files.
525 NOTE: This is a prerelease of samba-%{samba_major}, not intended
526 for production use. If something breaks, file a bug report.
532 Summary: On-access virus scanning for samba using FPROT
533 Group: System/Servers
534 Requires: %{name}-server = %{version}
535 Provides: %{name}-vscan
537 %description vscan-fprot
538 A vfs-module for samba to implement on-access scanning using the
539 FPROT antivirus software (which must be installed to use this).
543 %package vscan-kaspersky
544 Summary: On-access virus scanning for samba using Kaspersky
545 Group: System/Servers
546 Requires: %{name}-server = %{version}
547 Provides: %{name}-vscan
549 %description vscan-kaspersky
550 A vfs-module for samba to implement on-access scanning using the
551 Kaspersky antivirus software (which must be installed to use this).
556 Summary: On-access virus scanning for samba using MKS
557 Group: System/Servers
558 Requires: %{name}-server = %{version}
559 Provides: %{name}-vscan
561 %description vscan-mks
562 A vfs-module for samba to implement on-access scanning using the
563 MKS antivirus software (which must be installed to use this).
567 %package vscan-openav
568 Summary: On-access virus scanning for samba using OpenAntivirus
569 Group: System/Servers
570 Requires: %{name}-server = %{version}
571 Provides: %{name}-vscan
573 %description vscan-openav
574 A vfs-module for samba to implement on-access scanning using the
575 OpenAntivirus antivirus software (which must be installed to use this).
579 %package vscan-sophos
580 Summary: On-access virus scanning for samba using Sophos
581 Group: System/Servers
582 Requires: %{name}-server = %{version}
583 Provides: %{name}-vscan
585 %description vscan-sophos
586 A vfs-module for samba to implement on-access scanning using the
587 Sophos antivirus software (which must be installed to use this).
591 %package vscan-symantec
592 Summary: On-access virus scanning for samba using Symantec
593 Group: System/Servers
594 Requires: %{name}-server = %{version}
595 Provides: %{name}-vscan
597 %description vscan-symantec
598 A vfs-module for samba to implement on-access scanning using the
599 Symantec antivirus software (which must be installed to use this).
604 Summary: On-access virus scanning for samba using Trend
605 Group: System/Servers
606 Requires: %{name}-server = %{version}
607 Provides: %{name}-vscan
609 %description vscan-trend
610 A vfs-module for samba to implement on-access scanning using the
611 Trend antivirus software (which must be installed to use this).
615 # Build a summary of how this RPM was built:
617 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --with acl"
619 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --without acl"
622 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --with winbind"
624 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --without winbind"
627 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --with wins"
629 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --without wins"
632 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --with ldap"
634 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --without ldap"
637 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --with ads"
639 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --without ads"
642 %if %build_non_default
643 echo "Building a non-default rpm with the following command-line arguments:"
644 echo "$RPM_EXTRA_OPTIONS"
645 echo "This rpm was built with non-default options, thus, to build ">%{SOURCE7}
646 echo "an identical rpm, you need to supply the following options">>%{SOURCE7}
647 echo "at build time: $RPM_EXTRA_OPTIONS">>%{SOURCE7}
648 echo -e "\n%{name}-%{version}-%{release}\n">>%{SOURCE7}
650 echo "This rpm was built with default options">%{SOURCE7}
651 echo -e "\n%{name}-%{version}-%{release}\n">>%{SOURCE7}
655 %setup -q -a 8 -n %{pkg_name}-%{source_ver}
657 %setup -q -n %{pkg_name}-%{source_ver}
662 %patch3 -p1 -b .buildroot
664 # Version specific patches: current version
666 echo "Applying patches for current version: %{ver}"
670 %patch102 -p1 -b .mdk
673 # Version specific patches: upcoming version
674 echo "Applying patches for new versions: %{pversion}"
678 %if %have_pversion && %have_pre
679 echo "Appling patches which should only be applied to prereleases"
682 # Fix quota compilation in glibc>2.3
684 #grep "<linux/quota.h>" source/smbd/quotas.c >/dev/null && \
685 perl -pi -e 's@<linux/quota.h>@<sys/quota.h>@' source/smbd/quotas.c
690 # Make a copy of examples so that we have a clean one for doc:
691 cp -a examples examples.bin
694 cp -a %{vscandir} %{vfsdir}
695 #fix stupid directory names:
696 mv %{vfsdir}/%{vscandir}/openantivirus %{vfsdir}/%{vscandir}/oav
698 # Inline replacement of config dir
699 for av in fprot kaspersky mks oav sophos trend; do
700 [ -e %{vfsdir}/%{vscandir}/$av/vscan-$av.h ] && perl -pi -e \
701 's,^#define PARAMCONF "/etc/samba,#define PARAMCONF "/etc/%{name},' \
702 %{vfsdir}/%{vscandir}/$av/vscan-$av.h
704 #Inline edit vscan header:
705 perl -pi -e 's/^# define SAMBA_VERSION_MAJOR 2/# define SAMBA_VERSION_MAJOR 3/g' %{vfsdir}/%{vscandir}/include/vscan-global.h
707 # Edit some files when not building system samba:
709 perl -pi -e 's/%{pkg_name}/%{name}/g' source/auth/pampass.c
716 CPPFLAGS="-I/usr/include/openssl"; export CPPFLAGS
717 CFLAGS="$RPM_OPT_FLAGS"
718 # Don't use --with-fhs now, since it overrides libdir, it sets configdir,
719 # lockdir,piddir logfilebase,privatedir and swatdir
720 %configure --prefix=%{_prefix} \
721 --sysconfdir=/etc/%{name} \
722 --localstatedir=/var \
723 --libdir=%{_libdir}/%{name} \
724 --with-privatedir=/etc/%{name} \
725 --with-lockdir=/var/cache/%{name} \
726 --with-piddir=/var/run/%{name} \
727 --with-swatdir=%{_datadir}/swat%{samba_major} \
728 --with-configdir=/etc/%{name} \
729 --with-logfilebase=/var/log/%{name} \
744 --with-manpages-langs=en \
748 --disable-mysqltest \
749 --program-suffix=%{samba_major}
750 # --with-pam_smbpass \
751 # --with-manpages-langs=en,ja,pl \
754 # --with-smbwrapper \
756 # --with-nisplussam \
759 # For some reason passdb/pdb_xml.c doesn't like the flags below ...
760 # and the samba team doesn't always make proto before release ...
762 make passdb/pdb_xml.o torture
763 # torture target broken in alpha22 (only on 9.0?)
764 make CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" \
765 all libsmbclient debug2html smbfilter wins modules
766 # all libsmbclient debug2html smbfilter wins torture modules
767 # Build VFS modules (experimental)
769 #_configure --prefix=%{prefix} \
770 # --mandir=%{prefix}/share/man
772 #make CFLAGS="$RPM_OPT_FLAGS -I../../source -I../../source/include -I../../source/ubiqx \
773 # -I../../source/smbwrapper -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"
776 # Build mkntpasswd in examples/LDAP/ for smbldaptools
778 #cd examples.bin/LDAP/smbldap-tools/mkntpwd
782 # Build antivirus vfs objects:
784 echo -e "\n\nBuild antivirus VFS modules\n\n"
785 echo "Building fprot"
786 (cd %{vfsdir}/%{vscandir}/fprot;make)
789 echo "Building Kaspersky"
790 (cd %{vfsdir}/%{vscandir}/kaspersky;make)
794 (cd %{vfsdir}/%{vscandir}/mks;make)
797 echo "Building OpenAntivirus"
798 (cd %{vfsdir}/%{vscandir}/oav;make)
801 echo "building sophos"
802 (cd %{vfsdir}/%{vscandir}/sophos;make)
805 echo "Building symantec"
806 (cd %{vfsdir}/%{vscandir}/symantec;make)
809 echo "Building Trend"
810 (cd %{vfsdir}/%{vscandir}/trend;make)
814 rm -rf $RPM_BUILD_ROOT
815 mkdir -p $RPM_BUILD_ROOT
817 #Ensure all docs are readable
820 # Any entries here mean samba makefile is *really* broken:
821 mkdir -p $RPM_BUILD_ROOT/etc/%{name}
822 mkdir -p $RPM_BUILD_ROOT/%{_datadir}
823 mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{name}/vfs
826 make DESTDIR=$RPM_BUILD_ROOT LIBDIR=%{_libdir}/%{name} install installclientlib installmodules)
829 mkdir -p $RPM_BUILD_ROOT/sbin
830 mkdir -p $RPM_BUILD_ROOT/etc/{logrotate.d,pam.d,xinetd.d}
831 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
832 mkdir -p $RPM_BUILD_ROOT/var/cache/%{name}
833 mkdir -p $RPM_BUILD_ROOT/var/log/%{name}
834 mkdir -p $RPM_BUILD_ROOT/var/run/%{name}
835 mkdir -p $RPM_BUILD_ROOT/var/spool/%{name}
836 mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/%{name}/{netlogon,profiles,printers}
837 mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/%{name}/printers/{W32X86,WIN40,W32ALPHA,W32MIPS,W32PPC}
838 mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/%{name}/codepages/src
839 mkdir -p $RPM_BUILD_ROOT/%{_lib}/security
840 mkdir -p $RPM_BUILD_ROOT%{_libdir}
841 mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{name}/vfs
842 mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/scripts
844 #smbwrapper and pam_winbind not handled by make, pam_smbpass.so doesn't build
845 #install -m 755 source/bin/smbwrapper.so $RPM_BUILD_ROOT%{_libdir}/smbwrapper%{samba_major}.so
846 install -m 755 source/bin/pam_smbpass.so $RPM_BUILD_ROOT/%{_lib}/security/pam_smbpass%{samba_major}.so
847 install -m 755 source/nsswitch/pam_winbind.so $RPM_BUILD_ROOT/%{_lib}/security/pam_winbind%{samba_major}.so
850 #install -m 755 source/bin/smbsh $RPM_BUILD_ROOT%{_bindir}/
852 # Install VFS modules
853 #install -m755 %vfsdir/audit.so $RPM_BUILD_ROOT/%{_libdir}/samba/vfs
854 #for i in block recycle
856 # install -m755 %vfsdir/$i/$i.so $RPM_BUILD_ROOT/%{_libdir}/samba/vfs
860 # mkdir -p $RPM_BUILD_ROOT%{_libdir}/samba/vfs/vscan
861 for av in fprot kavp mks oav sophos symantec trend; do
862 if [ -d %{vfsdir}/%{vscandir}/$av -a -e %{vfsdir}/%{vscandir}/$av/vscan-$av*.so ];then
863 cp %{vfsdir}/%{vscandir}/$av/vscan-$av*.so \
864 $RPM_BUILD_ROOT%{_libdir}/%{name}/vfs/
865 cp %{vfsdir}/%{vscandir}/$av/vscan-$av*.conf \
866 $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
870 #These scripts are not handled by make:
871 #for i in addtosmbpass mksmbpasswd.sh smbtar convert_smbpasswd
872 for i in addtosmbpass mksmbpasswd.sh convert_smbpasswd
874 install -m755 source/script/$i $RPM_BUILD_ROOT/%{_bindir}
877 #libnss_* not handled by make:
878 # Install the nsswitch library extension file
879 for i in wins winbind; do
880 install -m755 source/nsswitch/libnss_${i}.so $RPM_BUILD_ROOT/%{_lib}/libnss_${i}%{samba_major}.so
882 # Make link for wins and winbind resolvers
883 ( 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)
886 # Debugging stuff (broken in alpha22)
887 for i in smbtorture msgtest masktest locktest locktest2 nsstest vfstest debug2html;do
888 install -m755 source/bin/$i $RPM_BUILD_ROOT/%{_bindir}
892 # Install other stuff
894 # install -m644 examples/VFS/recycle/recycle.conf $RPM_BUILD_ROOT/etc/samba/
895 install -m644 packaging/Mandrake/smbusers $RPM_BUILD_ROOT/etc/%{name}/smbusers
896 install -m755 packaging/Mandrake/smbprint $RPM_BUILD_ROOT/%{_bindir}
897 #install -m755 packaging/RedHat/smbadduser $RPM_BUILD_ROOT/usr/bin
898 install -m755 packaging/Mandrake/findsmb $RPM_BUILD_ROOT/%{_bindir}
899 install -m755 packaging/Mandrake/smb.init $RPM_BUILD_ROOT/etc/rc.d/init.d/smb%{samba_major}
900 install -m755 packaging/Mandrake/smb.init $RPM_BUILD_ROOT/%{_sbindir}/%{name}
901 install -m755 packaging/Mandrake/winbind.init $RPM_BUILD_ROOT/etc/rc.d/init.d/winbind%{samba_major}
902 install -m755 packaging/Mandrake/wrepld.init $RPM_BUILD_ROOT/etc/rc.d/init.d/wrepld%{samba_major}
903 install -m755 packaging/Mandrake/winbind.init $RPM_BUILD_ROOT/%{_sbindir}/winbind%{samba_major}
904 install -m644 packaging/Mandrake/samba.pamd $RPM_BUILD_ROOT/etc/pam.d/%{name}
905 install -m644 packaging/Mandrake/system-auth-winbind.pamd $RPM_BUILD_ROOT/etc/pam.d/system-auth-winbind%{samba_major}
907 install -m644 %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
908 # install -m644 packaging/Mandrake/samba-slapd-include.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/samba-slapd.include
910 # Install smbldap-tools scripts:
911 #for i in examples/LDAP/smbldap-tools/*.pl; do
912 # install -m 750 $i $RPM_BUILD_ROOT/%{_datadir}/%{name}/scripts/
915 #install -m 750 examples/LDAP/smbldap-tools/smbldap_tools.pm $RPM_BUILD_ROOT/%{_datadir}/%{name}/scripts/
918 #install -m 640 examples/LDAP/smbldap-tools/smbldap_conf.pm $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}
920 # Link both smbldap*.pm into vendor-perl (any better ideas?)
921 #mkdir -p %{buildroot}/%{perl_vendorlib}
922 #ln -s %{_sysconfdir}/%{name}/smbldap_conf.pm $RPM_BUILD_ROOT/%{perl_vendorlib}
923 #ln -s %{_datadir}/%{name}/scripts/smbldap_tools.pm $RPM_BUILD_ROOT/%{perl_vendorlib}
926 #install -m750 examples.bin/LDAP/smbldap-tools/mkntpwd/mkntpwd %{buildroot}/%{_sbindir}
928 # Samba smbpasswd migration script:
929 install -m700 examples/LDAP/export_smbpasswd.pl $RPM_BUILD_ROOT/%{_datadir}/%{name}/scripts/
930 install -m700 examples/LDAP/import_smbpasswd.pl $RPM_BUILD_ROOT/%{_datadir}/%{name}/scripts/
934 # make a conf file for winbind from the default one:
935 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
936 install -m644 packaging/Mandrake/smb-winbind.conf $RPM_BUILD_ROOT/etc/%{name}/smb-winbind.conf
938 # Some inline fixes for smb.conf for non-winbind use
939 install -m644 packaging/Mandrake/smb.conf $RPM_BUILD_ROOT/etc/%{name}/smb.conf
940 cat packaging/Mandrake/smb.conf | \
941 sed -e 's/^; printer admin = @adm/ printer admin = @adm/g' >$RPM_BUILD_ROOT/etc/%{name}/smb.conf
943 perl -pi -e 's/printcap name = lpstat/printcap name = cups/g' $RPM_BUILD_ROOT/etc/%{name}/smb.conf
944 perl -pi -e 's/printcap name = lpstat/printcap name = cups/g' $RPM_BUILD_ROOT/etc/%{name}/smb-winbind.conf
947 # Link smbmount to /sbin/mount.smb and /sbin/mount.smbfs
948 #I don't think it's possible for make to do this ...
949 (cd $RPM_BUILD_ROOT/sbin
950 ln -s ..%{_bindir}/smbmount%{samba_major} mount.smb%{samba_major}
951 ln -s ..%{_bindir}/smbmount%{samba_major} mount.smbfs%{samba_major}
953 echo 127.0.0.1 localhost > $RPM_BUILD_ROOT/etc/%{name}/lmhosts
955 # Link smbspool to CUPS (does not require installed CUPS)
957 mkdir -p $RPM_BUILD_ROOT/%{_libdir}/cups/backend
958 ln -s %{_bindir}/smbspool $RPM_BUILD_ROOT/%{_libdir}/cups/backend/smb%{samba_major}
962 mkdir -p $RPM_BUILD_ROOT/etc/xinetd.d
963 install -m644 %{SOURCE3} $RPM_BUILD_ROOT/etc/xinetd.d/swat%{samba_major}
967 mkdir -p $RPM_BUILD_ROOT%{_menudir}
968 cat > $RPM_BUILD_ROOT%{_menudir}/%{name}-swat << EOF
969 ?package(%{name}-swat):command="gnome-moz-remote http://localhost:901/" needs="gnome" \
970 icon="swat%{samba_major}.xpm" section="Configuration/Networking" title="Samba Configuration" \
971 longtitle="The Swat Samba Administration Tool"
972 ?package(%{name}-swat):command="sh -c '\$BROWSER http://localhost:901/'" needs="x11" \
973 icon="swat%{samba_major}.xpm" section="Configuration/Networking" title="Samba Configuration" \
974 longtitle="The Swat Samba Administration Tool"
977 mkdir -p $RPM_BUILD_ROOT%{_liconsdir} $RPM_BUILD_ROOT%{_iconsdir} $RPM_BUILD_ROOT%{_miconsdir}
979 bzcat %{SOURCE4} > $RPM_BUILD_ROOT%{_liconsdir}/swat%{samba_major}.xpm
980 bzcat %{SOURCE5} > $RPM_BUILD_ROOT%{_iconsdir}/swat%{samba_major}.xpm
981 bzcat %{SOURCE6} > $RPM_BUILD_ROOT%{_miconsdir}/swat%{samba_major}.xpm
983 bzcat %{SOURCE10}> $RPM_BUILD_ROOT%{_datadir}/%{name}/scripts/print-pdf
985 # Fix configs when not building system samba:
987 # Work around non-existent but claimed --program-suffix support :-(
988 for dir in %{_sbindir} %{_bindir};do
989 FILES=`find %{buildroot}$dir -type f |grep -v "\."|grep -v %{samba_major}$`
990 for OLD in $FILES; do
991 NEW=`echo ${OLD}%{samba_major}`
995 # And the man pages too:
996 FILES=`find %{buildroot}%{_mandir} -type f `
997 for OLD in $FILES; do
998 BASE=`perl -e '$name="'${OLD}'"; print "",($name =~ /(.*?)\.[0-9]/), "\n";'`
999 EXT=`echo $OLD|sed -e 's,'${BASE}',,g'`
1000 NEW=`echo ${BASE}%{samba_major}${EXT}`
1003 # Replace paths in config files and init scripts:
1004 for i in smb winbind;do
1005 perl -pi -e 's,/subsys/'$i',/subsys/'$i'%{samba_major},g' $RPM_BUILD_ROOT/etc/rc.d/init.d/${i}%{samba_major}
1007 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} /etc/rc.d/init.d/wrepld%{samba_major}; do
1008 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;s,wrepld,%{_sbindir}/wrepld%{samba_major},g' $RPM_BUILD_ROOT/$i;
1011 perl -pi -e 's/winbind/winbind%{samba_major}/g' $RPM_BUILD_ROOT/etc/pam.d/system-auth-winbind%{samba_major}
1012 # Fix xinetd file for swat:
1013 perl -pi -e 's,/usr/sbin,%{_sbindir},g' $RPM_BUILD_ROOT/etc/xinetd.d/swat%{samba_major}
1016 #Clean up unpackaged files:
1017 for i in %{_bindir}/pam_smbpass.so %{_bindir}/smbwrapper.so;do
1018 rm -f %{buildroot}/$i
1022 rm -rf $RPM_BUILD_ROOT
1026 %_post_service smb%{samba_major}
1027 %_post_service wrepld%{samba_major}
1029 # Add a unix group for samba machine accounts
1030 groupadd -frg 421 machines
1032 # Migrate tdb's from /var/lock/samba (taken from official samba spec file):
1033 for i in /var/lock/samba/*.tdb
1036 newname=`echo $i | sed -e's|var\/lock\/samba|var\/cache\/samba|'`
1037 echo "Moving $i to $newname"
1042 # Remove the transient tdb files (modified from version in off. samba spec:
1043 for TDB in brlock unexpected locking messages; do
1044 if [ -e /var/cache/%{name}/$TDB.tdb ]; then
1045 rm -f /var/cache/%{name}/$TDB.tdb;
1049 if [ -d /var/lock/samba ]; then
1050 rm -rf /var/lock/samba
1054 # Basic migration script for pre-2.2.1 users,
1055 # since smb config moved from /etc to /etc/samba
1057 # Let's create a proper /etc/samba/smbpasswd file
1058 [ -f /etc/%{name}/smbpasswd ] || {
1059 echo "Creating password file for samba..."
1060 touch /etc/%{name}/smbpasswd
1063 # And this too, in case we don't have smbd to create it for us
1064 [ -f /var/cache/%{name}/unexpected.tdb ] || {
1065 touch /var/cache/%{name}/unexpected.tdb
1068 # Let's define the proper paths for config files
1069 perl -pi -e 's/(\/etc\/)(smb)/\1%{name}\/\2/' /etc/%{name}/smb.conf
1071 # Let's replace lpstat with cups in older smb.conf:
1073 echo "Updating samba printing configuration if necessary..."
1074 perl -pi -e 's/= lpstat/= cups/' /etc/%{name}/smb.conf
1077 # Fix the logrotate.d file from smb and nmb to smbd and nmbd
1078 if [ -f /etc/logrotate.d/samba ]; then
1079 perl -pi -e 's/smb /smbd /' /etc/logrotate.d/samba
1080 perl -pi -e 's/nmb /nmbd /' /etc/logrotate.d/samba
1083 # And not loose our machine account SID
1084 [ -f /etc/MACHINE.SID ] && mv -f /etc/MACHINE.SID /etc/%{name}/ ||:
1089 /sbin/chkconfig winbind%{samba_major} on
1090 cp -af /etc/nsswitch.conf /etc/nsswitch.conf.rpmsave
1091 cp -af /etc/nsswitch.conf /etc/nsswitch.conf.rpmtemp
1092 for i in passwd group;do
1093 grep ^$i /etc/nsswitch.conf |grep -v 'winbind%{samba_major}' >/dev/null
1095 echo "Adding a winbind%{samba_major} entry to the $i section of /etc/nsswitch.conf"
1096 awk '/^'$i'/ {print $0 " winbind%{samba_major}"};!/^'$i'/ {print}' /etc/nsswitch.conf.rpmtemp >/etc/nsswitch.conf;
1097 cp -af /etc/nsswitch.conf /etc/nsswitch.conf.rpmtemp
1099 echo "$i entry found in /etc/nsswitch.conf"
1102 if [ -f /etc/nsswitch.conf.rpmtemp ];then rm -f /etc/nsswitch.conf.rpmtemp;fi
1107 echo "Removing winbind%{samba_major} entries from /etc/nsswitch.conf"
1108 perl -pi -e 's/ winbind%{samba_major}//' /etc/nsswitch.conf
1110 /sbin/chkconfig winbind%{samba_major} reset
1112 %endif %build_winbind
1115 %post -n nss_wins%{samba_major}
1117 cp -af /etc/nsswitch.conf /etc/nsswitch.conf.rpmsave
1118 grep '^hosts' /etc/nsswitch.conf |grep -v 'wins%{samba_major}' >/dev/null
1120 echo "Adding a wins entry to the hosts section of /etc/nsswitch.conf"
1121 awk '/^hosts/ {print $0 " wins%{samba_major}"};!/^hosts/ {print}' /etc/nsswitch.conf.rpmsave >/etc/nsswitch.conf;
1123 echo "wins entry found in /etc/nsswitch.conf"
1126 # echo "Upgrade, leaving nsswitch.conf intact"
1129 %preun -n nss_wins%{samba_major}
1131 echo "Removing wins entry from /etc/nsswitch.conf"
1132 perl -pi -e 's/ wins%{samba_major}//' /etc/nsswitch.conf
1134 # echo "Leaving /etc/nsswitch.conf intact"
1140 %_preun_service smb%{samba_major}
1141 %_preun_service wrepld%{samba_major}
1143 if [ $1 = 0 ] ; then
1144 # /sbin/chkconfig --level 35 smb reset
1145 # Let's not loose /var/cache/samba
1147 # for i in browse.dat wins.dat brlock.tdb unexpected.tdb connections.tdb \
1148 #locking.tdb messages.tdb;do
1149 # if [ -e /var/cache/samba/$i ]; then
1150 # mv -f /var/cache/samba/$i /var/cache/samba/$i.BAK
1153 if [ -d /var/log/%{name} ]; then
1154 rm -rf /var/log/%{name}/*
1156 if [ -d /var/cache/%{name} ]; then
1157 mv -f /var/cache/%{name} /var/cache/%{name}.BAK
1162 if [ -f /var/lock/subsys/xinetd ]; then
1163 service xinetd reload >/dev/null 2>&1 || :
1169 # Remove swat entry from xinetd
1170 if [ $1 = 0 -a -f /etc/xinetd.conf ] ; then
1171 rm -f /etc/xinetd.d/swat%{samba_major}
1172 service xinetd reload &>/dev/null || :
1175 if [ "$1" = "0" -a -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi
1179 %triggerpostun -- samba < 1.9.18p7
1181 if [ $1 != 0 ]; then
1182 /sbin/chkconfig --level 35 smb on
1185 %triggerpostun -- samba < 2.0.5a-3, samba >= 2.0.0
1187 if [ $1 != 0 ]; then
1188 [ ! -d /var/lock/samba ] && mkdir -m 0755 /var/lock/samba ||:
1189 [ ! -d /var/spool/samba ] && mkdir -m 1777 /var/spool/samba ||:
1190 [ -f /etc/inetd.conf ] && chmod 644 /etc/services /etc/inetd.conf ||:
1194 %defattr(-,root,root)
1195 #%attr(-,root,root) /sbin/*
1197 %{_sbindir}/smbd%{samba_major}
1198 %{_sbindir}/nmbd%{samba_major}
1199 %{_sbindir}/wrepld%{samba_major}
1200 %{_bindir}/smbcontrol%{samba_major}
1201 #%{_sbindir}/mkntpwd
1202 %{_bindir}/addtosmbpass%{samba_major}
1203 %{_bindir}/mksmbpasswd.sh
1204 %{_bindir}/smbstatus%{samba_major}
1205 %{_bindir}/convert_smbpasswd%{samba_major}
1206 %{_bindir}/pdbedit%{samba_major}
1207 %{_bindir}/smbgroupedit%{samba_major}
1208 %{_bindir}/tdbbackup%{samba_major}
1209 %{_bindir}/profiles%{samba_major}
1210 %attr(755,root,root) /%{_lib}/security/pam_smbpass*
1211 %{_libdir}/%{name}/vfs/vfs_audit.so
1212 %{_libdir}/%{name}/vfs/vfs_netatalk.so
1213 %{_libdir}/%{name}/vfs/vfs_recycle.so
1214 %{_libdir}/%{name}/vfs/vfs_extd_audit.so
1216 %attr(-,root,root) %config(noreplace) /etc/%{name}/smbusers
1217 %attr(-,root,root) %config %{_initrddir}/smb%{samba_major}
1218 %attr(-,root,root) %config %{_initrddir}/wrepld%{samba_major}
1219 %attr(-,root,root) %config(noreplace) /etc/logrotate.d/%{name}
1220 %attr(-,root,root) %config(noreplace) /etc/pam.d/%{name}
1221 #%attr(-,root,root) %config(noreplace) /etc/%{name}/samba-slapd.include
1222 %{_mandir}/man1/smbstatus*.1*
1223 %{_mandir}/man5/smbpasswd*.5*
1224 %{_mandir}/man7/samba*.7*
1225 %{_mandir}/man8/smbd*.8*
1226 %{_mandir}/man8/nmbd*.8*
1227 %{_mandir}/man8/pdbedit*.8*
1228 %{_mandir}/man8/smbgroupedit*.8*
1229 %{_mandir}/man1/smbcontrol*.1*
1230 %attr(775,root,root) %dir %{_localstatedir}/%{name}/netlogon
1231 %attr(775,root,root) %dir %{_localstatedir}/%{name}/profiles
1232 %attr(775,root,root) %dir %{_localstatedir}/%{name}/printers/*
1233 %attr(1777,root,root) %dir /var/spool/%{name}
1234 %dir %{_datadir}/%{name}/scripts
1235 %attr(0755,root,root) %{_datadir}/%{name}/scripts/print-pdf
1236 #%attr(0750,root,root) %{_datadir}/%{name}/scripts/smbldap*.pl
1237 #%attr(0640,root,root) %config(noreplace) %{_sysconfdir}/%{name}/smbldap_conf.pm
1238 #%attr(0644,root,root) %{_datadir}/%{name}/scripts/smbldap_tools.pm
1239 #%{perl_vendorlib}/*.pm
1240 %attr(0700,root,root) %{_datadir}/%{name}/scripts/*port_smbpasswd.pl
1244 %defattr(-,root,root)
1245 %doc README COPYING Manifest Read-Manifest-Now
1246 %doc WHATSNEW.txt Roadmap
1247 %doc README.%{name}-mandrake-rpm
1251 %attr(-,root,root) %{_datadir}/swat%{samba_major}/using_samba/*
1254 %defattr(-,root,root)
1255 %config(noreplace) /etc/xinetd.d/swat%{samba_major}
1256 #%attr(-,root,root) /sbin/*
1257 %{_sbindir}/swat%{samba_major}
1258 %{_menudir}/%{name}-swat
1262 %attr(-,root,root) %{_datadir}/swat%{samba_major}/help/*
1263 %attr(-,root,root) %{_datadir}/swat%{samba_major}/images/*
1264 %attr(-,root,root) %{_datadir}/swat%{samba_major}/include/*
1265 %lang(ja) %{_datadir}/swat%{samba_major}/lang/ja
1266 %lang(tr) %{_datadir}/swat%{samba_major}/lang/tr
1267 %{_mandir}/man8/swat*.8*
1270 %defattr(-,root,root)
1272 /sbin/mount.smb%{samba_major}
1273 /sbin/mount.smbfs%{samba_major}
1274 %attr(755,root,root) %{_bindir}/smbmount%{samba_major}
1275 %attr(4755,root,root) %{_bindir}/smbumount%{samba_major}
1276 %attr(4755,root,root) %{_bindir}/smbmnt%{samba_major}
1277 %{_mandir}/man8/smbmnt*.8*
1278 %{_mandir}/man8/smbmount*.8*
1279 %{_mandir}/man8/smbumount*.8*
1281 %{_bindir}/nmblookup%{samba_major}
1282 %{_bindir}/findsmb%{samba_major}
1283 %{_bindir}/smbclient%{samba_major}
1284 %{_bindir}/smbprint%{samba_major}
1285 %{_bindir}/smbtar%{samba_major}
1286 %{_bindir}/smbspool%{samba_major}
1287 # Link of smbspool to CUPS
1288 /%{_libdir}/cups/backend/smb%{samba_major}
1289 /%{_mandir}/man1/nmblookup*.1*
1290 /%{_mandir}/man1/findsmb*.1*
1291 /%{_mandir}/man1/smbclient*.1*
1292 /%{_mandir}/man1/smbtar*.1*
1293 /%{_mandir}/man8/smbspool*.8*
1296 %defattr(-,root,root)
1297 %dir /var/cache/%{name}
1298 %dir /var/log/%{name}
1299 %dir /var/run/%{name}
1300 #%{_bindir}/make_smbcodepage
1301 #%{_bindir}/make_unicodemap
1302 %{_bindir}/testparm%{samba_major}
1303 %{_bindir}/testprns%{samba_major}
1304 #%{_bindir}/make_printerdef
1305 %{_bindir}/rpcclient%{samba_major}
1306 #%{_bindir}/smbsh%{samba_major}
1307 %{_bindir}/smbpasswd%{samba_major}
1308 %{_bindir}/smbcacls%{samba_major}
1309 %{_bindir}/net%{samba_major}
1310 %{_bindir}/smbtree%{samba_major}
1311 %{_bindir}/ntlm_auth%{samba_major}
1312 #%{_libdir}/smbwrapper%{samba_major}.so
1313 %{_libdir}/%{name}/*.dat
1314 #%{_libdir}/%{name}/lowcase.dat
1315 #%{_libdir}/%{name}/valid.dat
1316 %attr(-,root,root) %config(noreplace) /etc/%{name}/smb.conf
1317 %attr(-,root,root) %config(noreplace) /etc/%{name}/smb-winbind.conf
1318 %attr(-,root,root) %config(noreplace) /etc/%{name}/lmhosts
1319 %attr(-,root,root) %{_localstatedir}/%{name}/codepages
1320 #%{_mandir}/man1/make_smbcodepage*.1*
1321 #%{_mandir}/man1/make_unicodemap*.1*
1322 %{_mandir}/man1/testparm*.1*
1323 %{_mandir}/man1/rpcclient*.1*
1324 %exclude %{_mandir}/man1/smbsh*.1*
1325 %{_mandir}/man1/testprns*.1*
1326 %{_mandir}/man5/smb.conf*.5*
1327 %{_mandir}/man5/lmhosts*.5*
1328 %{_mandir}/man8/smbpasswd*.8*
1329 %{_mandir}/man1/smbcacls*.1*
1330 %{_mandir}/man8/net*.8*
1334 %defattr(-,root,root)
1335 %{_sbindir}/winbindd%{samba_major}
1336 %{_sbindir}/winbind%{samba_major}
1337 %{_bindir}/wbinfo%{samba_major}
1338 %attr(755,root,root) /%{_lib}/security/pam_winbind*
1339 %attr(755,root,root) /%{_lib}/libnss_winbind%{samba_major}*
1340 %attr(-,root,root) %config /etc/rc.d/init.d/winbind%{samba_major}
1341 %attr(-,root,root) %config(noreplace) /etc/pam.d/system-auth-winbind*
1342 %{_mandir}/man8/winbindd*.8*
1343 %{_mandir}/man1/wbinfo*.1*
1347 %files -n nss_wins%{samba_major}
1348 %defattr(-,root,root)
1349 %attr(755,root,root) /%{_lib}/libnss_wins%{samba_major}.so*
1354 %defattr(-,root,root)
1355 %{_bindir}/debug2html%{samba_major}
1356 %{_bindir}/smbtorture%{samba_major}
1357 %{_bindir}/msgtest%{samba_major}
1358 %{_bindir}/masktest%{samba_major}
1359 %{_bindir}/locktest%{samba_major}
1360 %{_bindir}/locktest2%{samba_major}
1361 %{_bindir}/nsstest%{samba_major}
1362 %{_bindir}/vfstest%{samba_major}
1363 %{_mandir}/man1/vfstest%{samba_major}*.1*
1365 %exclude %{_mandir}/man1/vfstest%{samba_major}*.1*
1369 %files -n libsmbclient%{libsmbmajor}
1370 %defattr(-,root,root)
1371 %{_libdir}/libsmbclient.so*
1373 %exclude %{_libdir}/libsmbclient.so*
1377 %files -n libsmbclient%{libsmbmajor}-devel
1378 %defattr(-,root,root)
1381 %exclude %{_includedir}/*
1385 %defattr(-,root,root)
1386 %{_libdir}/%{name}/*/pdb_mysql.so
1389 %defattr(-,root,root)
1390 %{_libdir}/%{name}/*/pdb_xml.so
1392 #Files for antivirus support:
1395 %defattr(-,root,root)
1396 %{_libdir}/%{name}/vfs/vscan-fprotd.so
1397 %config(noreplace) %{_sysconfdir}/%{name}/vscan-fprotd.conf
1398 %doc %{vfsdir}/%{vscandir}/INSTALL
1401 %if %build_kaspersky
1402 %files vscan-kaspersky
1403 %defattr(-,root,root)
1404 %{_libdir}/%{name}/vfs/vscan-kavp.so
1405 %config(noreplace) %{_sysconfdir}/%{name}/vscan-kavp.conf
1406 %doc %{vfsdir}/%{vscandir}/INSTALL
1411 %defattr(-,root,root)
1412 %{_libdir}/%{name}/vfs/vscan-mksd.so
1413 %config(noreplace) %{_sysconfdir}/%{name}/vscan-mks*.conf
1414 %doc %{vfsdir}/%{vscandir}/INSTALL
1419 %defattr(-,root,root)
1420 %{_libdir}/%{name}/vfs/vscan-oav.so
1421 %config(noreplace) %{_sysconfdir}/%{name}/vscan-oav.conf
1422 %doc %{vfsdir}/%{vscandir}/INSTALL
1427 %defattr(-,root,root)
1428 %{_libdir}/%{name}/vfs/vscan-sophos.so
1429 %config(noreplace) %{_sysconfdir}/%{name}/vscan-sophos.conf
1430 %doc %{vfsdir}/%{vscandir}/INSTALL
1434 %files vscan-symantec
1435 %defattr(-,root,root)
1436 %{_libdir}/%{name}/vfs/vscan-symantec.so
1437 %config(noreplace) %{_sysconfdir}/%{name}/vscan-symantec.conf
1438 %doc %{vfsdir}/%{vscandir}/INSTALL
1443 %defattr(-,root,root)
1444 %{_libdir}/%{name}/vfs/vscan-trend.so
1445 %config(noreplace) %{_sysconfdir}/%{name}/vscan-trend.conf
1446 %doc %{vfsdir}/%{vscandir}/INSTALL
1450 * Thu Mar 06 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha22.2mdk
1452 - Add profiles binary to server and ntlm_auth to common
1453 - smbwrapper and torture target broken (only in 9.0?)
1454 - remove unused source 2
1456 * Tue Mar 04 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha21.4mdk
1457 - Don't provide samba-{server,client,common} when not system samba (bug #2617)
1458 - Don't build libsmbclient packages when not system samba
1459 - Fix conflict between samba-server and samba3-server (pam_smbpass)
1460 - Fix smbwrapper (from 2.2.7a-5mdk for bug #2356)
1461 - Fix codepage/charset example (bug #1574)
1463 * Thu Jan 23 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha21.3mdk
1464 - samba-vscan 0.3.1 (and make it build again), including required inline edits
1465 - Make all vscan packages provide samba(3)-vscan
1466 - Build all vscan except kav (requires kaspersky lib) with --with-scanners
1467 - Add vscan-(scanner).conf files
1468 - Explicitly add ldapsam for 2.2 compatability when building --with ldap,
1469 default build now uses new ldap passdb backend (ie you always get ldap)
1470 - Enable (experimental) tdb passdb backend
1471 - Fix file ownership conflicts between server and common
1472 - Cleanup configure, to match order of --help
1473 - Fix libdir location, was being overridden by --with-fhs
1474 - Split off a libsmbclient and -devel package
1475 - Add wins replication init script (patch 102)
1476 - Workaround passdb/pdb_xml.c not compiling
1477 - Workaround missing install targets for smbsh/smbwrapper.so in cvs
1478 - Inline patch smbd/quotas.c for Mandrake >9.0
1480 * Wed Nov 27 2002 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha21.2mdk
1481 - Remove patch 20,21,22,23,25,26 (upstream)
1482 - New destdir patch from cvs (18)
1483 - package installed but non-packaged files
1484 - new debug subpackage for vfstest and related files (it was that or nuke the
1486 - use _libdir for libdir instead of _sysconfdir
1487 - Update samba-vscan (untested)
1489 * Mon Oct 28 2002 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha20.3mdk
1490 - Fix mount.smbfs3 pointing to smbmount not in package
1491 - Remove unnecessary lines from install (now done by make)
1492 - Build with ldap and ads on all releases by default
1495 * Mon Oct 21 2002 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha20.2mdk
1496 - When not building as system samba, avoid conflicting with system samba
1497 - Macro-ize as much as possible for above (aka finish cleanups)
1498 - Fix paths in init scripts and logrotate and xinetd
1499 - Fix provides and obsoletes so as to provide samba, but not obsolete
1500 current stable until we have a stable release (when it's the system samba).
1501 - Add warnings to descriptions when not system samba.
1502 - This is now parallel installable with the normal samba release, for easy
1503 testing. It shouldn't touch existing installations. Of course, only
1504 one samba at a time on the same interface!
1506 * Sat Sep 28 2002 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha20.1mdk
1507 - Merge with 2.2.6pre2.2mdk
1508 - Detect alpha- and beta-, along with pre-releases
1510 * Tue Feb 05 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha14-0.1mdk
1511 - Sync with 2.2.3-2mdk (new --without options, detect when
1512 building for a different distribution.
1514 * Mon Feb 04 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha14-0.0mdk
1515 - Sync with 2.2.2-10mdk, which added build-time options --with ldap,
1516 winbind, acl, wins, mdk72, mdk80, mdk81, mdk82, cooker. Added
1517 warning in description if built with these options.
1519 * Wed Jan 23 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha13-0.2mdk
1520 - Added %%if's for build_ads, which hopefully will add Active Directory
1521 Support (by request).
1523 * Thu Jan 17 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha13-0.1mdk
1524 - More syncing with 2.2 rpm (post and postun scripts)
1525 - Testing without ldap
1527 * Thu Jan 17 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha13-0.0mdk
1529 - Fixed installman.sh patch.
1531 * Wed Jan 09 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha12-0.1mdk
1532 - Fixed %post and %preun for nss_wins, added %post and %preun for
1533 samba-winbind (chkconfig and winbind entries in nsswitch.conf)
1535 * Sun Dec 23 2001 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha12-0.0mdk
1537 - Sync up with changes made in 2.2.2 to support Mandrake 8.0, 7.2
1538 - Added new subpackage for swat
1539 - More %if's for ldap.
1541 * Thu Dec 20 2001 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha11-0.0mdk
1544 * Wed Dec 19 2001 Buchan Milne <bgmilne@cae.co.za> 3.0alpha10-0.0mdk
1547 * Tue Dec 18 2001 Buchan Milne <bgmilne@cae.co.za> 3.0alpha9-0.0mdk
1550 * Mon Dec 17 2001 Buchan Milne <bgmilne@cae.co.za> 3.0alpha8-0.1mdk
1551 - Added net command to %files common, pdbedit and smbgroupedit to
1552 %files, s/%{prefix}\/bin/%{_bindir}/ (the big cleanup).
1553 Added patch to smb.init from 2.2.2 (got missed with 3.0-alpha1 patches)
1555 * Sun Dec 16 2001 Buchan Milne <bgmilne@cae.co.za> 3.0alpha8-0.0mdk
1556 - Patch for installman.sh to handle lang=en correctly (p24)
1557 - added --with-manpages-langs=en,ja,pl (translated manpages), but there
1558 aren't any manpages for these languages yet ... so we still
1559 need %dir and %doc entries for them ...
1560 - patch (p25) to configure.in to support more than 2 languages.
1561 - addtosmbpass seems to have returned for now, but make_* have disappeared!
1563 * Fri Dec 14 2001 Buchan Milne <bgmilne@cae.co.za> 3.0alpha6-0.0mdk
1564 - DESTDIR patch for Makefile.in (p23), remove a lot of %install scripts
1565 this forces move of smbcontrol and smbmnt to %{prefix}/bin
1566 removed --with-pam_smbpass as it doesn't compile.
1568 * Thu Dec 06 2001 Buchan Milne <bgmilne@cae.co.za> 3.0-0.0alpha1mdk
1569 - Samba 3.0alpha1 released (we missed Samba 3.0alpha0!)
1570 - Redid smbmount-sbin patch and smb.conf patch (20), removed xfs quota patch
1571 (applied upstream), removed ook-patch (codepage directory totally different).
1572 - Added winbind.init (21) and system-auth-winbind.pamd (22). Patches 20-23
1573 should be applied upstream before 3.0 ships ...
1575 * Wed Dec 05 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-6mdk
1576 - fixed typo in system-auth-winbind.pamd (--Thanks J. Gluck).
1577 - fixed %post xxx problem (smb not started in chkconfig --Thanks Viet & B. Kenworthy).
1579 * Fri Nov 23 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-5mdk
1580 - Had to remove the network recycle bin patch: it seems to mess up
1581 file deletion from windows (files appear to be "already in use")
1583 * Tue Nov 13 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-4mdk
1584 - added network recycle bin patch:
1585 <http://www.amherst.edu/~bbstone/howto/samba.html>
1586 - added "recycle bin = .recycled" parameter in smb.conf [homes].
1587 - fixed winbind/nss_wins perms (oh no I don't own that stuff ;o)
1589 * Mon Nov 12 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-3mdk
1590 - added %build 8.0 and 7.2, for tweakers to play around.
1591 - changed configure options:
1592 . removed --with-mmap, --with-netatalk (obsolete).
1593 . added --with-msdfs, --with-vfs (seems stable, but still need testing).
1595 * Mon Nov 12 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-2mdk
1596 - rebuilt with winbind and nss_wins enabled.
1598 * Wed Oct 31 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-1mdk
1599 - Rebuilt on cooker.
1601 * Wed Oct 31 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.992mdk
1602 - Patch for smb.conf to fix incorrect lpq command, typo in winbind,
1603 and add sample linpopup command. Added print driver directories.
1604 - New XFS quota patch (untested!, samba runs, but do quotas work? We
1605 can't check yet since the kernel doesn't seem to support XFS quotas!)
1607 * Fri Oct 19 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-0.99mdk
1608 - New samba.spec, almost ready for winbind operations. OLA for Buchan Milne
1609 Who did a tremendous integration work on 2.2.2.
1610 Rebuild on cooker, please test XFS (ACLs and quotas) again...
1612 * Mon Oct 15 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.9mdk
1613 - Samba-2.2.2. released! Use %defines to determine which subpackages
1614 are built and which Mandrake release we are buiding on/for (hint: define
1615 build_mdk81 1 for Mandrake 8.1 updates)
1617 * Sun Oct 14 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011014mdk
1618 - %post and %postun for nss_wins
1620 * Wed Oct 10 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011010mdk
1621 - New CVS snapshot, /etc/pam.d/system-auth-winbind added
1622 with configuration to allow easy winbind setup.
1624 * Sun Oct 7 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011007mdk
1625 - Added new package nss_wins and moved smbpasswd to common (required by
1628 * Sat Oct 6 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011006mdk
1629 - Added new package winbind.
1631 * Mon Oct 1 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011001mdk
1632 - Removed patch to smb init.d file (applied in cvs)
1634 * Sun Sep 30 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20010930mdk
1635 - Added winbind init script, which still needs to check for running nmbd.
1637 * Thu Sep 27 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20010927mdk
1638 - Built from samba-2.2.2-pre cvs, added winbindd, wbinfo, nss_winbind and
1639 pam_winbind, moved pam_smbpass from samba-common to samba. We still
1640 need a start-up script for winbind, or need to modify existing one.
1642 * Mon Sep 10 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-15mdk
1643 - Enabled acl support (XFS acls now supported by kernel-2.4.8-21mdk thx Chmou)
1644 Added smbd patch to support XFS quota (Nathan Scott)
1646 * Mon Sep 10 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-14mdk
1647 - Oops! smbpasswd created in wrong directory...
1649 * Tue Sep 06 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-13mdk
1650 - Removed a wrong comment in smb.conf.
1651 Added creation of smbpasswd during install.
1653 * Mon Aug 27 2001 Pixel <pixel@mandrakesoft.com> 2.2.1a-12mdk
1654 - really less verbose %%post
1656 * Sat Aug 25 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 2.2.1a-11mdk
1657 - Fix shared libs in /usr/bin silliness.
1659 * Thu Aug 23 2001 Pixel <pixel@mandrakesoft.com> 2.2.1a-10mdk
1660 - less verbose %%post
1662 * Wed Aug 22 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1a-9mdk
1663 - Added smbcacls (missing in %files), modification to smb.conf: ([printers]
1664 is still needed, even with point-and-print!, user add script should
1665 use name and not gid, since we may not get the gid . New script for
1666 putting manpages in place (still need to be added in %files!). Moved
1667 smbcontrol to sbin and added it and its man page to %files.
1669 * Wed Aug 22 2001 Pixel <pixel@mandrakesoft.com> 2.2.1a-8mdk
1670 - cleanup /var/lib/samba/codepage/src
1672 * Tue Aug 21 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-7mdk
1673 - moved codepage generation to %install and codepage dir to /var/lib/samba
1675 * Tue Aug 21 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-6mdk
1676 - /lib/* was in both samba and samba-common
1677 Introducing samba-doc: "alas, for the sake of thy modem, shalt thou remember
1678 when Samba was under the Megabyte..."
1680 * Fri Aug 03 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-5mdk
1681 - Added "the gc touch" to smbinit through the use of killall -0 instead of
1682 grep cupsd | grep -v grep (too many greps :o)
1684 * Wed Jul 18 2001 Stefan van der Eijk <stefan@eijk.nu> 2.2.1a-4mdk
1685 - BuildRequires: libcups-devel
1686 - Removed BuildRequires: openssl-devel
1688 * Fri Jul 13 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-3mdk
1689 - replace chkconfig --add/del with --level 35 on/reset.
1691 * Fri Jul 13 2001 Geoffrey Lee <snailtalk@mandrakesoft.cm> 2.2.1a-2mdk
1692 - Replace discription s/inetd/xinetd/, we all love xinetd, blah.
1694 * Thu Jul 12 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1a-1mdk
1695 - Bugfix release. Fixed add user script, added print$ share and printer admin
1696 We need to test interaction of new print support with CUPS, but printer
1697 driver uploads should work.
1699 * Wed Jul 11 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-17mdk
1700 - fixed smb.conf a bit, rebuilt on cooker.
1702 * Tue Jul 10 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1-16mdk
1703 - Finally, samba 2.2.1 has actually been release. At least we were ready!
1704 Cleaned up smb.conf, and added some useful entries for domain controlling.
1705 Migrated changes made in samba's samba2.spec for 2.2.1 to this file.
1706 Added groupadd command in post to create a group for samba machine accounts.
1707 (We should still check the postun, samba removes pam, logs and cache)
1709 * Tue Jun 26 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-15mdk
1710 - fixed smbwrapper compile options.
1712 * Tue Jun 26 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-14mdk
1713 - added LFS support.
1714 added smbwrapper support (smbsh)
1716 * Wed Jun 20 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-13mdk
1717 - /sbin/mount.smb and /sbin/mount.smbfs now point to the correct location
1718 of smbmount (/usr/bin/smbmount)
1720 * Tue Jun 19 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-12mdk
1721 - smbmount and smbumount are now in /usr/bin and SUID.
1722 added ||: to triggerpostun son you don't get error 1 anymore when rpm -e
1723 Checked the .bz2 sources with file *: everything is OK now (I'm so stupid ;o)!
1725 * Tue Jun 19 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 2.2.1-11mdk
1726 - s/Copyright/License/;
1727 - Stop Sylvester from pretending .gz source to be .bz2 source via filename
1728 aka really bzip2 the source.
1730 * Mon Jun 18 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-10mdk
1731 - changed Till's startup script modifications: now samba is being reloaded
1732 automatically 1 minute after it has started (same reasons as below in 9mdk)
1733 added _post_ and _preun_ for service smb
1734 fixed creation of /var/lib/samba/{netlogon,profiles} (%dir was missing)
1736 * Thu Jun 14 2001 Till Kamppeter <till@mandrakesoft.com> 2.2.1-9mdk
1737 - Modified the Samba startup script so that in case of CUPS being used as
1738 printing system Samba only starts when the CUPS daemon is ready to accept
1739 requests. Otherwise the CUPS queues would not appear as Samba shares.
1741 * Mon Jun 11 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-8mdk
1742 - patched smbmount.c to have it call smbmnt in sbin (thanks Seb).
1744 * Wed May 30 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-7mdk
1745 - put SWAT menu icons back in place.
1747 * Mon May 28 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-6mdk
1748 - OOPS! fixed smbmount symlinks
1750 * Mon May 28 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-5mdk
1751 - removed inetd postun script, replaced with xinetd.
1752 updated binary list (smbcacls...)
1755 * Mon May 28 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1-4mdk
1756 - Changed configure options to point to correct log and codepage directories,
1757 added crude script to fix logrotate file for new log file names, updated
1758 patches to work with current CVS.
1760 * Thu May 24 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-3mdk
1761 - Cleaned and updated the %files section.
1763 * Sat May 19 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-2mdk
1764 - Moved all samba files from /etc to /etc/samba (Thanks DomS!).
1765 Fixed fixinit patch (/etc/samba/smb.conf)
1767 * Fri May 18 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1-1mdk
1768 - Now use packaging/Mandrake/smb.conf, removed unused and obsolete
1769 patches, moved netlogon and profile shares to /var/lib/samba in the
1770 smb.conf to match the spec file. Added configuration for ntlogon to
1771 smb.conf. Removed pam-foo, fixinit and makefilepath patches. Removed
1772 symlink I introduced in 2.2.0-1mdk
1774 * Thu May 3 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.0-5mdk
1775 - Added more configure options. Changed Description field (thx John T).
1777 * Wed Apr 25 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.0-4mdk
1778 - moved netlogon and profiles to /var/lib/samba by popular demand ;o)
1780 * Tue Apr 24 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.0-3mdk
1781 - moved netlogon and profiles back to /home.
1783 * Fri Apr 20 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.0-2mdk
1784 - fixed post inetd/xinetd script&
1786 * Thu Apr 19 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.0-1mdk
1787 - Upgrade to 2.2.0. Merged most of 2.0.7-25mdk's patches (beware
1788 nasty "ln -sf samba-%{ver} ../samba-2.0.7" hack to force some patches
1789 to take. smbadduser and addtosmbpass seem to have disappeared. Moved
1790 all Mandrake-specific files to packaging/Mandrake and made patches
1791 from those shipped with samba. Moved netlogon to /home/samba and added
1792 /home/samba/profiles. Added winbind,smbfilter and debug2html to make command.
1794 * Thu Apr 12 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 2.0.7-25mdk
1795 - Fix menu entry and provide separate menu entry for GNOME
1796 (nautilus doesn't support HTTP authentication yet)
1797 - Add icons in package
1799 * Fri Mar 30 2001 Frederic Lepied <flepied@mandrakesoft.com> 2.0.7-24mdk
1800 - use new server macros
1802 * Wed Mar 21 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-23mdk
1803 - check whether /etc/inetd.conf exists (upgrade) or not (fresh install).
1805 * Thu Mar 15 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-22mdk
1806 - spec cosmetics, added '-r' option to lpr-cups command line so files are
1807 removed from /var/spool/samba after printing.
1809 * Tue Mar 06 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-21mdk
1810 - merged last rh patches.
1812 * Thu Nov 23 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-20mdk
1813 - removed dependencies on cups and cups-devel so one can install samba without using cups
1814 - added /home/netlogon
1816 * Mon Nov 20 2000 Till Kamppeter <till@mandrakesoft.com> 2.0.7-19mdk
1817 - Changed default print command in /etc/smb.conf, so that the Windows
1818 driver of the printer has to be used on the client.
1819 - Fixed bug in smbspool which prevented from printing from a
1820 Linux-Samba-CUPS client to a Windows server through the guest account.
1822 * Mon Oct 16 2000 Till Kamppeter <till@mandrakesoft.com> 2.0.7-18mdk
1823 - Moved "smbspool" (Samba client of CUPS) to the samba-client package
1825 * Sat Oct 7 2000 Stefan van der Eijk <s.vandereijk@chello.nl> 2.0.7-17mdk
1826 - Added RedHat's "quota" patch to samba-glibc21.patch.bz2, this fixes
1827 quota related compile problems on the alpha.
1829 * Wed Oct 4 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-16mdk
1830 - Fixed 'guest ok = ok' flag in smb.conf
1832 * Tue Oct 3 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-15mdk
1833 - Allowed guest account to print in smb.conf
1834 - added swat icon in menu
1836 * Tue Oct 3 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-14mdk
1837 - Removed rh ssl patch and --with-ssl flag: not appropriate for 7.2
1839 * Tue Oct 3 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-13mdk
1840 - Changed fixinit patch.
1841 - Changed smb.conf for better CUPS configuration.
1842 - Thanks Fred for doing this ---vvv.
1844 * Tue Oct 3 2000 Frederic Lepied <flepied@mandrakesoft.com> 2.0.7-12mdk
1845 - menu entry for web configuration tool.
1846 - merge with rh: xinetd + ssl + pam_stack.
1847 - Added smbadduser rh-bugfix w/o relocation of config-files.
1849 * Mon Oct 2 2000 Frederic Lepied <flepied@mandrakesoft.com> 2.0.7-11mdk
1850 - added build requires on cups-devel and pam-devel.
1852 * Mon Oct 2 2000 Till Kamppeter <till@mandrakesoft.com> 2.0.7-10mdk
1853 - Fixed smb.conf entry for CUPS: "printcap name = lpstat", "lpstats" was
1856 * Mon Sep 25 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-9mdk
1857 - Cosmetic changes to make rpmlint more happy
1859 * Wed Sep 11 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-8mdk
1860 - added linkage to the using_samba book in swat
1862 * Fri Sep 01 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-7mdk
1863 - Added CUPS support to smb.conf
1864 - Added internationalization options to smb.conf [Global]
1866 * Wed Aug 30 2000 Till Kamppeter <till@mandrakesoft.com> 2.0.7-6mdk
1867 - Put "smbspool" to the files to install
1869 * Wed Aug 30 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-5mdk
1870 - Did some cleaning in the patches
1872 * Fri Jul 28 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-4mdk
1873 - relocated man pages from /usr/man to /usr/share/man for compatibility reasons
1875 * Fri Jul 28 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-3mdk
1876 - added make_unicodemap and build of unicode_map.$i in the spec file
1878 * Fri Jul 28 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-2mdk
1879 - renamed /etc/codepage/codepage.$i into /etc/codepage/unicode_map.$i to fix smbmount bug.
1881 * Fri Jul 07 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-1mdk
1884 * Wed Apr 05 2000 Francis Galiegue <fg@mandrakesoft.com> 2.0.6-4mdk
1886 - Titi sucks, does not put versions in changelog
1887 - Fixed groups for -common and -client
1888 - /usr/sbin/samba is no config file
1890 * Thu Mar 23 2000 Thierry Vignaud <tvignaud@mandrakesoft.com>
1891 - fix buggy post install script (pixel)
1893 * Fri Mar 17 2000 Francis Galiegue <francis@mandrakesoft.com> 2.0.6-2mdk
1895 - Changed group according to 7.1 specs
1896 - Some spec file changes
1897 - Let spec-helper do its job
1899 * Thu Nov 25 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
1902 * Tue Nov 2 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
1903 - Merge with rh changes.
1904 - Split in 3 packages.
1906 * Fri Aug 13 1999 Pablo Saratxaga <pablo@@mandrakesoft.com>
1907 - corrected a bug with %post (the $1 parameter is "1" in case of
1908 a first install, not "0". That parameter is the number of packages
1909 of the same name that will exist after running all the steps if nothing
1910 is removed; so it is "1" after first isntall, "2" for a second install
1911 or an upgrade, and "0" for a removal)
1913 * Wed Jul 28 1999 Pablo Saratxaga <pablo@@mandrakesoft.com>
1914 - made smbmnt and smbumount suid root, and only executable by group 'smb'
1915 add to 'smb' group any user that should be allowed to mount/unmount
1916 SMB shared directories
1918 * Fri Jul 23 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
1919 - 2.0.5a (bug security fix).
1921 * Wed Jul 21 1999 Axalon Bloodstone <axalon@linux-mandrake.com>
1923 - cs/da/de/fi/fr/it/tr descriptions/summaries
1925 * Sun Jun 13 1999 Bernhard Rosenkränzer <bero@mandrakesoft.com>
1927 - recompile on a system that works ;)
1929 * Wed Apr 21 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
1930 - Mandrake adaptations.
1933 * Fri Mar 26 1999 Bill Nottingham <notting@redhat.com>
1934 - add a mount.smb to make smb mounting a little easier.
1935 - smb filesystems apparently do not work on alpha. Oops.
1937 * Thu Mar 25 1999 Bill Nottingham <notting@redhat.com>
1938 - always create codepages
1940 * Tue Mar 23 1999 Bill Nottingham <notting@redhat.com>
1943 * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
1944 - auto rebuild in the new build environment (release 3)
1946 * Fri Mar 19 1999 Preston Brown <pbrown@redhat.com>
1947 - updated init script to use graceful restart (not stop/start)
1949 * Tue Mar 9 1999 Bill Nottingham <notting@redhat.com>
1952 * Thu Feb 18 1999 Bill Nottingham <notting@redhat.com>
1955 * Mon Feb 15 1999 Bill Nottingham <notting@redhat.com>
1958 * Tue Feb 9 1999 Bill Nottingham <notting@redhat.com>
1959 - fix bash2 breakage in post script
1961 * Fri Feb 5 1999 Bill Nottingham <notting@redhat.com>
1964 * Mon Oct 12 1998 Cristian Gafton <gafton@redhat.com>
1965 - make sure all binaries are stripped
1967 * Thu Sep 17 1998 Jeff Johnson <jbj@redhat.com>
1968 - update to 1.9.18p10.
1969 - fix %triggerpostun.
1971 * Tue Jul 07 1998 Erik Troan <ewt@redhat.com>
1972 - updated postun triggerscript to check $0
1973 - clear /etc/codepages from %preun instead of %postun
1975 * Mon Jun 08 1998 Erik Troan <ewt@redhat.com>
1976 - made the %postun script a tad less agressive; no reason to remove
1977 the logs or lock file (after all, if the lock file is still there,
1978 samba is still running)
1979 - the %postun and %preun should only exectute if this is the final
1981 - migrated %triggerpostun from Red Hat's samba package to work around
1982 packaging problems in some Red Hat samba releases
1984 * Sun Apr 26 1998 John H Terpstra <jht@samba.anu.edu.au>
1985 - minor tidy up in preparation for release of 1.9.18p5
1986 - added findsmb utility from SGI package
1988 * Wed Mar 18 1998 John H Terpstra <jht@samba.anu.edu.au>
1989 - Updated version and codepage info.
1990 - Release to test name resolve order
1992 * Sat Jan 24 1998 John H Terpstra <jht@samba.anu.edu.au>
1993 - Many optimisations (some suggested by Manoj Kasichainula <manojk@io.com>
1994 - Use of chkconfig in place of individual symlinks to /etc/rc.d/init/smb
1995 - Compounded make line
1996 - Updated smb.init restart mechanism
1997 - Use compound mkdir -p line instead of individual calls to mkdir
1998 - Fixed smb.conf file path for log files
1999 - Fixed smb.conf file path for incoming smb print spool directory
2000 - Added a number of options to smb.conf file
2001 - Added smbadduser command (missed from all previous RPMs) - Doooh!
2002 - Added smbuser file and smb.conf file updates for username map