1 Summary: Samba SMB client and server
5 Copyright: GNU GPL version 2
7 Source: ftp://samba.anu.edu.au/pub/samba/samba-PVERSION.tar.gz
8 Patch: makefile-path.patch
10 Packager: John H Terpstra [Samba-Team] <jht@samba.anu.edu.au>
11 BuildRoot: /var/tmp/samba
14 Samba provides an SMB server which can be used to provide
15 network services to SMB (sometimes called "Lan Manager")
16 clients, including various versions of MS Windows, OS/2,
17 and other Linux machines. Samba also provides some SMB
18 clients, which complement the built-in SMB filesystem
19 in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols
20 and does NOT need NetBEUI (Microsoft Raw NetBIOS frame)
23 Samba-2 features an almost working NT Domain Control
24 capability and includes the new SWAT (Samba Web Administration
25 Tool) that allows samba's smb.conf file to be remotely managed
26 using your favourite web browser. For the time being this is
27 being enabled on TCP port 901 via inetd.
29 Please refer to the WHATSNEW.txt document for fixup information.
30 This binary release includes encrypted password support.
31 Please read the smb.conf file and ENCRYPTION.txt in the
32 docs directory for implementation details.
35 * Mon Nov 16 1998 John H Terpstra <jht@samba.anu.edu.au>
36 - Ported to Cadera OpenLinux
45 ./configure --prefix=/usr --libdir=/etc
49 rm -rf $RPM_BUILD_ROOT
50 mkdir -p $RPM_BUILD_ROOT
51 mkdir -p $RPM_BUILD_ROOT/etc/codepages/src
52 mkdir -p $RPM_BUILD_ROOT/etc/{logrotate.d,pam.d}
53 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/{init.d,rc0.d,rc1.d,rc2.d,rc3.d,rc5.d,rc6.d}
54 mkdir -p $RPM_BUILD_ROOT/home/samba
55 mkdir -p $RPM_BUILD_ROOT/usr/{bin,sbin}
56 mkdir -p $RPM_BUILD_ROOT/usr/share/swat/{images,help,include}
57 mkdir -p $RPM_BUILD_ROOT/usr/man/{man1,man5,man7,man8}
58 mkdir -p $RPM_BUILD_ROOT/var/lock/samba
59 mkdir -p $RPM_BUILD_ROOT/var/log/samba
60 mkdir -p $RPM_BUILD_ROOT/var/spool/samba
62 # Install standard binary files
63 for i in nmblookup smbclient smbpasswd smbrun smbstatus testparm testprns \
64 make_smbcodepage make_printerdef rpcclient
66 install -m755 -s source/bin/$i $RPM_BUILD_ROOT/usr/bin
68 for i in addtosmbpass mksmbpasswd.sh smbtar
70 install -m755 source/script/$i $RPM_BUILD_ROOT/usr/bin
73 # Install secure binary files
74 for i in smbd nmbd swat
76 install -m755 -s source/bin/$i $RPM_BUILD_ROOT/usr/sbin
79 # Install level 1 man pages
80 for i in smbclient.1 smbrun.1 smbstatus.1 smbtar.1 testparm.1 testprns.1 make_smbcodepage.1 nmblookup.1
82 install -m644 docs/manpages/$i $RPM_BUILD_ROOT/usr/man/man1
85 # Install codepage source files
86 for i in 437 737 850 852 861 866 932 936 949 950
88 install -m644 source/codepages/codepage_def.$i $RPM_BUILD_ROOT/etc/codepages/src
91 # Install SWAT helper files
92 for i in swat/help/*.html
94 install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/help
96 for i in swat/images/*.gif
98 install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/images
100 for i in swat/include/*.html
102 install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/include
105 # Install the miscellany
106 install -m644 swat/README $RPM_BUILD_ROOT/usr/share/swat
107 install -m644 docs/manpages/smb.conf.5 $RPM_BUILD_ROOT/usr/man/man5
108 install -m644 docs/manpages/lmhosts.5 $RPM_BUILD_ROOT/usr/man/man5
109 install -m644 docs/manpages/smbpasswd.5 $RPM_BUILD_ROOT/usr/man/man5
110 install -m644 docs/manpages/samba.7 $RPM_BUILD_ROOT/usr/man/man7
111 install -m644 docs/manpages/smbd.8 $RPM_BUILD_ROOT/usr/man/man8
112 install -m644 docs/manpages/nmbd.8 $RPM_BUILD_ROOT/usr/man/man8
113 install -m644 docs/manpages/swat.8 $RPM_BUILD_ROOT/usr/man/man8
114 install -m644 docs/manpages/smbpasswd.8 $RPM_BUILD_ROOT/usr/man/man8
115 install -m644 packaging/RedHat/smb.conf $RPM_BUILD_ROOT/etc/smb.conf
116 install -m644 packaging/RedHat/smbusers $RPM_BUILD_ROOT/etc/smbusers
117 install -m755 packaging/RedHat/smbprint $RPM_BUILD_ROOT/usr/bin
118 install -m755 packaging/RedHat/findsmb $RPM_BUILD_ROOT/usr/bin
119 install -m755 packaging/RedHat/smbadduser $RPM_BUILD_ROOT/usr/bin
120 install -m755 packaging/RedHat/smb.init $RPM_BUILD_ROOT/etc/rc.d/init.d/smb
121 install -m755 packaging/RedHat/smb.init $RPM_BUILD_ROOT/usr/sbin/samba
122 install -m644 packaging/RedHat/samba.pamd $RPM_BUILD_ROOT/etc/pam.d/samba
123 install -m644 packaging/RedHat/samba.log $RPM_BUILD_ROOT/etc/logrotate.d/samba
124 echo 127.0.0.1 localhost > $RPM_BUILD_ROOT/etc/lmhosts
127 rm -rf $RPM_BUILD_ROOT
130 /sbin/chkconfig --add smb
132 # Build codepage load files
133 for i in 437 737 850 852 861 866 932 936 949 950
135 /usr/bin/make_smbcodepage c $i /etc/codepages/src/codepage_def.$i /etc/codepages/codepage.$i
138 # Add swat entry to /etc/services if not already there
139 if !( grep ^[:space:]*swat /etc/services > /dev/null ) then
140 echo 'swat 901/tcp # Add swat service used via inetd' >> /etc/services
143 # Add swat entry to /etc/inetd.conf if needed
144 if !( grep ^[:space:]*swat /etc/inetd.conf > /dev/null ) then
145 echo 'swat stream tcp nowait.400 root /usr/sbin/swat swat' >> /etc/inetd.conf
146 killall -1 inetd || :
151 /sbin/chkconfig --del smb
153 for n in /etc/codepages/*; do
154 if [ $n != /etc/codepages/src ]; then
158 # We want to remove the browse.dat and wins.dat files so they can not interfer with a new version of samba!
159 if [ -e /var/lock/samba/browse.dat ]; then
160 rm -f /var/lock/samba/browse.dat
162 if [ -e /var/lock/samba/wins.dat ]; then
163 rm -f /var/lock/samba/wins.dat
168 # Only delete remnants of samba if this is the final deletion.
169 if [ $1 != 0 ] ; then
172 if [ -x /etc/pam.d/samba ]; then
173 rm -f /etc/pam.d/samba
175 if [ -e /var/log/samba ]; then
176 rm -rf /var/log/samba
178 if [ -e /var/lock/samba ]; then
179 rm -rf /var/lock/samba
182 # Remove swat entries from /etc/inetd.conf and /etc/services
185 sed -e '/^[:space:]*swat.*$/d' /etc/inetd.conf > $tmpfile
186 mv $tmpfile inetd.conf
187 sed -e '/^[:space:]*swat.*$/d' /etc/services > $tmpfile
192 %doc README COPYING Manifest Read-Manifest-Now
193 %doc WHATSNEW.txt Roadmap
197 %attr(-,root,root) /usr/sbin/smbd
198 %attr(-,root,root) /usr/sbin/nmbd
199 %attr(-,root,root) /usr/sbin/swat
200 %attr(0750,root,root) /usr/sbin/samba
201 %attr(-,root,root) /usr/bin/addtosmbpass
202 %attr(-,root,root) /usr/bin/mksmbpasswd.sh
203 %attr(-,root,root) /usr/bin/smbclient
204 %attr(-,root,root) /usr/bin/rpcclient
205 %attr(-,root,root) /usr/bin/testparm
206 %attr(-,root,root) /usr/bin/testprns
207 %attr(-,root,root) /usr/bin/smbrun
208 %attr(-,root,root) /usr/bin/findsmb
209 %attr(-,root,root) /usr/bin/smbstatus
210 %attr(-,root,root) /usr/bin/nmblookup
211 %attr(-,root,root) /usr/bin/make_smbcodepage
212 %attr(-,root,root) /usr/bin/make_printerdef
213 %attr(-,root,root) /usr/bin/smbpasswd
214 %attr(-,root,root) /usr/bin/smbtar
215 %attr(-,root,root) /usr/bin/smbprint
216 %attr(-,root,root) /usr/bin/smbadduser
217 %attr(-,root,root) /usr/share/swat/help/smb.conf.5.html
218 %attr(-,root,root) /usr/share/swat/help/welcome.html
219 %attr(-,root,root) /usr/share/swat/images/globals.gif
220 %attr(-,root,root) /usr/share/swat/images/home.gif
221 %attr(-,root,root) /usr/share/swat/images/passwd.gif
222 %attr(-,root,root) /usr/share/swat/images/printers.gif
223 %attr(-,root,root) /usr/share/swat/images/shares.gif
224 %attr(-,root,root) /usr/share/swat/images/samba.gif
225 %attr(-,root,root) /usr/share/swat/images/status.gif
226 %attr(-,root,root) /usr/share/swat/images/viewconfig.gif
227 %attr(-,root,root) /usr/share/swat/include/header.html
228 %attr(-,root,root) /usr/share/swat/include/footer.html
229 %attr(-,root,root) %config(noreplace) /etc/lmhosts
230 %attr(-,root,root) %config(noreplace) /etc/smb.conf
231 %attr(-,root,root) %config(noreplace) /etc/smbusers
232 %attr(-,root,root) /etc/rc.d/init.d/smb
233 %attr(-,root,root) /etc/logrotate.d/samba
234 %attr(-,root,root) /etc/pam.d/samba
235 %attr(-,root,root) /etc/codepages/src/codepage_def.437
236 %attr(-,root,root) /etc/codepages/src/codepage_def.737
237 %attr(-,root,root) /etc/codepages/src/codepage_def.850
238 %attr(-,root,root) /etc/codepages/src/codepage_def.852
239 %attr(-,root,root) /etc/codepages/src/codepage_def.861
240 %attr(-,root,root) /etc/codepages/src/codepage_def.866
241 %attr(-,root,root) /etc/codepages/src/codepage_def.932
242 %attr(-,root,root) /etc/codepages/src/codepage_def.936
243 %attr(-,root,root) /etc/codepages/src/codepage_def.949
244 %attr(-,root,root) /etc/codepages/src/codepage_def.950
245 %attr(-,root,root) /usr/man/man1/smbstatus.1
246 %attr(-,root,root) /usr/man/man1/smbclient.1
247 %attr(-,root,root) /usr/man/man1/make_smbcodepage.1
248 %attr(-,root,root) /usr/man/man1/smbrun.1
249 %attr(-,root,root) /usr/man/man1/smbtar.1
250 %attr(-,root,root) /usr/man/man1/testparm.1
251 %attr(-,root,root) /usr/man/man1/testprns.1
252 %attr(-,root,root) /usr/man/man1/nmblookup.1
253 %attr(-,root,root) /usr/man/man5/smb.conf.5
254 %attr(-,root,root) /usr/man/man5/lmhosts.5
255 %attr(-,root,root) /usr/man/man5/smbpasswd.5
256 %attr(-,root,root) /usr/man/man7/samba.7
257 %attr(-,root,root) /usr/man/man8/smbd.8
258 %attr(-,root,root) /usr/man/man8/nmbd.8
259 %attr(-,root,root) /usr/man/man8/smbpasswd.8
260 %attr(-,root,root) /usr/man/man8/swat.8
261 %attr(-,root,nobody) %dir /home/samba
262 %attr(-,root,root) %dir /etc/codepages
263 %attr(-,root,root) %dir /etc/codepages/src
264 %attr(-,root,root) %dir /var/lock/samba
265 %attr(-,root,root) %dir /var/log/samba
266 %attr(1777,root,root) %dir /var/spool/samba