BUG 891 & 949: Fedora Packaging Fixes
[ira/wip.git] / packaging / Fedora / samba.spec.tmpl
1 %define initdir %{_sysconfdir}/rc.d/init.d
2 %define auth %(test -f /etc/pam.d/system-auth && echo /etc/pam.d/system-auth || echo)
3
4 Summary: The Samba SMB server.
5 Name: samba
6 Version: PVERSION
7 Release: PRELEASE
8 License: GNU GPL Version 2
9 Group: System Environment/Daemons
10 URL: http://www.samba.org/
11
12 Source: ftp://www.samba.org/pub/samba/%{name}-%{version}.tar.bz2
13
14 # Red Hat specific replacement-files
15 Source1: samba.log
16 Source2: samba.xinetd
17 Source3: swat.desktop
18 Source4: samba.sysconfig
19 Source5: smb.init
20 Source6: samba.pamd
21 Source7: smbprint
22 Source8: winbind.init
23
24 # Don't depend on Net::LDAP
25 Source999: filter-requires-samba.sh
26
27 # generic patches
28
29 Requires: pam >= 0.64 %{auth} samba-common = %{version} 
30 Requires: logrotate >= 3.4 initscripts >= 5.54-1 
31 BuildRoot: %{_tmppath}/%{name}-%{version}-root
32 Prereq: /sbin/chkconfig /bin/mktemp /usr/bin/killall
33 Prereq: fileutils sed /etc/init.d 
34 BuildRequires: pam-devel, readline-devel, ncurses-devel, fileutils, libacl-devel, openldap-devel, krb5-devel
35
36
37 # Working around perl dependency problem from docs
38 %define __perl_requires %{SOURCE999}
39
40 %description
41 Samba is the protocol by which a lot of PC-related machines share
42 files, printers, and other information (such as lists of available
43 files and printers). The Windows NT, OS/2, and Linux operating systems
44 support this natively, and add-on packages can enable the same thing
45 for DOS, Windows, VMS, UNIX of all kinds, MVS, and more. This package
46 provides an SMB server that can be used to provide network services to
47 SMB (sometimes called "Lan Manager") clients. Samba uses NetBIOS over
48 TCP/IP (NetBT) protocols and does NOT need the NetBEUI (Microsoft Raw
49 NetBIOS frame) protocol.
50
51 %package client
52 Summary: Samba (SMB) client programs.
53 Group: Applications/System
54 Requires: samba-common = %{version}
55 Obsoletes: smbfs
56
57 %description client
58 The samba-client package provides some SMB clients to compliment the
59 built-in SMB filesystem in Linux. These clients allow access of SMB
60 shares and printing to SMB printers.
61
62 %package common
63 Summary: Files used by both Samba servers and clients.
64 Group: Applications/System
65
66 %description common
67 Samba-common provides files necessary for both the server and client
68 packages of Samba.
69
70 %package swat
71 Summary: The Samba SMB server configuration program.
72 Group: Applications/System
73 Requires: samba = %{version} xinetd
74
75 %description swat
76 The samba-swat package includes the new SWAT (Samba Web Administration
77 Tool), for remotely managing Samba's smb.conf file using your favorite
78 Web browser.
79
80 %prep
81 %setup -q
82
83 # copy Red Hat specific scripts
84 cp %{SOURCE5} packaging/Fedora/
85 cp %{SOURCE6} packaging/Fedora/
86 cp %{SOURCE7} packaging/Fedora/
87 cp %{SOURCE8} packaging/Fedora/winbind.init
88
89 %build
90
91 cd source
92 %ifarch i386 sparc
93 RPM_OPT_FLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64"
94 %endif
95 %ifarch ia64
96 libtoolize --copy --force     # get it to recognize IA-64
97 autoheader                                               
98 autoconf
99 EXTRA="-D_LARGEFILE64_SOURCE"
100 %endif
101
102 ## run autogen if missing the configure script
103 if [ ! -f "configure" ]; then
104         ./autogen.sh
105 fi
106
107 CFLAGS="$RPM_OPT_FLAGS" ./configure \
108         --prefix=%{_prefix} \
109         --localstatedir=/var \
110         --sysconfdir=/etc \
111         --with-privatedir=%{_sysconfdir}/samba \
112         --with-fhs \
113         --with-quotas \
114         --with-smbmount \
115         --with-pam \
116         --with-pam_smbpass \
117         --with-syslog \
118         --with-utmp \
119         --with-sambabook=%{_datadir}/swat/using_samba \
120         --with-swatdir=%{_datadir}/swat \
121         --with-libsmbclient \
122         --with-acl-support 
123 make showlayout
124 make proto
125 make %{?_smp_mflags} all nsswitch/libnss_wins.so debug2html 
126
127
128 %install
129 rm -rf $RPM_BUILD_ROOT
130
131 mkdir -p $RPM_BUILD_ROOT/sbin
132 mkdir -p $RPM_BUILD_ROOT/usr/{sbin,bin}
133 mkdir -p $RPM_BUILD_ROOT/%{initdir}
134 mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/{pam.d,logrotate.d}
135 mkdir -p $RPM_BUILD_ROOT/var/{log,spool,lib}/samba
136 mkdir -p $RPM_BUILD_ROOT/%{_datadir}/swat/using_samba
137 mkdir -p $RPM_BUILD_ROOT/%{_datadir}/samba/codepages 
138
139 cd source
140
141 make DESTDIR=$RPM_BUILD_ROOT \
142         install
143
144 cd ..
145
146 # Install other stuff
147 install -m644 packaging/RedHat/smb.conf $RPM_BUILD_ROOT%{_sysconfdir}/samba/smb.conf
148 install -m755 source/script/mksmbpasswd.sh $RPM_BUILD_ROOT%{_bindir}
149 install -m644 packaging/RedHat/smbusers $RPM_BUILD_ROOT/etc/samba/smbusers
150 install -m755 packaging/RedHat/smbprint $RPM_BUILD_ROOT%{_bindir}
151 install -m755 packaging/RedHat/smb.init $RPM_BUILD_ROOT%{initdir}/smb
152 install -m755 packaging/RedHat/winbind.init $RPM_BUILD_ROOT%{initdir}/winbind
153 ln -s ../..%{initdir}/smb  $RPM_BUILD_ROOT%{_sbindir}/samba
154 install -m644 packaging/RedHat/samba.pamd.stack $RPM_BUILD_ROOT/etc/pam.d/samba
155 install -m644 $RPM_SOURCE_DIR/samba.log $RPM_BUILD_ROOT/etc/logrotate.d/samba
156 ln -s ../usr/bin/smbmount $RPM_BUILD_ROOT/sbin/mount.smb
157 ## Samba's Makefile is breaking this currently.  Remove it and set our own
158 /bin/rm -f $RPM_BUILD_ROOT/sbin/mount.smbfs
159 ln -s ../usr/bin/smbmount $RPM_BUILD_ROOT/sbin/mount.smbfs
160 echo 127.0.0.1 localhost > $RPM_BUILD_ROOT%{_sysconfdir}/samba/lmhosts
161
162 # pam_smbpass
163 mkdir -p $RPM_BUILD_ROOT/%{_lib}/security
164 mv source/bin/pam_smbpass.so $RPM_BUILD_ROOT/%{_lib}/security/pam_smbpass.so
165
166 # winbind
167 mkdir -p $RPM_BUILD_ROOT/%{_lib}/security
168 install -m 755 source/nsswitch/pam_winbind.so $RPM_BUILD_ROOT/%{_lib}/security/pam_winbind.so
169 install -m 755 source/nsswitch/libnss_winbind.so $RPM_BUILD_ROOT/%{_lib}/libnss_winbind.so
170 install -m 755 source/nsswitch/libnss_wins.so $RPM_BUILD_ROOT/%{_lib}/libnss_wins.so
171 ( cd $RPM_BUILD_ROOT/%{_lib}; 
172   ln -sf libnss_winbind.so  libnss_winbind.so.2;
173   ln -sf libnss_wins.so  libnss_wins.so.2 )
174
175 # libsmbclient
176
177 # make install puts libsmbclient.so in the wrong place on x86_64
178 rm -f $RPM_BUILD_ROOT/usr/lib || true
179 mkdir -p $RPM_BUILD_ROOT%{_libdir} $RPM_BUILD_ROOT%{_includedir}
180 install -m 644 source/bin/libsmbclient.so $RPM_BUILD_ROOT%{_libdir}/libsmbclient.so
181 install -m 644 source/bin/libsmbclient.a $RPM_BUILD_ROOT%{_libdir}/libsmbclient.a
182 install -m 644 source/include/libsmbclient.h $RPM_BUILD_ROOT%{_includedir}
183
184 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d
185 install -m644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d/swat
186
187 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
188 install -m644 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/samba
189
190 ##
191 ## Clean out man pages for tools not installed here
192 ##
193 rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/editreg.1*
194 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/log2pcap.1*
195 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/smbsh.1*
196 rm -f $RPM_BUILD_ROOT/%{_mandir}/man8/mount.cifs.8*
197
198 %clean
199 rm -rf $RPM_BUILD_ROOT
200
201 %post
202 /sbin/chkconfig --add smb
203
204 %preun
205 if [ $1 = 0 ] ; then
206     /sbin/chkconfig --del smb
207     rm -rf /var/log/samba/* /var/cache/samba/*
208     /sbin/service smb stop >/dev/null 2>&1
209 fi
210 exit 0
211
212 %postun
213 if [ "$1" -ge "1" ]; then
214         %{initdir}/smb condrestart >/dev/null 2>&1
215 fi      
216
217
218 %post swat
219 # Add swat entry to /etc/services if not already there.
220 if [ ! "`grep ^\s**swat /etc/services`" ]; then
221         echo 'swat        901/tcp     # Add swat service used via inetd' >> /etc/services
222 fi
223
224 %post common
225 /sbin/chkconfig --add winbind
226 /sbin/ldconfig
227
228 %preun common
229 if [ $1 = 0 ] ; then
230     /sbin/chkconfig --del winbind
231     /sbin/service winbind stop >/dev/null 2>&1
232 fi
233 exit 0
234
235 %postun common -p /sbin/ldconfig
236
237 %triggerpostun -- samba < 1.9.18p7
238 if [ $1 != 0 ]; then
239     /sbin/chkconfig --add smb
240 fi
241
242 %triggerpostun -- samba < 2.0.5a-3
243 if [ $1 != 0 ]; then
244     [ ! -d /var/lock/samba ] && mkdir -m 0755 /var/lock/samba
245     [ ! -d /var/spool/samba ] && mkdir -m 1777 /var/spool/samba
246     chmod 644 /etc/services
247     [ -f /etc/inetd.conf ] && chmod 644 /etc/inetd.conf
248 fi
249
250 %files
251 %defattr(-,root,root)
252 %doc README COPYING Manifest 
253 %doc WHATSNEW.txt Roadmap
254 %doc docs
255 %doc examples/autofs examples/LDAP examples/libsmbclient examples/misc examples/printer-accounting
256 %doc examples/printing
257
258 %attr(755,root,root) /%{_lib}/security/pam_smbpass.so
259 %{_sbindir}/smbd
260 %{_sbindir}/nmbd
261 # %{_bindir}/make_unicodemap
262 %{_bindir}/mksmbpasswd.sh
263 %{_bindir}/smbcontrol
264 %{_bindir}/smbstatus
265 # %{_bindir}/smbadduser
266 %{_bindir}/tdbbackup
267 %config(noreplace) %{_sysconfdir}/sysconfig/samba
268 %config(noreplace) %{_sysconfdir}/samba/smbusers
269 %attr(755,root,root) %config %{initdir}/smb
270 %config(noreplace) %{_sysconfdir}/logrotate.d/samba
271 %config(noreplace) %{_sysconfdir}/pam.d/samba
272 # %{_mandir}/man1/make_unicodemap.1*
273 %{_mandir}/man1/smbcontrol.1*
274 %{_mandir}/man1/smbstatus.1*
275 %{_mandir}/man5/smbpasswd.5*
276 %{_mandir}/man7/samba.7*
277 %{_mandir}/man8/nmbd.8*
278 %{_mandir}/man8/pdbedit.8*
279 %{_mandir}/man8/smbd.8*
280 %{_mandir}/man8/tdbbackup.8*
281 #%{_mandir}/ja/man1/smbstatus.1*
282 #%{_mandir}/ja/man5/smbpasswd.5*
283 #%{_mandir}/ja/man7/samba.7*
284 #%{_mandir}/ja/man8/smbd.8*
285 #%{_mandir}/ja/man8/nmbd.8*
286 %{_libdir}/samba/vfs
287
288 %attr(0700,root,root) %dir /var/log/samba
289 %attr(1777,root,root) %dir /var/spool/samba
290
291 %files swat
292 %defattr(-,root,root)
293 %config(noreplace) %{_sysconfdir}/xinetd.d/swat
294 %{_datadir}/swat
295 %{_sbindir}/swat
296 %{_mandir}/man8/swat.8*
297 #%{_mandir}/ja/man8/swat.8*
298 %attr(755,root,root) %{_libdir}/samba/*.msg
299
300 %files client
301 %defattr(-,root,root)
302 /sbin/mount.smb
303 /sbin/mount.smbfs
304 %{_libdir}/samba/lowcase.dat
305 %{_libdir}/samba/upcase.dat
306 %{_libdir}/samba/valid.dat
307 %{_bindir}/rpcclient
308 %{_bindir}/smbcacls
309 %{_bindir}/smbmount
310 %{_bindir}/smbmnt
311 %{_bindir}/smbumount
312 %{_bindir}/findsmb
313 %{_bindir}/tdbdump
314 %{_mandir}/man8/smbmnt.8*
315 %{_mandir}/man8/smbmount.8*
316 %{_mandir}/man8/smbumount.8*
317 %{_mandir}/man8/smbspool.8*
318 %{_bindir}/nmblookup
319 %{_bindir}/smbclient
320 %{_bindir}/smbprint
321 %{_bindir}/smbspool
322 %{_bindir}/smbtar
323 %{_bindir}/net
324 %{_bindir}/smbtree
325 %{_mandir}/man1/findsmb.1*
326 %{_mandir}/man1/nmblookup.1*
327 %{_mandir}/man1/rpcclient.1*
328 %{_mandir}/man1/smbcacls.1*
329 %{_mandir}/man1/smbclient.1*
330 %{_mandir}/man1/smbtar.1*
331 %{_mandir}/man1/smbtree.1*
332 %{_mandir}/man8/net.8*
333 #%{_mandir}/ja/man1/smbtar.1*
334 #%{_mandir}/ja/man1/smbclient.1*
335 #%{_mandir}/ja/man1/nmblookup.1*
336
337 %files common
338 %defattr(-,root,root)
339 /%{_lib}/libnss_wins.so*
340 /%{_lib}/libnss_winbind.so*
341 /%{_lib}/security/pam_winbind.so
342 %{_libdir}/libsmbclient.a
343 %{_libdir}/libsmbclient.so
344 %{_libdir}/samba/charset/CP*.so
345 %{_includedir}/libsmbclient.h
346 %{_bindir}/testparm
347 %{_bindir}/testprns
348 %{_bindir}/smbpasswd
349 # %{_bindir}/make_printerdef
350 %{_bindir}/wbinfo
351 # %{_bindir}/editreg
352 %{_bindir}/ntlm_auth
353 %{_bindir}/pdbedit
354 %{_bindir}/profiles
355 %{_bindir}/smbcquotas
356 #%{_bindir}/vfstest
357 %{_sbindir}/winbindd
358 %config(noreplace) %{_sysconfdir}/samba/smb.conf
359 %config(noreplace) %{_sysconfdir}/samba/lmhosts
360 %dir %{_datadir}/samba
361 %dir %{_datadir}/samba/codepages
362 %dir %{_sysconfdir}/samba
363 %{initdir}/winbind
364 # %{_datadir}/samba/codepages/*
365 # %{_mandir}/man1/make_smbcodepage.1*
366 %{_mandir}/man1/ntlm_auth.1*
367 %{_mandir}/man1/profiles.1*
368 %{_mandir}/man1/smbcquotas.1*
369 %{_mandir}/man1/testparm.1*
370 %{_mandir}/man1/testprns.1*
371 %{_mandir}/man5/smb.conf.5*
372 %{_mandir}/man5/lmhosts.5*
373 %{_mandir}/man8/smbpasswd.8*
374 %{_mandir}/man1/wbinfo.1*
375 %{_mandir}/man8/winbindd.8*
376 %{_mandir}/man1/vfstest.1*
377
378 # #%lang(ja) %{_mandir}/ja/man1/make_smbcodepage.1*
379 #%lang(ja) %{_mandir}/ja/man1/testparm.1*
380 #%lang(ja) %{_mandir}/ja/man1/testprns.1*
381 #%lang(ja) %{_mandir}/ja/man5/smb.conf.5*
382 #%lang(ja) %{_mandir}/ja/man5/lmhosts.5*
383 #%lang(ja) %{_mandir}/ja/man8/smbpasswd.8*
384
385 %changelog
386 * Thu Sep 25 2003 Jay Fenlason <fenlason@redhat.com> 3.0.0-15
387 - New 3.0.0 final release
388 - merge nmbd-netbiosname and testparm patches from 3E branch
389 - updated the -logfiles patch to work against 3.0.0
390 - updated the pie patch
391 - update the VERSION file during build
392 - use make -j if avaliable
393 - merge the winbindd_privileged change from 3E
394 - merge the "rm /usr/lib" patch that allows Samba to build on 64-bit
395   platforms despite the broken Makefile
396
397 * Mon Aug 18 2003 Jay Fenlason <fenlason@redhat.com>
398 - Merge from samba-3E-branch after samba-3.0.0rc1 was released
399
400 * Wed Jul 23 2003 Jay Fenlason <fenlason@redhat.com> 3.0.0-3beta3
401 - Merge from 3.0.0-2beta3.3E
402 - (Correct log file names (#100981).)
403 - (Fix pidfile directory in samab.log)
404 - (Remove obsolete samba-3.0.0beta2.tar.bz2.md5 file)
405 - (Move libsmbclient to the -common package (#99449))
406
407 * Tue Jun 22 2003 Nalin Dahyabhai <nalin@redhat.com> 2.2.8a-4
408 - rebuild
409
410 * Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
411 - rebuilt
412
413 * Wed May 28 2003 Jay Fenlason <fenlason@redhat.com> 2.2.8a-2
414 - add libsmbclient.so for gnome-vfs-extras
415 - Edit specfile to specify /var/run for pid files
416 - Move /tmp/.winbindd/socket to /var/run/winbindd/socket
417
418 * Wed May 14 2003 Florian La Roche <Florian.LaRoche@redhat.de>
419 - add proper ldconfig calls
420
421 * Thu Apr 24 2003 Jay Fenlason <fenlason@redhat.com> 2.2.8a-1
422 - upgrade to 2.2.8a
423 - remove old .md5 files
424 - add "pid directory = /var/run" to the smb.conf file.  Fixes #88495
425 - Patch from jra@dp.samba.org to fix a delete-on-close regression
426
427 * Mon Mar 24 2003 Jay Fenlason <fenlason@redhat.com> 2.2.8-0
428 - Upgrade to 2.2.8
429 - removed commented out patches.
430 - removed old patches and .md5 files from the repository.
431 - remove duplicate /sbin/chkconfig --del winbind which causes
432   warnings when removing samba.
433 - Fixed minor bug in smbprint that causes it to fail when called with
434   more than 10 parameters: the accounting file (and spool directory
435   derived from it) were being set wrong due to missing {}.  This closes
436   bug #86473.
437 - updated smb.conf patch, includes new defaults to close bug #84822.
438
439 * Mon Feb 24 2003 Elliot Lee <sopwith@redhat.com>
440 - rebuilt
441
442 * Thu Feb 20 2003 Jonathan Blandford <jrb@redhat.com> 2.2.7a-5
443 - remove swat.desktop file
444
445 * Thu Feb 20 2003 Nalin Dahyabhai <nalin@redhat.com> 2.2.7a-4
446 - relink libnss_wins.so with SHLD="%{__cc} -lnsl" to force libnss_wins.so to
447   link with libnsl, avoiding unresolved symbol errors on functions in libnsl
448
449 * Mon Feb 10 2003 Jay Fenlason <fenlason@redhat.com> 2.2.7a-3
450 - edited spec file to put .so files in the correct directories
451   on 64-bit platforms that have 32-bit compatability issues
452   (sparc64, x86_64, etc).  This fixes bugzilla #83782.
453 - Added samba-2.2.7a-error.patch from twaugh.  This fixes
454   bugzilla #82454.
455
456 * Wed Jan 22 2003 Tim Powers <timp@redhat.com>
457 - rebuilt
458
459 * Thu Jan  9 2003 Jay Fenlason <fenlason@redhat.com> 2.2.7a-1
460 - Update to 2.2.7a
461 - Change default printing system to CUPS
462 - Turn on pam_smbpass
463 - Turn on msdfs
464
465 * Sat Jan  4 2003 Jeff Johnson <jbj@redhat.com> 2.2.7-5
466 - use internal dep generator.
467
468 * Sat Dec 14 2002 Tim Powers <timp@redhat.com> 2.2.7-4
469 - don't use rpms internal dep generator
470
471 * Mon Dec 02 2002 Elliot Lee <sopwith@redhat.com> 2.2.7-3
472 - Fix missing doc files.
473 - Fix multilib issues
474
475 * Wed Nov 20 2002 Bill Nottingham <notting@redhat.com> 2.2.7-2
476 - update to 2.2.7
477 - add patch for LFS in smbclient (<tcallawa@redhat.com>)
478
479 * Wed Aug 28 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.5-10
480 - logrotate fixes (#65007)
481
482 * Mon Aug 26 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.5-9
483 - /usr/lib was used in place of %%{_libdir} in three locations (#72554)
484
485 * Mon Aug  5 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.5-8
486 - Initscript fix (#70720)
487
488 * Fri Jul 26 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.5-7
489 - Enable VFS support and compile the "recycling" module (#69796)
490 - more selective includes of the examples dir 
491
492 * Tue Jul 23 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.5-6
493 - Fix the lpq parser for better handling of LPRng systems (#69352)
494
495 * Tue Jul 23 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.5-5
496 - desktop file fixes (#69505)
497
498 * Wed Jun 26 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.5-4
499 - Enable ACLs
500
501 * Tue Jun 25 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.5-3
502 - Make it not depend on Net::LDAP - those are doc files and examples
503
504 * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
505 - automated rebuild
506
507 * Thu Jun 20 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.5-1
508 - 2.2.5
509
510 * Fri Jun 14 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.4-5
511 - Move the post/preun of winbind into the -common subpackage, 
512   where the script is (#66128)
513
514 * Tue Jun  4 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.4-4
515 - Fix pidfile locations so it runs properly again (2.2.4 
516   added a new directtive - #65007)
517
518 * Thu May 23 2002 Tim Powers <timp@redhat.com>
519 - automated rebuild
520
521 * Tue May 14 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.4-2
522 - Fix #64804
523
524 * Thu May  9 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.4-1
525 - 2.2.4
526 - Removed some zero-length and CVS internal files
527 - Make it build
528
529 * Wed Apr 10 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.3a-6
530 - Don't use /etc/samba.d in smbadduser, it should be /etc/samba
531
532 * Thu Apr  4 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.3a-5
533 - Add libsmbclient.a w/headerfile for KDE (#62202)
534
535 * Tue Mar 26 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.3a-4
536 - Make the logrotate script look the correct place for the pid files 
537
538 * Thu Mar 14 2002 Nalin Dahyabhai <nalin@redhat.com> 2.2.3a-3
539 - include interfaces.o in pam_smbpass.so, which needs symbols from interfaces.o
540   (patch posted to samba-list by Ilia Chipitsine)
541
542 * Thu Feb 21 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.3a-2
543 - Rebuild
544
545 * Thu Feb  7 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.3a-1
546 - 2.2.3a
547
548 * Mon Feb  4 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.3-1
549 - 2.2.3
550
551 * Thu Nov 29 2001 Trond Eivind Glomsrød <teg@redhat.com> 2.2.2-8
552 - New pam configuration file for samba
553
554 * Tue Nov 27 2001 Trond Eivind Glomsrød <teg@redhat.com> 2.2.2-7
555 - Enable PAM session controll and password sync
556
557 * Tue Nov 13 2001 Trond Eivind Glomsrød <teg@redhat.com> 2.2.2-6
558 - Move winbind files to samba-common. Add separate initscript for
559   winbind 
560 - Fixes for winbind - protect global variables with mutex, use
561   more secure getenv
562
563 * Thu Nov  8 2001 Trond Eivind Glomsrød <teg@redhat.com> 2.2.2-5
564 - Teach smbadduser about "getent passwd" 
565 - Fix more pid-file references
566 - Add (conditional) winbindd startup to the initscript, configured in
567   /etc/sysconfig/samba
568
569 * Wed Nov  7 2001 Trond Eivind Glomsrød <teg@redhat.com> 2.2.2-4
570 - Fix pid-file reference in logrotate script
571 - include pam and nss modules for winbind
572
573 * Mon Nov  5 2001 Trond Eivind Glomsrød <teg@redhat.com> 2.2.2-3
574 - Add "--with-utmp" to configure options (#55372)
575 - Include winbind, pam_smbpass.so, rpcclient and smbcacls
576 - start using /var/cache/samba, we need to keep state and there is
577   more than just locks involved
578
579 * Sat Nov 03 2001 Florian La Roche <Florian.LaRoche@redhat.de> 2.2.2-2
580 - add "reload" to the usage string in the startup script
581
582 * Mon Oct 15 2001 Trond Eivind Glomsrød <teg@redhat.com> 2.2.2-1
583 - 2.2.2
584
585 * Tue Sep 18 2001 Trond Eivind Glomsrød <teg@redhat.com> 2.2.1a-5
586 - Add patch from Jeremy Allison to fix IA64 alignment problems (#51497)
587
588 * Mon Aug 13 2001 Trond Eivind Glomsrød <teg@redhat.com>
589 - Don't include smbpasswd in samba, it's in samba-common (#51598)
590 - Add a disabled "obey pam restrictions" statement - it's not
591   active, as we use encrypted passwords, but if the admin turns
592   encrypted passwords off the choice is available. (#31351)
593
594 * Wed Aug  8 2001 Trond Eivind Glomsrød <teg@redhat.com>
595 - Use /var/cache/samba instead of /var/lock/samba 
596 - Remove "domain controller" keyword from smb.conf, it's 
597   deprecated (from #13704)
598 - Sync some examples with smb.conf.default
599 - Fix password synchronization (#16987)
600
601 * Fri Jul 20 2001 Trond Eivind Glomsrød <teg@redhat.com>
602 - Tweaks of BuildRequires (#49581)
603
604 * Wed Jul 11 2001 Trond Eivind Glomsrød <teg@redhat.com>
605 - 2.2.1a bugfix release
606
607 * Tue Jul 10 2001 Trond Eivind Glomsrød <teg@redhat.com>
608 - 2.2.1, which should work better for XP
609
610 * Sat Jun 23 2001 Trond Eivind Glomsrød <teg@redhat.com>
611 - 2.2.0a security fix
612 - Mark lograte and pam configuration files as noreplace
613
614 * Fri Jun 22 2001 Trond Eivind Glomsrød <teg@redhat.com>
615 - Add the /etc/samba directory to samba-common
616
617 * Thu Jun 21 2001 Trond Eivind Glomsrød <teg@redhat.com>
618 - Add improvements to the smb.conf as suggested in #16931
619
620 * Tue Jun 19 2001 Trond Eivind Glomsrød <teg@redhat.com>
621   (these changes are from the non-head version)
622 - Don't include /usr/sbin/samba, it's the same as the initscript
623 - unset TMPDIR, as samba can't write into a TMPDIR owned 
624   by root (#41193)
625 - Add pidfile: lines for smbd and nmbd and a config: line
626   in the initscript  (#15343)
627 - don't use make -j
628 - explicitly include /usr/share/samba, not just the files in it
629
630 * Tue Jun 19 2001 Bill Nottingham <notting@redhat.com>
631 - mount.smb/mount.smbfs go in /sbin, *not* %%{_sbindir}
632
633 * Fri Jun  8 2001 Preston Brown <pbrown@redhat.com>
634 - enable encypted passwords by default
635
636 * Thu Jun  7 2001 Helge Deller <hdeller@redhat.de> 
637 - build as 2.2.0-1 release
638 - skip the documentation-directories docbook, manpages and yodldocs
639 - don't include *.sgml documentation in package
640 - moved codepage-directory to /usr/share/samba/codepages
641 - make it compile with glibc-2.2.3-10 and kernel-headers-2.4.2-2   
642
643 * Mon May 21 2001 Helge Deller <hdeller@redhat.de> 
644 - updated to samba 2.2.0
645 - moved codepages to %{_datadir}/samba/codepages
646 - use all available CPUs for building rpm packages
647 - use %{_xxx} defines at most places in spec-file
648 - "License:" replaces "Copyright:"
649 - dropped excludearch sparc
650 - de-activated japanese patches 100 and 200 for now 
651   (they need to be fixed and tested wth 2.2.0)
652 - separated swat.desktop file from spec-file and added
653   german translations
654 - moved /etc/sysconfig/samba to a separate source-file
655 - use htmlview instead of direct call to netscape in 
656   swat.desktop-file
657
658 * Mon May  7 2001 Bill Nottingham <notting@redhat.com>
659 - device-remove security fix again (<tridge@samba.org>)
660
661 * Fri Apr 20 2001 Bill Nottingham <notting@redhat.com>
662 - fix tempfile security problems, officially (<tridge@samba.org>)
663 - update to 2.0.8
664
665 * Sun Apr  8 2001 Bill Nottingham <notting@redhat.com>
666 - turn of SSL, kerberos
667
668 * Thu Apr  5 2001 Bill Nottingham <notting@redhat.com>
669 - fix tempfile security problems (patch from <Marcus.Meissner@caldera.de>)
670
671 * Thu Mar 29 2001 Bill Nottingham <notting@redhat.com>
672 - fix quota support, and quotas with the 2.4 kernel (#31362, #33915)
673
674 * Mon Mar 26 2001 Nalin Dahyabhai <nalin@redhat.com>
675 - tweak the PAM code some more to try to do a setcred() after initgroups()
676 - pull in all of the optflags on i386 and sparc
677 - don't explicitly enable Kerberos support -- it's only used for password
678   checking, and if PAM is enabled it's a no-op anyway
679
680 * Mon Mar  5 2001 Tim Waugh <twaugh@redhat.com>
681 - exit successfully from preun script (bug #30644).
682
683 * Fri Mar  2 2001 Nalin Dahyabhai <nalin@redhat.com>
684 - rebuild in new environment
685
686 * Wed Feb 14 2001 Bill Nottingham <notting@redhat.com>
687 - updated japanese stuff (#27683)
688
689 * Fri Feb  9 2001 Bill Nottingham <notting@redhat.com>
690 - fix trigger (#26859)
691
692 * Wed Feb  7 2001 Bill Nottingham <notting@redhat.com>
693 - add i18n support, japanese patch (#26253)
694
695 * Wed Feb  7 2001 Trond Eivind Glomsrød <teg@redhat.com>
696 - i18n improvements in initscript (#26537)
697
698 * Wed Jan 31 2001 Bill Nottingham <notting@redhat.com>
699 - put smbpasswd in samba-common (#25429)
700
701 * Wed Jan 24 2001 Bill Nottingham <notting@redhat.com>
702 - new i18n stuff
703
704 * Sun Jan 21 2001 Bill Nottingham <notting@redhat.com>
705 - rebuild
706
707 * Thu Jan 18 2001 Bill Nottingham <notting@redhat.com>
708 - i18n-ize initscript
709 - add a sysconfig file for daemon options (#23550)
710 - clarify smbpasswd man page (#23370)
711 - build with LFS support (#22388)
712 - avoid extraneous pam error messages (#10666)
713 - add Urban Widmark's bug fixes for smbmount (#19623)
714 - fix setgid directory modes (#11911)
715 - split swat into subpackage (#19706)
716
717 * Wed Oct 25 2000 Nalin Dahyabhai <nalin@redhat.com>
718 - set a default CA certificate path in smb.conf (#19010)
719 - require openssl >= 0.9.5a-20 to make sure we have a ca-bundle.crt file
720
721 * Mon Oct 16 2000 Bill Nottingham <notting@redhat.com>
722 - fix swat only_from line (#18726, others)
723 - fix attempt to write outside buildroot on install (#17943)
724
725 * Mon Aug 14 2000 Bill Nottingham <notting@redhat.com>
726 - add smbspool back in (#15827)
727 - fix absolute symlinks (#16125)
728
729 * Sun Aug 6 2000 Philipp Knirsch <pknirsch@redhat.com>
730 - bugfix for smbadduser script (#15148)
731
732 * Mon Jul 31 2000 Matt Wilson <msw@redhat.com>
733 - patch configure.ing (patch11) to disable cups test
734 - turn off swat by default
735
736 * Fri Jul 28 2000 Bill Nottingham <notting@redhat.com>
737 - fix condrestart stuff
738
739 * Fri Jul 21 2000 Bill Nottingham <notting@redhat.com>
740 - add copytruncate to logrotate file (#14360)
741 - fix init script (#13708)
742
743 * Sat Jul 15 2000 Bill Nottingham <notting@redhat.com>
744 - move initscript back
745 - remove 'Using Samba' book from %%doc 
746 - move stuff to /etc/samba (#13708)
747 - default configuration tweaks (#13704)
748 - some logrotate tweaks
749
750 * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
751 - automatic rebuild
752
753 * Tue Jul 11 2000 Bill Nottingham <notting@redhat.com>
754 - fix logrotate script (#13698)
755
756 * Thu Jul  6 2000 Bill Nottingham <notting@redhat.com>
757 - fix initscripts req (prereq /etc/init.d)
758
759 * Wed Jul 5 2000 Than Ngo <than@redhat.de>
760 - add initdir macro to handle the initscript directory
761 - add a new macro to handle /etc/pam.d/system-auth
762
763 * Thu Jun 29 2000 Nalin Dahyabhai <nalin@redhat.com>
764 - enable Kerberos 5 and SSL support
765 - patch for duplicate profile.h headers
766
767 * Thu Jun 29 2000 Bill Nottingham <notting@redhat.com>
768 - fix init script
769
770 * Tue Jun 27 2000 Bill Nottingham <notting@redhat.com>
771 - rename samba logs (#11606)
772
773 * Mon Jun 26 2000 Bill Nottingham <notting@redhat.com>
774 - initscript munging
775
776 * Fri Jun 16 2000 Bill Nottingham <notting@redhat.com>
777 - configure the swat stuff usefully
778 - re-integrate some specfile tweaks that got lost somewhere
779
780 * Thu Jun 15 2000 Bill Nottingham <notting@redhat.com>
781 - rebuild to get rid of cups dependency
782
783 * Wed Jun 14 2000 Nalin Dahyabhai <nalin@redhat.com>
784 - tweak logrotate configurations to use the PID file in /var/lock/samba
785
786 * Sun Jun 11 2000 Bill Nottingham <notting@redhat.com>
787 - rebuild in new environment
788
789 * Thu Jun  1 2000 Nalin Dahyabhai <nalin@redhat.com>
790 - change PAM setup to use system-auth
791
792 * Mon May  8 2000 Bill Nottingham <notting@redhat.com>
793 - fixes for ia64
794
795 * Sat May  6 2000 Bill Nottingham <notting@redhat.com>
796 - switch to %%configure
797
798 * Wed Apr 26 2000 Nils Philippsen <nils@redhat.de>
799 - version 2.0.7
800
801 * Sun Mar 26 2000 Florian La Roche <Florian.LaRoche@redhat.com>
802 - simplify preun
803
804 * Thu Mar 16 2000 Bill Nottingham <notting@redhat.com>
805 - fix yp_get_default_domain in autoconf
806 - only link against readline for smbclient
807 - fix log rotation (#9909)
808
809 * Fri Feb 25 2000 Bill Nottingham <notting@redhat.com>
810 - fix trigger, again.
811
812 * Mon Feb  7 2000 Bill Nottingham <notting@redhat.com>
813 - fix trigger.
814
815 * Fri Feb  4 2000 Bill Nottingham <notting@redhat.com>
816 - turn on quota support
817
818 * Mon Jan 31 2000 Cristian Gafton <gafton@redhat.com>
819 - rebuild to fox dependencies
820 - man pages are compressed
821
822 * Fri Jan 21 2000 Bill Nottingham <notting@redhat.com>
823 - munge post scripts slightly
824
825 * Wed Jan 19 2000 Bill Nottingham <notting@redhat.com>
826 - turn on mmap again. Wheee.
827 - ship smbmount on alpha
828
829 * Mon Dec  6 1999 Bill Nottingham <notting@redhat.com>
830 - turn off mmap. ;)
831
832 * Wed Dec  1 1999 Bill Nottingham <notting@redhat.com>
833 - change /var/log/samba to 0700
834 - turn on mmap support
835
836 * Thu Nov 11 1999 Bill Nottingham <notting@redhat.com>
837 - update to 2.0.6
838
839 * Fri Oct 29 1999 Bill Nottingham <notting@redhat.com>
840 - add a %defattr for -common
841
842 * Tue Oct  5 1999 Bill Nottingham <notting@redhat.com>
843 - shift some files into -client
844 - remove /home/samba from package.
845
846 * Tue Sep 28 1999 Bill Nottingham <notting@redhat.com>
847 - initscript oopsie. killproc <name> -HUP, not other way around.
848
849 * Sat Sep 26 1999 Bill Nottingham <notting@redhat.com>
850 - script cleanups. Again.
851
852 * Wed Sep 22 1999 Bill Nottingham <notting@redhat.com>
853 - add a patch to fix dropped reconnection attempts
854
855 * Mon Sep  6 1999 Jeff Johnson <jbj@redhat.com>
856 - use cp rather than mv to preserve /etc/services perms (#4938 et al).
857 - use mktemp to generate /etc/tmp.XXXXXX file name.
858 - add prereqs on sed/mktemp/killall (need to move killall to /bin).
859 - fix trigger syntax (i.e. "samba < 1.9.18p7" not "samba < samba-1.9.18p7")
860
861 * Mon Aug 30 1999 Bill Nottingham <notting@redhat.com>
862 - sed "s|nawk|gawk|" /usr/bin/convert_smbpasswd
863
864 * Sat Aug 21 1999 Bill Nottingham <notting@redhat.com>
865 - fix typo in mount.smb
866
867 * Fri Aug 20 1999 Bill Nottingham <notting@redhat.com>
868 - add a %trigger to work around (sort of) broken scripts in
869   previous releases
870
871 * Mon Aug 16 1999 Bill Nottingham <notting@redhat.com>
872 - initscript munging
873
874 * Mon Aug  9 1999 Bill Nottingham <notting@redhat.com>
875 - add domain parsing to mount.smb
876
877 * Fri Aug  6 1999 Bill Nottingham <notting@redhat.com>
878 - add a -common package, shuffle files around.
879
880 * Fri Jul 23 1999 Bill Nottingham <notting@redhat.com>
881 - add a chmod in %postun so /etc/services & inetd.conf don't become unreadable
882
883 * Wed Jul 21 1999 Bill Nottingham <notting@redhat.com>
884 - update to 2.0.5
885 - fix mount.smb - smbmount options changed again.........
886 - fix postun. oops.
887 - update some stuff from the samba team's spec file.
888
889 * Fri Jun 18 1999 Bill Nottingham <notting@redhat.com>
890 - split off clients into separate package
891 - don't run samba by default
892
893 * Mon Jun 14 1999 Bill Nottingham <notting@redhat.com>
894 - fix one problem with mount.smb script
895 - fix smbpasswd on sparc with a really ugly kludge
896
897 * Thu Jun 10 1999 Dale Lovelace <dale@redhat.com>
898 - fixed logrotate script
899
900 * Tue May 25 1999 Bill Nottingham <notting@redhat.com>
901 - turn of 64-bit locking on 32-bit platforms
902
903 * Thu May 20 1999 Bill Nottingham <notting@redhat.com>
904 - so many releases, so little time
905 - explicitly uncomment 'printing = bsd' in sample config
906
907 * Tue May 18 1999 Bill Nottingham <notting@redhat.com>
908 - update to 2.0.4a
909 - fix mount.smb arg ordering
910
911 * Fri Apr 16 1999 Bill Nottingham <notting@redhat.com>
912 - go back to stop/start for restart (-HUP didn't work in testing)
913
914 * Fri Mar 26 1999 Bill Nottingham <notting@redhat.com>
915 - add a mount.smb to make smb mounting a little easier.
916 - smb filesystems apparently don't work on alpha. Oops.
917
918 * Thu Mar 25 1999 Bill Nottingham <notting@redhat.com>
919 - always create codepages
920
921 * Tue Mar 23 1999 Bill Nottingham <notting@redhat.com>
922 - logrotate changes
923
924 * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
925 - auto rebuild in the new build environment (release 3)
926
927 * Fri Mar 19 1999 Preston Brown <pbrown@redhat.com>
928 - updated init script to use graceful restart (not stop/start)
929
930 * Tue Mar  9 1999 Bill Nottingham <notting@redhat.com>
931 - update to 2.0.3
932
933 * Thu Feb 18 1999 Bill Nottingham <notting@redhat.com>
934 - update to 2.0.2
935
936 * Mon Feb 15 1999 Bill Nottingham <notting@redhat.com>
937 - swat swat
938
939 * Tue Feb  9 1999 Bill Nottingham <notting@redhat.com>
940 - fix bash2 breakage in post script
941
942 * Fri Feb  5 1999 Bill Nottingham <notting@redhat.com>
943 - update to 2.0.0
944
945 * Mon Oct 12 1998 Cristian Gafton <gafton@redhat.com>
946 - make sure all binaries are stripped
947
948 * Thu Sep 17 1998 Jeff Johnson <jbj@redhat.com>
949 - update to 1.9.18p10.
950 - fix %triggerpostun.
951
952 * Tue Jul 07 1998 Erik Troan <ewt@redhat.com>
953 - updated postun triggerscript to check $0
954 - clear /etc/codepages from %preun instead of %postun
955
956 * Mon Jun 08 1998 Erik Troan <ewt@redhat.com>
957 - made the %postun script a tad less agressive; no reason to remove
958   the logs or lock file (after all, if the lock file is still there,
959   samba is still running)
960 - the %postun and %preun should only exectute if this is the final
961   removal
962 - migrated %triggerpostun from Red Hat's samba package to work around
963   packaging problems in some Red Hat samba releases
964
965 * Sun Apr 26 1998 John H Terpstra <jht@samba.anu.edu.au>
966 - minor tidy up in preparation for release of 1.9.18p5
967 - added findsmb utility from SGI package
968
969 * Wed Mar 18 1998 John H Terpstra <jht@samba.anu.edu.au>
970 - Updated version and codepage info.
971 - Release to test name resolve order
972
973 * Sat Jan 24 1998 John H Terpstra <jht@samba.anu.edu.au>
974 - Many optimisations (some suggested by Manoj Kasichainula <manojk@io.com>
975 - Use of chkconfig in place of individual symlinks to /etc/rc.d/init/smb
976 - Compounded make line
977 - Updated smb.init restart mechanism
978 - Use compound mkdir -p line instead of individual calls to mkdir
979 - Fixed smb.conf file path for log files
980 - Fixed smb.conf file path for incoming smb print spool directory
981 - Added a number of options to smb.conf file
982 - Added smbadduser command (missed from all previous RPMs) - Doooh!
983 - Added smbuser file and smb.conf file updates for username map
984