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