This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to...
[ira/wip.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/ntlm_auth
518 /usr/bin/profiles
519 /usr/bin/smbfilter
520 /usr/bin/smbpasswd
521 /usr/bin/smbstatus
522 /usr/bin/testparm
523 /usr/bin/testprns
524 #%doc %{_mandir}/man1/smbrun.1.gz
525 %doc %{_mandir}/man1/smbsh.1.gz
526 %doc %{_mandir}/man1/smbstatus.1.gz
527 %doc %{_mandir}/man1/testparm.1.gz
528 %doc %{_mandir}/man1/testprns.1.gz
529 %doc %{_mandir}/man5/smbpasswd.5.gz
530 %doc %{_mandir}/man7/samba.7.gz
531 %doc %{_mandir}/man8/nmbd.8.gz
532 %doc %{_mandir}/man8/smbd.8.gz
533 %doc %{_mandir}/man8/smbpasswd.8.gz
534 %doc %{_mandir}/man8/swat.8.gz
535 /usr/sbin/nmbd
536 /usr/sbin/smbd
537 /usr/sbin/swat
538 /usr/sbin/wrepld
539 /usr/sbin/rcsmb
540 /usr/sbin/rcwrepl
541 #/var/adm/fillup-templates/rc.config.samba
542 /var/log/samba
543 /var/spool/samba
544 /var/run/samba
545 /var/lib/samba
546 /usr/share/samba
547 /lib/security/pam_smbpass.so
548
549 %files client
550 %config(noreplace) /etc/samba/smb.conf
551 %config(noreplace) /etc/samba/lmhosts
552 /etc/samba/lowcase.dat
553 /etc/samba/upcase.dat
554 /etc/samba/valid.dat
555 %config /etc/init.d/smbfs
556 /usr/sbin/rcsmbfs
557 /sbin/mount.smbfs
558 /usr/bin/findsmb
559 /usr/bin/net
560 /usr/bin/nmblookup
561 /usr/bin/pdbedit
562 /usr/bin/rpcclient
563 /usr/bin/smbcacls
564 /usr/bin/smbcontrol
565 /usr/bin/smbclient
566 /usr/bin/smbmnt
567 /usr/bin/smbmount
568 %if %{smbwrap}
569 /usr/bin/smbsh
570 %endif
571 /usr/bin/smbumount
572 /usr/bin/smbspool
573 /usr/bin/smbtar
574 /usr/bin/smbtree
575 %doc %{_mandir}/man1/nmblookup.1.gz
576 %doc %{_mandir}/man1/rpcclient.1.gz
577 %doc %{_mandir}/man1/smbclient.1.gz
578 %doc %{_mandir}/man1/smbcacls.1.gz
579 %doc %{_mandir}/man1/smbcontrol.1.gz
580 %doc %{_mandir}/man1/smbtar.1.gz
581 %doc %{_mandir}/man5/lmhosts.5.gz
582 %doc %{_mandir}/man5/smb.conf.5.gz
583 %doc %{_mandir}/man8/net.8.gz
584 %doc %{_mandir}/man8/pdbedit.8.gz
585 %doc %{_mandir}/man8/smbmnt.8.gz
586 %doc %{_mandir}/man8/smbmount.8.gz
587 %doc %{_mandir}/man8/smbspool.8.gz
588 %doc %{_mandir}/man8/smbumount.8.gz
589 /usr/include/libsmbclient.h
590 %if %{smbwrap}
591 /usr/lib/samba/smbwrapper.so
592 %endif
593 /usr/lib/libsmbclient.a
594 /usr/lib/libsmbclient.so
595 /usr/lib/libsmbclient.so.0
596
597 %files winbind
598 %config(noreplace) /etc/samba/smb.conf.winbind
599 %config /etc/init.d/winbind
600 %doc %{_mandir}/man1/wbinfo.1.gz
601 %doc %{_mandir}/man8/winbindd.8.gz
602 /usr/bin/wbinfo
603 %if %{head} > 0
604 /usr/bin/ntlm_auth
605 %endif
606 /usr/sbin/winbindd
607 /usr/sbin/rcwinbind
608 #/var/adm/fillup-templates/rc.config.winbind
609 /lib/security/pam_winbind.so
610 /lib/libnss_winbind.so
611 /lib/libnss_winbind.so.2
612 /lib/libnss_wins.so
613 /lib/libnss_wins.so.2
614
615 %files utils
616 /usr/bin/smbtorture
617 /usr/bin/msgtest
618 /usr/bin/masktest
619 /usr/bin/locktest
620 /usr/bin/locktest2
621 /usr/bin/debug2html
622 /usr/bin/talloctort
623 /usr/bin/tdbbackup
624 /usr/bin/tdbdump  
625 /usr/bin/tdbtest  
626 /usr/bin/tdbtool  
627 /usr/bin/tdbtorture
628 /usr/bin/vfstest
629 /usr/bin/nsstest
630 %if %{head} > 0
631 %if %{newsam} > 0
632 /usr/bin/samtest
633 %endif
634 /usr/bin/profiles
635 /usr/bin/editreg
636 %endif
637 %doc %{_mandir}/man1/vfstest.1.gz
638
639 %files doc
640 %docdir %{DOCDIR}
641 %{DOCDIR}
642
643 %files pdb
644 /usr/lib/samba/pdb
645 %doc examples/pdb/*
646
647 %files vfs
648 /usr/lib/samba/vfs
649 %doc examples/VFS/README*
650 %doc examples/VFS/Makefile*
651 #doc examples/VFS/audit*
652 #%doc examples/VFS/block*
653 #doc examples/VFS/netatalk*
654 #doc examples/VFS/recycle*
655 %doc examples/VFS/skel*
656
657 %if %{newsam} > 0
658 %files sam
659 /usr/lib/samba/sam
660 %if %{head} > 0
661 %doc examples/sam/*
662 %endif
663 %endif
664
665 %files vscan
666 /usr/lib/samba/vscan
667 %doc %{name}-vscan-%{vscan_ver}/{AUTHORS,COPYING,ChangeLog,FAQ,NEWS,README,TODO}
668
669
670 %files python
671 %doc source/python/README 
672 %if %{python} > 0
673 /usr/lib/python2.2/lib-dynload/samba
674 %doc source/python/examples 
675 %doc source/python/gprinterdata
676 %doc source/python/gtdbtool
677 %doc source/python/gtkdictbrowser.py
678 %if %{head} > 0
679 %doc source/python/gtkdictbrowser.pyc
680 %doc source/python/printerdata.pyc
681 %endif
682 %endif
683
684 %description
685 Samba is a suite of programs which work together to allow clients to
686 access Unix filespace and printers via the SMB protocol (Server Message
687 Block). 
688 In practice, this means that you can redirect disks and printers to
689 Unix disks and printers from LAN Manager clients, Windows for
690 Workgroups 3.11 clients, Windows'95 clients, Windows NT clients
691 and OS/2 clients. There is
692 also a Unix client program supplied as part of the suite which allows
693 Unix users to use an ftp-like interface to access filespace and
694 printers on any other SMB server.
695 Samba includes the following programs (in summary):
696 * smbd, the SMB server. This handles actual connections from clients.
697 * nmbd, the Netbios name server, which helps clients locate servers.
698 * smbclient, the Unix-hosted client program.
699 * smbrun, a little 'glue' program to help the server run external
700 programs. 
701 * testprns, a program to test server access to printers.
702 * testparm, a program to test the Samba configuration file for correctness.
703 * smb.conf, the Samba configuration file.
704 * smbprint, a sample script to allow a Unix host to use smbclient
705 to print to an SMB server.
706 The suite is supplied with full source and is GPLed.
707 This package expects its config file under /etc/smb.conf .
708
709 Authors:
710 --------
711     Andrew Tridgell <Andrew.Tridgell@anu.edu.au>
712     Karl Auer <Karl.Auer@anu.edu.au>
713     Jeremy Allison <jeremy@netcom.com>
714
715 SuSE series: n
716
717
718 %description client
719 This package contains all programs, that are needed to act as a samba
720 client. This includes also smbmount, of course.
721
722 Authors:
723 --------
724     Andrew Tridgell <Andrew.Tridgell@anu.edu.au>
725     Karl Auer <Karl.Auer@anu.edu.au>
726     Jeremy Allison <jeremy@netcom.com>
727
728 SuSE series: n
729
730
731 %description winbind
732 This is the winbind-daemon and the wbinfo-tool.
733
734 %description utils
735 Some of the debug-tools for developpers.
736 Contains:
737         - debug2html
738         - locktest
739         - locktest2
740         - masktest
741         - msgtest
742         - smbtorture
743         - talloctort
744         - several tdb-tools
745
746 %description doc
747 The Samba Documentation.
748
749 %description vfs
750 The Samba VFS-Modules.
751
752 %description pdb
753 The Samba PDB-Modules.
754
755 %if %{newsam} > 0
756 %description sam
757 The Samba SAM-Modules.
758 %endif
759
760 %description vscan
761 The Samba VFS-Modules for Virusscanners.
762
763 %description python
764 The Samba python-Modules.