637af1781e1f249e2370dcdd144c766e341f30a2
[kai/samba.git] / packaging / SuSE / 5.2 / samba.spec
1 #
2 # spec file for package samba (Version 1.9.18p1)
3
4 # Copyright  (c)  1997  S.u.S.E. GmbH  Fuerth, Germany.
5 #
6 # please send bugfixes or comments to feedback@suse.de.
7 #
8
9 Vendor:       S.u.S.E. GmbH, Fuerth, Germany
10 Distribution: S.u.S.E. Linux 5.1 (i386)
11 Name:         samba
12 Release:      1
13 Copyright:    1992-98 Andrew Tridgell, Karl Auer, Jeremy Allison
14 Group: 
15 Provides:     samba smbfs 
16 Requires: 
17 Conflicts:    
18 Autoreqprov:  on
19 Packager:     feedback@suse.de
20
21 Version:      1.9.18p5
22 Summary:      Samba  is a file server for Unix, similar to LanManager.
23 Source: samba-1.9.18p5.tar.gz
24 Source1: smbfs-2.0.2.tar.gz
25 Patch: samba-1.9.18p5.dif
26 Patch1: smbfs-2.0.2.dif
27 %prep
28 %setup
29 %patch
30 %setup -T -n smbfs-2.0.2 -b1
31 %patch -P 1
32 %build
33 cd ../samba-1.9.18p5
34 make -f Makefile.Linux compile
35 cd ../smbfs-2.0.2
36 make -f Makefile.Linux compile
37 %install
38 cd ../samba-1.9.18p5
39 make -f Makefile.Linux install
40 cd ../smbfs-2.0.2
41 make -f Makefile.Linux install
42 Check
43 %post
44 echo "Updating etc/rc.config..."
45 if [ -x bin/fillup ] ; then
46   bin/fillup -q -d = etc/rc.config var/adm/fillup-templates/rc.config.samba
47 else
48   echo "ERROR: fillup not found. This should not happen. Please compare"
49   echo "etc/rc.config and var/adm/fillup-templates/rc.config.samba and"
50   echo "update by hand."
51 fi
52 %files
53 %docdir /usr/doc/packages/samba
54 /usr/doc/packages/samba
55 %config /etc/smb.conf
56 /usr/lib/samba/codepages
57 /sbin/init.d/rc2.d/K20smb
58 /sbin/init.d/rc2.d/S20smb
59 /sbin/init.d/rc3.d/K20smb
60 /sbin/init.d/rc3.d/S20smb
61 %config /sbin/init.d/smb
62 /usr/bin/addtosmbpass
63 /usr/bin/mksmbpasswd.sh
64 /usr/bin/make_printerdef
65 /usr/bin/make_smbcodepage
66 /usr/bin/nmblookup
67 /usr/bin/smbclient
68 /usr/bin/smbmount
69 /usr/bin/smbpasswd
70 /usr/bin/smbrun
71 /usr/bin/smbstatus
72 /usr/bin/smbtar
73 /usr/bin/smbumount
74 /usr/bin/testparm
75 /usr/bin/testprns
76 %doc /usr/man/man1/smbclient.1.gz
77 %doc /usr/man/man1/smbrun.1.gz
78 %doc /usr/man/man1/smbstatus.1.gz
79 %doc /usr/man/man1/smbtar.1.gz
80 %doc /usr/man/man1/testparm.1.gz
81 %doc /usr/man/man1/testprns.1.gz
82 %doc /usr/man/man1/make_smbcodepage.1.gz
83 %doc /usr/man/man5/smb.conf.5.gz
84 %doc /usr/man/man7/samba.7.gz
85 %doc /usr/man/man8/nmbd.8.gz
86 %doc /usr/man/man8/smbd.8.gz
87 %doc /usr/man/man8/smbmount.8.gz
88 %doc /usr/man/man8/smbumount.8.gz
89 %doc /usr/man/man8/smbmnt.8.gz
90 %doc /usr/man/man8/smbpasswd.8.gz
91 /usr/sbin/nmbd
92 /usr/sbin/smbd
93 /var/adm/fillup-templates/rc.config.samba
94 %description
95 Samba is a suite of programs which work together to allow clients to
96 access Unix filespace and printers via the SMB protocol (Seerver Message
97 Block). 
98 CAUTION: The samba daemons are started by the init script
99 /sbin/init.d/samba, not by inetd. The entries for /usr/sbin/smbd
100 and /usr/sbin/nmbd must be commented out in /etc/inetd.conf.
101 In practice, this means that you can redirect disks and printers to
102 Unix disks and printers from LAN Manager clients, Windows for
103 Workgroups 3.11 clients, Windows'95 clients, Windows NT clients
104 and OS/2 clients. There is
105 also a Unix client program supplied as part of the suite which allows
106 Unix users to use an ftp-like interface to access filespace and
107 printers on any other SMB server.
108 Samba includes the following programs (in summary):
109 * smbd, the SMB server. This handles actual connections from clients.
110 * nmbd, the Netbios name server, which helps clients locate servers.
111 * smbclient, the Unix-hosted client program.
112 * smbrun, a little 'glue' program to help the server run external
113 programs. 
114 * testprns, a program to test server access to printers.
115 * testparm, a program to test the Samba configuration file for correctness.
116 * smb.conf, the Samba configuration file.
117 * smbprint, a sample script to allow a Unix host to use smbclient
118 to print to an SMB server.
119 The suite is supplied with full source and is GPLed.
120 This package expects its config file under /etc/smb.conf .
121 Documentation: /usr/doc/packages/samba
122