4 # PVERSION and PRELEASE replace by samba-team at release
5 %define pversion PVERSION
6 %define prelease PRELEASE
7 # For testing this setup:
8 #%define pversion 2.2.4
9 #%define prelease %(date +%Y%m%d)
11 #Check to see if p(version|release) has been replaced (1 if replaced)
12 %define have_pversion %(if [ "%pversion" = `echo "pversion" |tr '[:lower:]' '[:upper:]'` ];then echo 0; else echo 1; fi)
13 %define have_prelease %(if [ "%prelease" = `echo "prelease" |tr '[:lower:]' '[:upper:]'` ];then echo 0; else echo 1; fi)
15 # We now do detection of the Mandrake release we are building on:
16 %define build_cooker %(if [ `awk '{print $3}' /etc/mandrake-release` = "Cooker" ];then echo 1; else echo 0; fi)
17 %define build_mdk82 %(if [ `awk '{print $4}' /etc/mandrake-release` = 8.2 ];then echo 1; else echo 0; fi)
18 %define build_mdk81 %(if [ `awk '{print $4}' /etc/mandrake-release` = 8.1 ];then echo 1; else echo 0; fi)
19 %define build_mdk80 %(if [ `awk '{print $4}' /etc/mandrake-release` = 8.0 ];then echo 1; else echo 0; fi)
20 %define build_mdk72 %(if [ `awk '{print $4}' /etc/mandrake-release` = 7.2 ];then echo 1; else echo 0; fi)
21 %define build_non_default 0
23 # Set defaults for each version
26 %define build_winbind 1
33 %define build_winbind 1
40 %define build_winbind 0
47 %define build_winbind 0
54 %define build_winbind 0
59 # Allow commandline option overrides (borrowed from Vince's qmail srpm):
60 # To use it, do rpm [-ba|--rebuild] --with 'xxx'
61 # Check if the rpm was built with the defaults, otherwise we inform the user
62 %{?_with_acl: %{expand: %%define build_acl 1}}
63 %{?_with_acl: %{expand: %%define build_non_default 1}}
64 %{?_without_acl: %{expand: %%define build_acl 0}}
65 %{?_without_acl: %{expand: %%define build_non_default 1}}
66 %{?_with_winbind: %{expand: %%define build_winbind 1}}
67 %{?_with_winbind: %{expand: %%define build_non_default 1}}
68 %{?_without_winbind: %{expand: %%define build_winbind 0}}
69 %{?_without_winbind: %{expand: %%define build_non_default 1}}
70 %{?_with_wins: %{expand: %%define build_wins 1}}
71 %{?_with_wins: %{expand: %%define build_non_default 1}}
72 %{?_without_wins: %{expand: %%define build_wins 0}}
73 %{?_without_wins: %{expand: %%define build_non_default 1}}
74 %{?_with_ldap: %{expand: %%define build_ldap 1}}
75 %{?_with_ldap: %{expand: %%define build_non_default 1}}
76 %{?_without_ldap: %{expand: %%define build_ldap 0}}
77 %{?_without_ldap: %{expand: %%define build_non_default 1}}
79 Summary: Samba SMB server.
87 Release: 0.%{prelease}.1mdk
93 Source: ftp://samba.org/pub/samba/samba-%{version}.tar.bz2
97 Source4: swat_48.xpm.bz2
98 Source5: swat_32.xpm.bz2
99 Source6: swat_16.xpm.bz2
100 Source7: README.samba-%{ver}-%{rel}
101 #The japanese language patches are large, ignoring them now
102 #Patch100: samba-j.patch.bz2
103 # For some reason this won't apply as part of the -j patch
104 # Seems to have been applied in samba-2.2.3
105 #Patch111: samba-2.2.0-ook.patch.bz2
106 #Patch200: samba-j-2.patch.bz2
107 Patch: samba-2.2.0-makefilepath.patch.bz2
108 Patch1: smbw.patch.bz2
109 Patch2: samba-glibc21.patch.bz2
110 #Patch3: network-recycle_bin.patch.bz2
111 #Patch4: samba-nsl.patch.bz2
112 Patch5: samba-2.2.0-gawk.patch.bz2
113 Patch6: system-auth-winbind.pamd.patch.bz2
114 #Patch11: samba-2.0.7-smbspool-guest.patch.bz2
115 Patch12: samba-2.2.0-buildroot.patch.bz2
116 #Patch16: samba-mkdir.patch.bz2
117 Patch17: smbmount-sbin.patch.bz2
119 # Version specific patches: current version
120 Patch7: samba-2.2.3a-init.patch.bz2
121 Patch20: samba-2.2.3a-LDAP-schema.patch.bz2
122 Patch21: samba-2.2.3a-cli_spoolss_notify.patch.bz2
123 Patch22: samba-2.2.3a-pam_smbpass.patch.bz2
124 Patch23: samba-2.2.3a-srv_spoolss_nt.patch.bz2
126 # Version specific patches: upcoming version
128 Requires: pam >= 0.64, samba-common = %{version}
129 BuildRequires: pam-devel autoconf
131 BuildRequires: libacl-devel
134 BuildRequires: cups-devel
136 BuildRequires: libcups-devel
139 BuildRequires: libldap-devel
141 BuildRoot: %{_tmppath}/%{name}-root
143 Prereq: /sbin/chkconfig /bin/mktemp /usr/bin/killall
144 Prereq: fileutils sed /bin/grep
147 Samba provides an SMB server which can be used to provide
148 network services to SMB (sometimes called "Lan Manager")
149 clients, including various versions of MS Windows, OS/2,
150 and other Linux machines. Samba also provides some SMB
151 clients, which complement the built-in SMB filesystem
152 in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols
153 and does NOT need NetBEUI (Microsoft Raw NetBIOS frame)
156 Samba-2.2 features working NT Domain Control capability and
157 includes the SWAT (Samba Web Administration Tool) that
158 allows samba's smb.conf file to be remotely managed using your
159 favourite web browser. For the time being this is being
160 enabled on TCP port 901 via xinetd. SWAT is now included in
161 it's own subpackage, samba-swat.
163 Users are advised to use Samba-2.2 as a Windows NT4
164 Domain Controller only on networks that do NOT have a Windows
165 NT Domain Controller. This release does NOT as yet have
166 Backup Domain control ability.
168 Please refer to the WHATSNEW.txt document for fixup information.
169 This binary release includes encrypted password support.
171 Please read the smb.conf file and ENCRYPTION.txt in the
172 docs directory for implementation details.
174 %if %build_non_default
175 WARNING: This RPM was built with command-line options. Please
176 see README.samba-%{ver}-%{rel} in the documentation for
181 Summary: Samba (SMB) client programs.
182 Group: Networking/Other
183 Requires: samba-common = %{version}
187 Samba-client provides some SMB clients, which complement the built-in
188 SMB filesystem in Linux. These allow the accessing of SMB shares, and
189 printing to SMB printers.
192 Summary: Files used by both Samba servers and clients.
193 Group: System/Servers
196 Samba-common provides files necessary for both the server and client
200 Summary: Documentation for Samba servers and clients.
201 Group: System/Servers
202 Requires: samba-common = %{version}
205 Samba-doc provides documentation files for both the server and client
209 Summary: The Samba Web Administration Tool.
210 Group: System/Servers
211 Requires: samba = %{version} xinetd
214 SWAT (the Samba Web Administration Tool) allows samba's smb.conf file
215 to be remotely managed using your favourite web browser. For the time
216 being this is being enabled on TCP port 901 via xinetd. Note that
217 SWAT does not use SSL encryption, nor does it preserve comments in
218 your smb.conf file. Webmin uses SSL encryption by default, and
219 preserves comments in configuration files, even if it does not display
220 them, and is therefore the preferred method for remotely managing
226 Summary: Samba-winbind daemon, utilities and documentation
227 Group: System/Servers
228 Requires: samba-common = %{version}
230 Provides the winbind daemon and testing tools to allow authentication
231 and group/user enumeration from a Windows or Samba domain controller.
236 Summary: Name Service Switch service for WINS
237 Group: System/Servers
238 Requires: samba-common = %{version}
240 %description -n nss_wins
241 Provides the libnss_wins shared library which resolves NetBIOS names to
246 # Build a summary of how this RPM was built:
248 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --with acl"
250 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --without acl"
253 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --with winbind"
255 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --without winbind"
258 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --with wins"
260 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --without wins"
263 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --with ldap"
265 RPM_EXTRA_OPTIONS="$RPM_EXTRA_OPTIONS --without ldap"
268 %if %build_non_default
269 echo "Building a non-default rpm with the following command-line arguments:"
270 echo "$RPM_EXTRA_OPTIONS"
271 echo "This rpm was built with non-default options, thus, to build ">%{SOURCE7}
272 echo "an identical rpm, you need to supply the following options">>%{SOURCE7}
273 echo "at build time: $RPM_EXTRA_OPTIONS">>%{SOURCE7}
275 echo "This rpm was built with default options">%{SOURCE7}
281 #%patch3 -p1 -b .net-r_bin
286 #%patch11 -p0 -b .smbspool
287 %patch12 -p1 -b .buildroot
289 # Version specific patches: current version
291 echo "Applying patches for current version: %{ver}"
297 # Version specific patches: upcoming version
298 echo "Applying patches for new verions: %{pversion}"
307 CPPFLAGS="-I/usr/include/openssl"; export CPPFLAGS
308 CFLAGS="$RPM_OPT_FLAGS"
309 %configure --prefix=%{prefix} \
311 --libdir=/etc/samba \
312 --sysconfdir=/etc/samba \
313 --localstatedir=/var \
314 --with-configdir=/etc/samba \
315 --with-codepagedir=/var/lib/samba/codepages \
316 --with-privatedir=/etc/samba \
317 --with-swatdir=%{prefix}/share/swat \
335 #make CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" all
336 make CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" all smbfilter smbwrapper smbcacls pam_smbpass nsswitch nsswitch/libnss_wins.so debug2html
339 %configure --prefix=%{prefix} \
341 --libdir=/etc/samba \
342 --sysconfdir=/etc/samba \
349 rm -rf $RPM_BUILD_ROOT
350 mkdir -p $RPM_BUILD_ROOT
351 mkdir -p $RPM_BUILD_ROOT/sbin
352 mkdir -p $RPM_BUILD_ROOT/etc/samba
353 mkdir -p $RPM_BUILD_ROOT/etc/{logrotate.d,pam.d,xinetd.d}
354 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
355 mkdir -p $RPM_BUILD_ROOT/%{prefix}/{bin,sbin}
356 mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/swat/{images,help,include,using_samba}
357 mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/swat/using_samba/{figs,gifs}
358 mkdir -p $RPM_BUILD_ROOT/%{_mandir}/{man1,man5,man7,man8}
359 mkdir -p $RPM_BUILD_ROOT/var/cache/samba
360 mkdir -p $RPM_BUILD_ROOT/var/log/samba
361 mkdir -p $RPM_BUILD_ROOT/var/run/samba
362 mkdir -p $RPM_BUILD_ROOT/var/spool/samba
363 mkdir -p $RPM_BUILD_ROOT/var/lib/samba/{netlogon,profiles,printers}
364 mkdir -p $RPM_BUILD_ROOT/var/lib/samba/printers/{W32X86,WIN40,W32ALPHA,W32MIPS,W32PPC}
365 mkdir -p $RPM_BUILD_ROOT/var/lib/samba/codepages/src
366 mkdir -p $RPM_BUILD_ROOT/lib/{security,samba}
367 mkdir -p $RPM_BUILD_ROOT%prefix/lib
369 # Install standard binary files
371 for i in nmblookup smbclient smbpasswd smbstatus testparm testprns \
372 make_smbcodepage make_unicodemap make_printerdef rpcclient smbspool \
373 smbcacls smbclient smbmount smbumount smbsh wbinfo
375 install -m755 source/bin/$i $RPM_BUILD_ROOT/%{prefix}/bin
378 install -m 755 source/bin/smbwrapper.so $RPM_BUILD_ROOT%prefix/lib/smbwrapper.so
379 install -m 755 source/bin/pam_smbpass.so $RPM_BUILD_ROOT/lib/security/pam_smbpass.so
380 install -m 755 source/nsswitch/pam_winbind.so $RPM_BUILD_ROOT/lib/security/pam_winbind.so
382 #for i in addtosmbpass mksmbpasswd.sh smbtar convert_smbpasswd
384 for i in mksmbpasswd.sh smbtar convert_smbpasswd
386 install -m755 source/script/$i $RPM_BUILD_ROOT/%{prefix}/bin
389 # Install secure binary files
391 for i in smbd nmbd swat smbfilter debug2html smbmnt smbcontrol winbindd
393 install -m755 source/bin/$i $RPM_BUILD_ROOT/%{prefix}/sbin
396 # Install level 1,5,7,8 man pages
398 for mpl in 1 5 7 8;do
399 mp=$(ls docs/manpages/*.$mpl)
401 install -m644 $i $RPM_BUILD_ROOT/%{_mandir}/man$mpl
405 # Install codepage source files
407 for i in 437 737 775 850 852 857 861 866 932 936 949 950 1251
409 install -m644 source/codepages/codepage_def.$i $RPM_BUILD_ROOT/var/lib/samba/codepages/src
412 for i in 437 737 775 850 852 857 861 866 932 936 949 950 ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 ISO8859-9 ISO8859-13 ISO8859-15 KOI8-R
414 install -m644 source/codepages/CP$i.TXT $RPM_BUILD_ROOT/var/lib/samba/codepages/src
417 # Build codepage load files
418 for i in 437 737 775 850 852 857 861 866 932 936 949 950 1251; do
419 $RPM_BUILD_ROOT/%{prefix}/bin/make_smbcodepage c $i $RPM_BUILD_ROOT/var/lib/samba/codepages/src/codepage_def.$i $RPM_BUILD_ROOT/var/lib/samba/codepages/codepage.$i
422 # Build unicode load files
423 for i in 437 737 775 850 852 857 861 866 932 936 949 950 ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 ISO8859-9 ISO8859-13 ISO8859-15 KOI8-R; do
424 $RPM_BUILD_ROOT/%{prefix}/bin/make_unicodemap $i $RPM_BUILD_ROOT/var/lib/samba/codepages/src/CP$i.TXT $RPM_BUILD_ROOT/var/lib/samba/codepages/unicode_map.$i
426 rm -rf $RPM_BUILD_ROOT/var/lib/samba/codepages/src
428 # Install the nsswitch library extension file
429 for i in wins winbind; do
430 install -m755 source/nsswitch/libnss_$i.so $RPM_BUILD_ROOT/lib
432 # Make link for wins and winbind resolvers
433 ( cd $RPM_BUILD_ROOT/lib; ln -s libnss_wins.so libnss_wins.so.2; ln -s libnss_winbind.so libnss_winbind.so.2)
435 # Install SWAT helper files
436 for i in swat/help/*.html docs/htmldocs/*.html; do
437 install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/help
440 for i in swat/images/*.gif; do
441 install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/images
444 for i in swat/include/*.html; do
445 install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/include
448 # Install the O'Reilly "Using Samba" book
450 for i in docs/htmldocs/using_samba/*.html; do
451 install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/using_samba
454 for i in docs/htmldocs/using_samba/gifs/*.gif; do
455 install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/using_samba/gifs
458 for i in docs/htmldocs/using_samba/figs/*.gif; do
459 install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/using_samba/figs
462 # Install other stuff
464 install -m644 packaging/Mandrake/smb.conf $RPM_BUILD_ROOT/etc/samba/smb.conf
465 install -m644 packaging/Mandrake/smbusers $RPM_BUILD_ROOT/etc/samba/smbusers
466 install -m755 packaging/Mandrake/smbprint $RPM_BUILD_ROOT/usr/bin
467 #install -m755 packaging/RedHat/smbadduser $RPM_BUILD_ROOT/usr/bin
468 install -m755 packaging/Mandrake/findsmb $RPM_BUILD_ROOT/usr/bin
469 install -m755 packaging/Mandrake/smb.init $RPM_BUILD_ROOT/etc/rc.d/init.d/smb
470 install -m755 packaging/Mandrake/smb.init $RPM_BUILD_ROOT/usr/sbin/samba
471 install -m755 packaging/Mandrake/winbind.init $RPM_BUILD_ROOT/etc/rc.d/init.d/winbind
472 install -m755 packaging/Mandrake/winbind.init $RPM_BUILD_ROOT/usr/sbin/winbind
473 install -m644 packaging/Mandrake/samba.pamd $RPM_BUILD_ROOT/etc/pam.d/samba
474 install -m644 packaging/Mandrake/system-auth-winbind.pamd $RPM_BUILD_ROOT/etc/pam.d/system-auth-winbind
476 install -m644 $RPM_SOURCE_DIR/samba.log $RPM_BUILD_ROOT/etc/logrotate.d/samba
478 # Install VFS Modules
479 install -m755 examples/VFS/audit.so $RPM_BUILD_ROOT/lib/samba/
480 install -m755 examples/VFS/recycle.so $RPM_BUILD_ROOT/lib/samba/
481 install -m755 examples/VFS/block/block.so $RPM_BUILD_ROOT/lib/samba/
482 install -m644 examples/VFS/block/smb-block.conf $RPM_BUILD_ROOT/etc/samba/
483 install -m644 examples/VFS/block/smb.conf $RPM_BUILD_ROOT/etc/samba/smb.conf.example-with-block
485 # Link smbmount to /sbin/mount.smb and /sbin/mount.smbfs
487 ln -s /%{prefix}/bin/smbmount $RPM_BUILD_ROOT/sbin/mount.smb
488 ln -s /%{prefix}/bin/smbmount $RPM_BUILD_ROOT/sbin/mount.smbfs
489 echo 127.0.0.1 localhost > $RPM_BUILD_ROOT/etc/samba/lmhosts
491 # Link smbspool to CUPS (does not require installed CUPS)
493 mkdir -p $RPM_BUILD_ROOT/usr/lib/cups/backend
494 ln -s /usr/bin/smbspool $RPM_BUILD_ROOT/usr/lib/cups/backend/smb
498 mkdir -p $RPM_BUILD_ROOT/etc/xinetd.d
499 install -m644 %{SOURCE3} $RPM_BUILD_ROOT/etc/xinetd.d/swat
503 mkdir -p $RPM_BUILD_ROOT%{_menudir}
504 cat > $RPM_BUILD_ROOT%{_menudir}/%{name} << EOF
505 ?package(%{name}):command="gnome-moz-remote http://localhost:901/" needs="gnome" \
506 icon="swat.xpm" section="Configuration/Networking" title="Samba Configuration" \
507 longtitle="The Swat Samba Administration Tool"
508 ?package(%{name}):command="sh -c '\$BROWSER http://localhost:901/'" needs="x11" \
509 icon="swat.xpm" section="Configuration/Networking" title="Samba Configuration" \
510 longtitle="The Swat Samba Administration Tool"
513 mkdir -p $RPM_BUILD_ROOT%{_liconsdir} $RPM_BUILD_ROOT%{_iconsdir} $RPM_BUILD_ROOT%{_miconsdir}
515 bzcat %{SOURCE4} > $RPM_BUILD_ROOT%{_liconsdir}/swat.xpm
516 bzcat %{SOURCE5} > $RPM_BUILD_ROOT%{_iconsdir}/swat.xpm
517 bzcat %{SOURCE6} > $RPM_BUILD_ROOT%{_miconsdir}/swat.xpm
520 rm -rf $RPM_BUILD_ROOT
524 #/sbin/chkconfig --level 35 smb on
526 # Add a unix group for samba machine accounts
527 groupadd -frg 421 machines
529 %post -n samba-common
530 # Basic migration script for pre-2.2.1 users,
531 # since smb config moved from /etc to /etc/samba
534 for s in smb.conf smbusers smbpasswd printers.def secrets.tdb lmhosts; do
536 cp -f /etc/$s /etc/$s.OLD
537 mv -f /etc/$s /etc/samba/
541 # Migrate tdb's from /var/lock/samba (taken from official samba spec file):
542 for i in /var/lock/samba/*.tdb
545 newname=`echo $i | sed -e's|var\/lock\/samba|var\/cache\/samba|'`
546 echo "Moving $i to $newname"
551 # Remove the transient tdb files (modified from version in off. samba spec:
552 for TDB in brlock unexpected locking messages; do
553 if [ -e /var/cache/samba/$TDB.tdb ]; then
554 rm -f /var/cache/samba/$TDB.tdb;
558 if [ -d /var/lock/samba ]; then
559 rm -rf /var/lock/samba
561 # Make a symlink on /usr/lib/smbwrapper.so in /usr/bin
562 # to fix smbsh problem (another way to do that, anyone???)
564 ln -sf /usr/lib/smbwrapper.so /usr/bin/smbwrapper.so
566 # Let's create a proper /etc/samba/smbpasswd file
567 [ -f /etc/samba/smbpasswd ] || {
568 echo "Creating password file for samba..."
569 touch /etc/samba/smbpasswd
571 # Let's define the proper paths for config files
572 perl -pi -e 's/(\/etc\/)(smb)/\1samba\/\2/' /etc/samba/smb.conf
574 # Fix the logrotate.d file from smb and nmb to smbd and nmbd
575 if [ -f /etc/logrotate.d/samba ]; then
576 perl -pi -e 's/smb /smbd /' /etc/logrotate.d/samba
577 perl -pi -e 's/nmb /nmbd /' /etc/logrotate.d/samba
580 # And not loose our machine account SID
581 [ -f /etc/MACHINE.SID ] && mv -f /etc/MACHINE.SID /etc/samba/ ||:
584 %post -n samba-winbind
585 %_post_service winbind
587 # /sbin/chkconfig winbind on
588 cp -af /etc/nsswitch.conf /etc/nsswitch.conf.rpmsave
589 cp -af /etc/nsswitch.conf /etc/nsswitch.conf.rpmtemp
590 for i in passwd group;do
591 grep ^$i /etc/nsswitch.conf |grep -v 'winbind' 1>/dev/null 2>/dev/null
593 echo "Adding a winbind entry to the $i section of /etc/nsswitch.conf"
594 awk '/^'$i'/ {print $0 " winbind"};!/^'$i'/ {print}' /etc/nsswitch.conf.rpmtemp >/etc/nsswitch.conf;
595 cp -af /etc/nsswitch.conf /etc/nsswitch.conf.rpmtemp
597 echo "$i entry found in /etc/nsswitch.conf"
600 if [ -f /etc/nsswitch.conf.rpmtemp ];then
601 rm -f /etc/nsswitch.conf.rpmtemp;fi
603 %preun -n samba-winbind
604 %_preun_service winbind
606 echo "Removing winbind entries from /etc/nsswitch.conf"
607 perl -pi -e 's/ winbind//' /etc/nsswitch.conf
609 # /sbin/chkconfig winbind reset
611 %endif %build_winbind
616 cp -af /etc/nsswitch.conf /etc/nsswitch.conf.rpmsave
617 grep '^hosts' /etc/nsswitch.conf |grep -v 'wins' >/dev/null
619 echo "Adding a wins entry to the hosts section of /etc/nsswitch.conf"
620 awk '/^hosts/ {print $0 " wins"};!/^hosts/ {print}' /etc/nsswitch.conf.rpmsave >/etc/nsswitch.conf;
622 echo "wins entry found in /etc/nsswitch.conf"
625 # echo "Upgrade, leaving nsswitch.conf intact"
630 echo "Removing wins entry from /etc/nsswitch.conf"
631 perl -pi -e 's/ wins//' /etc/nsswitch.conf
633 # echo "Leaving /etc/nsswitch.conf intact"
641 # /sbin/chkconfig --level 35 smb reset
642 # Let's not loose /var/cache/samba
644 # for i in browse.dat wins.dat brlock.tdb unexpected.tdb connections.tdb \
645 #locking.tdb messages.tdb;do
646 # if [ -e /var/cache/samba/$i ]; then
647 # mv -f /var/cache/samba/$i /var/cache/samba/$i.BAK
650 if [ -d /var/log/samba ]; then
651 rm -rf /var/log/samba/*
653 if [ -d /var/cache/samba ]; then
654 mv -f /var/cache/samba /var/cache/samba.BAK
658 %preun -n samba-common
661 for n in /etc/samba/codepages/*; do
662 if [ "$n" != "/etc/samba/codepages/src" ]; then
670 if [ -f /var/lock/subsys/xinetd ]; then
671 service xinetd reload >/dev/null 2>&1 || :
675 %postun -n samba-swat
677 # Remove swat entry from xinetd
678 if [ $1 = 0 -a -f /etc/xinetd.conf ] ; then
679 rm -f /etc/xinetd.d/swat
680 service xinetd reload &>/dev/null || :
683 if [ "$1" = "0" -a -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi
687 %triggerpostun -- samba < 1.9.18p7
690 /sbin/chkconfig --level 35 smb on
693 %triggerpostun -- samba < 2.0.5a-3, samba >= 2.0.0
696 [ ! -d /var/lock/samba ] && mkdir -m 0755 /var/lock/samba ||:
697 [ ! -d /var/spool/samba ] && mkdir -m 1777 /var/spool/samba ||:
698 [ -f /etc/inetd.conf ] && chmod 644 /etc/services /etc/inetd.conf ||:
702 %defattr(-,root,root)
703 #%attr(-,root,root) %{prefix}/sbin/*
704 %attr(-,root,root) /sbin/*
705 #%attr(-,root,root) %{prefix}/bin/*
706 #%attr(755,root,root) /lib/*
710 %{prefix}/sbin/smbcontrol
711 #%{prefix}/bin/addtosmbpass
712 %{prefix}/bin/mksmbpasswd.sh
713 %{prefix}/bin/smbstatus
714 %{prefix}/bin/convert_smbpasswd
715 %attr(755,root,root) /lib/security/pam_smbpass*
717 %{prefix}/lib/samba/*
719 %attr(-,root,root) %config(noreplace) /etc/samba/smbusers
720 %attr(-,root,root) %config /etc/rc.d/init.d/smb
721 %attr(-,root,root) %config(noreplace) /etc/logrotate.d/samba
722 %attr(-,root,root) %config(noreplace) /etc/pam.d/samba
723 %{_mandir}/man1/smbstatus.1*
724 %{_mandir}/man5/smbpasswd.5*
725 %{_mandir}/man7/samba.7*
726 %{_mandir}/man8/smbd.8*
727 %{_mandir}/man8/nmbd.8*
728 %{_mandir}/man1/smbcontrol.1*
729 #%{_mandir}/man1/lmhosts.1*
730 %{_mandir}/man5/smb.conf.5*
731 %attr(775,root,root) %dir /var/lib/samba/netlogon
732 %attr(775,root,root) %dir /var/lib/samba/profiles
733 %attr(775,root,root) %dir /var/lib/samba/printers/*
736 %attr(1777,root,root) %dir /var/spool/samba
739 %defattr(-,root,root)
740 %doc README COPYING Manifest Read-Manifest-Now
741 %doc WHATSNEW.txt Roadmap
742 %doc README.samba-%{ver}-%{rel}
746 %attr(-,root,root) %{prefix}/share/swat/using_samba/*
749 %defattr(-,root,root)
750 %config(noreplace) /etc/xinetd.d/swat
751 %attr(-,root,root) /sbin/*
757 %attr(-,root,root) %{prefix}/share/swat/help/*
758 %attr(-,root,root) %{prefix}/share/swat/images/*
759 %attr(-,root,root) %{prefix}/share/swat/include/*
760 %{_mandir}/man8/swat.8*
763 %defattr(-,root,root)
767 %attr(775,root,root) %{prefix}/bin/smbmount
768 %attr(4775,root,root) %{prefix}/bin/smbumount
769 %attr(4775,root,root) %{prefix}/sbin/smbmnt
770 %{_mandir}/man8/smbmnt.8*
771 %{_mandir}/man8/smbmount.8*
772 %{_mandir}/man8/smbumount.8*
774 %{prefix}/bin/nmblookup
775 %{prefix}/bin/findsmb
776 %{prefix}/bin/smbclient
777 %{prefix}/bin/smbprint
779 %{prefix}/bin/smbcacls
780 %{prefix}/bin/smbspool
781 # Link of smbspool to CUPS
782 /%{prefix}/lib/cups/backend/smb
783 /%{_mandir}/man1/nmblookup.1*
784 /%{_mandir}/man1/findsmb.1*
785 /%{_mandir}/man1/smbclient.1*
786 /%{_mandir}/man1/smbtar.1*
787 /%{_mandir}/man1/smbcacls.1*
790 %defattr(-,root,root)
791 %dir /var/cache/samba
792 /%{prefix}/bin/make_smbcodepage
793 /%{prefix}/bin/make_unicodemap
794 /%{prefix}/bin/testparm
795 /%{prefix}/bin/testprns
796 /%{prefix}/bin/make_printerdef
797 /%{prefix}/bin/rpcclient
799 %{prefix}/bin/smbpasswd
800 %{prefix}/lib/smbwrapper.so
801 %attr(-,root,root) %config(noreplace) /etc/samba/smb.conf
802 %attr(-,root,root) %config(noreplace) /etc/samba/lmhosts
803 %attr(-,root,root) /var/lib/samba/codepages
804 %{_mandir}/man1/make_smbcodepage.1*
805 %{_mandir}/man1/make_unicodemap.1*
806 %{_mandir}/man1/testparm.1*
807 %{_mandir}/man1/smbsh.1*
808 %{_mandir}/man1/testprns.1*
809 %{_mandir}/man5/smb.conf.5*
810 %{_mandir}/man5/lmhosts.5*
811 %{_mandir}/man8/smbpasswd.8*
815 %defattr(-,root,root)
816 %{prefix}/sbin/winbindd
818 %attr(755,root,root) /lib/security/pam_winbind*
819 %attr(755,root,root) /lib/libnss_winbind*
820 %attr(-,root,root) %config /etc/rc.d/init.d/winbind
821 %attr(-,root,root) %config(noreplace) /etc/pam.d/system-auth-winbind
822 %{_mandir}/man8/winbindd.8*
823 %{_mandir}/man1/wbinfo.1*
828 %defattr(-,root,root)
829 %attr(755,root,root) /lib/libnss_wins.so*
833 * Sun Jun 02 2002 John H Terpstra <jht@samba.org>
836 * Fri Apr 26 2002 Buchan Milne <bgmilne@cae.co.za> 2.2.3a-12mdk
837 - Final changes for 2.2.4 release
838 - Removed patches 4(nsl),11(smbspool-guest)
839 - Made patch 7 (2.2.3a-init) release specific
841 * Sun Apr 21 2002 Buchan Milne <bgmilne@cae.co.za> 2.2.3a-11mdk
842 - Tested with CVS snapshot (upcoming relaese, sync packaging)
843 - Added detection of samba-official release (so we can keep one spec
844 file in sync in both cvs trees)
845 - Add Distro-detection(tm) (allows us to remove some arbitrary repitition)
846 - Made patches 20,21,23 (merged upstream), and 22 (breaks pam_smbpass
847 compilation, pam_smbpass.so seems to be built correctly without it)
849 - Removed patches 18,19 (only applicable to 2.2.2)
851 * Sat Mar 16 2002 Pixel <pixel@mandrakesoft.com> 2.2.3a-10mdk
852 - fix Patch 7 to fix samba not starting at boot time
854 * Tue Mar 12 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.3a-9mdk
855 - Patch 7 to fix samba not starting at boot time (-- Pixel)
857 * Sat Mar 9 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.3a-8mdk
858 - Patch 23 from CVS to fix saving changes in printer properties (-- Gerald Carter)
860 * Fri Mar 8 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.3a-7mdk
861 - Added a few new codepage/character sets.
862 - replace deletion of /var/cache/samba by simple backup when removing samba
863 to avoid loosing winbind rid->uid map and print driver tdbs.
864 - Moved /var/cache/samba migration process from %post samba to %post samba-common.
865 - Moved require xinetd from samba to samba-swat.
867 * Mon Feb 27 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.3a-6mdk
868 - Fixed pam_smbpass compiling problem. (-- Ilia Chipitsine)
869 - moved /var/cache/samba from server to common as it's used by client too.
870 - symlinked smbwrapper.so back to /usr/bin to fix smbsh pb. (-- Alexander Skwar)
871 - added %_post/preun_service macro for smb & winbind.
873 * Fri Feb 22 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.3a-5mdk
874 - added cli_spoolss_notify patch to prevent smbd dying when a printer
875 is opened from Win2k. (-- Gerald Carter)
877 * Mon Feb 18 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.3a-4mdk
878 - fixed the chkconfig --reset when upgrading form previos version.
879 - added correct LDAP schema in example section.
881 * Fri Feb 08 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.3a-3mdk
882 - _Really_ suid back smbumount; OK, you can laugh now...
884 * Fri Feb 08 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.3a-2mdk
885 - suid back smbumount.
887 * Thu Feb 07 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.3a-1mdk
888 - upped to 2.2.3a bugfix version.
889 - removed suid on smb(u)mount, suid smbmnt instead.
891 * Mon Feb 04 2002 Buchan Milne <bgmilne@cae.co.za> 2.2.3-2mdk
892 - Added --without xxx support for all the --with xxx command-
893 line options. Now also detects (and warns) when built
894 for non-default distro.
895 - Fix %post -n samba-winbind
897 * Mon Feb 04 2002 Buchan Milne <bgmilne@cae.co.za> 2.2.3-1mdk
898 - Samba-2.2.3. Disabled patches 6,18,19, which should have been
899 applied in samba CVS.
901 * Sun Feb 03 2002 Buchan Milne <bgmilne@cae.co.za> 2.2.2-10mdk
902 - Reenable patches 6 and 19 (applied in CVS, but this is 2.2.2!)
903 - Added option to use --with xxx when building, options so far
904 for mdk72, mdk80, mdk81, mdk82, cooker, ldap, winbind, wins, acl
905 - Put warning text in %description if the RPM was built with
908 * Mon Jan 21 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-9mdk
909 - Fixed %post scripts here and there.
910 - samba-common %post scriptlet is now clean (-- thanks Zytho).
912 * Mon Jan 21 2002 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-8mdk
914 - please test extensively this package,
915 but consider our target _is_ 2.2.3.
917 * Thu Jan 17 2002 Buchan Milne <bgmilne@cae.co.za> 2.2.2-7mdk
918 - Make a 2.2.2 package for the changes in 2.2.3:
919 - reenable XFS quota patch, turned off ldap
921 * Thu Jan 17 2002 Buchan Milne <bgmilne@cae.co.za> 2.2.3-0.20020117mdk
922 - New scripts for winbind from 3.0alpha spec file
924 * Wed Jan 16 2002 Buchan Milne <bgmilne@cae.co.za> 2.2.3-0.20020116mdk
925 - Updated CVS snapshot
927 * Sun Dec 23 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.3-0.20011222mdk
929 - Sync up with changes made in 2.2.2 to support Mandrake 8.0, 7.2
930 - Added new subpackage for swat
931 - More %if's for ldap.
933 * Thu Dec 06 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.3-0.20011205mdk
934 - Build from CVS snapshot of SAMBA_2_2 to test XFS quotas
935 - Removed XFS quota patch (applied upstream)
937 * Wed Dec 05 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-6mdk
938 - fixed typo in system-auth-winbind.pamd (--Thanks J. Gluck).
939 - fixed %post xxx problem (smb not started in chkconfig --Thanks Viet & B. Kenworthy).
941 * Fri Nov 23 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-5mdk
942 - Had to remove the network recycle bin patch: it seems to mess up
943 file deletion from windows (files appear to be "already in use")
945 * Tue Nov 13 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-4mdk
946 - added network recycle bin patch:
947 <http://www.amherst.edu/~bbstone/howto/samba.html>
948 - added "recycle bin = .recycled" parameter in smb.conf [homes].
949 - fixed winbind/nss_wins perms (oh no I don't own that stuff ;o)
951 * Mon Nov 12 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-3mdk
952 - added %build 8.0 and 7.2, for tweakers to play around.
953 - changed configure options:
954 . removed --with-mmap, --with-netatalk (obsolete).
955 . added --with-msdfs, --with-vfs (seems stable, but still need testing).
957 * Mon Nov 12 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-2mdk
958 - rebuilt with winbind and nss_wins enabled.
960 * Wed Oct 31 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-1mdk
963 * Wed Oct 31 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.992mdk
964 - Patch for smb.conf to fix incorrect lpq command, typo in winbind,
965 and add sample linpopup command. Added print driver directories.
966 - New XFS quota patch (untested!, samba runs, but do quotas work? We
967 can't check yet since the kernel doesn't seem to support XFS quotas!)
969 * Fri Oct 19 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-0.99mdk
970 - New samba.spec, almost ready for winbind operations. OLA for Buchan Milne
971 Who did a tremendous integration work on 2.2.2.
972 Rebuild on cooker, please test XFS (ACLs and quotas) again...
974 * Mon Oct 15 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.9mdk
975 - Samba-2.2.2. released! Use %defines to determine which subpackages
976 are built and which Mandrake release we are buiding on/for (hint: define
977 build_mdk81 1 for Mandrake 8.1 updates)
979 * Sun Oct 14 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011014mdk
980 - %post and %postun for nss_wins
982 * Wed Oct 10 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011010mdk
983 - New CVS snapshot, /etc/pam.d/system-auth-winbind added
984 with configuration to allow easy winbind setup.
986 * Sun Oct 7 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011007mdk
987 - Added new package nss_wins and moved smbpasswd to common (required by
990 * Sat Oct 6 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011006mdk
991 - Added new package winbind.
993 * Mon Oct 1 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011001mdk
994 - Removed patch to smb init.d file (applied in cvs)
996 * Sun Sep 30 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20010930mdk
997 - Added winbind init script, which still needs to check for running nmbd.
999 * Thu Sep 27 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20010927mdk
1000 - Built from samba-2.2.2-pre cvs, added winbindd, wbinfo, nss_winbind and
1001 pam_winbind, moved pam_smbpass from samba-common to samba. We still
1002 need a start-up script for winbind, or need to modify existing one.
1004 * Mon Sep 10 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-15mdk
1005 - Enabled acl support (XFS acls now supported by kernel-2.4.8-21mdk thx Chmou)
1006 Added smbd patch to support XFS quota (Nathan Scott)
1008 * Mon Sep 10 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-14mdk
1009 - Oops! smbpasswd created in wrong directory...
1011 * Tue Sep 06 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-13mdk
1012 - Removed a wrong comment in smb.conf.
1013 Added creation of smbpasswd during install.
1015 * Mon Aug 27 2001 Pixel <pixel@mandrakesoft.com> 2.2.1a-12mdk
1016 - really less verbose %%post
1018 * Sat Aug 25 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 2.2.1a-11mdk
1019 - Fix shared libs in /usr/bin silliness.
1021 * Thu Aug 23 2001 Pixel <pixel@mandrakesoft.com> 2.2.1a-10mdk
1022 - less verbose %%post
1024 * Wed Aug 22 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1a-9mdk
1025 - Added smbcacls (missing in %files), modification to smb.conf: ([printers]
1026 is still needed, even with point-and-print!, user add script should
1027 use name and not gid, since we may not get the gid . New script for
1028 putting manpages in place (still need to be added in %files!). Moved
1029 smbcontrol to sbin and added it and its man page to %files.
1031 * Wed Aug 22 2001 Pixel <pixel@mandrakesoft.com> 2.2.1a-8mdk
1032 - cleanup /var/lib/samba/codepage/src
1034 * Tue Aug 21 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-7mdk
1035 - moved codepage generation to %install and codepage dir to /var/lib/samba
1037 * Tue Aug 21 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-6mdk
1038 - /lib/* was in both samba and samba-common
1039 Introducing samba-doc: "alas, for the sake of thy modem, shalt thou remember
1040 when Samba was under the Megabyte..."
1042 * Fri Aug 03 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-5mdk
1043 - Added "the gc touch" to smbinit through the use of killall -0 instead of
1044 grep cupsd | grep -v grep (too many greps :o)
1046 * Wed Jul 18 2001 Stefan van der Eijk <stefan@eijk.nu> 2.2.1a-4mdk
1047 - BuildRequires: libcups-devel
1048 - Removed BuildRequires: openssl-devel
1050 * Fri Jul 13 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-3mdk
1051 - replace chkconfig --add/del with --level 35 on/reset.
1053 * Fri Jul 13 2001 Geoffrey Lee <snailtalk@mandrakesoft.cm> 2.2.1a-2mdk
1054 - Replace discription s/inetd/xinetd/, we all love xinetd, blah.
1056 * Thu Jul 12 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1a-1mdk
1057 - Bugfix release. Fixed add user script, added print$ share and printer admin
1058 We need to test interaction of new print support with CUPS, but printer
1059 driver uploads should work.
1061 * Wed Jul 11 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-17mdk
1062 - fixed smb.conf a bit, rebuilt on cooker.
1064 * Tue Jul 10 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1-16mdk
1065 - Finally, samba 2.2.1 has actually been release. At least we were ready!
1066 Cleaned up smb.conf, and added some useful entries for domain controlling.
1067 Migrated changes made in samba's samba2.spec for 2.2.1 to this file.
1068 Added groupadd command in post to create a group for samba machine accounts.
1069 (We should still check the postun, samba removes pam, logs and cache)
1071 * Tue Jun 26 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-15mdk
1072 - fixed smbwrapper compile options.
1074 * Tue Jun 26 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-14mdk
1075 - added LFS support.
1076 added smbwrapper support (smbsh)
1078 * Wed Jun 20 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-13mdk
1079 - /sbin/mount.smb and /sbin/mount.smbfs now point to the correct location
1080 of smbmount (/usr/bin/smbmount)
1082 * Tue Jun 19 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-12mdk
1083 - smbmount and smbumount are now in /usr/bin and SUID.
1084 added ||: to triggerpostun son you don't get error 1 anymore when rpm -e
1085 Checked the .bz2 sources with file *: everything is OK now (I'm so stupid ;o)!
1087 * Tue Jun 19 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 2.2.1-11mdk
1088 - s/Copyright/License/;
1089 - Stop Sylvester from pretending .gz source to be .bz2 source via filename
1090 aka really bzip2 the source.
1092 * Mon Jun 18 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-10mdk
1093 - changed Till's startup script modifications: now samba is being reloaded
1094 automatically 1 minute after it has started (same reasons as below in 9mdk)
1095 added _post_ and _preun_ for service smb
1096 fixed creation of /var/lib/samba/{netlogon,profiles} (%dir was missing)
1098 * Thu Jun 14 2001 Till Kamppeter <till@mandrakesoft.com> 2.2.1-9mdk
1099 - Modified the Samba startup script so that in case of CUPS being used as
1100 printing system Samba only starts when the CUPS daemon is ready to accept
1101 requests. Otherwise the CUPS queues would not appear as Samba shares.
1103 * Mon Jun 11 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-8mdk
1104 - patched smbmount.c to have it call smbmnt in sbin (thanks Seb).
1106 * Wed May 30 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-7mdk
1107 - put SWAT menu icons back in place.
1109 * Mon May 28 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-6mdk
1110 - OOPS! fixed smbmount symlinks
1112 * Mon May 28 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-5mdk
1113 - removed inetd postun script, replaced with xinetd.
1114 updated binary list (smbcacls...)
1117 * Mon May 28 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1-4mdk
1118 - Changed configure options to point to correct log and codepage directories,
1119 added crude script to fix logrotate file for new log file names, updated
1120 patches to work with current CVS.
1122 * Thu May 24 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-3mdk
1123 - Cleaned and updated the %files section.
1125 * Sat May 19 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-2mdk
1126 - Moved all samba files from /etc to /etc/samba (Thanks DomS!).
1127 Fixed fixinit patch (/etc/samba/smb.conf)
1129 * Fri May 18 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1-1mdk
1130 - Now use packaging/Mandrake/smb.conf, removed unused and obsolete
1131 patches, moved netlogon and profile shares to /var/lib/samba in the
1132 smb.conf to match the spec file. Added configuration for ntlogon to
1133 smb.conf. Removed pam-foo, fixinit and makefilepath patches. Removed
1134 symlink I introduced in 2.2.0-1mdk
1136 * Thu May 3 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.0-5mdk
1137 - Added more configure options. Changed Description field (thx John T).
1139 * Wed Apr 25 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.0-4mdk
1140 - moved netlogon and profiles to /var/lib/samba by popular demand ;o)
1142 * Tue Apr 24 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.0-3mdk
1143 - moved netlogon and profiles back to /home.
1145 * Fri Apr 20 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.0-2mdk
1146 - fixed post inetd/xinetd script&
1148 * Thu Apr 19 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.0-1mdk
1149 - Upgrade to 2.2.0. Merged most of 2.0.7-25mdk's patches (beware
1150 nasty "ln -sf samba-%{ver} ../samba-2.0.7" hack to force some patches
1151 to take. smbadduser and addtosmbpass seem to have disappeared. Moved
1152 all Mandrake-specific files to packaging/Mandrake and made patches
1153 from those shipped with samba. Moved netlogon to /home/samba and added
1154 /home/samba/profiles. Added winbind,smbfilter and debug2html to make command.
1156 * Thu Apr 12 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 2.0.7-25mdk
1157 - Fix menu entry and provide separate menu entry for GNOME
1158 (nautilus doesn't support HTTP authentication yet)
1159 - Add icons in package
1161 * Fri Mar 30 2001 Frederic Lepied <flepied@mandrakesoft.com> 2.0.7-24mdk
1162 - use new server macros
1164 * Wed Mar 21 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-23mdk
1165 - check whether /etc/inetd.conf exists (upgrade) or not (fresh install).
1167 * Thu Mar 15 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-22mdk
1168 - spec cosmetics, added '-r' option to lpr-cups command line so files are
1169 removed from /var/spool/samba after printing.
1171 * Tue Mar 06 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-21mdk
1172 - merged last rh patches.
1174 * Thu Nov 23 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-20mdk
1175 - removed dependencies on cups and cups-devel so one can install samba without using cups
1176 - added /home/netlogon
1178 * Mon Nov 20 2000 Till Kamppeter <till@mandrakesoft.com> 2.0.7-19mdk
1179 - Changed default print command in /etc/smb.conf, so that the Windows
1180 driver of the printer has to be used on the client.
1181 - Fixed bug in smbspool which prevented from printing from a
1182 Linux-Samba-CUPS client to a Windows server through the guest account.
1184 * Mon Oct 16 2000 Till Kamppeter <till@mandrakesoft.com> 2.0.7-18mdk
1185 - Moved "smbspool" (Samba client of CUPS) to the samba-client package
1187 * Sat Oct 7 2000 Stefan van der Eijk <s.vandereijk@chello.nl> 2.0.7-17mdk
1188 - Added RedHat's "quota" patch to samba-glibc21.patch.bz2, this fixes
1189 quota related compile problems on the alpha.
1191 * Wed Oct 4 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-16mdk
1192 - Fixed 'guest ok = ok' flag in smb.conf
1194 * Tue Oct 3 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-15mdk
1195 - Allowed guest account to print in smb.conf
1196 - added swat icon in menu
1198 * Tue Oct 3 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-14mdk
1199 - Removed rh ssl patch and --with-ssl flag: not appropriate for 7.2
1201 * Tue Oct 3 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-13mdk
1202 - Changed fixinit patch.
1203 - Changed smb.conf for better CUPS configuration.
1204 - Thanks Fred for doing this ---vvv.
1206 * Tue Oct 3 2000 Frederic Lepied <flepied@mandrakesoft.com> 2.0.7-12mdk
1207 - menu entry for web configuration tool.
1208 - merge with rh: xinetd + ssl + pam_stack.
1209 - Added smbadduser rh-bugfix w/o relocation of config-files.
1211 * Mon Oct 2 2000 Frederic Lepied <flepied@mandrakesoft.com> 2.0.7-11mdk
1212 - added build requires on cups-devel and pam-devel.
1214 * Mon Oct 2 2000 Till Kamppeter <till@mandrakesoft.com> 2.0.7-10mdk
1215 - Fixed smb.conf entry for CUPS: "printcap name = lpstat", "lpstats" was
1218 * Mon Sep 25 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-9mdk
1219 - Cosmetic changes to make rpmlint more happy
1221 * Wed Sep 11 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-8mdk
1222 - added linkage to the using_samba book in swat
1224 * Fri Sep 01 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-7mdk
1225 - Added CUPS support to smb.conf
1226 - Added internationalization options to smb.conf [Global]
1228 * Wed Aug 30 2000 Till Kamppeter <till@mandrakesoft.com> 2.0.7-6mdk
1229 - Put "smbspool" to the files to install
1231 * Wed Aug 30 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-5mdk
1232 - Did some cleaning in the patches
1234 * Fri Jul 28 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-4mdk
1235 - relocated man pages from /usr/man to /usr/share/man for compatibility reasons
1237 * Fri Jul 28 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-3mdk
1238 - added make_unicodemap and build of unicode_map.$i in the spec file
1240 * Fri Jul 28 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-2mdk
1241 - renamed /etc/codepage/codepage.$i into /etc/codepage/unicode_map.$i to fix smbmount bug.
1243 * Fri Jul 07 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-1mdk
1246 * Wed Apr 05 2000 Francis Galiegue <fg@mandrakesoft.com> 2.0.6-4mdk
1248 - Titi sucks, does not put versions in changelog
1249 - Fixed groups for -common and -client
1250 - /usr/sbin/samba is no config file
1252 * Thu Mar 23 2000 Thierry Vignaud <tvignaud@mandrakesoft.com>
1253 - fix buggy post install script (pixel)
1255 * Fri Mar 17 2000 Francis Galiegue <francis@mandrakesoft.com> 2.0.6-2mdk
1257 - Changed group according to 7.1 specs
1258 - Some spec file changes
1259 - Let spec-helper do its job
1261 * Thu Nov 25 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
1264 * Tue Nov 2 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
1265 - Merge with rh changes.
1266 - Split in 3 packages.
1268 * Fri Aug 13 1999 Pablo Saratxaga <pablo@@mandrakesoft.com>
1269 - corrected a bug with %post (the $1 parameter is "1" in case of
1270 a first install, not "0". That parameter is the number of packages
1271 of the same name that will exist after running all the steps if nothing
1272 is removed; so it is "1" after first isntall, "2" for a second install
1273 or an upgrade, and "0" for a removal)
1275 * Wed Jul 28 1999 Pablo Saratxaga <pablo@@mandrakesoft.com>
1276 - made smbmnt and smbumount suid root, and only executable by group 'smb'
1277 add to 'smb' group any user that should be allowed to mount/unmount
1278 SMB shared directories
1280 * Fri Jul 23 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
1281 - 2.0.5a (bug security fix).
1283 * Wed Jul 21 1999 Axalon Bloodstone <axalon@linux-mandrake.com>
1285 - cs/da/de/fi/fr/it/tr descriptions/summaries
1287 * Sun Jun 13 1999 Bernhard Rosenkränzer <bero@mandrakesoft.com>
1289 - recompile on a system that works ;)
1291 * Wed Apr 21 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
1292 - Mandrake adaptations.
1295 * Fri Mar 26 1999 Bill Nottingham <notting@redhat.com>
1296 - add a mount.smb to make smb mounting a little easier.
1297 - smb filesystems apparently do not work on alpha. Oops.
1299 * Thu Mar 25 1999 Bill Nottingham <notting@redhat.com>
1300 - always create codepages
1302 * Tue Mar 23 1999 Bill Nottingham <notting@redhat.com>
1305 * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
1306 - auto rebuild in the new build environment (release 3)
1308 * Fri Mar 19 1999 Preston Brown <pbrown@redhat.com>
1309 - updated init script to use graceful restart (not stop/start)
1311 * Tue Mar 9 1999 Bill Nottingham <notting@redhat.com>
1314 * Thu Feb 18 1999 Bill Nottingham <notting@redhat.com>
1317 * Mon Feb 15 1999 Bill Nottingham <notting@redhat.com>
1320 * Tue Feb 9 1999 Bill Nottingham <notting@redhat.com>
1321 - fix bash2 breakage in post script
1323 * Fri Feb 5 1999 Bill Nottingham <notting@redhat.com>
1326 * Mon Oct 12 1998 Cristian Gafton <gafton@redhat.com>
1327 - make sure all binaries are stripped
1329 * Thu Sep 17 1998 Jeff Johnson <jbj@redhat.com>
1330 - update to 1.9.18p10.
1331 - fix %triggerpostun.
1333 * Tue Jul 07 1998 Erik Troan <ewt@redhat.com>
1334 - updated postun triggerscript to check $0
1335 - clear /etc/codepages from %preun instead of %postun
1337 * Mon Jun 08 1998 Erik Troan <ewt@redhat.com>
1338 - made the %postun script a tad less agressive; no reason to remove
1339 the logs or lock file (after all, if the lock file is still there,
1340 samba is still running)
1341 - the %postun and %preun should only exectute if this is the final
1343 - migrated %triggerpostun from Red Hat's samba package to work around
1344 packaging problems in some Red Hat samba releases
1346 * Sun Apr 26 1998 John H Terpstra <jht@samba.anu.edu.au>
1347 - minor tidy up in preparation for release of 1.9.18p5
1348 - added findsmb utility from SGI package
1350 * Wed Mar 18 1998 John H Terpstra <jht@samba.anu.edu.au>
1351 - Updated version and codepage info.
1352 - Release to test name resolve order
1354 * Sat Jan 24 1998 John H Terpstra <jht@samba.anu.edu.au>
1355 - Many optimisations (some suggested by Manoj Kasichainula <manojk@io.com>
1356 - Use of chkconfig in place of individual symlinks to /etc/rc.d/init/smb
1357 - Compounded make line
1358 - Updated smb.init restart mechanism
1359 - Use compound mkdir -p line instead of individual calls to mkdir
1360 - Fixed smb.conf file path for log files
1361 - Fixed smb.conf file path for incoming smb print spool directory
1362 - Added a number of options to smb.conf file
1363 - Added smbadduser command (missed from all previous RPMs) - Doooh!
1364 - Added smbuser file and smb.conf file updates for username map