1 # Note that this file exists in Mandrake packaging cvs (as samba.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
19 %define vscanver 0.3.5
21 %{?!mdkversion: %define mdkversion %(perl -pe '/(\d+)\.(\d)\.?(\d)?/; $_="$1$2".($3||0)' /etc/mandrake-release)}
22 %define rel %(case `hostname` in (n?.mandrakesoft.com) echo %drel;;(*) echo $[%drel-1].%subrel.$[%mdkversion/10];;esac)mdk
23 %{?_with_stable_on_cluster: %define rel %(echo $[%{drel}-1].%subrel.$[%{mdkversion}/10]mdk)}
24 %{?_with_official: %define rel %drel}
26 %{!?lib: %global lib lib}
27 %{!?mklibname: %global mklibname(ds) %lib%{1}%{?2:%{2}}%{?3:_%{3}}%{-s:-static}%{-d:-devel}}
29 %define libname %mklibname smbclient %libsmbmajor
31 # Version and release replaced by samba-team at release from samba cvs
32 %define pversion PVERSION
33 %define prelease PRELEASE
35 #Check to see if p(version|release) has been replaced (1 if replaced)
36 %define have_pversion %(if [ "%pversion" = `echo "pversion" |tr '[:lower:]' '[:upper:]'` ];then echo 0; else echo 1; fi)
37 %define have_prelease %(if [ "%prelease" = `echo "prelease" |tr '[:lower:]' '[:upper:]'` ];then echo 0; else echo 1; fi)
40 %define source_ver %{pversion}
41 # Don't abort for stupid reasons on builds from tarballs:
42 %global _unpackaged_files_terminate_build 0
43 %global _missing_doc_files_terminate_build 0
45 %define source_ver %{ver}
48 # We might have a prerelease:
49 %define have_pre %(echo %source_ver|awk '{p=0} /[a-z,A-Z][a-z,A-Z]/ {p=1} {print p}')
51 %define pre_ver %(perl -e '$name="%source_ver"; print ($name =~ /(.*?)[a-z]/);')
52 %define pre_pre %(echo %source_ver|sed -e 's/%pre_ver//g')
55 # Check to see if we are running a build from a tarball release from samba.org
56 # (%have_pversion) If so, disable vscan, unless explicitly requested
61 %{?_with_vscan: %define build_vscan 1}
64 # We now do detection of the Mandrake release we are building on:
65 %define build_mdk82 %(if [ `awk '{print $4}' /etc/mandrake-release` = 8.2 ];then echo 1; else echo 0; fi)
66 %define build_mdk81 %(if [ `awk '{print $4}' /etc/mandrake-release` = 8.1 ];then echo 1; else echo 0; fi)
67 %define build_mdk80 %(if [ `awk '{print $4}' /etc/mandrake-release` = 8.0 ];then echo 1; else echo 0; fi)
68 %define build_mdk72 %(if [ `awk '{print $4}' /etc/mandrake-release` = 7.2 ];then echo 1; else echo 0; fi)
69 %define build_non_default 0
72 %define build_alternatives 0
73 %define build_system 0
75 %define build_winbind 1
79 %define build_scanners 0
80 # CUPS supports functionality for 'printcap name = cups' (9.0 and later):
81 %define build_cupspc 0
82 # %_{pre,postun}_service are provided by rpm-helper in 9.0 and later
83 %define have_rpmhelper 1
85 # Set defaults for each version
86 %if %mdkversion >= 1000
87 %define build_system 1
90 %if %mdkversion >= 920
91 %define build_alternatives 1
94 %if %mdkversion >= 910
95 %define build_cupspc 1
99 %define have_rpmhelper 0
103 %define build_winbind 0
105 %define have_rpmhelper 0
110 %define build_winbind 0
113 %define have_rpmhelper 1
118 %define build_winbind 0
121 %define have_rpmhelper 1
125 # Allow commandline option overrides (borrowed from Vince's qmail srpm):
126 # To use it, do rpm [-ba|--rebuild] --with 'xxx'
127 # Check if the rpm was built with the defaults, otherwise we inform the user
128 %define build_non_default 0
129 %{?_with_system: %global build_system 1}
130 %{?_without_system: %global build_system 0}
131 %{?_with_acl: %global build_acl 1}
132 %{?_with_acl: %global build_non_default 1}
133 %{?_without_acl: %global build_acl 0}
134 %{?_without_acl: %global build_non_default 1}
135 %{?_with_winbind: %global build_winbind 1}
136 %{?_with_winbind: %global build_non_default 1}
137 %{?_without_winbind: %global build_winbind 0}
138 %{?_without_winbind: %global build_non_default 1}
139 %{?_with_wins: %global build_wins 1}
140 %{?_with_wins: %global build_non_default 1}
141 %{?_without_wins: %global build_wins 0}
142 %{?_without_wins: %global build_non_default 1}
143 %{?_with_ldap: %global build_ldap 1}
144 %{?_with_ldap: %global build_non_default 1}
145 %{?_without_ldap: %global build_ldap 0}
146 %{?_without_ldap: %global build_non_default 1}
147 %{?_with_ads: %global build_ads 1}
148 %{?_with_ads: %global build_non_default 1}
149 %{?_without_ads: %global build_ads 0}
150 %{?_without_ads: %global build_non_default 1}
151 %{?_with_scanners: %global build_scanners 1}
152 %{?_with_scanners: %global build_non_default 1}
153 %{?_without_scanners: %global build_scanners 0}
154 %{?_without_scanners: %global build_non_default 1}
155 %{?_with_vscan: %global build_vscan 1}
156 %{?_with_vscan: %global build_non_default 1}
157 %{?_without_vscan: %global build_vscan 0}
158 %{?_without_vscan: %global build_non_default 1}
160 # As if that weren't enough, we're going to try building with antivirus
161 # support as an option also
162 %global build_clamav 0
163 %global build_fprot 0
166 %global build_kaspersky 0
169 %global build_openav 0
170 %global build_sophos 0
171 %global build_symantec 0
172 %global build_trend 0
174 # These we build by default
175 %global build_clamav 1
178 %if %build_vscan && %build_scanners
179 # These scanners are built if scanners are selected
180 # symantec requires their library present and must be selected
182 %global build_fprot 1
184 %global build_kaspersky 1
187 %global build_openav 1
188 %global build_sophos 1
189 %global build_trend 1
192 %{?_with_fprot: %{expand: %%global build_fprot 1}}
193 %{?_with_kaspersky: %{expand: %%global build_kaspersky 1}}
194 %{?_with_mks: %{expand: %%global build_mks 1}}
195 %{?_with_openav: %{expand: %%global build_openav 1}}
196 %{?_with_sophos: %{expand: %%global build_sophos 1}}
197 #%{?_with_symantec: %{expand: %%global build_symantec 1}}
198 %{?_with_trend: %{expand: %%global build_trend 1}}
199 %global vscandir samba-vscan-%{vscanver}
201 %global vfsdir examples.bin/VFS
203 #Standard texts for descriptions:
204 %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}")
205 %define message_system %(echo -e -n "NOTE: These packages of samba-%{version}, are provided, parallel installable\\nwith samba-2.2.x, to allow easy migration from samba-2.2.x to samba-%{version},\\nbut are not officially supported")
207 #check gcc version to disable some optimisations on gcc-3.3.1
208 %define gcc331 %(gcc -dumpversion|awk '{if ($1>3.3) print 1; else print 0}')
210 #Define sets of binaries that we can use in globs and loops:
211 %global commonbin net,ntlm_auth,rpcclient,smbcacls,smbcquotas,smbpasswd,smbtree,testparm,testprns
213 %global serverbin editreg,pdbedit,profiles,smbcontrol,smbstatus,tdbbackup,tdbdump
214 %global serversbin nmbd,samba,smbd,mkntpwd
216 %global clientbin findsmb,nmblookup,smbclient,smbmnt,smbmount,smbprint,smbspool,smbtar,smbumount,smbget
217 %global client_bin mount.cifs
218 %global client_sbin mount.smb,mount.smbfs
220 %global testbin debug2html,smbtorture,msgtest,masktest,locktest,locktest2,nsstest,vfstest
223 %define build_expsam xml
225 %define build_expsam mysql,xml,pgsql
228 #Workaround missing macros in 8.x:
229 %{!?perl_vendorlib: %{expand: %%global perl_vendorlib %{perl_sitearch}/../}}
231 # Determine whether this is the system samba or not.
233 %define samba_major %{nil}
235 %define samba_major 3
237 # alternatives_major is %{nil} if we aren't system and not using alternatives
238 %if !%build_system || %build_alternatives
239 %define alternative_major 3
241 %define alternative_major %{nil}
244 Summary: Samba SMB server.
245 Name: %{pkg_name}%{samba_major}
250 Version: %{source_ver}
253 %if %have_prelease && !%have_pre
254 Release: 0.%{prelease}.%{rel}
256 %if %have_prelease && %have_pre
257 Release: 0.%{pre_pre}.%{rel}
259 %if !%have_prelease && !%have_pre
262 %if !%have_prelease && %have_pre
263 Release: 0.%{pre_pre}.%{rel}
267 Group: System/Servers
268 Source: ftp://samba.org/pub/samba/samba-%{source_ver}.tar.bz2
269 URL: http://www.samba.org
271 Source3: samba.xinetd
272 Source4: swat_48.png.bz2
273 Source5: swat_32.png.bz2
274 Source6: swat_16.png.bz2
275 Source7: README.%{name}-mandrake-rpm
277 Source8: samba-vscan-%{vscanver}.tar.bz2
279 %if %build_vscan && %mdkversion >= 920
280 BuildRequires: file-devel
282 Source10: samba-print-pdf.sh.bz2
283 Source11: smb-migrate.bz2
284 Patch1: smbw.patch.bz2
285 Patch4: samba-3.0-smbmount-sbin.patch.bz2
286 Patch5: samba-3.0.2a-smbldap-config.patch.bz2
288 # Version specific patches: current version
289 Patch7: samba-3.0.5-lib64.patch.bz2
290 Patch9: samba-3.0.6-smbmount-unixext.patch.bz2
291 Patch11: samba-3.0.7-mandrake-packaging.patch.bz2
293 # Version specific patches: upcoming version
294 Patch8: samba-3.0.6-revert-libsmbclient-move.patch.bz2
296 # Limbo patches (applied to prereleases, but not preleases, ie destined for
298 %if %have_pversion && %have_pre
300 Requires: pam >= 0.64, samba-common = %{version}
301 BuildRequires: pam-devel readline-devel libncurses-devel popt-devel
302 BuildRequires: libxml2-devel postgresql-devel
304 BuildRequires: mysql-devel
307 BuildRequires: libacl-devel
310 BuildRequires: cups-devel
312 BuildRequires: libcups-devel
314 BuildRequires: libldap-devel
316 BuildRequires: libldap-devel krb5-devel
318 BuildRoot: %{_tmppath}/%{name}-%{version}-root
320 Prereq: /sbin/chkconfig /bin/mktemp /usr/bin/killall
321 Prereq: fileutils sed /bin/grep
324 Samba provides an SMB server which can be used to provide
325 network services to SMB (sometimes called "Lan Manager")
326 clients, including various versions of MS Windows, OS/2,
327 and other Linux machines. Samba also provides some SMB
328 clients, which complement the built-in SMB filesystem
329 in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols
330 and does NOT need NetBEUI (Microsoft Raw NetBIOS frame)
333 Samba-3.0 features working NT Domain Control capability and
334 includes the SWAT (Samba Web Administration Tool) that
335 allows samba's smb.conf file to be remotely managed using your
336 favourite web browser. For the time being this is being
337 enabled on TCP port 901 via xinetd. SWAT is now included in
338 it's own subpackage, samba-swat.
340 Please refer to the WHATSNEW.txt document for fixup information.
341 This binary release includes encrypted password support.
343 Please read the smb.conf file and ENCRYPTION.txt in the
344 docs directory for implementation details.
346 %message_bugzilla samba3
351 %if %build_non_default
352 WARNING: This RPM was built with command-line options. Please
353 see README.%{name}-mandrake-rpm in the documentation for
358 URL: http://www.samba.org
359 Summary: Samba (SMB) server programs.
360 Requires: %{name}-common = %{version}
364 Group: Networking/Other
368 Provides: samba-server-ldap
369 Obsoletes: samba-server-ldap
370 Provides: samba3-server
371 Obsoletes: samba3-server
373 #Provides: samba-server
377 Samba-server provides a SMB server which can be used to provide
378 network services to SMB (sometimes called "Lan Manager")
379 clients. Samba uses NetBIOS over TCP/IP (NetBT) protocols
380 and does NOT need NetBEUI (Microsoft Raw NetBIOS frame)
383 Samba-3.0 features working NT Domain Control capability and
384 includes the SWAT (Samba Web Administration Tool) that
385 allows samba's smb.conf file to be remotely managed using your
386 favourite web browser. For the time being this is being
387 enabled on TCP port 901 via xinetd. SWAT is now included in
388 it's own subpackage, samba-swat.
390 Please refer to the WHATSNEW.txt document for fixup information.
391 This binary release includes encrypted password support.
393 Please read the smb.conf file and ENCRYPTION.txt in the
394 docs directory for implementation details.
396 %message_bugzilla samba3-server
403 URL: http://www.samba.org
404 Summary: Samba (SMB) client programs.
405 Group: Networking/Other
406 Requires: %{name}-common = %{version}
407 %if %build_alternatives
408 #Conflicts: samba-client < 2.2.8a-9mdk
411 Provides: samba3-client
412 Obsoletes: samba3-client
415 #Provides: samba-client
417 %if !%build_system && %build_alternatives
418 Provides: samba-client
422 Samba-client provides some SMB clients, which complement the built-in
423 SMB filesystem in Linux. These allow the accessing of SMB shares, and
424 printing to SMB printers.
426 %message_bugzilla samba3-client
433 URL: http://www.samba.org
434 Summary: Files used by both Samba servers and clients.
435 Group: System/Servers
437 Provides: samba-common-ldap
438 Obsoletes: samba-common-ldap
439 Provides: samba3-common
440 Obsoletes: samba3-common
442 #Provides: samba-common
446 Samba-common provides files necessary for both the server and client
449 %message_bugzilla samba3-common
456 URL: http://www.samba.org
457 Summary: Documentation for Samba servers and clients.
458 Group: System/Servers
459 Requires: %{name}-common = %{version}
461 Obsoletes: samba3-doc
468 Samba-doc provides documentation files for both the server and client
471 %message_bugzilla samba3-doc
478 URL: http://www.samba.org
479 Summary: The Samba Web Administration Tool.
480 Requires: %{name}-server = %{version}
482 Group: System/Servers
484 Provides: samba-swat-ldap
485 Obsoletes: samba-swat-ldap
486 Provides: samba3-swat
487 Obsoletes: samba3-swat
489 #Provides: samba-swat
493 SWAT (the Samba Web Administration Tool) allows samba's smb.conf file
494 to be remotely managed using your favourite web browser. For the time
495 being this is being enabled on TCP port 901 via xinetd. Note that
496 SWAT does not use SSL encryption, nor does it preserve comments in
497 your smb.conf file. Webmin uses SSL encryption by default, and
498 preserves comments in configuration files, even if it does not display
499 them, and is therefore the preferred method for remotely managing
502 %message_bugzilla samba3-swat
510 URL: http://www.samba.org
511 Summary: Samba-winbind daemon, utilities and documentation
512 Group: System/Servers
513 Requires: %{name}-common = %{version}
515 %if %build_winbind && !%build_system
516 Conflicts: samba-winbind
520 Provides the winbind daemon and testing tools to allow authentication
521 and group/user enumeration from a Windows or Samba domain controller.
524 %message_bugzilla samba3-winbind
531 %package -n nss_wins%{samba_major}
532 URL: http://www.samba.org
533 Summary: Name Service Switch service for WINS
534 Group: System/Servers
535 Requires: %{name}-common = %{version}
538 %if %build_wins && !%build_system
542 %description -n nss_wins%{samba_major}
543 Provides the libnss_wins shared library which resolves NetBIOS names to
547 %message_bugzilla nss_wins3
553 %if %{?_with_test:1}%{!?_with_test:0}
555 URL: http://www.samba.org
556 Summary: Debugging and benchmarking tools for samba
557 Group: System/Servers
558 Requires: %{name}-common = %{version}
560 %if %build_system && %{?_with_test:1}%{!?_with_test:0}
561 Provides: samba3-test samba3-debug
562 Obsoletes: samba3-test samba3-debug
564 %if !%build_system && %{?_with_test:1}%{!?_with_test:0}
565 Provides: samba-test samba3-debug
566 Obsoletes: samba3-debug
568 %if %{?_with_test:1}%{!?_with_test:0}
571 This package provides tools for benchmarking samba, and debugging
572 the correct operation of tools against smb servers.
576 %package -n %{libname}
577 URL: http://www.samba.org
578 Summary: SMB Client Library
579 Group: System/Libraries
580 Provides: libsmbclient
582 %description -n %{libname}
583 This package contains the SMB client library, part of the samba
584 suite of networking software, allowing other software to access
587 %if %have_pversion && %build_system
588 %message_bugzilla %{libname}
592 %package -n %{libname}-devel
593 URL: http://www.samba.org
594 Summary: SMB Client Library Development files
596 Provides: libsmbclient-devel
597 Requires: %{libname} = %{version}-%{release}
599 %description -n %{libname}-devel
600 This package contains the development files for the SMB client
601 library, part of the samba suite of networking software, allowing
602 the development of other software to access SMB shares.
604 %if %have_pversion && %build_system
605 %message_bugzilla %{libname}-devel
609 %package -n %{libname}-static-devel
610 URL: http://www.samba.org
611 Summary: SMB Client Static Library Development files
612 Group: System/Libraries
613 Provides: libsmbclient-static-devel = %{version}-%{release}
614 Requires: %{libname}-devel = %{version}-%{release}
616 %description -n %{libname}-static-devel
617 This package contains the static development files for the SMB
618 client library, part of the samba suite of networking software,
619 allowing the development of other software to access SMB shares.
621 %if %have_pversion && %build_system
622 %message_bugzilla %{libname}-devel
625 #%package passdb-ldap
626 #URL: http://www.samba.org
627 #Summary: Samba password database plugin for LDAP
628 #Group: System/Libraries
630 #%description passdb-ldap
631 #The passdb-ldap package for samba provides a password database
632 #backend allowing samba to store account details in an LDAP
635 #_message_bugzilla samba3-passdb-ldap
642 %package passdb-mysql
643 URL: http://www.samba.org
644 Summary: Samba password database plugin for MySQL
645 Group: System/Libraries
646 Requires: %{name}-server = %{version}-%{release}
648 %ifnarch alpha && %build_system
649 Obsoletes: samba3-passdb-mysql
650 Provides: samba3-passdb-mysql
654 %description passdb-mysql
655 The passdb-mysql package for samba provides a password database
656 backend allowing samba to store account details in a MySQL
660 #does postgresql build on alpha?
662 %package passdb-pgsql
663 URL: http://www.samba.org
664 Summary: Samba password database plugin for PostgreSQL
665 Group: System/Libraries
666 Requires: %{name}-server = %{version}-%{release}
668 #ifnarch alpha && %build_system
670 Obsoletes: samba3-passdb-pgsql
671 Provides: samba3-passdb-pgsql
675 %description passdb-pgsql
676 The passdb-pgsql package for samba provides a password database
677 backend allowing samba to store account details in a PostgreSQL
682 URL: http://www.samba.org
683 Summary: Samba password database plugin for XML files
684 Group: System/Libraries
685 Requires: %{name}-server = %{version}-%{release}
687 Obsoletes: samba3-passdb-xml
688 Provides: samba3-passdb-xml
691 %description passdb-xml
692 The passdb-xml package for samba provides a password database
693 backend allowing samba to store account details in XML files.
695 %message_bugzilla samba3-passdb-xml
703 %package vscan-clamav
704 Summary: On-access virus scanning for samba using Clam Antivirus
705 Group: System/Servers
706 Requires: %{name}-server = %{version}
707 Provides: %{name}-vscan
709 %description vscan-clamav
710 A vfs-module for samba to implement on-access scanning using the
711 Clam antivirus scanner daemon.
716 Summary: On-access virus scanning for samba using FPROT
717 Group: System/Servers
718 Requires: %{name}-server = %{version}
719 Provides: %{name}-vscan
720 %description vscan-fprot
721 A vfs-module for samba to implement on-access scanning using the
722 FPROT antivirus software (which must be installed to use this).
726 %package vscan-fsecure
727 Summary: On-access virus scanning for samba using F-Secure
728 Group: System/Servers
729 Requires: %{name}-server = %{version}
730 Provides: %{name}-vscan
731 %description vscan-fsecure
732 A vfs-module for samba to implement on-access scanning using the
733 F-Secure antivirus software (which must be installed to use this).
738 Summary: On-access virus scanning for samba using Clam Antivirus
739 Group: System/Servers
740 Requires: %{name}-server = %{version}
741 Provides: %{name}-icap
742 %description vscan-icap
743 A vfs-module for samba to implement on-access scanning using
744 ICAP-capable antivirus software.
748 %package vscan-kaspersky
749 Summary: On-access virus scanning for samba using Kaspersky
750 Group: System/Servers
751 Requires: %{name}-server = %{version}
752 Provides: %{name}-vscan
753 %description vscan-kaspersky
754 A vfs-module for samba to implement on-access scanning using the
755 Kaspersky antivirus software (which must be installed to use this).
760 Summary: On-access virus scanning for samba using MKS
761 Group: System/Servers
762 Requires: %{name}-server = %{version}
763 Provides: %{name}-vscan
764 %description vscan-mks
765 A vfs-module for samba to implement on-access scanning using the
766 MKS antivirus software (which must be installed to use this).
771 Summary: On-access virus scanning for samba using NAI McAfee
772 Group: System/Servers
773 Requires: %{name}-server = %{version}
774 Provides: %{name}-vscan
775 %description vscan-nai
776 A vfs-module for samba to implement on-access scanning using the
777 NAI McAfee antivirus software (which must be installed to use this).
781 %package vscan-openav
782 Summary: On-access virus scanning for samba using OpenAntivirus
783 Group: System/Servers
784 Requires: %{name}-server = %{version}
785 Provides: %{name}-vscan
786 %description vscan-openav
787 A vfs-module for samba to implement on-access scanning using the
788 OpenAntivirus antivirus software (which must be installed to use this).
792 %package vscan-sophos
793 Summary: On-access virus scanning for samba using Sophos
794 Group: System/Servers
795 Requires: %{name}-server = %{version}
796 Provides: %{name}-vscan
797 %description vscan-sophos
798 A vfs-module for samba to implement on-access scanning using the
799 Sophos antivirus software (which must be installed to use this).
803 %package vscan-symantec
804 Summary: On-access virus scanning for samba using Symantec
805 Group: System/Servers
806 Requires: %{name}-server = %{version}
807 Provides: %{name}-vscan
809 %description vscan-symantec
810 A vfs-module for samba to implement on-access scanning using the
811 Symantec antivirus software (which must be installed to use this).
817 Summary: On-access virus scanning for samba using Trend
818 Group: System/Servers
819 Requires: %{name}-server = %{version}
820 Provides: %{name}-vscan
821 %description vscan-trend
822 A vfs-module for samba to implement on-access scanning using the
823 Trend antivirus software (which must be installed to use this).
828 # Allow users to query build options with --with options:
829 #%define opt_status(%1) %(echo %{1})
830 %if %{?_with_options:1}%{!?_with_options:0}
831 %define opt_status(%{1}) %(if [ %{1} -eq 1 ];then echo enabled;else echo disabled;fi)
834 %{error:Build options available are:}
835 %{error:--with[out] system Build as the system samba package [or as samba3]}
836 %{error:--with[out] acl Build with support for file ACLs - %opt_status %build_acl}
837 %{error:--with[out] winbind Build with Winbind support - %opt_status %build_winbind}
838 %{error:--with[out] wins Build with WINS name resolution support - %opt_status %build_wins}
839 %{error:--with[out] ldap Build with legacy (samba2) LDAP support - %opt_status %build_ldap}
840 %{error:--with[out] ads Build with Active Directory support - %opt_status %build_ads}
841 %{error:--with[out] scanners Enable on-access virus scanners - %opt_status %build_scanners}
845 %{error: This rpm has build options available, use --with options to see them}
849 %if %{?_with_options:1}%{!?_with_options:0} && %build_scanners
850 #{error:--with scanners enables the following:%{?build_clamav:clamav,}%{?build_icap:icap,}%{?build_fprot:fprot,}%{?build_mks:mks,}%{?build_openav:openav,}%{?build_sophos:sophos,}%{?build_symantec:symantec,}%{?build_trend:trend}}
851 %{error:--with scanners enables the following: clamav,icap,fprot,fsav,mks,nai,openav,sophos,trend}
853 %{error:To enable others (requires development libraries for the scanner):}
854 %{error:--with symantec Enable on-access scanning with Symantec - %opt_status %build_symantec}
858 %if %{?_with_options:1}%{!?_with_options:0}
864 %if %build_non_default
866 %{?_with_system: --with system}\
867 %{?_without_system: --without system}\
868 %{?_with_acl: --with acl}\
869 %{?_without_acl: --without acl}\
870 %{?_with_winbind: --with winbind}\
871 %{?_without_winbind: --without winbind}\
872 %{?_with_wins: --with wins}\
873 %{?_without_wins: --without wins}\
874 %{?_with_ldap: --with ldap}\
875 %{?_without_ldap: --without ldap}\
876 %{?_with_ads: --with ads}\
877 %{?_without_ads: --without ads}\
878 %{?_with_scanners: --with scanners}\
879 %{?_without_scanners: --without scanners}\
881 echo "Building a non-default rpm with the following command-line arguments:"
882 echo "$RPM_EXTRA_OPTIONS"
883 echo "This rpm was built with non-default options, thus, to build ">%{SOURCE7}
884 echo "an identical rpm, you need to supply the following options">>%{SOURCE7}
885 echo "at build time: $RPM_EXTRA_OPTIONS">>%{SOURCE7}
886 echo -e "\n%{name}-%{version}-%{release}\n">>%{SOURCE7}
888 echo "This rpm was built with default options">%{SOURCE7}
889 echo -e "\n%{name}-%{version}-%{release}\n">>%{SOURCE7}
893 %setup -q -a 8 -n %{pkg_name}-%{source_ver}
895 %setup -q -n %{pkg_name}-%{source_ver}
901 # Version specific patches: current version
903 echo "Applying patches for current version: %{ver}"
904 #%patch7 -p1 -b .lib64
905 %patch9 -p1 -b .unixext
906 #%patch10 -p1 -b .rpcclient-libs
909 # Version specific patches: upcoming version
910 echo "Applying patches for new versions: %{pversion}"
911 %patch8 -p1 -b .libsmbdir
915 %if %have_pversion && %have_pre
916 echo "Appling patches which should only be applied to prereleases"
919 # Fix quota compilation in glibc>2.3
920 %if %mdkversion >= 910 && %mdkversion < 1000
921 #grep "<linux/quota.h>" source/smbd/quotas.c >/dev/null && \
922 perl -pi -e 's@<linux/quota.h>@<sys/quota.h>@' source/smbd/quotas.c
927 # Make a copy of examples so that we have a clean one for doc:
928 cp -a examples examples.bin
931 cp -a %{vscandir} %{vfsdir}
932 #fix stupid directory names:
933 #mv %{vfsdir}/%{vscandir}/openantivirus %{vfsdir}/%{vscandir}/oav
934 # Inline replacement of config dir
935 for av in clamav fprotd fsav icap kavp mksd mcdaemon oav sophos symantec trend
937 [ -e %{vfsdir}/%{vscandir}/*/vscan-$av.h ] && perl -pi -e \
938 's,^#define PARAMCONF "/etc/samba,#define PARAMCONF "/etc/%{name},' \
939 %{vfsdir}/%{vscandir}/*/vscan-$av.h
941 #Inline edit vscan header:
942 perl -pi -e 's/^# define SAMBA_VERSION_MAJOR 2/# define SAMBA_VERSION_MAJOR 3/g;s/# define SAMBA_VERSION_MINOR 2/# define SAMBA_VERSION_MINOR 0/g' %{vfsdir}/%{vscandir}/include/vscan-global.h
945 # Edit some files when not building system samba:
947 perl -pi -e 's/%{pkg_name}/%{name}/g' source/auth/pampass.c
950 #remove cvs internal files from docs:
951 find docs examples -name '.cvsignore' -exec rm -f {} \;
953 #make better doc trees:
954 chmod -R a+rX examples docs *Manifest* README Roadmap COPYING
955 mkdir -p clean-docs/samba-doc
956 cp -a examples docs clean-docs/samba-doc
957 mv -f clean-docs/samba-doc/examples/libsmbclient clean-docs/
958 rm -Rf clean-docs/samba-doc/docs/{docbook,manpages,htmldocs,using_samba}
959 ln -s %{_datadir}/swat%{samba_major}/using_samba/ clean-docs/samba-doc/docs/using_samba
960 ln -sf %{_datadir}/swat%{samba_major}/help/ clean-docs/samba-doc/docs/htmldocs
965 CFLAGS=`echo "$RPM_OPT_FLAGS"|sed -e 's/-g//g'`
967 CFLAGS=`echo "$CFLAGS"|sed -e 's/-O2/-O/g'`
970 # Don't use --with-fhs now, since it overrides libdir, it sets configdir,
971 # lockdir,piddir logfilebase,privatedir and swatdir
972 %configure --prefix=%{_prefix} \
973 --sysconfdir=%{_sysconfdir}/%{name} \
974 --localstatedir=/var \
975 --with-libdir=%{_libdir}/%{name} \
976 --with-privatedir=%{_sysconfdir}/%{name} \
977 --with-lockdir=/var/cache/%{name} \
978 --with-piddir=/var/run \
979 --with-swatdir=%{_datadir}/swat%{samba_major} \
980 --with-configdir=%{_sysconfdir}/%{name} \
981 --with-logfilebase=/var/log/%{name} \
996 --with-manpages-langs=en \
1000 --disable-mysqltest \
1001 --with-expsam=%build_expsam \
1002 --program-suffix=%{samba_major}
1003 # --with-shared-modules=pdb_ldap,idmap_ldap \
1004 # --with-manpages-langs=en,ja,pl \
1006 # --with-smbwrapper \
1008 # --with-nisplussam \
1011 #Fix the make file so we don't create debug information on 9.2
1012 %if %mdkversion == 920
1013 perl -pi -e 's/-g //g' Makefile
1016 perl -pi -e 's|-Wl,-rpath,%{_libdir}||g;s|-Wl,-rpath -Wl,%{_libdir}||g' Makefile
1019 %make all libsmbclient smbfilter wins modules %{?_with_test: torture debug3html bin/log2pcap} bin/editreg bin/smbget client/mount.cifs
1023 # Build mkntpasswd in examples/LDAP/ for smbldaptools
1024 make -C examples.bin/LDAP/smbldap-tools/mkntpwd
1027 echo -e "\n\nBuild antivirus VFS modules\n\n"
1028 pushd %{vfsdir}/%{vscandir}
1030 #sed -i -e 's,openantivirus,oav,g' Makefile
1031 sed -i -e 's,^\(.*clamd socket name.*=\).*,\1 /var/lib/clamav/clamd.socket,g' clamav/vscan-clamav.conf
1036 # Build antivirus vfs objects
1038 echo "Building Symantec"
1039 make -C %{vfsdir}/%{vscandir} symantec
1043 rm -rf $RPM_BUILD_ROOT
1044 mkdir -p $RPM_BUILD_ROOT
1046 #Ensure all docs are readable
1049 # Any entries here mean samba makefile is *really* broken:
1050 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
1051 mkdir -p $RPM_BUILD_ROOT/%{_datadir}
1052 mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{name}/vfs
1055 make DESTDIR=$RPM_BUILD_ROOT LIBDIR=%{_libdir}/%{name} MANDIR=%{_mandir} install installclientlib installmodules)
1057 install -m755 source/bin/{editreg,smbget} %{buildroot}/%{_bindir}
1060 mkdir -p $RPM_BUILD_ROOT/{sbin,bin}
1061 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/{logrotate.d,pam.d,xinetd.d}
1062 mkdir -p $RPM_BUILD_ROOT/%{_initrddir}
1063 mkdir -p $RPM_BUILD_ROOT/var/cache/%{name}
1064 mkdir -p $RPM_BUILD_ROOT/var/log/%{name}
1065 mkdir -p $RPM_BUILD_ROOT/var/run/%{name}
1066 mkdir -p $RPM_BUILD_ROOT/var/spool/%{name}
1067 mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/%{name}/{netlogon,profiles,printers}
1068 mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/%{name}/printers/{W32X86,WIN40,W32ALPHA,W32MIPS,W32PPC}
1069 mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/%{name}/codepages/src
1070 mkdir -p $RPM_BUILD_ROOT/%{_lib}/security
1071 mkdir -p $RPM_BUILD_ROOT%{_libdir}
1072 mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{name}/vfs
1073 mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/scripts
1075 #smbwrapper and pam_winbind not handled by make, pam_smbpass.so doesn't build
1076 #install -m 755 source/bin/smbwrapper.so $RPM_BUILD_ROOT%{_libdir}/smbwrapper%{samba_major}.so
1077 install -m 755 source/bin/pam_smbpass.so $RPM_BUILD_ROOT/%{_lib}/security/pam_smbpass%{samba_major}.so
1078 install -m 755 source/nsswitch/pam_winbind.so $RPM_BUILD_ROOT/%{_lib}/security/pam_winbind.so
1080 install -m755 source/bin/libsmbclient.a $RPM_BUILD_ROOT%{_libdir}/libsmbclient.a
1081 pushd $RPM_BUILD_ROOT/%{_libdir}
1082 [ -f libsmbclient.so ] && mv -f libsmbclient.so libsmbclient.so.%{libsmbmajor}
1083 ln -sf libsmbclient.so.%{libsmbmajor} libsmbclient.so
1087 #install -m 755 source/bin/smbsh $RPM_BUILD_ROOT%{_bindir}/
1090 %makeinstall_std -C %{vfsdir}/%{vscandir}
1091 install -m 644 %{vfsdir}/%{vscandir}/*/vscan-*.conf %{buildroot}/%{_sysconfdir}/%{name}
1094 #libnss_* not handled by make:
1095 # Install the nsswitch library extension file
1096 for i in wins winbind; do
1097 install -m755 source/nsswitch/libnss_${i}.so $RPM_BUILD_ROOT/%{_lib}/libnss_${i}.so
1099 # Make link for wins and winbind resolvers
1100 ( cd $RPM_BUILD_ROOT/%{_lib}; ln -s libnss_wins.so libnss_wins.so.2; ln -s libnss_winbind.so libnss_winbind.so.2)
1102 %if %{?_with_test:1}%{!?_with_test:0}
1103 for i in {%{testbin}};do
1104 install -m755 source/bin/${i} $RPM_BUILD_ROOT/%{_bindir}/${i}%{samba_major}
1108 # Install other stuff
1110 # install -m644 examples/VFS/recycle/recycle.conf $RPM_BUILD_ROOT%{_sysconfdir}/samba/
1111 install -m644 packaging/Mandrake/smbusers $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/smbusers
1112 install -m755 packaging/Mandrake/smbprint $RPM_BUILD_ROOT/%{_bindir}
1113 #install -m755 packaging/RedHat/smbadduser $RPM_BUILD_ROOT/usr/bin
1114 install -m755 packaging/Mandrake/findsmb $RPM_BUILD_ROOT/%{_bindir}
1115 install -m755 packaging/Mandrake/smb.init $RPM_BUILD_ROOT/%{_initrddir}/smb%{samba_major}
1116 install -m755 packaging/Mandrake/smb.init $RPM_BUILD_ROOT/%{_sbindir}/%{name}
1117 install -m755 packaging/Mandrake/winbind.init $RPM_BUILD_ROOT/%{_initrddir}/winbind
1118 # install -m755 packaging/Mandrake/wrepld.init $RPM_BUILD_ROOT/%{_initrddir}/wrepld%{samba_major}
1119 install -m755 packaging/Mandrake/winbind.init $RPM_BUILD_ROOT/%{_sbindir}/winbind
1120 install -m644 packaging/Mandrake/samba.pamd $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d/%{name}
1121 install -m644 packaging/Mandrake/system-auth-winbind.pamd $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d/system-auth-winbind
1123 install -m644 %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/%{name}
1124 # install -m644 packaging/Mandrake/samba-slapd-include.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/samba-slapd.include
1126 # Install smbldap-tools scripts:
1127 for i in examples/LDAP/smbldap-tools/*.pl; do
1128 install -m 750 $i $RPM_BUILD_ROOT/%{_datadir}/%{name}/scripts/
1129 ln -s %{_datadir}/%{name}/scripts/`basename $i` $RPM_BUILD_ROOT/%{_bindir}/`basename $i|sed -e 's/\.pl//g'`%{samba_major}
1132 install -m 750 examples/LDAP/smbldap-tools/smbldap_tools.pm $RPM_BUILD_ROOT/%{_datadir}/%{name}/scripts/
1135 install -m 640 examples/LDAP/smbldap-tools/smbldap_conf.pm $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}
1137 #Fix the smbldap-tools when not system samba:
1139 perl -pi -e 's/^(use|package)(\s+)smbldap_(\w+);$/${1}${2}smbldap_${3}%{samba_major};/g' \
1140 %{buildroot}/%{_sysconfdir}/%{name}/smbldap_conf.pm \
1141 %{buildroot}/%{_datadir}/%{name}/scripts/smbldap*.p?
1142 perl -pi -e 's,/usr/local/sbin/mkntpwd,/usr/sbin/mkntpwd%{samba_major},g;s,553,421,g' %{buildroot}/%{_sysconfdir}/%{name}/smbldap_conf.pm
1143 perl -pi -e 's,\$smbldap_conf::SID,\$smbldap_conf3::SID,g' %{buildroot}/%{_datadir}/%{name}/scripts/smbldap*.p?
1145 perl -pi -e 's,/usr/local/sbin/smbldap-passwd.pl,%{_datadir}/%{name}/scripts/smbldap-passwd.pl,g' %{buildroot}/%{_datadir}/%{name}/scripts/smbldap-useradd.pl
1147 # Link both smbldap*.pm into vendor-perl (any better ideas?)
1148 mkdir -p %{buildroot}/%{perl_vendorlib}
1149 ln -s %{_sysconfdir}/%{name}/smbldap_conf.pm $RPM_BUILD_ROOT/%{perl_vendorlib}/smbldap_conf%{samba_major}.pm
1150 ln -s %{_datadir}/%{name}/scripts/smbldap_tools.pm $RPM_BUILD_ROOT/%{perl_vendorlib}/smbldap_tools%{samba_major}.pm
1152 install -m750 examples.bin/LDAP/smbldap-tools/mkntpwd/mkntpwd %{buildroot}/%{_sbindir}/mkntpwd%{samba_major}
1154 # Samba smbpasswd migration script:
1155 install -m755 examples/LDAP/convertSambaAccount $RPM_BUILD_ROOT/%{_datadir}/%{name}/scripts/
1157 # make a conf file for winbind from the default one:
1158 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
1159 install -m644 packaging/Mandrake/smb-winbind.conf $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/smb-winbind.conf
1161 # Some inline fixes for smb.conf for non-winbind use
1162 install -m644 packaging/Mandrake/smb.conf $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/smb.conf
1163 cat packaging/Mandrake/smb.conf | \
1164 sed -e 's/^; printer admin = @adm/ printer admin = @adm/g' >$RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/smb.conf
1166 perl -pi -e 's/printcap name = lpstat/printcap name = cups/g' $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/smb.conf
1167 perl -pi -e 's/printcap name = lpstat/printcap name = cups/g' $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/smb-winbind.conf
1171 # Fix script paths in smb.conf
1172 #perl -pi -e 's,%{_datadir}/samba,%{_datadir}/%{name},g' %{buildroot}/%{_sysconfdir}/%{name}/smb*.conf
1177 install -m755 source/client/mount.cifs %{buildroot}/bin/mount.cifs%{samba_major}
1179 echo 127.0.0.1 localhost > $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/lmhosts
1181 # Link smbspool to CUPS (does not require installed CUPS)
1183 mkdir -p $RPM_BUILD_ROOT/%{_libdir}/cups/backend
1184 ln -s %{_bindir}/smbspool%{alternative_major} $RPM_BUILD_ROOT/%{_libdir}/cups/backend/smb%{alternative_major}
1188 mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/xinetd.d
1189 install -m644 %{SOURCE3} $RPM_BUILD_ROOT/%{_sysconfdir}/xinetd.d/swat%{samba_major}
1193 mkdir -p $RPM_BUILD_ROOT%{_menudir}
1194 cat > $RPM_BUILD_ROOT%{_menudir}/%{name}-swat << EOF
1195 ?package(%{name}-swat):\
1196 command="gnome-moz-remote http://localhost:901/" \
1198 icon="swat%{samba_major}.png" \
1199 section="Configuration/Networking" \
1200 title="Samba Configuration (SWAT)" \
1201 longtitle="The Swat Samba Administration Tool"
1202 ?package(%{name}-swat):\
1203 command="sh -c '\$BROWSER http://localhost:901/'" \
1205 icon="swat%{samba_major}.png" \
1206 section="Configuration/Networking" \
1207 title="Samba Configuration (SWAT)" \
1208 longtitle="The Swat Samba Administration Tool"
1211 mkdir -p $RPM_BUILD_ROOT%{_liconsdir} $RPM_BUILD_ROOT%{_iconsdir} $RPM_BUILD_ROOT%{_miconsdir}
1213 bzcat %{SOURCE4} > $RPM_BUILD_ROOT%{_liconsdir}/swat%{samba_major}.png
1214 bzcat %{SOURCE5} > $RPM_BUILD_ROOT%{_iconsdir}/swat%{samba_major}.png
1215 bzcat %{SOURCE6} > $RPM_BUILD_ROOT%{_miconsdir}/swat%{samba_major}.png
1217 bzcat %{SOURCE10}> $RPM_BUILD_ROOT%{_datadir}/%{name}/scripts/print-pdf
1218 bzcat %{SOURCE11}> $RPM_BUILD_ROOT%{_datadir}/%{name}/scripts/smb-migrate
1220 # Fix configs when not building system samba:
1222 #Client binaries will have suffixes while we use alternatives, even
1223 # if we are system samba
1224 %if !%build_system || %build_alternatives
1225 for OLD in %{buildroot}/%{_bindir}/{%{clientbin}} %{buildroot}/bin/%{client_bin} %{buildroot}/%{_libdir}/cups/backend/smb
1227 NEW=`echo ${OLD}%{alternative_major}`
1228 [ -e $OLD ] && mv -f $OLD $NEW
1230 for OLD in %{buildroot}/%{_mandir}/man?/{%{clientbin}}* %{buildroot}/%{_mandir}/man?/%{client_bin}*
1234 BASE=`perl -e '$_="'${OLD}'"; m,(%buildroot)(.*?)(\.[0-9]),;print "$1$2\n";'`
1235 EXT=`echo $OLD|sed -e 's,'${BASE}',,g'`
1236 NEW=`echo ${BASE}%{alternative_major}${EXT}`
1241 rm -f %{buildroot}/sbin/mount.smbfs
1242 # Link smbmount to /sbin/mount.smb and /sbin/mount.smbfs
1243 #I don't think it's possible for make to do this ...
1244 (cd $RPM_BUILD_ROOT/sbin
1245 ln -s ..%{_bindir}/smbmount%{alternative_major} mount.smb%{alternative_major}
1246 ln -s ..%{_bindir}/smbmount%{alternative_major} mount.smbfs%{alternative_major}
1248 # Server/common binaries are versioned only if not system samba:
1250 for OLD in %{buildroot}/%{_bindir}/{%{commonbin}} %{buildroot}/%{_bindir}/{%{serverbin}} %{buildroot}/%{_sbindir}/{%{serversbin},swat}
1252 NEW=`echo ${OLD}%{alternative_major}`
1255 # And the man pages too:
1256 for OLD in %{buildroot}/%{_mandir}/man?/{%{commonbin},%{serverbin},%{serversbin},swat,{%testbin},smb.conf,lmhosts}*
1260 BASE=`perl -e '$_="'${OLD}'"; m,(%buildroot)(.*?)(\.[0-9]),;print "$1$2\n";'`
1261 # BASE=`perl -e '$name="'${OLD}'"; print "",($name =~ /(.*?)\.[0-9]/), "\n";'`
1262 EXT=`echo $OLD|sed -e 's,'${BASE}',,g'`
1263 NEW=`echo ${BASE}%{samba_major}${EXT}`
1267 # Replace paths in config files and init scripts:
1269 perl -pi -e 's,/subsys/'$i',/subsys/'$i'%{samba_major},g' $RPM_BUILD_ROOT/%{_initrddir}/${i}%{samba_major}
1271 for i in %{_sysconfdir}/%{name}/smb.conf %{_initrddir}/smb%{samba_major} %{_sbindir}/%{name} %{_initrddir}/winbind /%{_sysconfdir}/logrotate.d/%{name} /%{_sysconfdir}/xinetd.d/swat%{samba_major} %{_initrddir}/wrepld%{samba_major}; do
1272 perl -pi -e 's,/%{pkg_name},/%{name},g; s,smbd,%{_sbindir}/smbd%{samba_major},g; s,nmbd,%{_sbindir}/nmbd%{samba_major},g; s,/usr/sbin/swat,%{_sbindir}/swat%{samba_major},g;s,wrepld,%{_sbindir}/wrepld%{samba_major},g' $RPM_BUILD_ROOT/$i;
1274 # Fix xinetd file for swat:
1275 perl -pi -e 's,/usr/sbin,%{_sbindir},g' $RPM_BUILD_ROOT/%{_sysconfdir}/xinetd.d/swat%{samba_major}
1278 #Clean up unpackaged files:
1279 for i in %{_bindir}/pam_smbpass.so %{_bindir}/smbwrapper.so;do
1280 rm -f %{buildroot}/$i
1283 # (sb) make a smb.conf.clean we can use for the merge, since an existing
1284 # smb.conf won't get overwritten
1285 cp $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/smb.conf $RPM_BUILD_ROOT/%{_datadir}/%{name}/smb.conf.clean
1287 # (sb) leave a README.mdk.conf to explain what has been done
1288 cat << EOF > $RPM_BUILD_ROOT/%{_datadir}/%{name}/README.mdk.conf
1289 In order to facilitate upgrading an existing samba install, and merging
1290 previous configuration data with any new syntax used by samba3, a merge
1291 script has attempted to combine your local configuration data with the
1292 new conf file format. The merged data is in smb.conf, with comments like
1294 # *** merged from original smb.conf: ***
1296 near the additional entries. Any local shares should have been appended to
1297 smb.conf. A log of what took place should be in:
1299 /var/log/samba/smb-migrate.log
1301 A clean samba3 smb.conf is in /usr/share/samba, named smb.conf.clean.
1302 Your original conf should be /etc/samba/smb.conf.tomerge.
1304 The actual merge script is /usr/share/samba/scripts/smb-migrate.
1306 Questions/issues: sbenedict@mandrakesoft.com
1311 rm -rf $RPM_BUILD_ROOT
1315 %_post_service smb%{samba_major}
1316 #%_post_service wrepld%{samba_major}
1318 # Add a unix group for samba machine accounts
1319 groupadd -frg 421 machines
1321 # Migrate tdb's from /var/lock/samba (taken from official samba spec file):
1322 for i in /var/lock/samba/*.tdb
1325 newname=`echo $i | sed -e's|var\/lock\/samba|var\/cache\/samba|'`
1326 echo "Moving $i to $newname"
1332 # Basic migration script for pre-2.2.1 users,
1333 # since smb config moved from /etc to %{_sysconfdir}/samba
1335 # Let's create a proper %{_sysconfdir}/samba/smbpasswd file
1336 [ -f %{_sysconfdir}/%{name}/smbpasswd ] || {
1337 echo "Creating password file for samba..."
1338 touch %{_sysconfdir}/%{name}/smbpasswd
1341 # And this too, in case we don't have smbd to create it for us
1342 [ -f /var/cache/%{name}/unexpected.tdb ] || {
1343 touch /var/cache/%{name}/unexpected.tdb
1346 # Let's define the proper paths for config files
1347 perl -pi -e 's/(\/etc\/)(smb)/\1%{name}\/\2/' %{_sysconfdir}/%{name}/smb.conf
1349 # Fix the logrotate.d file from smb and nmb to smbd and nmbd
1350 if [ -f %{_sysconfdir}/logrotate.d/samba ]; then
1351 perl -pi -e 's/smb /smbd /' %{_sysconfdir}/logrotate.d/samba
1352 perl -pi -e 's/nmb /nmbd /' %{_sysconfdir}/logrotate.d/samba
1355 # And not loose our machine account SID
1356 [ -f %{_sysconfdir}/MACHINE.SID ] && mv -f %{_sysconfdir}/MACHINE.SID %{_sysconfdir}/%{name}/ ||:
1358 %triggerpostun common -- samba-common < 3.0.1-3mdk
1359 # (sb) merge any existing smb.conf with new syntax file
1361 # (sb) save existing smb.conf for merge
1362 echo "Upgrade: copy smb.conf to smb.conf.tomerge for merging..."
1363 cp -f %{_sysconfdir}/%{name}/smb.conf %{_sysconfdir}/%{name}/smb.conf.tomerge
1364 echo "Upgrade: merging previous smb.conf..."
1365 if [ -f %{_datadir}/%{name}/smb.conf.clean ]; then
1366 cp %{_datadir}/%{name}/smb.conf.clean %{_sysconfdir}/%{name}/smb.conf
1367 cp %{_datadir}/%{name}/README.mdk.conf %{_sysconfdir}/%{name}/
1368 %{_datadir}/%{name}/scripts/smb-migrate commit
1373 if [ -f %{_sysconfdir}/%{name}/README.mdk.conf ];then rm -f %{_sysconfdir}/%{name}/README.mdk.conf;fi
1378 /sbin/chkconfig winbind on
1379 cp -af %{_sysconfdir}/nsswitch.conf %{_sysconfdir}/nsswitch.conf.rpmsave
1380 cp -af %{_sysconfdir}/nsswitch.conf %{_sysconfdir}/nsswitch.conf.rpmtemp
1381 for i in passwd group;do
1382 grep ^$i %{_sysconfdir}/nsswitch.conf |grep -v 'winbind' >/dev/null
1384 echo "Adding a winbind entry to the $i section of %{_sysconfdir}/nsswitch.conf"
1385 awk '/^'$i'/ {print $0 " winbind"};!/^'$i'/ {print}' %{_sysconfdir}/nsswitch.conf.rpmtemp >%{_sysconfdir}/nsswitch.conf;
1386 cp -af %{_sysconfdir}/nsswitch.conf %{_sysconfdir}/nsswitch.conf.rpmtemp
1388 echo "$i entry found in %{_sysconfdir}/nsswitch.conf"
1391 if [ -f %{_sysconfdir}/nsswitch.conf.rpmtemp ];then rm -f %{_sysconfdir}/nsswitch.conf.rpmtemp;fi
1396 echo "Removing winbind entries from %{_sysconfdir}/nsswitch.conf"
1397 perl -pi -e 's/ winbind//' %{_sysconfdir}/nsswitch.conf
1399 /sbin/chkconfig winbind reset
1401 %endif %build_winbind
1404 %post -n nss_wins%{samba_major}
1406 cp -af %{_sysconfdir}/nsswitch.conf %{_sysconfdir}/nsswitch.conf.rpmsave
1407 grep '^hosts' %{_sysconfdir}/nsswitch.conf |grep -v 'wins' >/dev/null
1409 echo "Adding a wins entry to the hosts section of %{_sysconfdir}/nsswitch.conf"
1410 awk '/^hosts/ {print $0 " wins"};!/^hosts/ {print}' %{_sysconfdir}/nsswitch.conf.rpmsave >%{_sysconfdir}/nsswitch.conf;
1412 echo "wins entry found in %{_sysconfdir}/nsswitch.conf"
1415 # echo "Upgrade, leaving nsswitch.conf intact"
1418 %preun -n nss_wins%{samba_major}
1420 echo "Removing wins entry from %{_sysconfdir}/nsswitch.conf"
1421 perl -pi -e 's/ wins//' %{_sysconfdir}/nsswitch.conf
1423 # echo "Leaving %{_sysconfdir}/nsswitch.conf intact"
1429 %_preun_service smb%{samba_major}
1430 #%_preun_service wrepld%{samba_major}
1432 if [ $1 = 0 ] ; then
1433 # /sbin/chkconfig --level 35 smb reset
1434 # Let's not loose /var/cache/samba
1436 if [ -d /var/cache/%{name} ]; then
1437 mv -f /var/cache/%{name} /var/cache/%{name}.BAK
1442 if [ -f /var/lock/subsys/xinetd ]; then
1443 service xinetd reload >/dev/null 2>&1 || :
1449 # Remove swat entry from xinetd
1450 if [ $1 = 0 -a -f %{_sysconfdir}/xinetd.conf ] ; then
1451 rm -f %{_sysconfdir}/xinetd.d/swat%{samba_major}
1452 service xinetd reload &>/dev/null || :
1455 if [ "$1" = "0" -a -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi
1460 %post -n %{libname} -p /sbin/ldconfig
1461 %postun -n %{libname} -p /sbin/ldconfig
1464 %if %build_alternatives
1467 update-alternatives --install %{_bindir}/smbclient smbclient \
1468 %{_bindir}/smbclient%{alternative_major} 10 \
1469 $(for i in {/bin/mount.cifs,/sbin/{%{client_sbin}},%{_bindir}/{%{clientbin}}};do
1471 [ "$j" = "smbclient" ] || \
1472 echo -n " --slave ${i} ${j} ${i}%{alternative_major}";done) \
1473 --slave %{_libdir}/cups/backend/smb cups_smb %{_libdir}/cups/backend/smb%{alternative_major} || \
1474 update-alternatives --auto smbclient
1477 [ $1 = 0 ] && update-alternatives --remove smbclient %{_bindir}/smbclient%{alternative_major} ||:
1480 %if %build_alternatives
1481 %triggerpostun client -- samba-client, samba2-client
1482 [ ! -e %{_bindir}/smbclient ] && update-alternatives --auto smbclient || :
1486 %defattr(-,root,root)
1487 %(for i in %{_sbindir}/{%{serversbin}}%{samba_major};do echo $i;done)
1488 %(for i in %{_bindir}/{%{serverbin}}%{samba_major};do echo $i;done)
1489 %attr(755,root,root) /%{_lib}/security/pam_smbpass*
1490 %dir %{_libdir}/%{name}/vfs
1491 %{_libdir}/%{name}/vfs/*.so
1493 %exclude %{_libdir}/%{name}/vfs/vscan*.so
1495 %dir %{_libdir}/%{name}/pdb
1497 %attr(-,root,root) %config(noreplace) %{_sysconfdir}/%{name}/smbusers
1498 %attr(-,root,root) %config(noreplace) %{_initrddir}/smb%{samba_major}
1499 #%attr(-,root,root) %config(noreplace) %{_initrddir}/wrepld%{samba_major}
1500 %attr(-,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
1501 %attr(-,root,root) %config(noreplace) %{_sysconfdir}/pam.d/%{name}
1502 #%attr(-,root,root) %config(noreplace) %{_sysconfdir}/%{name}/samba-slapd.include
1503 %(for i in %{_mandir}/man?/{%{serverbin},%{serversbin}}%{samba_major}\.[0-9]*;do echo $i|grep -v mkntpwd;done)
1504 %attr(775,root,adm) %dir %{_localstatedir}/%{name}/netlogon
1505 %attr(755,root,root) %dir %{_localstatedir}/%{name}/profiles
1506 %attr(755,root,root) %dir %{_localstatedir}/%{name}/printers
1507 %attr(2775,root,adm) %dir %{_localstatedir}/%{name}/printers/*
1508 %attr(1777,root,root) %dir /var/spool/%{name}
1509 %dir %{_datadir}/%{name}
1510 %dir %{_datadir}/%{name}/scripts
1511 %attr(0755,root,root) %{_datadir}/%{name}/scripts/print-pdf
1512 %attr(0750,root,adm) %{_datadir}/%{name}/scripts/smbldap*.pl
1513 %attr(0750,root,adm) %{_bindir}/smbldap*
1514 %attr(0640,root,adm) %config(noreplace) %{_sysconfdir}/%{name}/smbldap_conf.pm
1515 %attr(0644,root,root) %{_datadir}/%{name}/scripts/smbldap_tools.pm
1516 %{perl_vendorlib}/*.pm
1517 #%attr(0700,root,root) %{_datadir}/%{name}/scripts/*port_smbpasswd.pl
1518 %attr(0755,root,root) %{_datadir}/%{name}/scripts/convertSambaAccount
1522 %defattr(-,root,root)
1523 %doc README COPYING Manifest Read-Manifest-Now
1524 %doc WHATSNEW.txt Roadmap
1525 %doc README.%{name}-mandrake-rpm
1526 %doc clean-docs/samba-doc/docs
1527 %doc clean-docs/samba-doc/examples
1528 %attr(-,root,root) %{_datadir}/swat%{samba_major}/using_samba/
1531 %defattr(-,root,root)
1532 %config(noreplace) %{_sysconfdir}/xinetd.d/swat%{samba_major}
1533 #%attr(-,root,root) /sbin/*
1534 %{_sbindir}/swat%{samba_major}
1535 %{_menudir}/%{name}-swat
1539 %attr(-,root,root) %{_datadir}/swat%{samba_major}/help/
1540 %attr(-,root,root) %{_datadir}/swat%{samba_major}/images/
1541 %attr(-,root,root) %{_datadir}/swat%{samba_major}/include/
1542 %lang(ja) %{_datadir}/swat%{samba_major}/lang/ja
1543 %lang(tr) %{_datadir}/swat%{samba_major}/lang/tr
1544 %{_mandir}/man8/swat*.8*
1545 %lang(de) %{_libdir}/%{name}/de.msg
1546 %lang(en) %{_libdir}/%{name}/en.msg
1547 %lang(fr) %{_libdir}/%{name}/fr.msg
1548 %lang(it) %{_libdir}/%{name}/it.msg
1549 %lang(ja) %{_libdir}/%{name}/ja.msg
1550 %lang(nl) %{_libdir}/%{name}/nl.msg
1551 %lang(pl) %{_libdir}/%{name}/pl.msg
1552 %lang(tr) %{_libdir}/%{name}/tr.msg
1556 %defattr(-,root,root)
1557 %(for i in %{_bindir}/{%{clientbin}}%{alternative_major};do echo $i;done)
1558 %(for i in %{_mandir}/man?/{%{clientbin}}%{alternative_major}.?.*;do echo $i|grep -v smbprint;done)
1559 #xclude %{_mandir}/man?/smbget*
1560 %{_mandir}/man5/smbgetrc%{alternative_major}.5*
1562 %(for i in /sbin/{%{client_sbin}}%{alternative_major};do echo $i;done)
1563 %attr(4755,root,root) /bin/mount.cifs%{alternative_major}
1564 %attr(755,root,root) %{_bindir}/smbmount%{alternative_major}
1565 %attr(4755,root,root) %{_bindir}/smbumount%{alternative_major}
1566 %attr(4755,root,root) %{_bindir}/smbmnt%{alternative_major}
1567 %{_mandir}/man8/smbmnt*.8*
1568 %{_mandir}/man8/smbmount*.8*
1569 %{_mandir}/man8/smbumount*.8*
1570 %{_mandir}/man8/mount.cifs*.8*
1572 %exclude %{_bindir}/smb*m*nt%{samba_major}
1573 %exclude %{_mandir}/man8/smb*m*nt*.8*
1575 # Link of smbspool to CUPS
1576 /%{_libdir}/cups/backend/smb%{alternative_major}
1579 %defattr(-,root,root)
1580 %dir /var/cache/%{name}
1581 %dir /var/log/%{name}
1582 %dir /var/run/%{name}
1583 %(for i in %{_bindir}/{%{commonbin},tdbtool}%{samba_major};do echo $i;done)
1584 %(for i in %{_mandir}/man?/{%{commonbin}}%{samba_major}\.[0-9]*;do echo $i;done)
1585 #%{_libdir}/smbwrapper%{samba_major}.so
1586 %dir %{_libdir}/%{name}
1587 %{_libdir}/%{name}/*.dat
1588 %{_libdir}/%{name}/charset
1589 #%{_libdir}/%{name}/lowcase.dat
1590 #%{_libdir}/%{name}/valid.dat
1591 %dir %{_sysconfdir}/%{name}
1592 %attr(-,root,root) %config(noreplace) %{_sysconfdir}/%{name}/smb.conf
1593 %attr(-,root,root) %config(noreplace) %{_sysconfdir}/%{name}/smb-winbind.conf
1594 %attr(-,root,root) %config(noreplace) %{_sysconfdir}/%{name}/lmhosts
1595 %dir %{_localstatedir}/%{name}
1596 %attr(-,root,root) %{_localstatedir}/%{name}/codepages
1597 %{_mandir}/man5/smb.conf*.5*
1598 %{_mandir}/man5/lmhosts*.5*
1599 #%{_mandir}/man7/Samba*.7*
1600 %dir %{_datadir}/swat%{samba_major}
1601 %attr(0750,root,adm) %{_datadir}/%{name}/scripts/smb-migrate
1602 %attr(-,root,root) %{_datadir}/%{name}/smb.conf.clean
1603 %attr(-,root,root) %{_datadir}/%{name}/README.mdk.conf
1607 %defattr(-,root,root)
1608 %{_sbindir}/winbindd
1611 %attr(755,root,root) /%{_lib}/security/pam_winbind*
1612 %attr(755,root,root) /%{_lib}/libnss_winbind*
1613 %attr(-,root,root) %config(noreplace) %{_initrddir}/winbind
1614 %attr(-,root,root) %config(noreplace) %{_sysconfdir}/pam.d/system-auth-winbind*
1615 %{_mandir}/man8/winbindd*.8*
1616 %{_mandir}/man1/wbinfo*.1*
1620 %files -n nss_wins%{samba_major}
1621 %defattr(-,root,root)
1622 %attr(755,root,root) /%{_lib}/libnss_wins.so*
1625 %if %{?_with_test:1}%{!?_with_test:0}
1627 %defattr(-,root,root)
1628 %(for i in %{_bindir}/{%{testbin}}%{samba_major};do echo $i;done)
1629 %{_mandir}/man1/vfstest%{samba_major}*.1*
1630 %exclude %{_mandir}/man1/log2pcap*.1*
1632 %exclude %{_mandir}/man1/vfstest%{samba_major}*.1*
1633 %exclude %{_mandir}/man1/log2pcap*.1*
1637 %files -n %{libname}
1638 %defattr(-,root,root)
1639 %{_libdir}/libsmbclient.so.*
1641 %exclude %{_libdir}/libsmbclient.so.*
1645 %files -n %{libname}-devel
1646 %defattr(-,root,root)
1648 %{_libdir}/libsmbclient.so
1649 %doc clean-docs/libsmbclient/*
1651 %exclude %{_includedir}/*
1652 %exclude %{_libdir}/libsmbclient.so
1656 %files -n %{libname}-static-devel
1657 %defattr(-,root,root)
1658 %{_libdir}/libsmbclient.a
1660 %exclude %{_libdir}/libsmbclient.a
1664 #%defattr(-,root,root)
1665 #%{_libdir}/%{name}/*/*ldap.so
1669 %defattr(-,root,root)
1670 %{_libdir}/%{name}/pdb/*mysql.so
1675 %defattr(-,root,root)
1676 %{_libdir}/%{name}/pdb/*pgsql.so
1680 %defattr(-,root,root)
1681 %{_libdir}/%{name}/pdb/*xml.so
1683 #Files for antivirus support:
1686 %defattr(-,root,root)
1687 %{_libdir}/%{name}/vfs/vscan-clamav.so
1688 %config(noreplace) %{_sysconfdir}/%{name}/vscan-clamav.conf
1689 %doc %{vfsdir}/%{vscandir}/INSTALL
1691 %if !%build_clamav && %build_vscan
1692 %exclude %{_libdir}/%{name}/vfs/vscan-clamav.so
1693 %exclude %{_sysconfdir}/%{name}/vscan-clamav.conf
1698 %defattr(-,root,root)
1699 %{_libdir}/%{name}/vfs/vscan-fprotd.so
1700 %config(noreplace) %{_sysconfdir}/%{name}/vscan-fprotd.conf
1701 %doc %{vfsdir}/%{vscandir}/INSTALL
1703 %if !%build_fprot && %build_vscan
1704 %exclude %{_libdir}/%{name}/vfs/vscan-fprotd.so
1705 %exclude %{_sysconfdir}/%{name}/vscan-fprotd.conf
1709 %files vscan-fsecure
1710 %defattr(-,root,root)
1711 %{_libdir}/%{name}/vfs/vscan-fsav.so
1712 %config(noreplace) %{_sysconfdir}/%{name}/vscan-fsav.conf
1713 %doc %{vfsdir}/%{vscandir}/INSTALL
1715 %if !%build_fsav && %build_vscan
1716 %exclude %{_libdir}/%{name}/vfs/vscan-fsav.so
1717 %exclude %{_sysconfdir}/%{name}/vscan-fsav.conf
1722 %defattr(-,root,root)
1723 %{_libdir}/%{name}/vfs/vscan-icap.so
1724 %config(noreplace) %{_sysconfdir}/%{name}/vscan-icap.conf
1725 %doc %{vfsdir}/%{vscandir}/INSTALL
1727 %if !%build_icap && %build_vscan
1728 %exclude %{_libdir}/%{name}/vfs/vscan-icap.so
1729 %exclude %{_sysconfdir}/%{name}/vscan-icap.conf
1733 %if %build_kaspersky
1734 %files vscan-kaspersky
1735 %defattr(-,root,root)
1736 %{_libdir}/%{name}/vfs/vscan-kavp.so
1737 %config(noreplace) %{_sysconfdir}/%{name}/vscan-kavp.conf
1738 %doc %{vfsdir}/%{vscandir}/INSTALL
1740 %if !%build_kaspersky && %build_vscan
1741 %exclude %{_libdir}/%{name}/vfs/vscan-kavp.so
1742 %exclude %{_sysconfdir}/%{name}/vscan-kavp.conf
1747 %defattr(-,root,root)
1748 %{_libdir}/%{name}/vfs/vscan-mksd.so
1749 %config(noreplace) %{_sysconfdir}/%{name}/vscan-mks*.conf
1750 %doc %{vfsdir}/%{vscandir}/INSTALL
1752 %if !%build_mks && %build_vscan
1753 %exclude %{_libdir}/%{name}/vfs/vscan-mksd.so
1754 %exclude %{_sysconfdir}/%{name}/vscan-mks*.conf
1759 %defattr(-,root,root)
1760 %{_libdir}/%{name}/vfs/vscan-mcdaemon.so
1761 %config(noreplace) %{_sysconfdir}/%{name}/vscan-mcdaemon.conf
1762 %doc %{vfsdir}/%{vscandir}/INSTALL
1764 %if !%build_nai && %build_vscan
1765 %exclude %{_libdir}/%{name}/vfs/vscan-mcdaemon.so
1766 %exclude %{_sysconfdir}/%{name}/vscan-mcdaemon.conf
1771 %defattr(-,root,root)
1772 %{_libdir}/%{name}/vfs/vscan-oav.so
1773 %config(noreplace) %{_sysconfdir}/%{name}/vscan-oav.conf
1774 %doc %{vfsdir}/%{vscandir}/INSTALL
1776 %if !%build_openav && %build_vscan
1777 %exclude %{_libdir}/%{name}/vfs/vscan-oav.so
1778 %exclude %{_sysconfdir}/%{name}/vscan-oav.conf
1783 %defattr(-,root,root)
1784 %{_libdir}/%{name}/vfs/vscan-sophos.so
1785 %config(noreplace) %{_sysconfdir}/%{name}/vscan-sophos.conf
1786 %doc %{vfsdir}/%{vscandir}/INSTALL
1788 %if !%build_sophos && %build_vscan
1789 %exclude %{_libdir}/%{name}/vfs/vscan-sophos.so
1790 %exclude %{_sysconfdir}/%{name}/vscan-sophos.conf
1794 %files vscan-symantec
1795 %defattr(-,root,root)
1796 %{_libdir}/%{name}/vfs/vscan-symantec.so
1797 %config(noreplace) %{_sysconfdir}/%{name}/vscan-symantec.conf
1798 %doc %{vfsdir}/%{vscandir}/INSTALL
1800 %if !%build_symantec && %build_vscan
1801 %exclude %{_sysconfdir}/%{name}/vscan-symantec.conf
1806 %defattr(-,root,root)
1807 %{_libdir}/%{name}/vfs/vscan-trend.so
1808 %config(noreplace) %{_sysconfdir}/%{name}/vscan-trend.conf
1809 %doc %{vfsdir}/%{vscandir}/INSTALL
1811 %if !%build_trend && %build_vscan
1812 %exclude %{_libdir}/%{name}/vfs/vscan-trend.so
1813 %exclude %{_sysconfdir}/%{name}/vscan-trend.conf
1816 %exclude %{_mandir}/man1/smbsh*.1*
1819 * Tue Nov 09 2004 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.8-1mdk
1821 - add tdbtool to common
1822 - fix doc permissions (broken in tarball)
1824 * Fri Nov 05 2004 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.8-0.pre2.1mdk
1827 * Wed Oct 06 2004 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.7-3mdk
1828 - drop patch 23 to ldap schema (patch in 3.0.6 was to bring schema up-to-date
1829 with pre-3.0.7 cvs) (#11960)
1830 - merge winbind init script fix into packaging patch
1831 - Don't set printcap name in pdf printer share (#11861)
1832 - allow official builds off-cluster (with _with_official macro defined)
1834 * Tue Sep 14 2004 Stew Benedict <sbenedict@mandrakesoft.com> 3.0.7-2mdk
1835 - fix typo in winbind init script that prevented stop
1836 (in 3.0.6 too, patch27)
1838 * Mon Sep 13 2004 Stew Benedict <sbenedict@mandrakesoft.com> 3.0.7-1mdk
1839 - 3.0.7 (drop patch10,21,22,24,25,26; rediff patch23)
1841 * Thu Sep 09 2004 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.6-5mdk
1842 - patch for samba bug 1464
1843 - make release-depenent release tag more like security updates tags
1844 - sync smb.conf with drakwizard (which also fixes quoting of macros which
1846 - add example admin share
1847 - patches from Gerald Carter
1849 * Mon Aug 31 2004 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.6-4mdk
1850 - Add Jerry's post-3.0.6 patches
1853 * Fri Aug 27 2004 Buchan Milne <bgmilne@linux-mandrake.com>3.0.6-3mdk
1854 - patch from Urban Widmark via Robert Sim (anthill bug 1086) to be able
1855 to diable unix extensions in smbmount (and via 'unix extensions' in smb.conf)
1856 - magic-devel only available on 9.2 and up
1857 - allow building for stable release on the chroots on the cluster
1859 - fix build on older releases
1861 * Fri Aug 20 2004 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.6-2mdk
1863 -drop P6 (merged), P7 (broken for now)
1864 -keep libsmbclient where it belongs (on x86 for now)
1865 -implement mandrake version-specific release number
1867 * Thu Aug 12 2004 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.5-2mdk
1869 - fix pid file location (#10666)
1870 - merge amd64 fixes (P7)
1871 - make pdf printer work again, and other misc fixes to default config
1873 * Sun Jun 20 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 3.0.5-0.pre1.3mdk
1874 - fix rpm group in libsmbclient0-devel (Goetz Waschk)
1876 * Sat Jun 19 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 3.0.5-0.pre1.2mdk
1879 * Wed May 26 2004 Buchan Milne <bgmilne@linux-mandrake.com>3.0.5-0.pre1.1mdk
1880 - fix building without scanners
1881 - 3.0.5pre1 (and drop patch from CVS)
1883 * Fri May 21 2004 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.4-3mdk
1884 - re-work scanner support
1886 * Thu May 13 2004 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.4-2mdk
1888 - Patch for winbind (from samba bug 1315)
1890 * Thu Apr 29 2004 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.2a-4mdk
1891 - Fix samba-vscan (0.3.5), add clamav and icap, and build scanners by default
1892 - Fix default vscan-clamav config and add sample config for homes share
1893 - Add pgsql passdb backend
1895 * Mon Mar 01 2004 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.2a-3mdk
1896 - Fix default smbldap config
1897 - Don't clobber smb.conf backup for no reason
1899 * Mon Feb 16 2004 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.2a-2mdk
1901 - Only update smb.conf in upgrade from <3.0.1-3mdk (via trigger) and update
1902 upgrade script (stew)
1904 * Mon Feb 09 2004 Buchan Milne <bgmilne@linux0mandrake.com> 3.0.2-2mdk
1907 * Mon Feb 02 2004 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.2-0.rc2.1mdk
1910 * Tue Jan 6 2004 Stew Benedict <sbenedict@mandrakesoft.com> 3.0.1-5mdk
1911 - update migrate script, feedback from Luca Berra
1913 * Mon Jan 5 2004 Stew Benedict <sbenedict@mandrakesoft.com> 3.0.1-4mdk
1914 - re-enable relaxed CFLAGS to fix broken smbmount, smbclient
1916 * Fri Jan 2 2004 Stew Benedict <sbenedict@mandrakesoft.com> 3.0.1-3mdk
1917 - add migrate script to merge existing smb.conf
1919 * Fri Dec 19 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.1-2mdk
1922 * Thu Dec 11 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.1-0.rc2.2mdk
1925 * Sat Dec 06 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.1-0.rc1.2mdk
1929 * Fri Dec 05 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.1-0.pre3.5mdk
1930 - Allow winbind to start if old winbind ranges are used (ease upgrades)
1932 * Tue Nov 18 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.1-0.pre3.4mdk
1933 - Fix build as system on 8.2 (and probably earlier)
1935 * Sun Nov 16 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.1-0.pre3.3mdk
1936 - Ensure printer drivers keep permissions by default (setgid and inherit perms)
1938 * Fri Nov 14 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.1-0.pre3.2mdk
1940 - Add support for Mandrake 10.0 (as system samba)
1941 - Fix alternatives triggers
1944 * Mon Nov 10 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.1-0.pre2.2mdk
1946 - misc spec files (pointed out by Luca Olivetti)
1947 - Fix path to smbldap-passwd.pl
1948 - Only allow one copy of winbind and nss_wins
1949 - Add trigger for alternatives
1951 * Sun Oct 12 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.1-0.pre1.2mdk
1953 - remove buildroot patch (p3), fixed upstream
1955 * Thu Sep 25 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.0-2mdk
1958 * Sat Sep 13 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.0-0.rc4.2mdk
1960 - Don't update alternatives in pre/post scripts when not using alternatives
1961 - Fix case of --with-system without alternatives
1962 - Final fixes to smbldap-tools for non-system case
1963 - Remove duplicate docs (really - 1 character typo ...)
1964 - Update configs (fix winbind init script, add example scripts in smb.conf)
1966 * Tue Sep 09 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.0-0.rc3.2mdk
1968 - Fix mount.smb{,fs} alternatives (spotted by Laurent Culioli)
1970 * Thu Sep 04 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.0-0.rc2.3mdk
1972 - Fix libname (can I blame guillomovitch's evil line-wrapping spec mode?)
1973 - Fix smbldap-tools package/use names when not system samba
1974 - Don't conflict samba3-client with samba-client for now so we can install it
1976 * Fri Aug 29 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.0-0.rc2.2mdk
1978 - Remove patches 100-102 (upstream)
1980 - Alternatavise client
1981 - Better solution to avoid rpath
1983 * Fri Aug 22 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.0-0.rc1.3mdk
1984 - Fix build with test package (p100), but not by default (too big)
1985 - Fix (p101) for SID resolution when member of samba-2.2.x domain
1986 - Fix libsmbclient packages (thanks Gotz)
1987 - version mount.cifs, patch from CVS (p102), and setuid it
1988 - Clean up docs (guillomovitch spam ;-)
1990 * Sat Aug 16 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.0-0.rc1.2mdk
1992 - disable test subpackage since it's broken again
1994 * Mon Jul 28 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.0-0.beta3.3mdk
1995 - Rebuild for kerberos-1.3 on cooker
1996 - Put printer directories back
1998 - Go back to standard optimisations
2000 * Thu Jul 17 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.0-0.beta3.2mdk
2002 - remove -g from cflags to avoid large static libraries
2003 - drop optimisation from O2 to O1 for gcc 3.3.1
2004 - own some directories for distriblint's benefit
2005 - use chrpath on distro's that have it to drastically reduce rpmlint score
2007 * Mon Jul 14 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.0-0.beta2.3mdk
2008 - place non-conditional excludes at the end of files list, to prevent causing
2009 rpm in Mandrake <=8.2 from segfaulting when processing files.
2010 - Update default config
2012 * Wed Jul 02 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.0-0.beta2.2mdk
2014 - manually build editreg
2015 - Add some new man pages
2017 * Tue Jun 10 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.0-0.beta1.3mdk
2018 - add provision for passdb-ldap subpackage (it doesn't build like that yet)
2019 - avoid debugging info on cooker/9.2 for the moment
2020 - We probably don't need to autoconf (and can thus build on 8.1)
2021 - We can probably build without kerberos support (and thus on 8.0)
2022 - Don't require mysql-devel on alpha's (maybe we want to be able to disable
2023 mysql support for other arches?)
2024 - We shouldn't need to specifically add openssl to include path, since ssl
2025 support is deprecated.
2026 - png icons, change menu title to not conflict with ksambaplugin
2027 - update to samba-vscan-0.3.3beta1, but it still does not build the vscan
2029 - add -static-devel package
2030 - Add buildrequires for lib packages that are picked up if installed
2031 (ncurses, popt) in an attempt to get slbd to build samba3
2032 - Fix default config (P100)
2034 * Sun Jun 08 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.0-0.beta1.2mdk
2035 - Get packages into cooker (klama doesn't want to build this package ..)
2036 - samba-vscan-0.3.2b
2038 * Fri Jun 06 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha24.2mdk
2039 - Rename debug package to test and other fixes for rpm-4.2
2042 * Wed Apr 30 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha24.1mdk
2043 - Remove some files removed upstream
2044 - In builds from source, don't terminate on missing docs or unpackaged files
2045 (if only we could do it for other missing files ...)
2047 * Mon Apr 28 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha24.0mdk
2048 - Reenable debug package by (--without debug to not build it), fixed post-a23
2049 - Add bugzilla note for builds from source (also intended for packages made
2050 available on samba FTP site) at samba team request
2051 - Fix build from CVS (run autogen.sh, pass options to all rpm commands)
2052 - Appease distriblint, but not much to be done about /usr/share/swat3/ since
2053 samba-doc owns some subdirs, and samba-swat others, and they can be installed
2055 - Apply kaspersky vscan build fix from samba2
2058 * Wed Apr 23 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha23.3mdk
2059 - Small fixes in preparation for testing as system samba
2060 - Make debug package optional (--with debug) since it's often broken
2061 - Add support for 9.2 (including in-line smbd quota patch for glibc2.3)
2062 - Add --with options option, which will just show you the available options and exit
2064 * Sun Apr 06 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha23.2mdk
2066 - buildrequire autconf2.5
2067 - samba-vscan 0.3.2a
2068 - Remove patch 102 (upstreamed)
2070 * Thu Mar 06 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha22.2mdk
2072 - Add profiles binary to server and ntlm_auth to common
2073 - smbwrapper and torture target broken (only in 9.0?)
2074 - remove unused source 2
2076 * Tue Mar 04 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha21.4mdk
2077 - Don't provide samba-{server,client,common} when not system samba (bug #2617)
2078 - Don't build libsmbclient packages when not system samba
2079 - Fix conflict between samba-server and samba3-server (pam_smbpass)
2080 - Fix smbwrapper (from 2.2.7a-5mdk for bug #2356)
2081 - Fix codepage/charset example (bug #1574)
2083 * Thu Jan 23 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha21.3mdk
2084 - samba-vscan 0.3.1 (and make it build again), including required inline edits
2085 - Make all vscan packages provide samba(3)-vscan
2086 - Build all vscan except kav (requires kaspersky lib) with --with-scanners
2087 - Add vscan-(scanner).conf files
2088 - Explicitly add ldapsam for 2.2 compatability when building --with ldap,
2089 default build now uses new ldap passdb backend (ie you always get ldap)
2090 - Enable (experimental) tdb passdb backend
2091 - Fix file ownership conflicts between server and common
2092 - Cleanup configure, to match order of --help
2093 - Fix libdir location, was being overridden by --with-fhs
2094 - Split off a libsmbclient and -devel package
2095 - Add wins replication init script (patch 102)
2096 - Workaround passdb/pdb_xml.c not compiling
2097 - Workaround missing install targets for smbsh/smbwrapper.so in cvs
2098 - Inline patch smbd/quotas.c for Mandrake >9.0
2100 * Wed Nov 27 2002 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha21.2mdk
2101 - Remove patch 20,21,22,23,25,26 (upstream)
2102 - New destdir patch from cvs (18)
2103 - package installed but non-packaged files
2104 - new debug subpackage for vfstest and related files (it was that or nuke the
2106 - use _libdir for libdir instead of _sysconfdir
2107 - Update samba-vscan (untested)
2109 * Mon Oct 28 2002 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha20.3mdk
2110 - Fix mount.smbfs3 pointing to smbmount not in package
2111 - Remove unnecessary lines from install (now done by make)
2112 - Build with ldap and ads on all releases by default
2115 * Mon Oct 21 2002 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha20.2mdk
2116 - When not building as system samba, avoid conflicting with system samba
2117 - Macro-ize as much as possible for above (aka finish cleanups)
2118 - Fix paths in init scripts and logrotate and xinetd
2119 - Fix provides and obsoletes so as to provide samba, but not obsolete
2120 current stable until we have a stable release (when it's the system samba).
2121 - Add warnings to descriptions when not system samba.
2122 - This is now parallel installable with the normal samba release, for easy
2123 testing. It shouldn't touch existing installations. Of course, only
2124 one samba at a time on the same interface!
2126 * Sat Sep 28 2002 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha20.1mdk
2127 - Merge with 2.2.6pre2.2mdk
2128 - Detect alpha- and beta-, along with pre-releases
2130 * Tue Feb 05 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha14-0.1mdk
2131 - Sync with 2.2.3-2mdk (new --without options, detect when
2132 building for a different distribution.
2134 * Mon Feb 04 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha14-0.0mdk
2135 - Sync with 2.2.2-10mdk, which added build-time options --with ldap,
2136 winbind, acl, wins, mdk72, mdk80, mdk81, mdk82, cooker. Added
2137 warning in description if built with these options.
2139 * Wed Jan 23 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha13-0.2mdk
2140 - Added if's for build_ads, which hopefully will add Active Directory
2141 Support (by request).
2143 * Thu Jan 17 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha13-0.1mdk
2144 - More syncing with 2.2 rpm (post and postun scripts)
2145 - Testing without ldap
2147 * Thu Jan 17 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha13-0.0mdk
2149 - Fixed installman.sh patch.
2151 * Wed Jan 09 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha12-0.1mdk
2152 - Fixed %post and %preun for nss_wins, added %post and %preun for
2153 samba-winbind (chkconfig and winbind entries in nsswitch.conf)
2155 * Sun Dec 23 2001 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha12-0.0mdk
2157 - Sync up with changes made in 2.2.2 to support Mandrake 8.0, 7.2
2158 - Added new subpackage for swat
2159 - More if's for ldap.
2161 * Thu Dec 20 2001 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha11-0.0mdk
2164 * Wed Dec 19 2001 Buchan Milne <bgmilne@cae.co.za> 3.0alpha10-0.0mdk
2167 * Tue Dec 18 2001 Buchan Milne <bgmilne@cae.co.za> 3.0alpha9-0.0mdk
2170 * Mon Dec 17 2001 Buchan Milne <bgmilne@cae.co.za> 3.0alpha8-0.1mdk
2171 - Added net command to %files common, pdbedit and smbgroupedit to
2172 %files, s/%{prefix}\/bin/%{_bindir}/ (the big cleanup).
2173 Added patch to smb.init from 2.2.2 (got missed with 3.0-alpha1 patches)
2175 * Sun Dec 16 2001 Buchan Milne <bgmilne@cae.co.za> 3.0alpha8-0.0mdk
2176 - Patch for installman.sh to handle lang=en correctly (p24)
2177 - added --with-manpages-langs=en,ja,pl (translated manpages), but there
2178 aren't any manpages for these languages yet ... so we still
2179 need %dir and %doc entries for them ...
2180 - patch (p25) to configure.in to support more than 2 languages.
2181 - addtosmbpass seems to have returned for now, but make_* have disappeared!
2183 * Fri Dec 14 2001 Buchan Milne <bgmilne@cae.co.za> 3.0alpha6-0.0mdk
2184 - DESTDIR patch for Makefile.in (p23), remove a lot of %%install scripts
2185 this forces move of smbcontrol and smbmnt to %{prefix}/bin
2186 removed --with-pam_smbpass as it doesn't compile.
2188 * Thu Dec 06 2001 Buchan Milne <bgmilne@cae.co.za> 3.0-0.0alpha1mdk
2189 - Samba 3.0alpha1 released (we missed Samba 3.0alpha0!)
2190 - Redid smbmount-sbin patch and smb.conf patch (20), removed xfs quota patch
2191 (applied upstream), removed ook-patch (codepage directory totally different).
2192 - Added winbind.init (21) and system-auth-winbind.pamd (22). Patches 20-23
2193 should be applied upstream before 3.0 ships ...
2195 * Wed Dec 05 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-6mdk
2196 - fixed typo in system-auth-winbind.pamd (--Thanks J. Gluck).
2197 - fixed %post xxx problem (smb not started in chkconfig --Thanks Viet & B. Kenworthy).
2199 * Fri Nov 23 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-5mdk
2200 - Had to remove the network recycle bin patch: it seems to mess up
2201 file deletion from windows (files appear to be "already in use")
2203 * Tue Nov 13 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-4mdk
2204 - added network recycle bin patch:
2205 <http://www.amherst.edu/~bbstone/howto/samba.html>
2206 - added "recycle bin = .recycled" parameter in smb.conf [homes].
2207 - fixed winbind/nss_wins perms (oh no I don't own that stuff ;o)
2209 * Mon Nov 12 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-3mdk
2210 - added %build 8.0 and 7.2, for tweakers to play around.
2211 - changed configure options:
2212 . removed --with-mmap, --with-netatalk (obsolete).
2213 . added --with-msdfs, --with-vfs (seems stable, but still need testing).
2215 * Mon Nov 12 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-2mdk
2216 - rebuilt with winbind and nss_wins enabled.
2218 * Wed Oct 31 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-1mdk
2219 - Rebuilt on cooker.
2221 * Wed Oct 31 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.992mdk
2222 - Patch for smb.conf to fix incorrect lpq command, typo in winbind,
2223 and add sample linpopup command. Added print driver directories.
2224 - New XFS quota patch (untested!, samba runs, but do quotas work? We
2225 can't check yet since the kernel doesn't seem to support XFS quotas!)
2227 * Fri Oct 19 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-0.99mdk
2228 - New samba.spec, almost ready for winbind operations. OLA for Buchan Milne
2229 Who did a tremendous integration work on 2.2.2.
2230 Rebuild on cooker, please test XFS (ACLs and quotas) again...
2232 * Mon Oct 15 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.9mdk
2233 - Samba-2.2.2. released! Use %defines to determine which subpackages
2234 are built and which Mandrake release we are buiding on/for (hint: define
2235 build_mdk81 1 for Mandrake 8.1 updates)
2237 * Sun Oct 14 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011014mdk
2238 - %post and %postun for nss_wins
2240 * Wed Oct 10 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011010mdk
2241 - New CVS snapshot, /etc/pam.d/system-auth-winbind added
2242 with configuration to allow easy winbind setup.
2244 * Sun Oct 7 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011007mdk
2245 - Added new package nss_wins and moved smbpasswd to common (required by
2248 * Sat Oct 6 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011006mdk
2249 - Added new package winbind.
2251 * Mon Oct 1 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011001mdk
2252 - Removed patch to smb init.d file (applied in cvs)
2254 * Sun Sep 30 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20010930mdk
2255 - Added winbind init script, which still needs to check for running nmbd.
2257 * Thu Sep 27 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20010927mdk
2258 - Built from samba-2.2.2-pre cvs, added winbindd, wbinfo, nss_winbind and
2259 pam_winbind, moved pam_smbpass from samba-common to samba. We still
2260 need a start-up script for winbind, or need to modify existing one.
2262 * Mon Sep 10 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-15mdk
2263 - Enabled acl support (XFS acls now supported by kernel-2.4.8-21mdk thx Chmou)
2264 Added smbd patch to support XFS quota (Nathan Scott)
2266 * Mon Sep 10 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-14mdk
2267 - Oops! smbpasswd created in wrong directory...
2269 * Tue Sep 06 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-13mdk
2270 - Removed a wrong comment in smb.conf.
2271 Added creation of smbpasswd during install.
2273 * Mon Aug 27 2001 Pixel <pixel@mandrakesoft.com> 2.2.1a-12mdk
2274 - really less verbose %%post
2276 * Sat Aug 25 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 2.2.1a-11mdk
2277 - Fix shared libs in /usr/bin silliness.
2279 * Thu Aug 23 2001 Pixel <pixel@mandrakesoft.com> 2.2.1a-10mdk
2280 - less verbose %%post
2282 * Wed Aug 22 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1a-9mdk
2283 - Added smbcacls (missing in %files), modification to smb.conf: ([printers]
2284 is still needed, even with point-and-print!, user add script should
2285 use name and not gid, since we may not get the gid . New script for
2286 putting manpages in place (still need to be added in %files!). Moved
2287 smbcontrol to sbin and added it and its man page to %files.
2289 * Wed Aug 22 2001 Pixel <pixel@mandrakesoft.com> 2.2.1a-8mdk
2290 - cleanup /var/lib/samba/codepage/src
2292 * Tue Aug 21 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-7mdk
2293 - moved codepage generation to %%install and codepage dir to /var/lib/samba
2295 * Tue Aug 21 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-6mdk
2296 - /lib/* was in both samba and samba-common
2297 Introducing samba-doc: "alas, for the sake of thy modem, shalt thou remember
2298 when Samba was under the Megabyte..."
2300 * Fri Aug 03 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-5mdk
2301 - Added "the gc touch" to smbinit through the use of killall -0 instead of
2302 grep cupsd | grep -v grep (too many greps :o)
2304 * Wed Jul 18 2001 Stefan van der Eijk <stefan@eijk.nu> 2.2.1a-4mdk
2305 - BuildRequires: libcups-devel
2306 - Removed BuildRequires: openssl-devel
2308 * Fri Jul 13 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-3mdk
2309 - replace chkconfig --add/del with --level 35 on/reset.
2311 * Fri Jul 13 2001 Geoffrey Lee <snailtalk@mandrakesoft.cm> 2.2.1a-2mdk
2312 - Replace discription s/inetd/xinetd/, we all love xinetd, blah.
2314 * Thu Jul 12 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1a-1mdk
2315 - Bugfix release. Fixed add user script, added print$ share and printer admin
2316 We need to test interaction of new print support with CUPS, but printer
2317 driver uploads should work.
2319 * Wed Jul 11 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-17mdk
2320 - fixed smb.conf a bit, rebuilt on cooker.
2322 * Tue Jul 10 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1-16mdk
2323 - Finally, samba 2.2.1 has actually been release. At least we were ready!
2324 Cleaned up smb.conf, and added some useful entries for domain controlling.
2325 Migrated changes made in samba's samba2.spec for 2.2.1 to this file.
2326 Added groupadd command in post to create a group for samba machine accounts.
2327 (We should still check the postun, samba removes pam, logs and cache)
2329 * Tue Jun 26 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-15mdk
2330 - fixed smbwrapper compile options.
2332 * Tue Jun 26 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-14mdk
2333 - added LFS support.
2334 added smbwrapper support (smbsh)
2336 * Wed Jun 20 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-13mdk
2337 - /sbin/mount.smb and /sbin/mount.smbfs now point to the correct location
2338 of smbmount (/usr/bin/smbmount)
2340 * Tue Jun 19 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-12mdk
2341 - smbmount and smbumount are now in /usr/bin and SUID.
2342 added ||: to triggerpostun son you don't get error 1 anymore when rpm -e
2343 Checked the .bz2 sources with file *: everything is OK now (I'm so stupid ;o)!
2345 * Tue Jun 19 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 2.2.1-11mdk
2346 - s/Copyright/License/;
2347 - Stop Sylvester from pretending .gz source to be .bz2 source via filename
2348 aka really bzip2 the source.
2350 * Mon Jun 18 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-10mdk
2351 - changed Till's startup script modifications: now samba is being reloaded
2352 automatically 1 minute after it has started (same reasons as below in 9mdk)
2353 added _post_ and _preun_ for service smb
2354 fixed creation of /var/lib/samba/{netlogon,profiles} (%dir was missing)
2356 * Thu Jun 14 2001 Till Kamppeter <till@mandrakesoft.com> 2.2.1-9mdk
2357 - Modified the Samba startup script so that in case of CUPS being used as
2358 printing system Samba only starts when the CUPS daemon is ready to accept
2359 requests. Otherwise the CUPS queues would not appear as Samba shares.
2361 * Mon Jun 11 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-8mdk
2362 - patched smbmount.c to have it call smbmnt in sbin (thanks Seb).
2364 * Wed May 30 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-7mdk
2365 - put SWAT menu icons back in place.
2367 * Mon May 28 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-6mdk
2368 - OOPS! fixed smbmount symlinks
2370 * Mon May 28 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-5mdk
2371 - removed inetd postun script, replaced with xinetd.
2372 updated binary list (smbcacls...)
2375 * Mon May 28 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1-4mdk
2376 - Changed configure options to point to correct log and codepage directories,
2377 added crude script to fix logrotate file for new log file names, updated
2378 patches to work with current CVS.
2380 * Thu May 24 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-3mdk
2381 - Cleaned and updated the %files section.
2383 * Sat May 19 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-2mdk
2384 - Moved all samba files from /etc to /etc/samba (Thanks DomS!).
2385 Fixed fixinit patch (/etc/samba/smb.conf)
2387 * Fri May 18 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1-1mdk
2388 - Now use packaging/Mandrake/smb.conf, removed unused and obsolete
2389 patches, moved netlogon and profile shares to /var/lib/samba in the
2390 smb.conf to match the spec file. Added configuration for ntlogon to
2391 smb.conf. Removed pam-foo, fixinit and makefilepath patches. Removed
2392 symlink I introduced in 2.2.0-1mdk
2394 * Thu May 3 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.0-5mdk
2395 - Added more configure options. Changed Description field (thx John T).
2397 * Wed Apr 25 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.0-4mdk
2398 - moved netlogon and profiles to /var/lib/samba by popular demand ;o)
2400 * Tue Apr 24 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.0-3mdk
2401 - moved netlogon and profiles back to /home.
2403 * Fri Apr 20 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.0-2mdk
2404 - fixed post inetd/xinetd script&
2406 * Thu Apr 19 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.0-1mdk
2407 - Upgrade to 2.2.0. Merged most of 2.0.7-25mdk's patches (beware
2408 nasty "ln -sf samba-%{ver} ../samba-2.0.7" hack to force some patches
2409 to take. smbadduser and addtosmbpass seem to have disappeared. Moved
2410 all Mandrake-specific files to packaging/Mandrake and made patches
2411 from those shipped with samba. Moved netlogon to /home/samba and added
2412 /home/samba/profiles. Added winbind,smbfilter and debug2html to make command.
2414 * Thu Apr 12 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 2.0.7-25mdk
2415 - Fix menu entry and provide separate menu entry for GNOME
2416 (nautilus doesn't support HTTP authentication yet)
2417 - Add icons in package
2419 * Fri Mar 30 2001 Frederic Lepied <flepied@mandrakesoft.com> 2.0.7-24mdk
2420 - use new server macros
2422 * Wed Mar 21 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-23mdk
2423 - check whether /etc/inetd.conf exists (upgrade) or not (fresh install).
2425 * Thu Mar 15 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-22mdk
2426 - spec cosmetics, added '-r' option to lpr-cups command line so files are
2427 removed from /var/spool/samba after printing.
2429 * Tue Mar 06 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-21mdk
2430 - merged last rh patches.
2432 * Thu Nov 23 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-20mdk
2433 - removed dependencies on cups and cups-devel so one can install samba without using cups
2434 - added /home/netlogon
2436 * Mon Nov 20 2000 Till Kamppeter <till@mandrakesoft.com> 2.0.7-19mdk
2437 - Changed default print command in /etc/smb.conf, so that the Windows
2438 driver of the printer has to be used on the client.
2439 - Fixed bug in smbspool which prevented from printing from a
2440 Linux-Samba-CUPS client to a Windows server through the guest account.
2442 * Mon Oct 16 2000 Till Kamppeter <till@mandrakesoft.com> 2.0.7-18mdk
2443 - Moved "smbspool" (Samba client of CUPS) to the samba-client package
2445 * Sat Oct 7 2000 Stefan van der Eijk <s.vandereijk@chello.nl> 2.0.7-17mdk
2446 - Added RedHat's "quota" patch to samba-glibc21.patch.bz2, this fixes
2447 quota related compile problems on the alpha.
2449 * Wed Oct 4 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-16mdk
2450 - Fixed 'guest ok = ok' flag in smb.conf
2452 * Tue Oct 3 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-15mdk
2453 - Allowed guest account to print in smb.conf
2454 - added swat icon in menu
2456 * Tue Oct 3 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-14mdk
2457 - Removed rh ssl patch and --with-ssl flag: not appropriate for 7.2
2459 * Tue Oct 3 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-13mdk
2460 - Changed fixinit patch.
2461 - Changed smb.conf for better CUPS configuration.
2462 - Thanks Fred for doing this ---vvv.
2464 * Tue Oct 3 2000 Frederic Lepied <flepied@mandrakesoft.com> 2.0.7-12mdk
2465 - menu entry for web configuration tool.
2466 - merge with rh: xinetd + ssl + pam_stack.
2467 - Added smbadduser rh-bugfix w/o relocation of config-files.
2469 * Mon Oct 2 2000 Frederic Lepied <flepied@mandrakesoft.com> 2.0.7-11mdk
2470 - added build requires on cups-devel and pam-devel.
2472 * Mon Oct 2 2000 Till Kamppeter <till@mandrakesoft.com> 2.0.7-10mdk
2473 - Fixed smb.conf entry for CUPS: "printcap name = lpstat", "lpstats" was
2476 * Mon Sep 25 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-9mdk
2477 - Cosmetic changes to make rpmlint more happy
2479 * Wed Sep 11 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-8mdk
2480 - added linkage to the using_samba book in swat
2482 * Fri Sep 01 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-7mdk
2483 - Added CUPS support to smb.conf
2484 - Added internationalization options to smb.conf [Global]
2486 * Wed Aug 30 2000 Till Kamppeter <till@mandrakesoft.com> 2.0.7-6mdk
2487 - Put "smbspool" to the files to install
2489 * Wed Aug 30 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-5mdk
2490 - Did some cleaning in the patches
2492 * Fri Jul 28 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-4mdk
2493 - relocated man pages from /usr/man to /usr/share/man for compatibility reasons
2495 * Fri Jul 28 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-3mdk
2496 - added make_unicodemap and build of unicode_map.$i in the spec file
2498 * Fri Jul 28 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-2mdk
2499 - renamed /etc/codepage/codepage.$i into /etc/codepage/unicode_map.$i to fix smbmount bug.
2501 * Fri Jul 07 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-1mdk
2504 * Wed Apr 05 2000 Francis Galiegue <fg@mandrakesoft.com> 2.0.6-4mdk
2506 - Titi sucks, does not put versions in changelog
2507 - Fixed groups for -common and -client
2508 - /usr/sbin/samba is no config file
2510 * Thu Mar 23 2000 Thierry Vignaud <tvignaud@mandrakesoft.com>
2511 - fix buggy post install script (pixel)
2513 * Fri Mar 17 2000 Francis Galiegue <francis@mandrakesoft.com> 2.0.6-2mdk
2515 - Changed group according to 7.1 specs
2516 - Some spec file changes
2517 - Let spec-helper do its job
2519 * Thu Nov 25 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
2522 * Tue Nov 2 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
2523 - Merge with rh changes.
2524 - Split in 3 packages.
2526 * Fri Aug 13 1999 Pablo Saratxaga <pablo@@mandrakesoft.com>
2527 - corrected a bug with %post (the $1 parameter is "1" in case of
2528 a first install, not "0". That parameter is the number of packages
2529 of the same name that will exist after running all the steps if nothing
2530 is removed; so it is "1" after first isntall, "2" for a second install
2531 or an upgrade, and "0" for a removal)
2533 * Wed Jul 28 1999 Pablo Saratxaga <pablo@@mandrakesoft.com>
2534 - made smbmnt and smbumount suid root, and only executable by group 'smb'
2535 add to 'smb' group any user that should be allowed to mount/unmount
2536 SMB shared directories
2538 * Fri Jul 23 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
2539 - 2.0.5a (bug security fix).
2541 * Wed Jul 21 1999 Axalon Bloodstone <axalon@linux-mandrake.com>
2543 - cs/da/de/fi/fr/it/tr descriptions/summaries
2545 * Sun Jun 13 1999 Bernhard Rosenkränzer <bero@mandrakesoft.com>
2547 - recompile on a system that works ;)
2549 * Wed Apr 21 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
2550 - Mandrake adaptations.
2553 * Fri Mar 26 1999 Bill Nottingham <notting@redhat.com>
2554 - add a mount.smb to make smb mounting a little easier.
2555 - smb filesystems apparently do not work on alpha. Oops.
2557 * Thu Mar 25 1999 Bill Nottingham <notting@redhat.com>
2558 - always create codepages
2560 * Tue Mar 23 1999 Bill Nottingham <notting@redhat.com>
2563 * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
2564 - auto rebuild in the new build environment (release 3)
2566 * Fri Mar 19 1999 Preston Brown <pbrown@redhat.com>
2567 - updated init script to use graceful restart (not stop/start)
2569 * Tue Mar 9 1999 Bill Nottingham <notting@redhat.com>
2572 * Thu Feb 18 1999 Bill Nottingham <notting@redhat.com>
2575 * Mon Feb 15 1999 Bill Nottingham <notting@redhat.com>
2578 * Tue Feb 9 1999 Bill Nottingham <notting@redhat.com>
2579 - fix bash2 breakage in post script
2581 * Fri Feb 5 1999 Bill Nottingham <notting@redhat.com>
2584 * Mon Oct 12 1998 Cristian Gafton <gafton@redhat.com>
2585 - make sure all binaries are stripped
2587 * Thu Sep 17 1998 Jeff Johnson <jbj@redhat.com>
2588 - update to 1.9.18p10.
2589 - fix %triggerpostun.
2591 * Tue Jul 07 1998 Erik Troan <ewt@redhat.com>
2592 - updated postun triggerscript to check $0
2593 - clear /etc/codepages from %preun instead of %postun
2595 * Mon Jun 08 1998 Erik Troan <ewt@redhat.com>
2596 - made the %postun script a tad less agressive; no reason to remove
2597 the logs or lock file (after all, if the lock file is still there,
2598 samba is still running)
2599 - the %postun and %preun should only exectute if this is the final
2601 - migrated %triggerpostun from Red Hat's samba package to work around
2602 packaging problems in some Red Hat samba releases
2604 * Sun Apr 26 1998 John H Terpstra <jht@samba.anu.edu.au>
2605 - minor tidy up in preparation for release of 1.9.18p5
2606 - added findsmb utility from SGI package
2608 * Wed Mar 18 1998 John H Terpstra <jht@samba.anu.edu.au>
2609 - Updated version and codepage info.
2610 - Release to test name resolve order
2612 * Sat Jan 24 1998 John H Terpstra <jht@samba.anu.edu.au>
2613 - Many optimisations (some suggested by Manoj Kasichainula <manojk@io.com>
2614 - Use of chkconfig in place of individual symlinks to /etc/rc.d/init/smb
2615 - Compounded make line
2616 - Updated smb.init restart mechanism
2617 - Use compound mkdir -p line instead of individual calls to mkdir
2618 - Fixed smb.conf file path for log files
2619 - Fixed smb.conf file path for incoming smb print spool directory
2620 - Added a number of options to smb.conf file
2621 - Added smbadduser command (missed from all previous RPMs) - Doooh!
2622 - Added smbuser file and smb.conf file updates for username map