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.0alpha23
18 %define vscanver 0.3.2a
21 # Version and release replaced by samba-team at release from samba cvs
22 %define pversion PVERSION
23 %define prelease PRELEASE
25 #Check to see if p(version|release) has been replaced (1 if replaced)
26 %define have_pversion %(if [ "%pversion" = `echo "pversion" |tr '[:lower:]' '[:upper:]'` ];then echo 0; else echo 1; fi)
27 %define have_prelease %(if [ "%prelease" = `echo "prelease" |tr '[:lower:]' '[:upper:]'` ];then echo 0; else echo 1; fi)
30 %define source_ver %{pversion}
31 %global _unpackaged_files_terminate_build 0
32 %global _missing_doc_files_terminate_build 0
34 %define source_ver %{ver}
37 # We might have a prerelease:
38 %define have_pre %(echo %source_ver|awk '{p=0} /[a-z,A-Z][a-z,A-Z]/ {p=1} {print p}')
40 %define pre_ver %(perl -e '$name="%source_ver"; print ($name =~ /(.*?)[a-z]/);')
41 %define pre_pre %(echo %source_ver|sed -e 's/%pre_ver//g')
44 # Check to see if we are running a build from a tarball release from samba.org
45 # (%have_pversion) If so, disable vscan, unless explicitly requested
50 %{?_with_vscan: %define build_vscan 1}
53 # We now do detection of the Mandrake release we are building on:
54 #%define build_cooker %(if [ `awk '{print $3}' /etc/mandrake-release` = "Cooker" ];then echo 1; else echo 0; fi)
55 #%define build_cooker %(if [[ `cat /etc/mandrake-release|grep Cooker` ]];then echo 1; else echo 0; fi)
56 %define build_mdk92 %(if [ `awk '{print $4}' /etc/mandrake-release` = 9.2 ];then echo 1; else echo 0; fi)
57 %define build_mdk91 %(if [ `awk '{print $4}' /etc/mandrake-release` = 9.1 ];then echo 1; else echo 0; fi)
58 %define build_mdk90 %(if [ `awk '{print $4}' /etc/mandrake-release` = 9.0 ];then echo 1; else echo 0; fi)
59 %define build_mdk82 %(if [ `awk '{print $4}' /etc/mandrake-release` = 8.2 ];then echo 1; else echo 0; fi)
60 %define build_mdk81 %(if [ `awk '{print $4}' /etc/mandrake-release` = 8.1 ];then echo 1; else echo 0; fi)
61 %define build_mdk80 %(if [ `awk '{print $4}' /etc/mandrake-release` = 8.0 ];then echo 1; else echo 0; fi)
62 %define build_mdk72 %(if [ `awk '{print $4}' /etc/mandrake-release` = 7.2 ];then echo 1; else echo 0; fi)
63 %define build_non_default 0
66 %define build_system 0
68 %define build_winbind 1
72 %define build_scanners 0
73 # CUPS supports functionality for 'printcap name = cups' (9.0 and later):
74 %define build_cupspc 0
76 # Set defaults for each version
78 %define build_cupspc 1
82 %define build_cupspc 1
92 %define build_winbind 0
98 %define build_winbind 0
104 %define build_winbind 0
109 # Allow commandline option overrides (borrowed from Vince's qmail srpm):
110 # To use it, do rpm [-ba|--rebuild] --with 'xxx'
111 # Check if the rpm was built with the defaults, otherwise we inform the user
112 %define build_non_default 0
113 %{?_with_system: %{expand: %%define build_system 1}}
114 %{?_without_system: %{expand: %%define build_system 0}}
115 %{?_with_acl: %{expand: %%global build_acl 1}}
116 %{?_with_acl: %{expand: %%define build_non_default 1}}
117 %{?_without_acl: %{expand: %%global build_acl 0}}
118 %{?_without_acl: %{expand: %%define build_non_default 1}}
119 %{?_with_winbind: %{expand: %%global build_winbind 1}}
120 %{?_with_winbind: %{expand: %%define build_non_default 1}}
121 %{?_without_winbind: %{expand: %%global build_winbind 0}}
122 %{?_without_winbind: %{expand: %%define build_non_default 1}}
123 %{?_with_wins: %{expand: %%global build_wins 1}}
124 %{?_with_wins: %{expand: %%define build_non_default 1}}
125 %{?_without_wins: %{expand: %%global build_wins 0}}
126 %{?_without_wins: %{expand: %%define build_non_default 1}}
127 %{?_with_ldap: %{expand: %%global build_ldap 1}}
128 %{?_with_ldap: %{expand: %%define build_non_default 1}}
129 %{?_without_ldap: %{expand: %%global build_ldap 0}}
130 %{?_without_ldap: %{expand: %%define build_non_default 1}}
131 %{?_with_ads: %{expand: %%global build_ads 1}}
132 %{?_with_ads: %{expand: %%define build_non_default 1}}
133 %{?_without_ads: %{expand: %%global build_ads 0}}
134 %{?_without_ads: %{expand: %%define build_non_default 1}}
135 %{?_with_scanners: %{expand: %%global build_scanners 1}}
136 %{?_with_scanners: %{expand: %%define build_non_default 1}}
138 # As if that weren't enough, we're going to try building with antivirus
139 # support as an option also
140 %define build_fprot 0
141 %define build_kaspersky 0
143 %define build_openav 0
144 %define build_sophos 0
145 %define build_symantec 0
146 %define build_trend 0
147 %if %build_vscan && %build_scanners
148 #These can be enabled here by default
149 # (kaspersky requires their library present)
150 %define build_fprot 1
152 %define build_openav 1
153 %define build_sophos 1
154 %define build_trend 1
157 %{?_with_fprot: %{expand: %%global build_fprot 1}}
158 %{?_with_kaspersky: %{expand: %%global build_kaspersky 1}}
159 %{?_with_mks: %{expand: %%global build_mks 1}}
160 %{?_with_openav: %{expand: %%global build_openav 1}}
161 %{?_with_sophos: %{expand: %%global build_sophos 1}}
162 #%{?_with_symantec: %{expand: %%global build_symantec 1}}
163 %{?_with_trend: %{expand: %%global build_trend 1}}
164 %global vscandir samba-vscan-%{vscanver}
166 %global vfsdir examples.bin/VFS
168 #Standard texts for descriptions:
169 %define message_bugzilla() %(echo -e -n "Please file bug reports for this package at Mandrake bugzilla \\n(http://qa.mandrakesoft.com) under the product name %{1}")
170 %define message_system %(echo -e -n "NOTE: This is a prerelease of samba-%{samba_major}, not intended for production\\n use. Rather these packages are provided, parallel installable\\nwith samba-2.2.x, for testing purposes")
173 #Workaround missing macros in 8.x:
174 %{!?perl_vendorlib: %{expand: %%global perl_vendorlib %{perl_sitearch}/../}}
176 # Determine whether this is the system samba or not.
178 %define samba_major %{nil}
180 %define samba_major 3
183 Summary: Samba SMB server.
184 Name: %{pkg_name}%{samba_major}
189 Version: %{source_ver}
192 %if %have_prelease && !%have_pre
193 Release: 1.%{prelease}mdk
195 %if %have_prelease && %have_pre
196 Release: 0.%{pre_pre}.%{prelease}mdk
198 %if !%have_prelease && !%have_pre
201 %if !%have_prelease && %have_pre
202 Release: 0.%{pre_pre}.%{rel}
206 Group: System/Servers
207 Source: ftp://samba.org/pub/samba/samba-%{source_ver}.tar.bz2
208 URL: http://www.samba.org
210 Source3: samba.xinetd
211 Source4: swat_48.xpm.bz2
212 Source5: swat_32.xpm.bz2
213 Source6: swat_16.xpm.bz2
214 Source7: README.%{name}-mandrake-rpm
216 Source8: samba-vscan-%{vscanver}.tar.bz2
218 Source10: samba-print-pdf.sh.bz2
219 Patch1: smbw.patch.bz2
220 Patch2: samba-2.2.0-gawk.patch.bz2
221 Patch3: samba-2.2.0-buildroot.patch.bz2
222 Patch4: samba-3.0-smbmount-sbin.patch.bz2
224 # Version specific patches: current version
225 Patch101: samba-Makefile-3.0alpha21.patch.bz2
226 #Patch102: samba-3.0alpha22-mandrake-packaging.patch.bz2
227 Patch110: samba-2.2.7a-fix-build.patch.bz2
229 # Version specific patches: upcoming version
231 # Limbo patches (applied to prereleases, but not preleases, ie destined for
233 %if %have_pversion && %have_pre
235 Requires: pam >= 0.64, samba-common = %{version}
236 BuildRequires: pam-devel autoconf readline-devel
237 BuildRequires: libxml2-devel
238 BuildRequires: mysql-devel
239 BuildRequires: autoconf2.5
241 BuildRequires: libacl-devel
244 BuildRequires: cups-devel
246 BuildRequires: libcups-devel
248 BuildRequires: libldap-devel
250 BuildRequires: libldap-devel krb5-devel
252 BuildRoot: %{_tmppath}/%{name}-root
254 Prereq: /sbin/chkconfig /bin/mktemp /usr/bin/killall
255 Prereq: fileutils sed /bin/grep
258 Samba provides an SMB server which can be used to provide
259 network services to SMB (sometimes called "Lan Manager")
260 clients, including various versions of MS Windows, OS/2,
261 and other Linux machines. Samba also provides some SMB
262 clients, which complement the built-in SMB filesystem
263 in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols
264 and does NOT need NetBEUI (Microsoft Raw NetBIOS frame)
267 Samba-3.0 features working NT Domain Control capability and
268 includes the SWAT (Samba Web Administration Tool) that
269 allows samba's smb.conf file to be remotely managed using your
270 favourite web browser. For the time being this is being
271 enabled on TCP port 901 via xinetd. SWAT is now included in
272 it's own subpackage, samba-swat.
274 Please refer to the WHATSNEW.txt document for fixup information.
275 This binary release includes encrypted password support.
277 Please read the smb.conf file and ENCRYPTION.txt in the
278 docs directory for implementation details.
280 %message_bugzilla samba3
285 %if %build_non_default
286 WARNING: This RPM was built with command-line options. Please
287 see README.%{name}-mandrake-rpm in the documentation for
292 URL: http://www.samba.org
293 Summary: Samba (SMB) server programs.
294 Requires: %{name}-common = %{version}
296 Group: Networking/Other
300 Provides: samba-server-ldap
301 Obsoletes: samba-server-ldap
302 Provides: samba3-server
303 Obsoletes: samba3-server
305 #Provides: samba-server
309 Samba-server provides a SMB server which can be used to provide
310 network services to SMB (sometimes called "Lan Manager")
311 clients. Samba uses NetBIOS over TCP/IP (NetBT) protocols
312 and does NOT need NetBEUI (Microsoft Raw NetBIOS frame)
315 Samba-3.0 features working NT Domain Control capability and
316 includes the SWAT (Samba Web Administration Tool) that
317 allows samba's smb.conf file to be remotely managed using your
318 favourite web browser. For the time being this is being
319 enabled on TCP port 901 via xinetd. SWAT is now included in
320 it's own subpackage, samba-swat.
322 Please refer to the WHATSNEW.txt document for fixup information.
323 This binary release includes encrypted password support.
325 Please read the smb.conf file and ENCRYPTION.txt in the
326 docs directory for implementation details.
328 %message_bugzilla samba3-server
335 URL: http://www.samba.org
336 Summary: Samba (SMB) client programs.
337 Group: Networking/Other
338 Requires: %{name}-common = %{version}
340 Provides: samba3-client
341 Obsoletes: samba3-client
344 #Provides: samba-client
348 Samba-client provides some SMB clients, which complement the built-in
349 SMB filesystem in Linux. These allow the accessing of SMB shares, and
350 printing to SMB printers.
352 %message_bugzilla samba3-client
359 URL: http://www.samba.org
360 Summary: Files used by both Samba servers and clients.
361 Group: System/Servers
363 Provides: samba-common-ldap
364 Obsoletes: samba-common-ldap
365 Provides: samba3-common
366 Obsoletes: samba3-common
368 #Provides: samba-common
372 Samba-common provides files necessary for both the server and client
375 %message_bugzilla samba3-common
382 URL: http://www.samba.org
383 Summary: Documentation for Samba servers and clients.
384 Group: System/Servers
385 Requires: %{name}-common = %{version}
387 Obsoletes: samba3-doc
394 Samba-doc provides documentation files for both the server and client
397 %message_bugzilla samba3-doc
404 URL: http://www.samba.org
405 Summary: The Samba Web Administration Tool.
406 Requires: %{name}-server = %{version}
408 Group: System/Servers
410 Provides: samba-swat-ldap
411 Obsoletes: samba-swat-ldap
412 Provides: samba3-swat
413 Obsoletes: samba3-swat
415 #Provides: samba-swat
419 SWAT (the Samba Web Administration Tool) allows samba's smb.conf file
420 to be remotely managed using your favourite web browser. For the time
421 being this is being enabled on TCP port 901 via xinetd. Note that
422 SWAT does not use SSL encryption, nor does it preserve comments in
423 your smb.conf file. Webmin uses SSL encryption by default, and
424 preserves comments in configuration files, even if it does not display
425 them, and is therefore the preferred method for remotely managing
428 %message_bugzilla samba3-swat
436 URL: http://www.samba.org
437 Summary: Samba-winbind daemon, utilities and documentation
438 Group: System/Servers
439 Requires: %{name}-common = %{version}
441 Provides the winbind daemon and testing tools to allow authentication
442 and group/user enumeration from a Windows or Samba domain controller.
445 %message_bugzilla samba3-winbind
452 %package -n nss_wins%{samba_major}
453 URL: http://www.samba.org
454 Summary: Name Service Switch service for WINS
455 Group: System/Servers
456 Requires: %{name}-common = %{version}
458 %description -n nss_wins%{samba_major}
459 Provides the libnss_wins shared library which resolves NetBIOS names to
463 %message_bugzilla nss_wins3
469 %if %{?_without_debug:0}%{!?_without_debug:1}
471 URL: http://www.samba.org
472 Summary: Debugging and benchmarking tools for samba
473 Group: System/Servers
474 Requires: %{name}-common = %{version}
476 %if %build_system && %{?_without_debug:0}%{!?_without_debug:1}
477 Provides: samba3-debug
478 Obsoletes: samba3-debug
480 Provides: samba-debug
482 %if %{?_without_debug:0}%{!?_without_debug:1}
485 This package provides tools for benchmarking samba, and debugging
486 the correct operation of tools against smb servers.
490 %package -n libsmbclient%{libsmbmajor}
491 URL: http://www.samba.org
492 Summary: SMB Client Library
493 Group: System/Libraries
494 Provides: libsmbclient
496 %description -n libsmbclient%{libsmbmajor}
497 This package contains the SMB client library, part of the samba
498 suite of networking software, allowing other software to access
501 %if %have_pversion && %build_system
502 %message_bugzilla libsmbclient%{libsmbmajor}
506 %package -n libsmbclient%{libsmbmajor}-devel
507 URL: http://www.samba.org
508 Summary: SMB Client Library Development files
509 Group: System/Libraries
510 Provides: libsmbclient-devel
512 %description -n libsmbclient%{libsmbmajor}-devel
513 This package contains the development files for the SMB client
514 library, part of the samba suite of networking software, allowing
515 the development of other software to access SMB shares.
517 %if %have_pversion && %build_system
518 %message_bugzilla libsmbclient%{libsmbmajor}-devel
521 %package passdb-mysql
522 URL: http://www.samba.org
523 Summary: Samba password database plugin for MySQL
524 Group: System/Libraries
526 %description passdb-mysql
527 The passdb-mysql package for samba provides a password database
528 backend allowing samba to store account details in a MySQL
531 %message_bugzilla samba3-passdb-mysql
538 URL: http://www.samba.org
539 Summary: Samba password database plugin for XML files
540 Group: System/Libraries
542 %description passdb-xml
543 The passdb-xml package for samba provides a password database
544 backend allowing samba to store account details in XML files.
546 %message_bugzilla samba3-passdb-xml
555 Summary: On-access virus scanning for samba using FPROT
556 Group: System/Servers
557 Requires: %{name}-server = %{version}
558 Provides: %{name}-vscan
560 %description vscan-fprot
561 A vfs-module for samba to implement on-access scanning using the
562 FPROT antivirus software (which must be installed to use this).
566 %package vscan-kaspersky
567 Summary: On-access virus scanning for samba using Kaspersky
568 Group: System/Servers
569 Requires: %{name}-server = %{version}
570 Provides: %{name}-vscan
572 %description vscan-kaspersky
573 A vfs-module for samba to implement on-access scanning using the
574 Kaspersky antivirus software (which must be installed to use this).
579 Summary: On-access virus scanning for samba using MKS
580 Group: System/Servers
581 Requires: %{name}-server = %{version}
582 Provides: %{name}-vscan
584 %description vscan-mks
585 A vfs-module for samba to implement on-access scanning using the
586 MKS antivirus software (which must be installed to use this).
590 %package vscan-openav
591 Summary: On-access virus scanning for samba using OpenAntivirus
592 Group: System/Servers
593 Requires: %{name}-server = %{version}
594 Provides: %{name}-vscan
596 %description vscan-openav
597 A vfs-module for samba to implement on-access scanning using the
598 OpenAntivirus antivirus software (which must be installed to use this).
602 %package vscan-sophos
603 Summary: On-access virus scanning for samba using Sophos
604 Group: System/Servers
605 Requires: %{name}-server = %{version}
606 Provides: %{name}-vscan
608 %description vscan-sophos
609 A vfs-module for samba to implement on-access scanning using the
610 Sophos antivirus software (which must be installed to use this).
614 %package vscan-symantec
615 Summary: On-access virus scanning for samba using Symantec
616 Group: System/Servers
617 Requires: %{name}-server = %{version}
618 Provides: %{name}-vscan
620 %description vscan-symantec
621 A vfs-module for samba to implement on-access scanning using the
622 Symantec antivirus software (which must be installed to use this).
627 Summary: On-access virus scanning for samba using Trend
628 Group: System/Servers
629 Requires: %{name}-server = %{version}
630 Provides: %{name}-vscan
632 %description vscan-trend
633 A vfs-module for samba to implement on-access scanning using the
634 Trend antivirus software (which must be installed to use this).
639 # Allow users to query build options with --with options:
640 #%define opt_status(%1) %(echo %{1})
641 #%( [ -d %{1} ]||mkdir -p %{1}; [ -w %{1} ] && echo %{1})
642 %if %{?_with_options:1}%{!?_with_options:0}
643 %define opt_status(%{1}) %(if [ %{1} -eq 1 ];then echo enabled;else echo disabled;fi)
646 %{error:Build options available are:}
647 %{error:--with[out] system Build as the system samba package [or as samba3]}
648 %{error:--with[out] acl Build with support for file ACLs - %opt_status %build_acl}
649 %{error:--with[out] winbind Build with Winbind support - %opt_status %build_winbind}
650 %{error:--with[out] wins Build with WINS name resolution support - %opt_status %build_wins}
651 %{error:--with[out] ldap Build with legacy (samba2) LDAP support - %opt_status %build_ldap}
652 %{error:--with[out] ads Build with Active Directory support - %opt_status %build_ads}
653 %{error:--with[out] scanners Enable on-access virus scanners - %opt_status %build_scanners}
657 %{error: This rpm has build options available, use --with options to see them}
661 %if %{?_with_options:1}%{!?_with_options:0} && %build_scanners
662 %{error:--with scanners enables fprot,mks,openav,sophos and trend by default}
664 %{error:To enable others (requires development libraries for the scanner):}
665 %{error:--with kaspersky Enable on-access scanning with Kaspersky - %opt_status %build_kaspersky}
669 %if %{?_with_options:1}%{!?_with_options:0}
675 # Build a summary of how this RPM was built:
677 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --with acl"
679 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --without acl"
682 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --with winbind"
684 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --without winbind"
687 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --with wins"
689 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --without wins"
692 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --with ldap"
694 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --without ldap"
697 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --with ads"
699 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --without ads"
702 %if %build_non_default
703 echo "Building a non-default rpm with the following command-line arguments:"
704 echo "$RPM_EXTRA_OPTIONS"
705 echo "This rpm was built with non-default options, thus, to build ">%{SOURCE7}
706 echo "an identical rpm, you need to supply the following options">>%{SOURCE7}
707 echo "at build time: $RPM_EXTRA_OPTIONS">>%{SOURCE7}
708 echo -e "\n%{name}-%{version}-%{release}\n">>%{SOURCE7}
710 echo "This rpm was built with default options">%{SOURCE7}
711 echo -e "\n%{name}-%{version}-%{release}\n">>%{SOURCE7}
715 %setup -q -a 8 -n %{pkg_name}-%{source_ver}
717 %setup -q -n %{pkg_name}-%{source_ver}
722 %patch3 -p1 -b .buildroot
724 # Version specific patches: current version
726 echo "Applying patches for current version: %{ver}"
730 #%patch102 -p1 -b .mdk
733 # Version specific patches: upcoming version
734 echo "Applying patches for new versions: %{pversion}"
738 %if %have_pversion && %have_pre
739 echo "Appling patches which should only be applied to prereleases"
742 # Fix quota compilation in glibc>2.3
743 %if %build_mdk91 || %build_mdk92
744 #grep "<linux/quota.h>" source/smbd/quotas.c >/dev/null && \
745 perl -pi -e 's@<linux/quota.h>@<sys/quota.h>@' source/smbd/quotas.c
750 # Make a copy of examples so that we have a clean one for doc:
751 cp -a examples examples.bin
754 cp -a %{vscandir} %{vfsdir}
755 #fix stupid directory names:
756 mv %{vfsdir}/%{vscandir}/openantivirus %{vfsdir}/%{vscandir}/oav
758 # Inline replacement of config dir
759 for av in fprot kaspersky mks oav sophos trend; do
760 [ -e %{vfsdir}/%{vscandir}/$av/vscan-$av.h ] && perl -pi -e \
761 's,^#define PARAMCONF "/etc/samba,#define PARAMCONF "/etc/%{name},' \
762 %{vfsdir}/%{vscandir}/$av/vscan-$av.h
764 #Inline edit vscan header:
765 perl -pi -e 's/^# define SAMBA_VERSION_MAJOR 2/# define SAMBA_VERSION_MAJOR 3/g' %{vfsdir}/%{vscandir}/include/vscan-global.h
767 # Edit some files when not building system samba:
769 perl -pi -e 's/%{pkg_name}/%{name}/g' source/auth/pampass.c
776 CPPFLAGS="-I/usr/include/openssl"; export CPPFLAGS
777 CFLAGS="$RPM_OPT_FLAGS"
778 # Don't use --with-fhs now, since it overrides libdir, it sets configdir,
779 # lockdir,piddir logfilebase,privatedir and swatdir
780 %configure --prefix=%{_prefix} \
781 --sysconfdir=/etc/%{name} \
782 --localstatedir=/var \
783 --libdir=%{_libdir}/%{name} \
784 --with-privatedir=/etc/%{name} \
785 --with-lockdir=/var/cache/%{name} \
786 --with-piddir=/var/run/%{name} \
787 --with-swatdir=%{_datadir}/swat%{samba_major} \
788 --with-configdir=/etc/%{name} \
789 --with-logfilebase=/var/log/%{name} \
804 --with-manpages-langs=en \
808 --disable-mysqltest \
809 --program-suffix=%{samba_major}
810 # --with-manpages-langs=en,ja,pl \
812 # --with-smbwrapper \
814 # --with-nisplussam \
817 # For some reason passdb/pdb_xml.c doesn't like the flags below ...
818 # and the samba team doesn't always make proto before release ...
820 #make passdb/pdb_xml.o torture
821 # torture target broken in alpha22 (only on 9.0?)
822 #make CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" \
823 # all libsmbclient smbfilter wins modules %{!?_without_debug: torture debug2html}
824 %make all libsmbclient smbfilter wins modules %{!?_without_debug: torture debug2html}
825 #%make all libsmbclient debug2html smbfilter wins torture modules
826 # Build VFS modules (experimental)
828 #_configure --prefix=%{prefix} \
829 # --mandir=%{prefix}/share/man
831 #make CFLAGS="$RPM_OPT_FLAGS -I../../source -I../../source/include -I../../source/ubiqx \
832 # -I../../source/smbwrapper -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"
835 # Build mkntpasswd in examples/LDAP/ for smbldaptools
837 #cd examples.bin/LDAP/smbldap-tools/mkntpwd
841 # Build antivirus vfs objects:
843 echo -e "\n\nBuild antivirus VFS modules\n\n"
844 echo "Building fprot"
845 (cd %{vfsdir}/%{vscandir}/fprot;make)
848 echo "Building Kaspersky"
849 (cd %{vfsdir}/%{vscandir}/kavp
850 perl -p -i -e "s|/usr/local/|/usr/|g" Makefile.KAV4
851 make -f Makefile.KAV4
856 (cd %{vfsdir}/%{vscandir}/mks;make)
859 echo "Building OpenAntivirus"
860 (cd %{vfsdir}/%{vscandir}/oav;make)
863 echo "building sophos"
864 (cd %{vfsdir}/%{vscandir}/sophos;make)
867 echo "Building symantec"
868 (cd %{vfsdir}/%{vscandir}/symantec;make)
871 echo "Building Trend"
872 (cd %{vfsdir}/%{vscandir}/trend;make)
876 rm -rf $RPM_BUILD_ROOT
877 mkdir -p $RPM_BUILD_ROOT
879 #Ensure all docs are readable
882 # Any entries here mean samba makefile is *really* broken:
883 mkdir -p $RPM_BUILD_ROOT/etc/%{name}
884 mkdir -p $RPM_BUILD_ROOT/%{_datadir}
885 mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{name}/vfs
888 make DESTDIR=$RPM_BUILD_ROOT LIBDIR=%{_libdir}/%{name} install installclientlib installmodules)
891 mkdir -p $RPM_BUILD_ROOT/sbin
892 mkdir -p $RPM_BUILD_ROOT/etc/{logrotate.d,pam.d,xinetd.d}
893 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
894 mkdir -p $RPM_BUILD_ROOT/var/cache/%{name}
895 mkdir -p $RPM_BUILD_ROOT/var/log/%{name}
896 mkdir -p $RPM_BUILD_ROOT/var/run/%{name}
897 mkdir -p $RPM_BUILD_ROOT/var/spool/%{name}
898 mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/%{name}/{netlogon,profiles,printers}
899 mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/%{name}/printers/{W32X86,WIN40,W32ALPHA,W32MIPS,W32PPC}
900 mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/%{name}/codepages/src
901 mkdir -p $RPM_BUILD_ROOT/%{_lib}/security
902 mkdir -p $RPM_BUILD_ROOT%{_libdir}
903 mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{name}/vfs
904 mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/scripts
906 #smbwrapper and pam_winbind not handled by make, pam_smbpass.so doesn't build
907 #install -m 755 source/bin/smbwrapper.so $RPM_BUILD_ROOT%{_libdir}/smbwrapper%{samba_major}.so
908 install -m 755 source/bin/pam_smbpass.so $RPM_BUILD_ROOT/%{_lib}/security/pam_smbpass%{samba_major}.so
909 install -m 755 source/nsswitch/pam_winbind.so $RPM_BUILD_ROOT/%{_lib}/security/pam_winbind%{samba_major}.so
912 #install -m 755 source/bin/smbsh $RPM_BUILD_ROOT%{_bindir}/
914 # Install VFS modules
915 #install -m755 %vfsdir/audit.so $RPM_BUILD_ROOT/%{_libdir}/samba/vfs
916 #for i in block recycle
918 # install -m755 %vfsdir/$i/$i.so $RPM_BUILD_ROOT/%{_libdir}/samba/vfs
922 # mkdir -p $RPM_BUILD_ROOT%{_libdir}/samba/vfs/vscan
923 for av in fprot kavp mks oav sophos symantec trend; do
924 if [ -d %{vfsdir}/%{vscandir}/$av -a -e %{vfsdir}/%{vscandir}/$av/vscan-$av*.so ];then
925 cp %{vfsdir}/%{vscandir}/$av/vscan-$av*.so \
926 $RPM_BUILD_ROOT%{_libdir}/%{name}/vfs/
927 cp %{vfsdir}/%{vscandir}/$av/vscan-$av*.conf \
928 $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
932 #libnss_* not handled by make:
933 # Install the nsswitch library extension file
934 for i in wins winbind; do
935 install -m755 source/nsswitch/libnss_${i}.so $RPM_BUILD_ROOT/%{_lib}/libnss_${i}%{samba_major}.so
937 # Make link for wins and winbind resolvers
938 ( 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)
940 %if %{?_without_debug:0}%{!?_without_debug:1}
941 # Debugging stuff (broken in alpha22)
942 for i in smbtorture msgtest masktest locktest locktest2 nsstest vfstest debug2html;do
943 install -m755 source/bin/$i $RPM_BUILD_ROOT/%{_bindir}
947 # Install other stuff
949 # install -m644 examples/VFS/recycle/recycle.conf $RPM_BUILD_ROOT/etc/samba/
950 install -m644 packaging/Mandrake/smbusers $RPM_BUILD_ROOT/etc/%{name}/smbusers
951 install -m755 packaging/Mandrake/smbprint $RPM_BUILD_ROOT/%{_bindir}
952 #install -m755 packaging/RedHat/smbadduser $RPM_BUILD_ROOT/usr/bin
953 install -m755 packaging/Mandrake/findsmb $RPM_BUILD_ROOT/%{_bindir}
954 install -m755 packaging/Mandrake/smb.init $RPM_BUILD_ROOT/etc/rc.d/init.d/smb%{samba_major}
955 install -m755 packaging/Mandrake/smb.init $RPM_BUILD_ROOT/%{_sbindir}/%{name}
956 install -m755 packaging/Mandrake/winbind.init $RPM_BUILD_ROOT/etc/rc.d/init.d/winbind%{samba_major}
957 # install -m755 packaging/Mandrake/wrepld.init $RPM_BUILD_ROOT/etc/rc.d/init.d/wrepld%{samba_major}
958 install -m755 packaging/Mandrake/winbind.init $RPM_BUILD_ROOT/%{_sbindir}/winbind%{samba_major}
959 install -m644 packaging/Mandrake/samba.pamd $RPM_BUILD_ROOT/etc/pam.d/%{name}
960 install -m644 packaging/Mandrake/system-auth-winbind.pamd $RPM_BUILD_ROOT/etc/pam.d/system-auth-winbind%{samba_major}
962 install -m644 %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
963 # install -m644 packaging/Mandrake/samba-slapd-include.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/samba-slapd.include
965 # Install smbldap-tools scripts:
966 #for i in examples/LDAP/smbldap-tools/*.pl; do
967 # install -m 750 $i $RPM_BUILD_ROOT/%{_datadir}/%{name}/scripts/
970 #install -m 750 examples/LDAP/smbldap-tools/smbldap_tools.pm $RPM_BUILD_ROOT/%{_datadir}/%{name}/scripts/
973 #install -m 640 examples/LDAP/smbldap-tools/smbldap_conf.pm $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}
975 # Link both smbldap*.pm into vendor-perl (any better ideas?)
976 #mkdir -p %{buildroot}/%{perl_vendorlib}
977 #ln -s %{_sysconfdir}/%{name}/smbldap_conf.pm $RPM_BUILD_ROOT/%{perl_vendorlib}
978 #ln -s %{_datadir}/%{name}/scripts/smbldap_tools.pm $RPM_BUILD_ROOT/%{perl_vendorlib}
981 #install -m750 examples.bin/LDAP/smbldap-tools/mkntpwd/mkntpwd %{buildroot}/%{_sbindir}
983 # Samba smbpasswd migration script:
984 install -m700 examples/LDAP/export_smbpasswd.pl $RPM_BUILD_ROOT/%{_datadir}/%{name}/scripts/
985 install -m700 examples/LDAP/import_smbpasswd.pl $RPM_BUILD_ROOT/%{_datadir}/%{name}/scripts/
989 # make a conf file for winbind from the default one:
990 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
991 install -m644 packaging/Mandrake/smb-winbind.conf $RPM_BUILD_ROOT/etc/%{name}/smb-winbind.conf
993 # Some inline fixes for smb.conf for non-winbind use
994 install -m644 packaging/Mandrake/smb.conf $RPM_BUILD_ROOT/etc/%{name}/smb.conf
995 cat packaging/Mandrake/smb.conf | \
996 sed -e 's/^; printer admin = @adm/ printer admin = @adm/g' >$RPM_BUILD_ROOT/etc/%{name}/smb.conf
998 perl -pi -e 's/printcap name = lpstat/printcap name = cups/g' $RPM_BUILD_ROOT/etc/%{name}/smb.conf
999 perl -pi -e 's/printcap name = lpstat/printcap name = cups/g' $RPM_BUILD_ROOT/etc/%{name}/smb-winbind.conf
1002 # Link smbmount to /sbin/mount.smb and /sbin/mount.smbfs
1003 #I don't think it's possible for make to do this ...
1004 (cd $RPM_BUILD_ROOT/sbin
1005 ln -s ..%{_bindir}/smbmount%{samba_major} mount.smb%{samba_major}
1006 ln -s ..%{_bindir}/smbmount%{samba_major} mount.smbfs%{samba_major}
1008 echo 127.0.0.1 localhost > $RPM_BUILD_ROOT/etc/%{name}/lmhosts
1010 # Link smbspool to CUPS (does not require installed CUPS)
1012 mkdir -p $RPM_BUILD_ROOT/%{_libdir}/cups/backend
1013 ln -s %{_bindir}/smbspool $RPM_BUILD_ROOT/%{_libdir}/cups/backend/smb%{samba_major}
1017 mkdir -p $RPM_BUILD_ROOT/etc/xinetd.d
1018 install -m644 %{SOURCE3} $RPM_BUILD_ROOT/etc/xinetd.d/swat%{samba_major}
1022 mkdir -p $RPM_BUILD_ROOT%{_menudir}
1023 cat > $RPM_BUILD_ROOT%{_menudir}/%{name}-swat << EOF
1024 ?package(%{name}-swat):command="gnome-moz-remote http://localhost:901/" needs="gnome" \
1025 icon="swat%{samba_major}.xpm" section="Configuration/Networking" title="Samba Configuration" \
1026 longtitle="The Swat Samba Administration Tool"
1027 ?package(%{name}-swat):command="sh -c '\$BROWSER http://localhost:901/'" needs="x11" \
1028 icon="swat%{samba_major}.xpm" section="Configuration/Networking" title="Samba Configuration" \
1029 longtitle="The Swat Samba Administration Tool"
1032 mkdir -p $RPM_BUILD_ROOT%{_liconsdir} $RPM_BUILD_ROOT%{_iconsdir} $RPM_BUILD_ROOT%{_miconsdir}
1034 bzcat %{SOURCE4} > $RPM_BUILD_ROOT%{_liconsdir}/swat%{samba_major}.xpm
1035 bzcat %{SOURCE5} > $RPM_BUILD_ROOT%{_iconsdir}/swat%{samba_major}.xpm
1036 bzcat %{SOURCE6} > $RPM_BUILD_ROOT%{_miconsdir}/swat%{samba_major}.xpm
1038 bzcat %{SOURCE10}> $RPM_BUILD_ROOT%{_datadir}/%{name}/scripts/print-pdf
1040 # Fix configs when not building system samba:
1042 # Work around non-existent but claimed --program-suffix support :-(
1043 for dir in %{_sbindir} %{_bindir};do
1044 FILES=`find %{buildroot}$dir -type f |grep -v "\."|grep -v %{samba_major}$`
1045 for OLD in $FILES; do
1046 NEW=`echo ${OLD}%{samba_major}`
1050 # And the man pages too:
1051 FILES=`find %{buildroot}%{_mandir} -type f `
1052 for OLD in $FILES; do
1053 BASE=`perl -e '$name="'${OLD}'"; print "",($name =~ /(.*?)\.[0-9]/), "\n";'`
1054 EXT=`echo $OLD|sed -e 's,'${BASE}',,g'`
1055 NEW=`echo ${BASE}%{samba_major}${EXT}`
1058 # Replace paths in config files and init scripts:
1059 for i in smb winbind;do
1060 perl -pi -e 's,/subsys/'$i',/subsys/'$i'%{samba_major},g' $RPM_BUILD_ROOT/etc/rc.d/init.d/${i}%{samba_major}
1062 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
1063 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;
1066 perl -pi -e 's/winbind/winbind%{samba_major}/g' $RPM_BUILD_ROOT/etc/pam.d/system-auth-winbind%{samba_major}
1067 # Fix xinetd file for swat:
1068 perl -pi -e 's,/usr/sbin,%{_sbindir},g' $RPM_BUILD_ROOT/etc/xinetd.d/swat%{samba_major}
1071 #Clean up unpackaged files:
1072 for i in %{_bindir}/pam_smbpass.so %{_bindir}/smbwrapper.so;do
1073 rm -f %{buildroot}/$i
1077 rm -rf $RPM_BUILD_ROOT
1081 %_post_service smb%{samba_major}
1082 #%_post_service wrepld%{samba_major}
1084 # Add a unix group for samba machine accounts
1085 groupadd -frg 421 machines
1087 # Migrate tdb's from /var/lock/samba (taken from official samba spec file):
1088 for i in /var/lock/samba/*.tdb
1091 newname=`echo $i | sed -e's|var\/lock\/samba|var\/cache\/samba|'`
1092 echo "Moving $i to $newname"
1097 # Remove the transient tdb files (modified from version in off. samba spec:
1098 for TDB in brlock unexpected locking messages; do
1099 if [ -e /var/cache/%{name}/$TDB.tdb ]; then
1100 rm -f /var/cache/%{name}/$TDB.tdb;
1104 if [ -d /var/lock/samba ]; then
1105 rm -rf /var/lock/samba
1109 # Basic migration script for pre-2.2.1 users,
1110 # since smb config moved from /etc to /etc/samba
1112 # Let's create a proper /etc/samba/smbpasswd file
1113 [ -f /etc/%{name}/smbpasswd ] || {
1114 echo "Creating password file for samba..."
1115 touch /etc/%{name}/smbpasswd
1118 # And this too, in case we don't have smbd to create it for us
1119 [ -f /var/cache/%{name}/unexpected.tdb ] || {
1120 touch /var/cache/%{name}/unexpected.tdb
1123 # Let's define the proper paths for config files
1124 perl -pi -e 's/(\/etc\/)(smb)/\1%{name}\/\2/' /etc/%{name}/smb.conf
1126 # Let's replace lpstat with cups in older smb.conf:
1128 echo "Updating samba printing configuration if necessary..."
1129 perl -pi -e 's/= lpstat/= cups/' /etc/%{name}/smb.conf
1132 # Fix the logrotate.d file from smb and nmb to smbd and nmbd
1133 if [ -f /etc/logrotate.d/samba ]; then
1134 perl -pi -e 's/smb /smbd /' /etc/logrotate.d/samba
1135 perl -pi -e 's/nmb /nmbd /' /etc/logrotate.d/samba
1138 # And not loose our machine account SID
1139 [ -f /etc/MACHINE.SID ] && mv -f /etc/MACHINE.SID /etc/%{name}/ ||:
1144 /sbin/chkconfig winbind%{samba_major} on
1145 cp -af /etc/nsswitch.conf /etc/nsswitch.conf.rpmsave
1146 cp -af /etc/nsswitch.conf /etc/nsswitch.conf.rpmtemp
1147 for i in passwd group;do
1148 grep ^$i /etc/nsswitch.conf |grep -v 'winbind%{samba_major}' >/dev/null
1150 echo "Adding a winbind%{samba_major} entry to the $i section of /etc/nsswitch.conf"
1151 awk '/^'$i'/ {print $0 " winbind%{samba_major}"};!/^'$i'/ {print}' /etc/nsswitch.conf.rpmtemp >/etc/nsswitch.conf;
1152 cp -af /etc/nsswitch.conf /etc/nsswitch.conf.rpmtemp
1154 echo "$i entry found in /etc/nsswitch.conf"
1157 if [ -f /etc/nsswitch.conf.rpmtemp ];then rm -f /etc/nsswitch.conf.rpmtemp;fi
1162 echo "Removing winbind%{samba_major} entries from /etc/nsswitch.conf"
1163 perl -pi -e 's/ winbind%{samba_major}//' /etc/nsswitch.conf
1165 /sbin/chkconfig winbind%{samba_major} reset
1167 %endif %build_winbind
1170 %post -n nss_wins%{samba_major}
1172 cp -af /etc/nsswitch.conf /etc/nsswitch.conf.rpmsave
1173 grep '^hosts' /etc/nsswitch.conf |grep -v 'wins%{samba_major}' >/dev/null
1175 echo "Adding a wins entry to the hosts section of /etc/nsswitch.conf"
1176 awk '/^hosts/ {print $0 " wins%{samba_major}"};!/^hosts/ {print}' /etc/nsswitch.conf.rpmsave >/etc/nsswitch.conf;
1178 echo "wins entry found in /etc/nsswitch.conf"
1181 # echo "Upgrade, leaving nsswitch.conf intact"
1184 %preun -n nss_wins%{samba_major}
1186 echo "Removing wins entry from /etc/nsswitch.conf"
1187 perl -pi -e 's/ wins%{samba_major}//' /etc/nsswitch.conf
1189 # echo "Leaving /etc/nsswitch.conf intact"
1195 %_preun_service smb%{samba_major}
1196 #%_preun_service wrepld%{samba_major}
1198 if [ $1 = 0 ] ; then
1199 # /sbin/chkconfig --level 35 smb reset
1200 # Let's not loose /var/cache/samba
1202 # for i in browse.dat wins.dat brlock.tdb unexpected.tdb connections.tdb \
1203 #locking.tdb messages.tdb;do
1204 # if [ -e /var/cache/samba/$i ]; then
1205 # mv -f /var/cache/samba/$i /var/cache/samba/$i.BAK
1208 if [ -d /var/log/%{name} ]; then
1209 rm -rf /var/log/%{name}/*
1211 if [ -d /var/cache/%{name} ]; then
1212 mv -f /var/cache/%{name} /var/cache/%{name}.BAK
1217 if [ -f /var/lock/subsys/xinetd ]; then
1218 service xinetd reload >/dev/null 2>&1 || :
1224 # Remove swat entry from xinetd
1225 if [ $1 = 0 -a -f /etc/xinetd.conf ] ; then
1226 rm -f /etc/xinetd.d/swat%{samba_major}
1227 service xinetd reload &>/dev/null || :
1230 if [ "$1" = "0" -a -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi
1234 %triggerpostun -- samba < 1.9.18p7
1236 if [ $1 != 0 ]; then
1237 /sbin/chkconfig --level 35 smb on
1240 %triggerpostun -- samba < 2.0.5a-3, samba >= 2.0.0
1242 if [ $1 != 0 ]; then
1243 [ ! -d /var/lock/samba ] && mkdir -m 0755 /var/lock/samba ||:
1244 [ ! -d /var/spool/samba ] && mkdir -m 1777 /var/spool/samba ||:
1245 [ -f /etc/inetd.conf ] && chmod 644 /etc/services /etc/inetd.conf ||:
1249 %defattr(-,root,root)
1250 #%attr(-,root,root) /sbin/*
1252 %{_sbindir}/smbd%{samba_major}
1253 %{_sbindir}/nmbd%{samba_major}
1254 #%{_sbindir}/wrepld%{samba_major}
1255 %{_bindir}/smbcontrol%{samba_major}
1256 #%{_sbindir}/mkntpwd
1257 %{_bindir}/smbstatus%{samba_major}
1258 %{_bindir}/pdbedit%{samba_major}
1259 %{_bindir}/tdbbackup%{samba_major}
1260 %{_bindir}/profiles%{samba_major}
1261 %{_bindir}/editreg%{samba_major}
1262 %attr(755,root,root) /%{_lib}/security/pam_smbpass*
1263 %dir %{_libdir}/%{name}/vfs
1264 %{_libdir}/%{name}/vfs/*.so
1265 %dir %{_libdir}/%{name}/pdb
1268 %attr(-,root,root) %config(noreplace) /etc/%{name}/smbusers
1269 %attr(-,root,root) %config %{_initrddir}/smb%{samba_major}
1270 #%attr(-,root,root) %config %{_initrddir}/wrepld%{samba_major}
1271 %attr(-,root,root) %config(noreplace) /etc/logrotate.d/%{name}
1272 %attr(-,root,root) %config(noreplace) /etc/pam.d/%{name}
1273 #%attr(-,root,root) %config(noreplace) /etc/%{name}/samba-slapd.include
1274 %{_mandir}/man1/smbstatus*.1*
1275 %{_mandir}/man5/smbpasswd*.5*
1276 %{_mandir}/man7/samba*.7*
1277 %{_mandir}/man8/smbd*.8*
1278 %{_mandir}/man8/nmbd*.8*
1279 %{_mandir}/man8/pdbedit*.8*
1280 %{_mandir}/man1/smbcontrol*.1*
1281 %attr(775,root,root) %dir %{_localstatedir}/%{name}/netlogon
1282 %attr(775,root,root) %dir %{_localstatedir}/%{name}/profiles
1283 %attr(775,root,root) %dir %{_localstatedir}/%{name}/printers
1284 %attr(1777,root,root) %dir /var/spool/%{name}
1285 %dir %{_datadir}/%{name}
1286 %dir %{_datadir}/%{name}/scripts
1287 %attr(0755,root,root) %{_datadir}/%{name}/scripts/print-pdf
1288 #%attr(0750,root,root) %{_datadir}/%{name}/scripts/smbldap*.pl
1289 #%attr(0640,root,root) %config(noreplace) %{_sysconfdir}/%{name}/smbldap_conf.pm
1290 #%attr(0644,root,root) %{_datadir}/%{name}/scripts/smbldap_tools.pm
1291 #%{perl_vendorlib}/*.pm
1292 %attr(0700,root,root) %{_datadir}/%{name}/scripts/*port_smbpasswd.pl
1296 %defattr(-,root,root)
1297 %doc README COPYING Manifest Read-Manifest-Now
1298 %doc WHATSNEW.txt Roadmap
1299 %doc README.%{name}-mandrake-rpm
1303 %attr(-,root,root) %{_datadir}/swat%{samba_major}/using_samba/*
1306 %defattr(-,root,root)
1307 %config(noreplace) /etc/xinetd.d/swat%{samba_major}
1308 #%attr(-,root,root) /sbin/*
1309 %{_sbindir}/swat%{samba_major}
1310 %{_menudir}/%{name}-swat
1314 %attr(-,root,root) %{_datadir}/swat%{samba_major}/help/*
1315 %attr(-,root,root) %{_datadir}/swat%{samba_major}/images/*
1316 %attr(-,root,root) %{_datadir}/swat%{samba_major}/include/*
1317 %lang(ja) %{_datadir}/swat%{samba_major}/lang/ja
1318 %lang(tr) %{_datadir}/swat%{samba_major}/lang/tr
1319 %{_mandir}/man8/swat*.8*
1322 %defattr(-,root,root)
1324 /sbin/mount.smb%{samba_major}
1325 /sbin/mount.smbfs%{samba_major}
1326 %attr(755,root,root) %{_bindir}/smbmount%{samba_major}
1327 %attr(4755,root,root) %{_bindir}/smbumount%{samba_major}
1328 %attr(4755,root,root) %{_bindir}/smbmnt%{samba_major}
1329 %{_mandir}/man8/smbmnt*.8*
1330 %{_mandir}/man8/smbmount*.8*
1331 %{_mandir}/man8/smbumount*.8*
1333 %{_bindir}/nmblookup%{samba_major}
1334 %{_bindir}/findsmb%{samba_major}
1335 %{_bindir}/smbclient%{samba_major}
1336 %{_bindir}/smbprint%{samba_major}
1337 %{_bindir}/smbtar%{samba_major}
1338 %{_bindir}/smbspool%{samba_major}
1339 # Link of smbspool to CUPS
1340 /%{_libdir}/cups/backend/smb%{samba_major}
1341 /%{_mandir}/man1/nmblookup*.1*
1342 /%{_mandir}/man1/findsmb*.1*
1343 /%{_mandir}/man1/smbclient*.1*
1344 /%{_mandir}/man1/smbtar*.1*
1345 /%{_mandir}/man8/smbspool*.8*
1348 %defattr(-,root,root)
1349 %dir /var/cache/%{name}
1350 %dir /var/log/%{name}
1351 %dir /var/run/%{name}
1352 #%{_bindir}/make_smbcodepage
1353 #%{_bindir}/make_unicodemap
1354 %{_bindir}/testparm%{samba_major}
1355 %{_bindir}/testprns%{samba_major}
1356 #%{_bindir}/make_printerdef
1357 %{_bindir}/rpcclient%{samba_major}
1358 #%{_bindir}/smbsh%{samba_major}
1359 %{_bindir}/smbpasswd%{samba_major}
1360 %{_bindir}/smbcacls%{samba_major}
1361 %{_bindir}/smbcquotas%{samba_major}
1362 %{_bindir}/net%{samba_major}
1363 %{_bindir}/smbtree%{samba_major}
1364 %{_bindir}/ntlm_auth%{samba_major}
1365 #%{_libdir}/smbwrapper%{samba_major}.so
1366 %dir %{_libdir}/%{name}
1367 %{_libdir}/%{name}/*.dat
1368 #%{_libdir}/%{name}/lowcase.dat
1369 #%{_libdir}/%{name}/valid.dat
1370 %dir %{_sysconfdir}/%{name}
1371 %attr(-,root,root) %config(noreplace) %{_sysconfdir}/%{name}/smb.conf
1372 %attr(-,root,root) %config(noreplace) %{_sysconfdir}/%{name}/smb-winbind.conf
1373 %attr(-,root,root) %config(noreplace) %{_sysconfdir}/%{name}/lmhosts
1374 %dir %{_localstatedir}/%{name}
1375 %attr(-,root,root) %{_localstatedir}/%{name}/codepages
1376 #%{_mandir}/man1/make_smbcodepage*.1*
1377 #%{_mandir}/man1/make_unicodemap*.1*
1378 %{_mandir}/man1/testparm*.1*
1379 %{_mandir}/man1/rpcclient*.1*
1380 %exclude %{_mandir}/man1/smbsh*.1*
1381 %{_mandir}/man1/testprns*.1*
1382 %{_mandir}/man5/smb.conf*.5*
1383 %{_mandir}/man5/lmhosts*.5*
1384 %{_mandir}/man8/smbpasswd*.8*
1385 %{_mandir}/man1/smbcacls*.1*
1386 %{_mandir}/man8/net*.8*
1390 %defattr(-,root,root)
1391 %{_sbindir}/winbindd%{samba_major}
1392 %{_sbindir}/winbind%{samba_major}
1393 %{_bindir}/wbinfo%{samba_major}
1394 %attr(755,root,root) /%{_lib}/security/pam_winbind*
1395 %attr(755,root,root) /%{_lib}/libnss_winbind%{samba_major}*
1396 %attr(-,root,root) %config /etc/rc.d/init.d/winbind%{samba_major}
1397 %attr(-,root,root) %config(noreplace) /etc/pam.d/system-auth-winbind*
1398 %{_mandir}/man8/winbindd*.8*
1399 %{_mandir}/man1/wbinfo*.1*
1403 %files -n nss_wins%{samba_major}
1404 %defattr(-,root,root)
1405 %attr(755,root,root) /%{_lib}/libnss_wins%{samba_major}.so*
1408 %if %{?_without_debug:0}%{!?_without_debug:1}
1410 %defattr(-,root,root)
1411 %{_bindir}/debug2html%{samba_major}
1412 %{_bindir}/smbtorture%{samba_major}
1413 %{_bindir}/msgtest%{samba_major}
1414 %{_bindir}/masktest%{samba_major}
1415 %{_bindir}/locktest%{samba_major}
1416 %{_bindir}/locktest2%{samba_major}
1417 %{_bindir}/nsstest%{samba_major}
1418 %{_bindir}/vfstest%{samba_major}
1419 %{_mandir}/man1/vfstest%{samba_major}*.1*
1421 %exclude %{_mandir}/man1/vfstest%{samba_major}*.1*
1425 %files -n libsmbclient%{libsmbmajor}
1426 %defattr(-,root,root)
1427 %{_libdir}/libsmbclient.so*
1429 %exclude %{_libdir}/libsmbclient.so*
1433 %files -n libsmbclient%{libsmbmajor}-devel
1434 %defattr(-,root,root)
1437 %exclude %{_includedir}/*
1441 %defattr(-,root,root)
1442 %{_libdir}/%{name}/pdb/*mysql.so
1445 %defattr(-,root,root)
1446 %{_libdir}/%{name}/pdb/*xml.so
1448 #Files for antivirus support:
1451 %defattr(-,root,root)
1452 %{_libdir}/%{name}/vfs/vscan-fprotd.so
1453 %config(noreplace) %{_sysconfdir}/%{name}/vscan-fprotd.conf
1454 %doc %{vfsdir}/%{vscandir}/INSTALL
1457 %if %build_kaspersky
1458 %files vscan-kaspersky
1459 %defattr(-,root,root)
1460 %{_libdir}/%{name}/vfs/vscan-kavp.so
1461 %config(noreplace) %{_sysconfdir}/%{name}/vscan-kavp.conf
1462 %doc %{vfsdir}/%{vscandir}/INSTALL
1467 %defattr(-,root,root)
1468 %{_libdir}/%{name}/vfs/vscan-mksd.so
1469 %config(noreplace) %{_sysconfdir}/%{name}/vscan-mks*.conf
1470 %doc %{vfsdir}/%{vscandir}/INSTALL
1475 %defattr(-,root,root)
1476 %{_libdir}/%{name}/vfs/vscan-oav.so
1477 %config(noreplace) %{_sysconfdir}/%{name}/vscan-oav.conf
1478 %doc %{vfsdir}/%{vscandir}/INSTALL
1483 %defattr(-,root,root)
1484 %{_libdir}/%{name}/vfs/vscan-sophos.so
1485 %config(noreplace) %{_sysconfdir}/%{name}/vscan-sophos.conf
1486 %doc %{vfsdir}/%{vscandir}/INSTALL
1490 %files vscan-symantec
1491 %defattr(-,root,root)
1492 %{_libdir}/%{name}/vfs/vscan-symantec.so
1493 %config(noreplace) %{_sysconfdir}/%{name}/vscan-symantec.conf
1494 %doc %{vfsdir}/%{vscandir}/INSTALL
1499 %defattr(-,root,root)
1500 %{_libdir}/%{name}/vfs/vscan-trend.so
1501 %config(noreplace) %{_sysconfdir}/%{name}/vscan-trend.conf
1502 %doc %{vfsdir}/%{vscandir}/INSTALL
1506 * Wed Apr 30 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha24.1mdk
1507 - Remove some files removed upstream
1508 - In builds from source, don't terminate on missing docs or unpackaged files
1509 (if only we could do it for other missing files ...)
1511 * Mon Apr 28 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha24.0mdk
1512 - Reenable debug package by (--without debug to not build it), fixed post-a23
1513 - Add bugzilla note for builds from source (also intended for packages made
1514 available on samba FTP site) at samba team request
1515 - Fix build from CVS (run autogen.sh, pass options to all rpm commands)
1516 - Appease distriblint, but not much to be done about /usr/share/swat3/ since
1517 samba-doc owns some subdirs, and samba-swat others, and they can be installed
1519 - Apply kaspersky vscan build fix from samba2
1522 * Wed Apr 23 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha23.3mdk
1523 - Small fixes in preparation for testing as system samba
1524 - Make debug package optional (--with debug) since it's often broken
1525 - Add support for 9.2 (including in-line smbd quota patch for glibc2.3)
1526 - Add --with options option, which will just show you the available options and exit
1528 * Sun Apr 06 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha23.2mdk
1530 - buildrequire autconf2.5
1531 - samba-vscan 0.3.2a
1532 - Remove patch 102 (upstreamed)
1534 * Thu Mar 06 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha22.2mdk
1536 - Add profiles binary to server and ntlm_auth to common
1537 - smbwrapper and torture target broken (only in 9.0?)
1538 - remove unused source 2
1540 * Tue Mar 04 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha21.4mdk
1541 - Don't provide samba-{server,client,common} when not system samba (bug #2617)
1542 - Don't build libsmbclient packages when not system samba
1543 - Fix conflict between samba-server and samba3-server (pam_smbpass)
1544 - Fix smbwrapper (from 2.2.7a-5mdk for bug #2356)
1545 - Fix codepage/charset example (bug #1574)
1547 * Thu Jan 23 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha21.3mdk
1548 - samba-vscan 0.3.1 (and make it build again), including required inline edits
1549 - Make all vscan packages provide samba(3)-vscan
1550 - Build all vscan except kav (requires kaspersky lib) with --with-scanners
1551 - Add vscan-(scanner).conf files
1552 - Explicitly add ldapsam for 2.2 compatability when building --with ldap,
1553 default build now uses new ldap passdb backend (ie you always get ldap)
1554 - Enable (experimental) tdb passdb backend
1555 - Fix file ownership conflicts between server and common
1556 - Cleanup configure, to match order of --help
1557 - Fix libdir location, was being overridden by --with-fhs
1558 - Split off a libsmbclient and -devel package
1559 - Add wins replication init script (patch 102)
1560 - Workaround passdb/pdb_xml.c not compiling
1561 - Workaround missing install targets for smbsh/smbwrapper.so in cvs
1562 - Inline patch smbd/quotas.c for Mandrake >9.0
1564 * Wed Nov 27 2002 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha21.2mdk
1565 - Remove patch 20,21,22,23,25,26 (upstream)
1566 - New destdir patch from cvs (18)
1567 - package installed but non-packaged files
1568 - new debug subpackage for vfstest and related files (it was that or nuke the
1570 - use _libdir for libdir instead of _sysconfdir
1571 - Update samba-vscan (untested)
1573 * Mon Oct 28 2002 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha20.3mdk
1574 - Fix mount.smbfs3 pointing to smbmount not in package
1575 - Remove unnecessary lines from install (now done by make)
1576 - Build with ldap and ads on all releases by default
1579 * Mon Oct 21 2002 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha20.2mdk
1580 - When not building as system samba, avoid conflicting with system samba
1581 - Macro-ize as much as possible for above (aka finish cleanups)
1582 - Fix paths in init scripts and logrotate and xinetd
1583 - Fix provides and obsoletes so as to provide samba, but not obsolete
1584 current stable until we have a stable release (when it's the system samba).
1585 - Add warnings to descriptions when not system samba.
1586 - This is now parallel installable with the normal samba release, for easy
1587 testing. It shouldn't touch existing installations. Of course, only
1588 one samba at a time on the same interface!
1590 * Sat Sep 28 2002 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha20.1mdk
1591 - Merge with 2.2.6pre2.2mdk
1592 - Detect alpha- and beta-, along with pre-releases
1594 * Tue Feb 05 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha14-0.1mdk
1595 - Sync with 2.2.3-2mdk (new --without options, detect when
1596 building for a different distribution.
1598 * Mon Feb 04 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha14-0.0mdk
1599 - Sync with 2.2.2-10mdk, which added build-time options --with ldap,
1600 winbind, acl, wins, mdk72, mdk80, mdk81, mdk82, cooker. Added
1601 warning in description if built with these options.
1603 * Wed Jan 23 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha13-0.2mdk
1604 - Added %%if's for build_ads, which hopefully will add Active Directory
1605 Support (by request).
1607 * Thu Jan 17 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha13-0.1mdk
1608 - More syncing with 2.2 rpm (post and postun scripts)
1609 - Testing without ldap
1611 * Thu Jan 17 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha13-0.0mdk
1613 - Fixed installman.sh patch.
1615 * Wed Jan 09 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha12-0.1mdk
1616 - Fixed %post and %preun for nss_wins, added %post and %preun for
1617 samba-winbind (chkconfig and winbind entries in nsswitch.conf)
1619 * Sun Dec 23 2001 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha12-0.0mdk
1621 - Sync up with changes made in 2.2.2 to support Mandrake 8.0, 7.2
1622 - Added new subpackage for swat
1623 - More %if's for ldap.
1625 * Thu Dec 20 2001 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha11-0.0mdk
1628 * Wed Dec 19 2001 Buchan Milne <bgmilne@cae.co.za> 3.0alpha10-0.0mdk
1631 * Tue Dec 18 2001 Buchan Milne <bgmilne@cae.co.za> 3.0alpha9-0.0mdk
1634 * Mon Dec 17 2001 Buchan Milne <bgmilne@cae.co.za> 3.0alpha8-0.1mdk
1635 - Added net command to %files common, pdbedit and smbgroupedit to
1636 %files, s/%{prefix}\/bin/%{_bindir}/ (the big cleanup).
1637 Added patch to smb.init from 2.2.2 (got missed with 3.0-alpha1 patches)
1639 * Sun Dec 16 2001 Buchan Milne <bgmilne@cae.co.za> 3.0alpha8-0.0mdk
1640 - Patch for installman.sh to handle lang=en correctly (p24)
1641 - added --with-manpages-langs=en,ja,pl (translated manpages), but there
1642 aren't any manpages for these languages yet ... so we still
1643 need %dir and %doc entries for them ...
1644 - patch (p25) to configure.in to support more than 2 languages.
1645 - addtosmbpass seems to have returned for now, but make_* have disappeared!
1647 * Fri Dec 14 2001 Buchan Milne <bgmilne@cae.co.za> 3.0alpha6-0.0mdk
1648 - DESTDIR patch for Makefile.in (p23), remove a lot of %install scripts
1649 this forces move of smbcontrol and smbmnt to %{prefix}/bin
1650 removed --with-pam_smbpass as it doesn't compile.
1652 * Thu Dec 06 2001 Buchan Milne <bgmilne@cae.co.za> 3.0-0.0alpha1mdk
1653 - Samba 3.0alpha1 released (we missed Samba 3.0alpha0!)
1654 - Redid smbmount-sbin patch and smb.conf patch (20), removed xfs quota patch
1655 (applied upstream), removed ook-patch (codepage directory totally different).
1656 - Added winbind.init (21) and system-auth-winbind.pamd (22). Patches 20-23
1657 should be applied upstream before 3.0 ships ...
1659 * Wed Dec 05 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-6mdk
1660 - fixed typo in system-auth-winbind.pamd (--Thanks J. Gluck).
1661 - fixed %post xxx problem (smb not started in chkconfig --Thanks Viet & B. Kenworthy).
1663 * Fri Nov 23 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-5mdk
1664 - Had to remove the network recycle bin patch: it seems to mess up
1665 file deletion from windows (files appear to be "already in use")
1667 * Tue Nov 13 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-4mdk
1668 - added network recycle bin patch:
1669 <http://www.amherst.edu/~bbstone/howto/samba.html>
1670 - added "recycle bin = .recycled" parameter in smb.conf [homes].
1671 - fixed winbind/nss_wins perms (oh no I don't own that stuff ;o)
1673 * Mon Nov 12 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-3mdk
1674 - added %build 8.0 and 7.2, for tweakers to play around.
1675 - changed configure options:
1676 . removed --with-mmap, --with-netatalk (obsolete).
1677 . added --with-msdfs, --with-vfs (seems stable, but still need testing).
1679 * Mon Nov 12 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-2mdk
1680 - rebuilt with winbind and nss_wins enabled.
1682 * Wed Oct 31 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-1mdk
1683 - Rebuilt on cooker.
1685 * Wed Oct 31 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.992mdk
1686 - Patch for smb.conf to fix incorrect lpq command, typo in winbind,
1687 and add sample linpopup command. Added print driver directories.
1688 - New XFS quota patch (untested!, samba runs, but do quotas work? We
1689 can't check yet since the kernel doesn't seem to support XFS quotas!)
1691 * Fri Oct 19 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-0.99mdk
1692 - New samba.spec, almost ready for winbind operations. OLA for Buchan Milne
1693 Who did a tremendous integration work on 2.2.2.
1694 Rebuild on cooker, please test XFS (ACLs and quotas) again...
1696 * Mon Oct 15 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.9mdk
1697 - Samba-2.2.2. released! Use %defines to determine which subpackages
1698 are built and which Mandrake release we are buiding on/for (hint: define
1699 build_mdk81 1 for Mandrake 8.1 updates)
1701 * Sun Oct 14 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011014mdk
1702 - %post and %postun for nss_wins
1704 * Wed Oct 10 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011010mdk
1705 - New CVS snapshot, /etc/pam.d/system-auth-winbind added
1706 with configuration to allow easy winbind setup.
1708 * Sun Oct 7 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011007mdk
1709 - Added new package nss_wins and moved smbpasswd to common (required by
1712 * Sat Oct 6 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011006mdk
1713 - Added new package winbind.
1715 * Mon Oct 1 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011001mdk
1716 - Removed patch to smb init.d file (applied in cvs)
1718 * Sun Sep 30 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20010930mdk
1719 - Added winbind init script, which still needs to check for running nmbd.
1721 * Thu Sep 27 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20010927mdk
1722 - Built from samba-2.2.2-pre cvs, added winbindd, wbinfo, nss_winbind and
1723 pam_winbind, moved pam_smbpass from samba-common to samba. We still
1724 need a start-up script for winbind, or need to modify existing one.
1726 * Mon Sep 10 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-15mdk
1727 - Enabled acl support (XFS acls now supported by kernel-2.4.8-21mdk thx Chmou)
1728 Added smbd patch to support XFS quota (Nathan Scott)
1730 * Mon Sep 10 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-14mdk
1731 - Oops! smbpasswd created in wrong directory...
1733 * Tue Sep 06 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-13mdk
1734 - Removed a wrong comment in smb.conf.
1735 Added creation of smbpasswd during install.
1737 * Mon Aug 27 2001 Pixel <pixel@mandrakesoft.com> 2.2.1a-12mdk
1738 - really less verbose %%post
1740 * Sat Aug 25 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 2.2.1a-11mdk
1741 - Fix shared libs in /usr/bin silliness.
1743 * Thu Aug 23 2001 Pixel <pixel@mandrakesoft.com> 2.2.1a-10mdk
1744 - less verbose %%post
1746 * Wed Aug 22 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1a-9mdk
1747 - Added smbcacls (missing in %files), modification to smb.conf: ([printers]
1748 is still needed, even with point-and-print!, user add script should
1749 use name and not gid, since we may not get the gid . New script for
1750 putting manpages in place (still need to be added in %files!). Moved
1751 smbcontrol to sbin and added it and its man page to %files.
1753 * Wed Aug 22 2001 Pixel <pixel@mandrakesoft.com> 2.2.1a-8mdk
1754 - cleanup /var/lib/samba/codepage/src
1756 * Tue Aug 21 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-7mdk
1757 - moved codepage generation to %install and codepage dir to /var/lib/samba
1759 * Tue Aug 21 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-6mdk
1760 - /lib/* was in both samba and samba-common
1761 Introducing samba-doc: "alas, for the sake of thy modem, shalt thou remember
1762 when Samba was under the Megabyte..."
1764 * Fri Aug 03 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-5mdk
1765 - Added "the gc touch" to smbinit through the use of killall -0 instead of
1766 grep cupsd | grep -v grep (too many greps :o)
1768 * Wed Jul 18 2001 Stefan van der Eijk <stefan@eijk.nu> 2.2.1a-4mdk
1769 - BuildRequires: libcups-devel
1770 - Removed BuildRequires: openssl-devel
1772 * Fri Jul 13 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-3mdk
1773 - replace chkconfig --add/del with --level 35 on/reset.
1775 * Fri Jul 13 2001 Geoffrey Lee <snailtalk@mandrakesoft.cm> 2.2.1a-2mdk
1776 - Replace discription s/inetd/xinetd/, we all love xinetd, blah.
1778 * Thu Jul 12 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1a-1mdk
1779 - Bugfix release. Fixed add user script, added print$ share and printer admin
1780 We need to test interaction of new print support with CUPS, but printer
1781 driver uploads should work.
1783 * Wed Jul 11 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-17mdk
1784 - fixed smb.conf a bit, rebuilt on cooker.
1786 * Tue Jul 10 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1-16mdk
1787 - Finally, samba 2.2.1 has actually been release. At least we were ready!
1788 Cleaned up smb.conf, and added some useful entries for domain controlling.
1789 Migrated changes made in samba's samba2.spec for 2.2.1 to this file.
1790 Added groupadd command in post to create a group for samba machine accounts.
1791 (We should still check the postun, samba removes pam, logs and cache)
1793 * Tue Jun 26 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-15mdk
1794 - fixed smbwrapper compile options.
1796 * Tue Jun 26 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-14mdk
1797 - added LFS support.
1798 added smbwrapper support (smbsh)
1800 * Wed Jun 20 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-13mdk
1801 - /sbin/mount.smb and /sbin/mount.smbfs now point to the correct location
1802 of smbmount (/usr/bin/smbmount)
1804 * Tue Jun 19 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-12mdk
1805 - smbmount and smbumount are now in /usr/bin and SUID.
1806 added ||: to triggerpostun son you don't get error 1 anymore when rpm -e
1807 Checked the .bz2 sources with file *: everything is OK now (I'm so stupid ;o)!
1809 * Tue Jun 19 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 2.2.1-11mdk
1810 - s/Copyright/License/;
1811 - Stop Sylvester from pretending .gz source to be .bz2 source via filename
1812 aka really bzip2 the source.
1814 * Mon Jun 18 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-10mdk
1815 - changed Till's startup script modifications: now samba is being reloaded
1816 automatically 1 minute after it has started (same reasons as below in 9mdk)
1817 added _post_ and _preun_ for service smb
1818 fixed creation of /var/lib/samba/{netlogon,profiles} (%dir was missing)
1820 * Thu Jun 14 2001 Till Kamppeter <till@mandrakesoft.com> 2.2.1-9mdk
1821 - Modified the Samba startup script so that in case of CUPS being used as
1822 printing system Samba only starts when the CUPS daemon is ready to accept
1823 requests. Otherwise the CUPS queues would not appear as Samba shares.
1825 * Mon Jun 11 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-8mdk
1826 - patched smbmount.c to have it call smbmnt in sbin (thanks Seb).
1828 * Wed May 30 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-7mdk
1829 - put SWAT menu icons back in place.
1831 * Mon May 28 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-6mdk
1832 - OOPS! fixed smbmount symlinks
1834 * Mon May 28 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-5mdk
1835 - removed inetd postun script, replaced with xinetd.
1836 updated binary list (smbcacls...)
1839 * Mon May 28 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1-4mdk
1840 - Changed configure options to point to correct log and codepage directories,
1841 added crude script to fix logrotate file for new log file names, updated
1842 patches to work with current CVS.
1844 * Thu May 24 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-3mdk
1845 - Cleaned and updated the %files section.
1847 * Sat May 19 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-2mdk
1848 - Moved all samba files from /etc to /etc/samba (Thanks DomS!).
1849 Fixed fixinit patch (/etc/samba/smb.conf)
1851 * Fri May 18 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1-1mdk
1852 - Now use packaging/Mandrake/smb.conf, removed unused and obsolete
1853 patches, moved netlogon and profile shares to /var/lib/samba in the
1854 smb.conf to match the spec file. Added configuration for ntlogon to
1855 smb.conf. Removed pam-foo, fixinit and makefilepath patches. Removed
1856 symlink I introduced in 2.2.0-1mdk
1858 * Thu May 3 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.0-5mdk
1859 - Added more configure options. Changed Description field (thx John T).
1861 * Wed Apr 25 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.0-4mdk
1862 - moved netlogon and profiles to /var/lib/samba by popular demand ;o)
1864 * Tue Apr 24 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.0-3mdk
1865 - moved netlogon and profiles back to /home.
1867 * Fri Apr 20 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.0-2mdk
1868 - fixed post inetd/xinetd script&
1870 * Thu Apr 19 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.0-1mdk
1871 - Upgrade to 2.2.0. Merged most of 2.0.7-25mdk's patches (beware
1872 nasty "ln -sf samba-%{ver} ../samba-2.0.7" hack to force some patches
1873 to take. smbadduser and addtosmbpass seem to have disappeared. Moved
1874 all Mandrake-specific files to packaging/Mandrake and made patches
1875 from those shipped with samba. Moved netlogon to /home/samba and added
1876 /home/samba/profiles. Added winbind,smbfilter and debug2html to make command.
1878 * Thu Apr 12 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 2.0.7-25mdk
1879 - Fix menu entry and provide separate menu entry for GNOME
1880 (nautilus doesn't support HTTP authentication yet)
1881 - Add icons in package
1883 * Fri Mar 30 2001 Frederic Lepied <flepied@mandrakesoft.com> 2.0.7-24mdk
1884 - use new server macros
1886 * Wed Mar 21 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-23mdk
1887 - check whether /etc/inetd.conf exists (upgrade) or not (fresh install).
1889 * Thu Mar 15 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-22mdk
1890 - spec cosmetics, added '-r' option to lpr-cups command line so files are
1891 removed from /var/spool/samba after printing.
1893 * Tue Mar 06 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-21mdk
1894 - merged last rh patches.
1896 * Thu Nov 23 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-20mdk
1897 - removed dependencies on cups and cups-devel so one can install samba without using cups
1898 - added /home/netlogon
1900 * Mon Nov 20 2000 Till Kamppeter <till@mandrakesoft.com> 2.0.7-19mdk
1901 - Changed default print command in /etc/smb.conf, so that the Windows
1902 driver of the printer has to be used on the client.
1903 - Fixed bug in smbspool which prevented from printing from a
1904 Linux-Samba-CUPS client to a Windows server through the guest account.
1906 * Mon Oct 16 2000 Till Kamppeter <till@mandrakesoft.com> 2.0.7-18mdk
1907 - Moved "smbspool" (Samba client of CUPS) to the samba-client package
1909 * Sat Oct 7 2000 Stefan van der Eijk <s.vandereijk@chello.nl> 2.0.7-17mdk
1910 - Added RedHat's "quota" patch to samba-glibc21.patch.bz2, this fixes
1911 quota related compile problems on the alpha.
1913 * Wed Oct 4 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-16mdk
1914 - Fixed 'guest ok = ok' flag in smb.conf
1916 * Tue Oct 3 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-15mdk
1917 - Allowed guest account to print in smb.conf
1918 - added swat icon in menu
1920 * Tue Oct 3 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-14mdk
1921 - Removed rh ssl patch and --with-ssl flag: not appropriate for 7.2
1923 * Tue Oct 3 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-13mdk
1924 - Changed fixinit patch.
1925 - Changed smb.conf for better CUPS configuration.
1926 - Thanks Fred for doing this ---vvv.
1928 * Tue Oct 3 2000 Frederic Lepied <flepied@mandrakesoft.com> 2.0.7-12mdk
1929 - menu entry for web configuration tool.
1930 - merge with rh: xinetd + ssl + pam_stack.
1931 - Added smbadduser rh-bugfix w/o relocation of config-files.
1933 * Mon Oct 2 2000 Frederic Lepied <flepied@mandrakesoft.com> 2.0.7-11mdk
1934 - added build requires on cups-devel and pam-devel.
1936 * Mon Oct 2 2000 Till Kamppeter <till@mandrakesoft.com> 2.0.7-10mdk
1937 - Fixed smb.conf entry for CUPS: "printcap name = lpstat", "lpstats" was
1940 * Mon Sep 25 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-9mdk
1941 - Cosmetic changes to make rpmlint more happy
1943 * Wed Sep 11 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-8mdk
1944 - added linkage to the using_samba book in swat
1946 * Fri Sep 01 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-7mdk
1947 - Added CUPS support to smb.conf
1948 - Added internationalization options to smb.conf [Global]
1950 * Wed Aug 30 2000 Till Kamppeter <till@mandrakesoft.com> 2.0.7-6mdk
1951 - Put "smbspool" to the files to install
1953 * Wed Aug 30 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-5mdk
1954 - Did some cleaning in the patches
1956 * Fri Jul 28 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-4mdk
1957 - relocated man pages from /usr/man to /usr/share/man for compatibility reasons
1959 * Fri Jul 28 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-3mdk
1960 - added make_unicodemap and build of unicode_map.$i in the spec file
1962 * Fri Jul 28 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-2mdk
1963 - renamed /etc/codepage/codepage.$i into /etc/codepage/unicode_map.$i to fix smbmount bug.
1965 * Fri Jul 07 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-1mdk
1968 * Wed Apr 05 2000 Francis Galiegue <fg@mandrakesoft.com> 2.0.6-4mdk
1970 - Titi sucks, does not put versions in changelog
1971 - Fixed groups for -common and -client
1972 - /usr/sbin/samba is no config file
1974 * Thu Mar 23 2000 Thierry Vignaud <tvignaud@mandrakesoft.com>
1975 - fix buggy post install script (pixel)
1977 * Fri Mar 17 2000 Francis Galiegue <francis@mandrakesoft.com> 2.0.6-2mdk
1979 - Changed group according to 7.1 specs
1980 - Some spec file changes
1981 - Let spec-helper do its job
1983 * Thu Nov 25 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
1986 * Tue Nov 2 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
1987 - Merge with rh changes.
1988 - Split in 3 packages.
1990 * Fri Aug 13 1999 Pablo Saratxaga <pablo@@mandrakesoft.com>
1991 - corrected a bug with %post (the $1 parameter is "1" in case of
1992 a first install, not "0". That parameter is the number of packages
1993 of the same name that will exist after running all the steps if nothing
1994 is removed; so it is "1" after first isntall, "2" for a second install
1995 or an upgrade, and "0" for a removal)
1997 * Wed Jul 28 1999 Pablo Saratxaga <pablo@@mandrakesoft.com>
1998 - made smbmnt and smbumount suid root, and only executable by group 'smb'
1999 add to 'smb' group any user that should be allowed to mount/unmount
2000 SMB shared directories
2002 * Fri Jul 23 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
2003 - 2.0.5a (bug security fix).
2005 * Wed Jul 21 1999 Axalon Bloodstone <axalon@linux-mandrake.com>
2007 - cs/da/de/fi/fr/it/tr descriptions/summaries
2009 * Sun Jun 13 1999 Bernhard Rosenkränzer <bero@mandrakesoft.com>
2011 - recompile on a system that works ;)
2013 * Wed Apr 21 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
2014 - Mandrake adaptations.
2017 * Fri Mar 26 1999 Bill Nottingham <notting@redhat.com>
2018 - add a mount.smb to make smb mounting a little easier.
2019 - smb filesystems apparently do not work on alpha. Oops.
2021 * Thu Mar 25 1999 Bill Nottingham <notting@redhat.com>
2022 - always create codepages
2024 * Tue Mar 23 1999 Bill Nottingham <notting@redhat.com>
2027 * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
2028 - auto rebuild in the new build environment (release 3)
2030 * Fri Mar 19 1999 Preston Brown <pbrown@redhat.com>
2031 - updated init script to use graceful restart (not stop/start)
2033 * Tue Mar 9 1999 Bill Nottingham <notting@redhat.com>
2036 * Thu Feb 18 1999 Bill Nottingham <notting@redhat.com>
2039 * Mon Feb 15 1999 Bill Nottingham <notting@redhat.com>
2042 * Tue Feb 9 1999 Bill Nottingham <notting@redhat.com>
2043 - fix bash2 breakage in post script
2045 * Fri Feb 5 1999 Bill Nottingham <notting@redhat.com>
2048 * Mon Oct 12 1998 Cristian Gafton <gafton@redhat.com>
2049 - make sure all binaries are stripped
2051 * Thu Sep 17 1998 Jeff Johnson <jbj@redhat.com>
2052 - update to 1.9.18p10.
2053 - fix %triggerpostun.
2055 * Tue Jul 07 1998 Erik Troan <ewt@redhat.com>
2056 - updated postun triggerscript to check $0
2057 - clear /etc/codepages from %preun instead of %postun
2059 * Mon Jun 08 1998 Erik Troan <ewt@redhat.com>
2060 - made the %postun script a tad less agressive; no reason to remove
2061 the logs or lock file (after all, if the lock file is still there,
2062 samba is still running)
2063 - the %postun and %preun should only exectute if this is the final
2065 - migrated %triggerpostun from Red Hat's samba package to work around
2066 packaging problems in some Red Hat samba releases
2068 * Sun Apr 26 1998 John H Terpstra <jht@samba.anu.edu.au>
2069 - minor tidy up in preparation for release of 1.9.18p5
2070 - added findsmb utility from SGI package
2072 * Wed Mar 18 1998 John H Terpstra <jht@samba.anu.edu.au>
2073 - Updated version and codepage info.
2074 - Release to test name resolve order
2076 * Sat Jan 24 1998 John H Terpstra <jht@samba.anu.edu.au>
2077 - Many optimisations (some suggested by Manoj Kasichainula <manojk@io.com>
2078 - Use of chkconfig in place of individual symlinks to /etc/rc.d/init/smb
2079 - Compounded make line
2080 - Updated smb.init restart mechanism
2081 - Use compound mkdir -p line instead of individual calls to mkdir
2082 - Fixed smb.conf file path for log files
2083 - Fixed smb.conf file path for incoming smb print spool directory
2084 - Added a number of options to smb.conf file
2085 - Added smbadduser command (missed from all previous RPMs) - Doooh!
2086 - Added smbuser file and smb.conf file updates for username map