This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to...
[kai/samba.git] / packaging / SuSE / samba3.spec
1 #
2 # spec file for package samba (Version HEAD) CVS
3
4 # Copyright (c) 2002 SuSE Linux AG, Nuernberg, Germany.
5 # This file and all modifications and additions to the pristine
6 # package are under the same license as the package itself.
7 #
8 # packaged by Guenther Deschner <gd@suse.de> - work is not finished yet !
9
10 # neededforbuild  acl acl-devel attr attr-devel autoconf automake heimdal-devel heimdal-lib libxml2 libxml2-devel mysql-devel mysql-shared openldap2 openldap2-client openldap2-devel openssl openssl-devel popt popt-devel python python-devel readline readline-devel
11 # usedforbuild    aaa_base aaa_version acl attr bash bind9-utils bison cpio cpp cyrus-sasl db devs diffutils e2fsprogs file filesystem fileutils fillup findutils flex gawk gdbm-devel glibc glibc-devel glibc-locale gpm grep groff gzip kbd less libgcc libstdc++ libxcrypt m4 make man mktemp modutils ncurses ncurses-devel net-tools netcfg pam pam-devel pam-modules patch permissions ps rcs readline sed sendmail sh-utils shadow strace syslogd sysvinit tar texinfo textutils timezone unzip util-linux vim zlib-devel acl-devel attr-devel autoconf automake binutils bzip2 cracklib gcc gdbm gettext heimdal-devel heimdal-lib libtool libxml2 libxml2-devel mysql-devel mysql-shared openldap2 openldap2-client openldap2-devel openssl openssl-devel perl popt popt-devel python python-devel readline-devel rpm zlib
12
13
14 Vendor:         SuSE Linux AG, GS Berlin, Germany
15 Distribution:   SuSE Linux 8.1 (i386)
16 Name:           samba
17 Packager:       gd@suse.de
18 License:        GPL
19 Group:          Productivity/Networking/Samba
20 Url:            http://www.samba.org
21 Provides:       samba smbfs
22 Obsoletes:      samba-classic samba-ldap
23 Autoreqprov:    on
24 %define         smbwrap 0
25 %define         mit_kerberos 0
26 %define         heimdal_kerberos 1
27 %define         devel 0
28 %define         head 0
29 %define         python 1
30 %define         netatalk 0
31 %define         newsam 0
32 %define         samba_ver 3.0.0
33 Requires:       samba-client = %{samba_ver}
34 Version:        3.0.0
35 Release:        %(date +%%j)
36 Summary:        An SMB file server for Unix
37 Source:         %{name}-%{version}.tar.bz2
38 Source10:       %{name}-%{version}.files.tar.bz2
39 Source50:       http://prdownloads.sourceforge.net/openantivirus/samba-vscan-%{vscan_ver}.tar.bz2
40 Patch1:         %{name}-%{version}-pdb.diff
41 Patch10:        %{name}-%{version}-net_ads.diff
42 Patch22:        %{name}-%{version}-msdfs.diff
43 Patch30:        %{name}-%{version}-python.diff
44 BuildRoot:      %{_tmppath}/%{name}-%{version}-buildroot
45 %define         DOCDIR %{_defaultdocdir}/%{name}
46 %define         SWATDIR %{_datadir}/samba/swat
47 %define         vscan_ver 0.3.1
48 %define         vscan_modules fprot kaspersky mks openantivirus sophos trend
49 Patch51:        %{name}-%{version}-vscan.diff
50
51 %package client
52 Summary:        Samba client utilities
53 Autoreqprov:    on
54 Requires:       cups-libs
55 Obsoletes:      smbclnt samba-classic-client samba-ldap-client
56 Group:          Productivity/Networking/Samba
57
58 %package winbind
59 Requires:       samba-client samba
60 Summary:        Samba Winbind-package
61 Autoreqprov:    on
62 Group:          Productivity/Networking/Samba
63
64 %package utils
65 Summary:        Samba Testing Utilities
66 Autoreqprov:    on
67 Group:          Productivity/Networking/Samba
68
69 %package doc
70 Summary:        Samba Documentation
71 Autoreqprov:    on
72 Group:          Productivity/Networking/Samba
73
74 %package pdb
75 Summary:        Samba PDB-Modules
76 Autoreqprov:    on
77 Group:          Productivity/Networking/Samba
78
79 %package vfs
80 Summary:        Samba VFS-Modules
81 Autoreqprov:    on
82 Group:          Productivity/Networking/Samba
83
84 %if %{newsam} > 0
85 %package sam
86 Summary:        Samba SAM-Modules
87 Autoreqprov:    on
88 Group:          Productivity/Networking/Samba
89 %endif
90
91 %package vscan
92 Summary:        Samba VFS-Modules for Virusscanners
93 Autoreqprov:    on
94 Group:          Productivity/Networking/Samba
95 Version:        0.3.1
96
97 %package python
98 Summary:        Samba Python-Modules
99 Autoreqprov:    on
100 Group:          Productivity/Networking/Samba
101
102
103
104
105 %changelog
106 * Sat Nov 3 2001 - gd@suse.de
107 - start
108
109
110 %prep
111 [ $RPM_BUILD_ROOT = "/" ] && (echo "your buildroot is /" && exit 0) || rm -rf $RPM_BUILD_ROOT
112 mkdir $RPM_BUILD_ROOT
113
114 %setup -n %{name}-%{samba_ver}
115 %setup -T -D -a 50
116 cp -ar samba-vscan-%{vscan_ver} examples/VFS/
117
118 # untar my configs
119 %setup -T -D -a 10
120
121 %if %{heimdal_kerberos} > 0
122 %patch1
123 %patch51
124 %endif
125 #%patch10
126 #%patch22
127 #%patch30
128
129 find . -name CVS -print | xargs rm -rf
130 find . -name ".cvsignore" -print | xargs rm -rf
131 find . -name "'*.gd'" -print | xargs rm -rvf
132 find . -name "'*.orig'" -print | xargs rm -rvf
133
134 %build %{name}-%{samba_ver}
135 %{?suse_update_config:%{suse_update_config -f}}
136 cd source
137 ./autogen.sh
138 libtoolize --force --copy
139 autoconf
140 export CFLAGS="$RPM_OPT_FLAGS -Wall -O -D_GNU_SOURCE -D_LARGEFILE64_SOURCE"
141 %ifarch ppc64
142 export CFLAGS="$CFLAGS -mminimal-toc"
143 %endif
144 CONF_OPTS_BASIC="\
145         --prefix=/usr \
146         --libdir=/etc/samba \
147         --localstatedir=/var/lib/samba \
148         --mandir=%{_mandir} \
149         --sbindir=/usr/sbin \
150         --with-privatedir=/etc/samba \
151         --with-piddir=/var/run/samba \
152         --with-codepagedir=/usr/share/samba/codepages \
153         --with-swatdir=/usr/share/samba/swat \
154         --with-smbmount \
155         --with-automount \
156         --enable-cups \
157         --with-msdfs \
158         --with-vfs \
159         --with-pam \
160         --with-pam_smbpass \
161         --with-utmp \
162         --with-winbind \
163         --with-tdbsam \
164         --with-ldapsam \
165 %if %{smbwrap}
166         --with-smbwrapper \
167 %endif
168         --with-quotas \
169         --with-acl-support \
170         --with-python=python2.2 \
171         --with-syslog \
172 "
173 CONF_OPTS_HEAD="\
174         --with-sam \
175 "
176 CONF_OPTS_HEIMDAL_KERBEROS="\
177         --with-krb5impl=heimdal \
178 "
179 CONF_OPTS_HEIMDAL_51_KERBEROS="\
180         --with-krb5impl=heimdal \
181         --with-krb5includes=/opt/heimdal-0.5.1/include \
182         --with-krb5libs=/opt/heimdal-0.5.1/lib \
183 "
184 CONF_OPTS_MIT_KERBEROS="\
185         --with-krb5impl=mit \
186         --with-krb5includes=/usr/kerberos/include \
187         --with-krb5libs=/usr/kerberos/lib \
188 "
189 CONF_OPTS_DEVEL="\
190         --enable-developer \
191         --enable-krb5developer \
192         --with-profiling-data \
193 "
194 CONF_OPTS="$CONF_OPTS_BASIC"
195 %if %{head} > 0
196 CONF_OPTS="$CONF_OPTS $CONF_OPTS_HEAD"
197 %endif 
198 %if %{heimdal_kerberos} > 0
199 CONF_OPTS="$CONF_OPTS $CONF_OPTS_HEIMDAL_KERBEROS"
200 %endif 
201 %if %{mit_kerberos} > 0
202 CONF_OPTS="$CONF_OPTS $CONF_OPTS_MIT_KERBEROS"
203 %endif 
204 %if %{devel} > 0
205 CONF_OPTS="$CONF_OPTS $CONF_OPTS_DEVEL"
206 %endif 
207
208 ./configure $CONF_OPTS
209
210 ###     --with-ldapsam is now standard!
211 ###     --with-sendfile-support ---default now
212 #       --with-nisplussam \
213 #       --with-nisplus_home \
214
215 # with the new passdb-code we can finaly compile several passdb-backends
216 # and make our choice at runtime. 
217 # HEAD and thus alpha21 no longer need this
218 #make proto
219
220 make \
221         LOCKDIR=/var/lib/samba \
222         LOGFILEBASE=/var/log/samba \
223         SBINDIR=/usr/sbin \
224         all \
225         torture \
226         nsswitch/libnss_wins.so \
227         debug2html \
228         libsmbclient \
229         bin/profiles \
230         everything
231
232 # everything = nsswitch smbwrapper smbtorture debug2html smbfilter nsswitch/libnss_wins.so
233
234 %if %{newsam} > 0
235 make bin/samtest 
236 %endif
237 make modules 
238
239 make -C tdb tdbdump tdbtest tdbtool tdbtorture 
240 # tdbbackup is now in main Makefile
241
242 make talloctort 
243
244 # VFS,PDB and SAM
245 EXAMPLEDIRS="pdb"
246 for i in $EXAMPLEDIRS; do make -C ../examples/$i; done
247
248 export USE_KAVPSHAREDLIB=0
249 for module in %{vscan_modules}; do 
250         make -C ../examples/VFS/%{name}-vscan-%{vscan_ver}/${module}; 
251 done
252
253 # tim potters python
254 %if %{python} > 0
255 make python_ext
256 %endif
257
258
259
260 %install
261
262 mkdir -p \
263         $RPM_BUILD_ROOT/usr/{bin,sbin} \
264         $RPM_BUILD_ROOT/usr/share/{man,samba/{scripts,swat}} \
265         $RPM_BUILD_ROOT/usr/lib/samba/{vfs,pdb,sam,vscan} \
266         $RPM_BUILD_ROOT/usr/lib/python2.2/lib-dynload \
267         $RPM_BUILD_ROOT/usr/include \
268         $RPM_BUILD_ROOT/etc/{pam.d,init.d,samba} \
269         $RPM_BUILD_ROOT/var/adm \
270         $RPM_BUILD_ROOT/sbin \
271         $RPM_BUILD_ROOT/lib/security \
272         $RPM_BUILD_ROOT/%{DOCDIR} \
273         $RPM_BUILD_ROOT/%{DOCDIR}-vscan \
274         $RPM_BUILD_ROOT/var/spool/samba \
275         $RPM_BUILD_ROOT/var/log/samba \
276         $RPM_BUILD_ROOT/var/run/samba \
277         $RPM_BUILD_ROOT/var/lib/samba/{netlogon,drivers/{W32X86,WIN40,W32ALPHA,W32MIPS,W32PPC},profiles}        
278
279 cd source/
280 make install \
281         LIBDIR=$RPM_BUILD_ROOT/etc/samba \
282         LOGFILEBASE=$RPM_BUILD_ROOT/var/log/samba \
283         CONFIGFILE=$RPM_BUILD_ROOT/etc/samba/smb.conf \
284         LMHOSTSFILE=$RPM_BUILD_ROOT/etc/samba/lmhosts \
285         SWATDIR=$RPM_BUILD_ROOT/usr/share/samba/swat \
286         SBINDIR=$RPM_BUILD_ROOT/usr/sbin \
287         LOCKDIR=$RPM_BUILD_ROOT/var/lock/samba \
288         CODEPAGEDIR=$RPM_BUILD_ROOT/usr/share/samba/codepages \
289         DRIVERFILE=$RPM_BUILD_ROOT/etc/samba/printers.def \
290         BINDIR=$RPM_BUILD_ROOT/usr/bin \
291         SMB_PASSWD_FILE=$RPM_BUILD_ROOT/etc/samba/smbpasswd \
292         TDB_PASSWD_FILE=$RPM_BUILD_ROOT/etc/samba/smbpasswd.tdb \
293         MANDIR=$RPM_BUILD_ROOT/usr/share/man
294 cd ..
295
296 # utility scripts
297 %if %{head} > 0
298 scripts="creategroup cvslog.pl scancvslog.pl"
299 %else
300 scripts="scancvslog.pl"
301 %endif
302 for i in $scripts; do
303         cp -a source/script/$i          $RPM_BUILD_ROOT/usr/share/samba/scripts/
304 done
305
306 # move the man-pages (ugly lang thing, fixed in alpha16)
307 #mv $RPM_BUILD_ROOT/usr/share/man/lang/*        $RPM_BUILD_ROOT/usr/share/man/
308
309 # configuration files
310 install -m 644 smb.conf*        $RPM_BUILD_ROOT/etc/samba/
311 install -m 644 shares.conf      $RPM_BUILD_ROOT/etc/samba/
312 install -m 644 lmhosts          $RPM_BUILD_ROOT/etc/samba/
313 install -m 600 smbpasswd -o root -g root  $RPM_BUILD_ROOT/etc/samba/
314
315 # pam
316 install -m 644 samba.pamd       $RPM_BUILD_ROOT/etc/pam.d/samba
317
318 # sambamount
319 ln -sf /usr/bin/smbmount        $RPM_BUILD_ROOT/sbin/mount.smbfs
320
321 # start scripts
322 install rc.smb                  $RPM_BUILD_ROOT/etc/init.d/smb
323 ln -sf ../../etc/init.d/smb     $RPM_BUILD_ROOT/usr/sbin/rcsmb
324 install rc.smbfs                $RPM_BUILD_ROOT/etc/init.d/smbfs
325 ln -sf ../../etc/init.d/smbfs   $RPM_BUILD_ROOT/usr/sbin/rcsmbfs
326 install rc.winbind              $RPM_BUILD_ROOT/etc/init.d/winbind
327 ln -sf ../../etc/init.d/winbind $RPM_BUILD_ROOT/usr/sbin/rcwinbind
328 install rc.wrepl                $RPM_BUILD_ROOT/etc/init.d/wrepl
329 ln -sf ../../etc/init.d/wrepl   $RPM_BUILD_ROOT/usr/sbin/rcwrepl
330
331 #### disabled for 8.0
332 ### rc.config fragment
333 mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
334 cp rc.config.samba                              $RPM_BUILD_ROOT/var/adm/fillup-templates
335 cp rc.config.winbind                            $RPM_BUILD_ROOT/var/adm/fillup-templates
336 cp rc.config.wrepl                              $RPM_BUILD_ROOT/var/adm/fillup-templates
337
338 # libnss_wins.so
339 cp source/nsswitch/libnss_wins.so               $RPM_BUILD_ROOT/lib/libnss_wins.so
340 ln -sf /lib/libnss_wins.so                      $RPM_BUILD_ROOT/lib/libnss_wins.so.2
341
342 # winbind stuff
343 cp -a source/nsswitch/pam_winbind.so            $RPM_BUILD_ROOT/lib/security/
344 cp -a source/nsswitch/libnss_winbind.so         $RPM_BUILD_ROOT/lib/
345 cp -a source/bin/winbindd                       $RPM_BUILD_ROOT/usr/sbin/
346 ln -sf /lib/libnss_winbind.so                   $RPM_BUILD_ROOT/lib/libnss_winbind.so.2
347
348 # pam_smbpass
349 cp -a source/bin/pam_smbpass.so                 $RPM_BUILD_ROOT/lib/security/
350
351 # smbfilter
352 cp -a source/bin/smbfilter                      $RPM_BUILD_ROOT/usr/bin/
353
354
355 %{?suse_check}
356
357 ## install libsmbclient
358 install -m0755 source/bin/{libsmbclient.so,libsmbclient.a}      $RPM_BUILD_ROOT/%{_libdir}
359 ln -s /usr/lib/libsmbclient.so                  $RPM_BUILD_ROOT/%{_libdir}/libsmbclient.so.0
360 install -m0644 source/include/libsmbclient.h    $RPM_BUILD_ROOT/%{_includedir}
361
362 # install smbtorture and other test-programs
363 install -m0755 source/bin/smbtorture            $RPM_BUILD_ROOT/usr/bin/
364 install -m0755 source/bin/talloctort            $RPM_BUILD_ROOT/usr/bin/
365 install -m0755 source/bin/{msgtest,masktest,locktest*}  $RPM_BUILD_ROOT/usr/bin/
366 install -m0755 source/bin/{vfstest,nsstest}     $RPM_BUILD_ROOT/usr/bin/
367 %if %{head} > 0
368 %if %{newsam} > 0
369 install -m0755 source/bin/samtest               $RPM_BUILD_ROOT/usr/bin/ 
370 %endif
371 %endif
372
373 # install tdb tools
374 install -m0755 source/tdb/{tdbdump,tdbtest,tdbtool,tdbtorture}  $RPM_BUILD_ROOT/usr/bin/
375
376
377 # install VFS-modules
378 %if %{head} > 0
379 install -m0755 source/bin/developer.so          $RPM_BUILD_ROOT/%{_libdir}/samba/vfs/
380 #install -m0755 examples/VFS/block/block.so     $RPM_BUILD_ROOT/%{_libdir}/samba/vfs/
381 #install -m0755 examples/VFS/skel.so            $RPM_BUILD_ROOT/%{_libdir}/samba/vfs/
382 %else
383 #install -m0755 examples/VFS/block/block.so     $RPM_BUILD_ROOT/%{_libdir}/samba/vfs/
384 #install -m0755 examples/VFS/skel.so            $RPM_BUILD_ROOT/%{_libdir}/samba/vfs/
385 %endif
386 install -m0755 source/bin/vfs_audit.so          $RPM_BUILD_ROOT/%{_libdir}/samba/vfs/
387 install -m0755 source/bin/vfs_extd_audit.so     $RPM_BUILD_ROOT/%{_libdir}/samba/vfs/
388 install -m0755 source/bin/vfs_recycle.so        $RPM_BUILD_ROOT/%{_libdir}/samba/vfs/
389 %if %{netatalk}
390 install -m0755 source/bin/vfs_netatalk.so       $RPM_BUILD_ROOT/%{_libdir}/samba/vfs/
391 %endif
392
393 # install PDB-modules
394 %if %{head} > 0
395 install -m0755 source/bin/xml.so                $RPM_BUILD_ROOT/%{_libdir}/samba/pdb/
396 install -m0755 source/bin/mysql.so              $RPM_BUILD_ROOT/%{_libdir}/samba/pdb/
397 %else
398 install -m0755 source/bin/pdb_xml.so            $RPM_BUILD_ROOT/%{_libdir}/samba/pdb/
399 install -m0755 source/bin/pdb_mysql.so          $RPM_BUILD_ROOT/%{_libdir}/samba/pdb/
400 %endif
401 install -m0755 examples/pdb/pdb_test.so         $RPM_BUILD_ROOT/%{_libdir}/samba/pdb/
402
403 # install SAM-modules
404 %if %{head} > 0
405 %if %{newsam} > 0
406 install -m0755 examples/sam/sam_skel.so         $RPM_BUILD_ROOT/%{_libdir}/samba/sam/
407 %endif
408 %endif
409
410 # install VSCAN-vfs-modules
411 install -m0755 examples/VFS/%{name}-vscan-%{vscan_ver}/*/*.so   $RPM_BUILD_ROOT/%{_libdir}/samba/vscan/
412
413 # make examples clean
414 VFS="$RPM_BUILD_DIR/%{name}-%{samba_ver}/examples/VFS"
415 VSCAN="$VFS/%{name}-vscan-%{vscan_ver}"
416 PDB="$RPM_BUILD_DIR/%{name}-%{samba_ver}/examples/pdb"
417 %if %{head} > 0
418 %if %{newsam} > 0
419 SAM="$RPM_BUILD_DIR/%{name}-%{samba_ver}/examples/sam"
420 %endif
421 %endif
422 dirs="$PDB $SAM"
423 (for i in $dirs; do make -C $i clean; done)
424 (for i in %{vscan_modules}; do make -C $VSCAN/$i clean; done)
425
426 %if %{python} > 0
427 # install python
428 cp -a source/build/lib.*/samba                  $RPM_BUILD_ROOT/usr/lib/python2.2/lib-dynload/
429 %endif
430
431 # whats this ?
432 install -m0755 source/bin/debug2html            $RPM_BUILD_ROOT/usr/bin/
433
434 %if %{smbwrap}
435 # install smbwrapper
436 install -m0755 source/bin/smbwrapper.so         $RPM_BUILD_ROOT/%{_libdir}/samba/
437 install -m0755 source/bin/smbsh                 $RPM_BUILD_ROOT/usr/bin/
438 %endif
439
440 # finally obsolete with alpha17 makefile
441 # install unicode-codepages
442 #install -m0755 source/codepages/{lowcase,upcase,valid}.dat     $RPM_BUILD_ROOT/etc/samba/
443
444 # cleanup docs
445 rm -rf docs/*.[0-9]
446 chmod 644 `find docs examples -type f`
447 chmod 755 `find docs examples -type d`
448 mv COPYING Manifest README Read-Manifest-Now Roadmap WHATSNEW.txt $RPM_BUILD_ROOT/%{DOCDIR}/
449 cp source/msdfs/README          $RPM_BUILD_ROOT/%{DOCDIR}/README.msdfs
450 #cp source/nsswitch/README      $RPM_BUILD_ROOT/%{DOCDIR}/README.nsswitch
451 cp source/smbwrapper/README     $RPM_BUILD_ROOT/%{DOCDIR}/README.smbwrapper
452 cp -a docs/*                    $RPM_BUILD_ROOT/%{DOCDIR}
453 cp -a examples/                 $RPM_BUILD_ROOT/%{DOCDIR}
454 # save space...
455 rm -r \
456         $RPM_BUILD_ROOT/%{SWATDIR}/using_samba 
457 ln -s %{DOCDIR}/htmldocs/using_samba $RPM_BUILD_ROOT/%{SWATDIR}
458
459
460 %post
461 ###### disabled for 8.1
462 ###echo "Updating etc/rc.config..."
463 ##if [ -x bin/fillup ] ; then
464 ##  bin/fillup -q -d = etc/rc.config var/adm/fillup-templates/rc.config.samba
465 ##  bin/fillup -q -d = etc/rc.config var/adm/fillup-templates/rc.config.winbind
466 ##else
467 ##  echo "ERROR: fillup not found. This should not happen. Please compare"
468 ##  echo "etc/rc.config and var/adm/fillup-templates/rc.config.samba and"
469 ##  echo "var/adm/fillup-templates/rc.config.winbind and update by hand."
470 ##fi
471 mkdir -p $RPM_BUILD_ROOT/var/adm/notify/messages
472 cat << EOF > var/adm/notify/messages/samba-notify
473 Achtung!
474
475 This is %{name}-%{samba_ver}. Please do not run on production systems.
476
477 You have been warned.
478 EOF
479
480 # Initialize runlevel links
481 #
482 %{fillup_and_insserv smb}
483 #sbin/insserv /etc/init.d/smb
484
485 %post client
486 #sbin/insserv /etc/init.d/smbfs
487 %{fillup_and_insserv -fpy smbfs}
488 %{fillup_only -ans samba client}
489
490 %postun
491 %{insserv_cleanup}
492 #sbin/insserv /etc/init.d/
493
494 %postun client
495 %{insserv_cleanup}
496 #sbin/insserv /etc/init.d/
497
498 %post winbind
499 %{fillup_and_insserv winbind}
500 #sbin/insserv /etc/init.d/winbind
501
502 %postun winbind
503 %{insserv_cleanup}
504 #sbin/insserv /etc/init.d/
505
506 %clean
507 #make -C source realclean
508
509 %files
510 %config(noreplace) /etc/samba/smbpasswd
511 %config /etc/pam.d/samba
512 %config /etc/init.d/smb
513 %config /etc/init.d/wrepl
514 #/usr/bin/make_printerdef
515 /usr/bin/addtosmbpass
516 /usr/bin/convert_smbpasswd
517 /usr/bin/smbgroupedit
518 /usr/bin/ntlm_auth
519 /usr/bin/profiles
520 /usr/bin/smbfilter
521 /usr/bin/smbpasswd
522 /usr/bin/smbstatus
523 /usr/bin/testparm
524 /usr/bin/testprns
525 #%doc %{_mandir}/man1/smbrun.1.gz
526 %doc %{_mandir}/man1/smbsh.1.gz
527 %doc %{_mandir}/man1/smbstatus.1.gz
528 %doc %{_mandir}/man1/testparm.1.gz
529 %doc %{_mandir}/man1/testprns.1.gz
530 %doc %{_mandir}/man5/smbpasswd.5.gz
531 %doc %{_mandir}/man7/samba.7.gz
532 %doc %{_mandir}/man8/nmbd.8.gz
533 %doc %{_mandir}/man8/smbd.8.gz
534 %doc %{_mandir}/man8/smbgroupedit.8.gz
535 %doc %{_mandir}/man8/smbpasswd.8.gz
536 %doc %{_mandir}/man8/swat.8.gz
537 /usr/sbin/nmbd
538 /usr/sbin/smbd
539 /usr/sbin/swat
540 /usr/sbin/wrepld
541 /usr/sbin/rcsmb
542 /usr/sbin/rcwrepl
543 #/var/adm/fillup-templates/rc.config.samba
544 /var/log/samba
545 /var/spool/samba
546 /var/run/samba
547 /var/lib/samba
548 /usr/share/samba
549 /lib/security/pam_smbpass.so
550
551 %files client
552 %config(noreplace) /etc/samba/smb.conf
553 %config(noreplace) /etc/samba/lmhosts
554 /etc/samba/lowcase.dat
555 /etc/samba/upcase.dat
556 /etc/samba/valid.dat
557 %config /etc/init.d/smbfs
558 /usr/sbin/rcsmbfs
559 /sbin/mount.smbfs
560 /usr/bin/findsmb
561 /usr/bin/net
562 /usr/bin/nmblookup
563 /usr/bin/pdbedit
564 /usr/bin/rpcclient
565 /usr/bin/smbcacls
566 /usr/bin/smbcontrol
567 /usr/bin/smbclient
568 /usr/bin/smbmnt
569 /usr/bin/smbmount
570 %if %{smbwrap}
571 /usr/bin/smbsh
572 %endif
573 /usr/bin/smbumount
574 /usr/bin/smbspool
575 /usr/bin/smbtar
576 /usr/bin/smbtree
577 %doc %{_mandir}/man1/nmblookup.1.gz
578 %doc %{_mandir}/man1/rpcclient.1.gz
579 %doc %{_mandir}/man1/smbclient.1.gz
580 %doc %{_mandir}/man1/smbcacls.1.gz
581 %doc %{_mandir}/man1/smbcontrol.1.gz
582 %doc %{_mandir}/man1/smbtar.1.gz
583 %doc %{_mandir}/man5/lmhosts.5.gz
584 %doc %{_mandir}/man5/smb.conf.5.gz
585 %doc %{_mandir}/man8/net.8.gz
586 %doc %{_mandir}/man8/pdbedit.8.gz
587 %doc %{_mandir}/man8/smbmnt.8.gz
588 %doc %{_mandir}/man8/smbmount.8.gz
589 %doc %{_mandir}/man8/smbspool.8.gz
590 %doc %{_mandir}/man8/smbumount.8.gz
591 /usr/include/libsmbclient.h
592 %if %{smbwrap}
593 /usr/lib/samba/smbwrapper.so
594 %endif
595 /usr/lib/libsmbclient.a
596 /usr/lib/libsmbclient.so
597 /usr/lib/libsmbclient.so.0
598
599 %files winbind
600 %config(noreplace) /etc/samba/smb.conf.winbind
601 %config /etc/init.d/winbind
602 %doc %{_mandir}/man1/wbinfo.1.gz
603 %doc %{_mandir}/man8/winbindd.8.gz
604 /usr/bin/wbinfo
605 %if %{head} > 0
606 /usr/bin/ntlm_auth
607 %endif
608 /usr/sbin/winbindd
609 /usr/sbin/rcwinbind
610 #/var/adm/fillup-templates/rc.config.winbind
611 /lib/security/pam_winbind.so
612 /lib/libnss_winbind.so
613 /lib/libnss_winbind.so.2
614 /lib/libnss_wins.so
615 /lib/libnss_wins.so.2
616
617 %files utils
618 /usr/bin/smbtorture
619 /usr/bin/msgtest
620 /usr/bin/masktest
621 /usr/bin/locktest
622 /usr/bin/locktest2
623 /usr/bin/debug2html
624 /usr/bin/talloctort
625 /usr/bin/tdbbackup
626 /usr/bin/tdbdump  
627 /usr/bin/tdbtest  
628 /usr/bin/tdbtool  
629 /usr/bin/tdbtorture
630 /usr/bin/vfstest
631 /usr/bin/nsstest
632 %if %{head} > 0
633 %if %{newsam} > 0
634 /usr/bin/samtest
635 %endif
636 /usr/bin/profiles
637 /usr/bin/editreg
638 %endif
639 %doc %{_mandir}/man1/vfstest.1.gz
640
641 %files doc
642 %docdir %{DOCDIR}
643 %{DOCDIR}
644
645 %files pdb
646 /usr/lib/samba/pdb
647 %doc examples/pdb/*
648
649 %files vfs
650 /usr/lib/samba/vfs
651 %doc examples/VFS/README*
652 %doc examples/VFS/Makefile*
653 #doc examples/VFS/audit*
654 #%doc examples/VFS/block*
655 #doc examples/VFS/netatalk*
656 #doc examples/VFS/recycle*
657 %doc examples/VFS/skel*
658
659 %if %{newsam} > 0
660 %files sam
661 /usr/lib/samba/sam
662 %if %{head} > 0
663 %doc examples/sam/*
664 %endif
665 %endif
666
667 %files vscan
668 /usr/lib/samba/vscan
669 %doc %{name}-vscan-%{vscan_ver}/{AUTHORS,COPYING,ChangeLog,FAQ,NEWS,README,TODO}
670
671
672 %files python
673 %doc source/python/README 
674 %if %{python} > 0
675 /usr/lib/python2.2/lib-dynload/samba
676 %doc source/python/examples 
677 %doc source/python/gprinterdata
678 %doc source/python/gtdbtool
679 %doc source/python/gtkdictbrowser.py
680 %if %{head} > 0
681 %doc source/python/gtkdictbrowser.pyc
682 %doc source/python/printerdata.pyc
683 %endif
684 %endif
685
686 %description
687 Samba is a suite of programs which work together to allow clients to
688 access Unix filespace and printers via the SMB protocol (Server Message
689 Block). 
690 In practice, this means that you can redirect disks and printers to
691 Unix disks and printers from LAN Manager clients, Windows for
692 Workgroups 3.11 clients, Windows'95 clients, Windows NT clients
693 and OS/2 clients. There is
694 also a Unix client program supplied as part of the suite which allows
695 Unix users to use an ftp-like interface to access filespace and
696 printers on any other SMB server.
697 Samba includes the following programs (in summary):
698 * smbd, the SMB server. This handles actual connections from clients.
699 * nmbd, the Netbios name server, which helps clients locate servers.
700 * smbclient, the Unix-hosted client program.
701 * smbrun, a little 'glue' program to help the server run external
702 programs. 
703 * testprns, a program to test server access to printers.
704 * testparm, a program to test the Samba configuration file for correctness.
705 * smb.conf, the Samba configuration file.
706 * smbprint, a sample script to allow a Unix host to use smbclient
707 to print to an SMB server.
708 The suite is supplied with full source and is GPLed.
709 This package expects its config file under /etc/smb.conf .
710
711 Authors:
712 --------
713     Andrew Tridgell <Andrew.Tridgell@anu.edu.au>
714     Karl Auer <Karl.Auer@anu.edu.au>
715     Jeremy Allison <jeremy@netcom.com>
716
717 SuSE series: n
718
719
720 %description client
721 This package contains all programs, that are needed to act as a samba
722 client. This includes also smbmount, of course.
723
724 Authors:
725 --------
726     Andrew Tridgell <Andrew.Tridgell@anu.edu.au>
727     Karl Auer <Karl.Auer@anu.edu.au>
728     Jeremy Allison <jeremy@netcom.com>
729
730 SuSE series: n
731
732
733 %description winbind
734 This is the winbind-daemon and the wbinfo-tool.
735
736 %description utils
737 Some of the debug-tools for developpers.
738 Contains:
739         - debug2html
740         - locktest
741         - locktest2
742         - masktest
743         - msgtest
744         - smbtorture
745         - talloctort
746         - several tdb-tools
747
748 %description doc
749 The Samba Documentation.
750
751 %description vfs
752 The Samba VFS-Modules.
753
754 %description pdb
755 The Samba PDB-Modules.
756
757 %if %{newsam} > 0
758 %description sam
759 The Samba SAM-Modules.
760 %endif
761
762 %description vscan
763 The Samba VFS-Modules for Virusscanners.
764
765 %description python
766 The Samba python-Modules.