final sync with SAMBA_2_2
[kai/samba.git] / packaging / PHT / TurboLinux / samba2.spec.tmpl
1 Summary: Samba SMB client and server
2 Name: samba
3 Version: PVERSION
4 Release: PRELEASE
5 Copyright: GNU GPL version 2
6 Group: Networking
7 Source: ftp://samba.org/pub/samba/samba-PVERSION.tar.gz
8 Patch: smbw.patch
9 Requires: pam >= 0.64 kernel >= 2.2.1 glibc >= 2.1.2
10 Prereq: chkconfig fileutils
11 BuildRoot: /var/tmp/samba
12 Prefix: /usr
13
14 %package debugtools
15 Version: PVERSION
16 Release: PRELEASE
17 Group: Networking
18 Summary: Programs to debug Samba and to test SMB client integrity
19
20 %package -n smbfs
21 Version: PVERSION
22 Release: PRELEASE
23 Group: Utilities/File
24 Summary: Programs to mount SMB shares.
25
26 %description
27 Samba provides an SMB server which can be used to provide
28 network services to SMB (sometimes called "Lan Manager")
29 clients, including various versions of MS Windows, OS/2,
30 and other Linux machines. Samba also provides some SMB
31 clients, which complement the built-in SMB filesystem
32 in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols
33 and does NOT need NetBEUI (Microsoft Raw NetBIOS frame)
34 protocol.
35
36 Samba-2.2 features working NT Domain Control capability and 
37 includes the SWAT (Samba Web Administration Tool) that 
38 allows samba's smb.conf file to be remotely managed using your 
39 favourite web browser. For the time being this is being
40 enabled on TCP port 901 via inetd.
41
42 Users are advised to use Samba-2.2 as a Windows NT4
43 Domain Controller only on networks that do NOT have a Windows
44 NT Domain Controller. This release does NOT as yet have
45 Backup Domain control ability.
46
47 Please refer to the WHATSNEW.txt document for fixup information.
48 This binary release includes encrypted password support.
49
50 Please read the smb.conf file and ENCRYPTION.txt in the
51 docs directory for implementation details.
52
53 NOTE: TurboLinux uses PAM which has integrated support
54 for Shadow passwords and quotas. Do NOT recompile with the
55 SHADOW_PWD option enabled.
56
57
58 %description -n smbfs
59 This package includes the tools necessary to mount filesystems from
60 SMB servers.
61
62 Smbmount and smbumount are an interface to the SMB filesystem. Smbfs is
63 a filesystem which understands the SMB protocol. This is the protocol
64 Windows for Workgroups, Windows NT or Lan Manager use to talk to each
65 other. It was inspired by samba, the program by Andrew Tridgell that
66 turns any unix site into a file server for DOS or Windows clients. See
67 http://samba.org/samba for this interesting program suite and lots of
68 more information on SMB and NetBIOS over TCP/IP. There you also find
69 explanation for conceps like NetBIOS name or share.
70
71 %changelog
72 * Tue Mar 27 2001 John H Terpstra <jht@samba.org>
73 - Fixes to make 2.2 compile
74
75 * Sat Nov 04 2000 John H Terpstra <jht@samba.org>
76 - Put Symlink for libnss_wins.so back into main install section
77
78 * Fri Nov  3 2000 Uros Prestor <uros@turbolinux.com>
79 - ported to IA-64
80
81 * Mon Oct 09 2000 John H Terpstra <jht@turbolinux.com>
82 - Started move to Samba-2.2.0
83 - Added nsswitch wins support
84
85 * Mon May 29 2000 John H Terpstra <jht@turbolinux.com>
86 - moved linkage of libnss_wins.so.2 to %post
87 - added removal step to %postun
88
89 * Fri Apr 14 2000 John H Terpstra <jht@turbolinux.com>
90 - Added unicode pages
91
92 * Sat Apr 08 2000 John H Terpsta <jht@turbolinux.com>
93 - Added nsswitch stuff
94 - Fixed some typos
95 - Changed hard link for smbmount to symlink
96
97 * Sun Apr 02 2000 John H Terpstra <jht@turbolinux.com>
98 - Updated for samba-2.0.7
99 - Added codepages 775 1251
100 - Added configure options "--with-profile --with-utmp 
101    --with-netatalk --with-sambabook=/usr/share/swat/using_samba"
102 - added using_samba book
103
104 * Fri Oct 29 1999 Kelley Spoon <kspoon@turbolinux.com>
105 - get rid of the rc?.d directories
106 - -j flags for make command to (hopefully) speed up on 
107   SMP systems
108 - discoverd that John had already made the changes I
109   was going to do...
110 - Wait!  He forgot to move the man pages into /usr/share!
111   Cool... I get to do something substantial.
112
113 * Sun Oct 16 1999 John H Terspstra <jht@turbolinux.com>
114 - changed mount.smb to link to smbmount
115 - removed smbwrappers as it is broken with glibc-2.1.x
116
117 * Sun May 09 1999 John H Terpstra <jht@samba.org>
118 - Added smbtorture et al.
119
120 * Wed Mar 10 1999 Scott Stone <sstone@turbolinux.com>
121 - This package now builds smbfs stuff
122 - Added xinetd autosetup in the post install section
123 - (todo: add remove of xinetd stuff in postuninstall section)
124
125 * Sun Feb 28 1999 Jeremy Allison <jra@samba.org>
126  - Removed smbrun binary and tidied up some loose ends
127
128 * Sun Oct 25 1998 John H Terpstra <jht@samba.org>
129  - Added modifier to /config specifier so that smb.conf,
130         lmhosts and smbusers never get lost
131
132 * Sat Oct 24 1998 John H Terpstra <jht@samba.org>
133  - removed README.smbsh file from docs area
134
135 * Mon Oct 05 1998 John H Terpstra <jht@samba.org>
136  - Added rpcclient to binaries list
137  - Added smbwrapper stuff
138
139 * Fri Aug 21 1998 John H Terpstra <jht@samba.org>
140  - Updated for Samba version 2.0 building
141
142 * Tue Jul 07 1998 Erik Troan <ewt@redhat.com>
143   - updated postun triggerscript to check $0
144   - clear /etc/codepages from %preun instead of %postun
145
146 * Sat Jul 04 1998 John H Terpstra <jht@samba.org>
147  - fixed codepage preservation during update via -Uvh
148
149 * Mon Jun 08 1998 Erik Troan <ewt@redhat.com>
150   - made the %postun script a tad less agressive; no reason to remove
151     the logs or lock file
152   - the %postun and %preun should only exectute if this is the final
153     removal
154   - migrated %triggerpostun from Red Hat's samba package to work around
155     packaging problems in some Red Hat samba releases
156
157 * Sun Apr 26 1998 John H Terpstra <jht@samba.org>
158  - Tidy up for early alpha releases
159  - added findsmb from SGI packaging
160
161 * Thu Apr 09 1998 John H Terpstra <jht@samba.org>
162  - Updated spec file
163  - Included new codepage.936
164
165 * Sat Mar 20 1998 John H Terpstra <jht@samba.org>
166  - Added swat facility
167
168 * Sat Jan 24 1998 John H Terpstra <jht@samba.org>
169  - Many optimisations (some suggested by Manoj Kasichainula <manojk@io.com>
170  - Use of chkconfig in place of individual symlinks to /etc/rc.d/init/smb
171  - Compounded make line
172  - Updated smb.init restart mechanism
173  - Use compound mkdir -p line instead of individual calls to mkdir
174  - Fixed smb.conf file path for log files
175  - Fixed smb.conf file path for incoming smb print spool directory
176  - Added a number of options to smb.conf file
177  - Added smbadduser command (missed from all previous RPMs) - Doooh!
178  - Added smbuser file and smb.conf file updates for username map
179
180 %prep
181 %setup
182 %patch -p1
183
184
185 %build
186 cd source
187
188 %ifarch ia64
189 libtoolize --copy --force     # get it to recognize IA-64
190 %endif
191
192 autoconf
193 autoheader
194 NUMCPU=`grep processor /proc/cpuinfo | wc -l`
195 CFLAGS="$RPM_OPT_FLAGS $EXTRA" ./configure \
196         --prefix=%{prefix} \
197         --libdir=/etc/samba \
198         --with-lockdir=/var/lock/samba \
199         --with-privatedir=/etc \
200         --with-swatdir=%{prefix}/share/swat \
201         --with-quotas \
202         --with-smbmount \
203         --with-pam \
204         --with-pam_smbpass \
205         --with-profile \
206         --with-syslog \
207         --with-utmp \
208         --with-netatalk \
209         --with-sambabook=%{prefix}/share/swat/using_samba
210
211 make -j${NUMCPU} all smbfilter nsswitch/libnss_wins.so
212 make -j${NUMCPU} debug2html 
213
214
215 %install
216 rm -rf $RPM_BUILD_ROOT
217 mkdir -p $RPM_BUILD_ROOT/sbin
218 mkdir -p $RPM_BUILD_ROOT%{prefix}/share/samba/codepages/src
219 mkdir -p $RPM_BUILD_ROOT/etc/samba
220 mkdir -p $RPM_BUILD_ROOT/etc/{logrotate.d,pam.d}
221 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
222 mkdir -p $RPM_BUILD_ROOT/lib
223 mkdir -p $RPM_BUILD_ROOT/home/samba
224 mkdir -p $RPM_BUILD_ROOT%{prefix}/{bin,sbin}
225 mkdir -p $RPM_BUILD_ROOT%{prefix}/share/swat/using_samba/{gifs,figs}
226 mkdir -p $RPM_BUILD_ROOT%{prefix}/share/swat/{images,help,include}
227 mkdir -p $RPM_BUILD_ROOT%{prefix}/share/man/{man1,man5,man7,man8}
228 mkdir -p $RPM_BUILD_ROOT/var/lock/samba
229 mkdir -p $RPM_BUILD_ROOT/var/log/samba
230 mkdir -p $RPM_BUILD_ROOT/var/spool/samba
231
232 # Install standard binary files
233 for i in nmblookup smbclient smbpasswd smbstatus testparm testprns \
234       make_smbcodepage make_unicodemap make_printerdef rpcclient smbspool
235 do
236 install -m755 -s source/bin/$i $RPM_BUILD_ROOT%{prefix}/bin
237 done
238 for i in mksmbpasswd.sh smbtar
239 do
240 install -m755 source/script/$i $RPM_BUILD_ROOT%{prefix}/bin
241 done
242
243 # Install secure binary files
244 for i in smbd nmbd swat smbmount smbumount smbmnt debug2html smbfilter 
245 do
246 install -m755 -s source/bin/$i $RPM_BUILD_ROOT/usr/sbin
247 done
248
249
250 # Install level 1 man pages
251 for i in *.1
252 do
253 install -m644 docs/manpages/$i $RPM_BUILD_ROOT%{prefix}/share/man/man1
254 done
255
256 # Install codepage source files
257 for i in 437 737 775 850 852 861 866 932 936 949 950 1251
258 do
259 install -m644 source/codepages/codepage_def.$i $RPM_BUILD_ROOT%{prefix}/samba/codepages/src
260 done
261 for i in 437 737 850 852 861 866 932 936 949 950 ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 KOI8-R
262 do
263 install -m644 source/codepages/CP$i.TXT $RPM_BUILD_ROO%{prefix}/samba/codepages/src
264 done
265
266 # Install the nsswitch library extension file
267 install -m755 source/nsswitch/libnss_wins.so $RPM_BUILD_ROOT/lib
268 # Make link for wins resolver
269 ( cd $RPM_BUILD_ROOT/lib; ln -s libnss_wins.so libnss_wins.so.2; )
270
271 # Install PAM pam_smbpass.so
272 install -m644 source/bin/pam_smbpass.so $RPM_BUILD_ROOT/lib/security
273
274 # Install SWAT helper files
275 for i in swat/help/*.html docs/htmldocs/*.html
276 do
277 install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/help
278 done
279 for i in swat/images/*.gif
280 do
281 install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/images
282 done
283 for i in swat/include/*.html
284 do
285 install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/include
286 done
287
288 # This is the O'Reily Samba Book - on-line
289 for i in docs/htmldocs/using_samba/*.html
290 do
291 install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/using_samba
292 done
293 for i in docs/htmldocs/using_samba/figs/*.gif
294 do
295 install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/using_samba/figs
296 done
297 for i in docs/htmldocs/using_samba/gifs/*.gif
298 do
299 install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/using_samba/gifs
300 done
301
302 # Install the miscellany
303 install -m644 swat/README $RPM_BUILD_ROOT%{prefix}/share/swat
304 install -m644 docs/manpages/smb.conf.5 $RPM_BUILD_ROOT%{prefix}/share/man/man5
305 install -m644 docs/manpages/lmhosts.5 $RPM_BUILD_ROOT%{prefix}/share/man/man5
306 install -m644 docs/manpages/smbpasswd.5 $RPM_BUILD_ROOT%{prefix}/share/man/man5
307 install -m644 docs/manpages/samba.7 $RPM_BUILD_ROOT%{prefix}/share/man/man7
308 install -m644 docs/manpages/smbd.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8
309 install -m644 docs/manpages/nmbd.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8
310 install -m644 docs/manpages/smbpasswd.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8
311 install -m644 docs/manpages/swat.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8
312 install -m644 docs/manpages/smbmount.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8
313 install -m644 docs/manpages/smbmnt.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8
314 install -m644 docs/manpages/smbumount.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8
315 install -m644 packaging/PHT/TurboLinux/smb.conf $RPM_BUILD_ROOT/etc/samba/smb.conf
316 install -m644 packaging/PHT/TurboLinux/smbusers $RPM_BUILD_ROOT/etc/samba/smbusers
317 install -m755 packaging/PHT/TurboLinux/smbprint $RPM_BUILD_ROOT%{prefix}/bin
318 install -m755 packaging/PHT/TurboLinux/findsmb $RPM_BUILD_ROOT%{prefix}/bin
319 install -m755 packaging/PHT/TurboLinux/smb.init $RPM_BUILD_ROOT/etc/rc.d/init.d/smb
320 install -m755 packaging/PHT/TurboLinux/smb.init $RPM_BUILD_ROOT%{prefix}/sbin/samba
321 install -m644 packaging/PHT/TurboLinux/samba.pamd $RPM_BUILD_ROOT/etc/pam.d/samba
322 install -m644 packaging/PHT/TurboLinux/samba.log $RPM_BUILD_ROOT/etc/logrotate.d/samba
323 echo 127.0.0.1 localhost > $RPM_BUILD_ROOT/etc/lmhosts
324
325 # Link smbmount to /sbin/mount.smb and /sbin/mount.smbfs
326 ln -sf %{prefix}/sbin/smbmount $RPM_BUILD_ROOT/sbin/mount.smb
327 ln -sf %{prefix}/sbin/smbmount $RPM_BUILD_ROOT/sbin/mount.smbfs
328
329 %clean
330 rm -rf $RPM_BUILD_ROOT
331
332 %post
333 /sbin/chkconfig --add smb
334 /sbin/chkconfig smb off
335
336 # Build codepage load files
337 cd %{prefix}/share/samba
338 for i in 437 737 775 850 852 861 866 932 936 949 950 1251
339 do
340 %{prefix}/bin/make_smbcodepage c $i %{prefix}/share/samba/codepages/src/codepage_def.$i %{prefix}/share/samba/codepages/codepage.$i
341 done
342 for i in 437 737 850 852 861 866 932 936 949 950 ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 KOI8-R
343 do
344 %{prefix}/bin/make_unicodemap $i %{prefix}/share/samba/codepages/src/CP$i.TXT %{prefix}/share/samba/codepages/unicode_map.$i
345 done
346
347 # Add swat entry to /etc/services if not already there
348 if !( grep ^[:space:]*swat /etc/services > /dev/null ) then
349         echo 'swat              901/tcp                         # Add swat service used via inetd' >> /etc/services
350 fi
351
352 # Add swat entry to /etc/inetd.conf if needed
353 if !( grep ^[:space:]*swat /etc/inetd.conf > /dev/null ) then
354         echo '#swat      stream  tcp     nowait.400      root    %{prefix}/sbin/swat swat' >> /etc/inetd.conf
355         killall -1 inetd || :
356 fi
357
358 # Now create the xinetd.conf file from our inetd.conf file, back up orig first.
359 if [ -f /etc/xinetd.conf ]; then
360         mv /etc/xinetd.conf /etc/xinetd.conf.presamba
361         /usr/sbin/itox --daemon_dir /usr/sbin < /etc/inetd.conf > /etc/xinetd.conf
362 fi
363
364
365 %preun
366 if [ $1 = 0 ] ; then
367     /sbin/chkconfig --del smb
368
369     for n in %{prefix}/share/samba/codepages/*; do
370         if [ $n != %{prefix}/share/samba/codepages/src ]; then
371             rm -rf $n
372         fi
373     done
374     # We want to remove the browse.dat and wins.dat files so they can not interfer with a new version of samba!
375     if [ -e /var/lock/samba/browse.dat ]; then
376             rm -f /var/lock/samba/browse.dat
377     fi
378     if [ -e /var/lock/samba/wins.dat ]; then
379             rm -f /var/lock/samba/wins.dat
380     fi
381 fi
382
383 %postun
384 # Only delete remnants of samba if this is the final deletion.
385 if [ $1 = 0 ] ; then
386     if [ -x /etc/pam.d/samba ]; then
387       rm -f /etc/pam.d/samba
388     fi
389     if [ -e /var/log/samba ]; then
390       rm -rf /var/log/samba
391     fi
392
393 # Note: We MUST keep:
394 #       winbindd_*, sshare_info*, printing*, ntdrivers*
395
396     if [ -x /var/lock/samba ]; then
397       rm -f /var/lock/samba/browse.dat 
398       rm -f /var/lock/samba/{brlock,connections,locking,messages}.tdb
399       if [ -e /var/lock/samba.d/namelist.debug ]; then
400         rm -f /var/lock/samba.d/namelist.debug
401       fi
402       rm -f /var/lock/samba/unexpected.tdb
403       rm -f /var/lock/samba/{smbd,nmbd}.pid
404     fi
405
406     # Remove swat entries from /etc/inetd.conf and /etc/services
407     cd /etc
408     tmpfile=/etc/tmp.$$
409     sed -e '/^[:space:]*swat.*$/d' /etc/inetd.conf > $tmpfile
410     mv $tmpfile inetd.conf
411     sed -e '/#swat.*$/d' /etc/inetd.conf > $tmpfile
412     mv $tmpfile inetd.conf
413     sed -e '/^[:space:]*swat.*$/d' /etc/services > $tmpfile
414     mv $tmpfile services
415
416     # Recreate xinetd.conf file from /etc/inetd.conf
417     mv /etc/xinetd.conf /etc/xinetd.conf.samba
418     /usr/sbin/itox --daemon_dir /usr/sbin < /etc/inetd.conf > /etc/xinetd.conf
419 fi
420
421
422 %triggerpostun -- samba < samba-2.0.0
423 if [ $0 != 0 ]; then
424     /sbin/chkconfig --add smb
425 fi
426
427
428 %files
429 %doc README COPYING Manifest Read-Manifest-Now
430 %doc WHATSNEW.txt Roadmap
431 %doc docs
432 %doc swat/README
433 %doc examples
434 %attr(-,root,root) %{prefix}/sbin/smbd
435 %attr(-,root,root) %{prefix}/sbin/nmbd
436 %attr(-,root,root) %{prefix}/sbin/swat
437 %attr(-,root,root) %{prefix}/sbin/debug2html
438 %attr(0750,root,root) %{prefix}/sbin/samba
439 %attr(-,root,root) %{prefix}/bin/smbclient
440 %attr(-,root,root) %{prefix}/bin/rpcclient
441 %attr(-,root,root) %{prefix}/bin/testparm
442 %attr(-,root,root) %{prefix}/bin/testprns
443 %attr(-,root,root) %{prefix}/bin/findsmb
444 %attr(-,root,root) %{prefix}/bin/smbstatus
445 %attr(-,root,root) %{prefix}/bin/nmblookup
446 %attr(-,root,root) %{prefix}/bin/make_smbcodepage
447 %attr(-,root,root) %{prefix}/bin/make_unicodemap
448 %attr(-,root,root) %{prefix}/bin/make_printerdef
449 %attr(-,root,root) %{prefix}/bin/smbpasswd
450 %attr(-,root,root) %{prefix}/bin/smbtar
451 %attr(-,root,root) %{prefix}/bin/smbprint
452 %attr(-,root,root) %{prefix}/bin/smbspool
453 %attr(-,root,root) %{prefix}/bin/smbadduser
454 %attr(755,root,root) /lib/libnss_wins.s*
455 %attr(755,root,root) /lib/security/pam_smbpass.so
456 %attr(-,root,root) %{prefix}/share/swat/help/*
457 %attr(-,root,root) %{prefix}/share/swat/images/*
458 %attr(-,root,root) %{prefix}/share/swat/include/header.html
459 %attr(-,root,root) %{prefix}/share/swat/include/footer.html
460 %attr(-,root,root) %{prefix}/share/swat/using_samba/*
461 %attr(-,root,root) %config(noreplace) /etc/samba/lmhosts
462 %attr(-,root,root) %config(noreplace) /etc/samba/smb.conf
463 %attr(-,root,root) %config(noreplace) /etc/samba/smbusers
464 %attr(-,root,root) /etc/rc.d/init.d/smb
465 %attr(-,root,root) /etc/logrotate.d/samba
466 %attr(-,root,root) /etc/pam.d/samba
467 %attr(-,root,root) %{prefix}/share/samba/codepages/src/codepage_def.*
468 %attr(-,root,root) %{prefix}/share/samba/codepages/src/CP*
469 # %attr(-,root,root) %{prefix}/share/man/man1/smbsh.1
470 %attr(-,root,root) %{prefix}/share/man/man1/make_smbcodepage.1
471 %attr(-,root,root) %{prefix}/share/man/man1/make_unicodemap.1
472 %attr(-,root,root) %{prefix}/share/man/man1/nmblookup.1
473 %attr(-,root,root) %{prefix}/share/man/man1/smbclient.1
474 %attr(-,root,root) %{prefix}/share/man/man1/smbrun.1
475 %attr(-,root,root) %{prefix}/share/man/man1/smbstatus.1
476 %attr(-,root,root) %{prefix}/share/man/man1/smbtar.1
477 %attr(-,root,root) %{prefix}/share/man/man1/testparm.1
478 %attr(-,root,root) %{prefix}/share/man/man1/testprns.1
479 %attr(-,root,root) %{prefix}/share/man/man5/lmhosts.5
480 %attr(-,root,root) %{prefix}/share/man/man5/smb.conf.5
481 %attr(-,root,root) %{prefix}/share/man/man5/smbpasswd.5
482 %attr(-,root,root) %{prefix}/share/man/man7/samba.7
483 %attr(-,root,root) %{prefix}/share/man/man8/nmbd.8
484 %attr(-,root,root) %{prefix}/share/man/man8/smbd.8
485 %attr(-,root,root) %{prefix}/share/man/man8/smbpasswd.8
486 %attr(-,root,root) %{prefix}/share/man/man8/swat.8
487 %attr(-,root,nobody) %dir /home/samba
488 %attr(-,root,root) %dir %{prefix}/share/samba/codepages
489 %attr(-,root,root) %dir %{prefix}/share/samba/codepages/src
490 %attr(-,root,root) %dir /var/lock/samba
491 %attr(-,root,root) %dir /var/log/samba
492 %attr(1777,root,root) %dir /var/spool/samba
493
494 %files -n smbfs
495 %attr(-,root,root) %{prefix}/sbin/smbmount
496 %attr(-,root,root) %{prefix}/sbin/smbumount
497 %attr(-,root,root) %{prefix}/sbin/smbmnt
498 %attr(-,root,root) /sbin/mount.smb
499 %attr(-,root,root) /sbin/mount.smbfs
500 %attr(-,root,root) %{prefix}/share/man/man8/smbmnt.8
501 %attr(-,root,root) %{prefix}/share/man/man8/smbmount.8
502 %attr(-,root,root) %{prefix}/share/man/man8/smbumount.8