Add SuSE 7.1 packaging (from SAMBA_2_2).
[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/smbstatus
71 /usr/bin/smbtar
72 /usr/bin/smbumount
73 /usr/bin/testparm
74 /usr/bin/testprns
75 %doc /usr/man/man1/smbclient.1.gz
76 %doc /usr/man/man1/smbrun.1.gz
77 %doc /usr/man/man1/smbstatus.1.gz
78 %doc /usr/man/man1/smbtar.1.gz
79 %doc /usr/man/man1/testparm.1.gz
80 %doc /usr/man/man1/testprns.1.gz
81 %doc /usr/man/man1/make_smbcodepage.1.gz
82 %doc /usr/man/man5/smb.conf.5.gz
83 %doc /usr/man/man7/samba.7.gz
84 %doc /usr/man/man8/nmbd.8.gz
85 %doc /usr/man/man8/smbd.8.gz
86 %doc /usr/man/man8/smbmount.8.gz
87 %doc /usr/man/man8/smbumount.8.gz
88 %doc /usr/man/man8/smbmnt.8.gz
89 %doc /usr/man/man8/smbpasswd.8.gz
90 /usr/sbin/nmbd
91 /usr/sbin/smbd
92 /var/adm/fillup-templates/rc.config.samba
93 %description
94 Samba is a suite of programs which work together to allow clients to
95 access Unix filespace and printers via the SMB protocol (Seerver Message
96 Block). 
97 CAUTION: The samba daemons are started by the init script
98 /sbin/init.d/samba, not by inetd. The entries for /usr/sbin/smbd
99 and /usr/sbin/nmbd must be commented out in /etc/inetd.conf.
100 In practice, this means that you can redirect disks and printers to
101 Unix disks and printers from LAN Manager clients, Windows for
102 Workgroups 3.11 clients, Windows'95 clients, Windows NT clients
103 and OS/2 clients. There is
104 also a Unix client program supplied as part of the suite which allows
105 Unix users to use an ftp-like interface to access filespace and
106 printers on any other SMB server.
107 Samba includes the following programs (in summary):
108 * smbd, the SMB server. This handles actual connections from clients.
109 * nmbd, the Netbios name server, which helps clients locate servers.
110 * smbclient, the Unix-hosted client program.
111 * testprns, a program to test server access to printers.
112 * testparm, a program to test the Samba configuration file for correctness.
113 * smb.conf, the Samba configuration file.
114 * smbprint, a sample script to allow a Unix host to use smbclient
115 to print to an SMB server.
116 The suite is supplied with full source and is GPLed.
117 This package expects its config file under /etc/smb.conf .
118 Documentation: /usr/doc/packages/samba
119