1 Summary: SMB client and server
2 Summary(pl): Klient i serwer SMB
9 Source0: ftp://samba.anu.edu.au/pub/samba/%{name}-%{version}.tar.gz
10 Source1: %{name}.PLD.tar.bz2
11 Patch0: %{name}.%{version}.patch
12 Patch1: %{name}-cap.patch
13 Patch2: %{name}-config.patch
14 Prereq: /sbin/chkconfig
17 Requires: krb5-lib >= 1.0.5
18 BuildRoot: /tmp/%{name}-%{version}-root
21 Samba provides an SMB server which can be used to provide
22 network services to SMB (sometimes called "Lan Manager")
23 clients, including various versions of MS Windows, OS/2,
24 and other Linux machines. Samba also provides some SMB
25 clients, which complement the built-in SMB filesystem
26 in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols
27 and does NOT need NetBEUI (Microsoft Raw NetBIOS frame)
30 This release is known as the "Locking Update" and has full
31 support for Opportunistic File Locking. In addition this update
32 includes native support for Microsoft encrypted passwords,
33 improved browse list and WINS database management.
35 Please refer to the WHATSNEW.txt document for fixup information.
36 This binary release includes encrypted password support.
37 Please read the smb.conf file and ENCRYPTION.txt in the
38 docs directory for implementation details.
40 WARNING! This version is designed for using with Kerberos V
43 Samba udostêpnia serwer SMB, który mo¿e byæ u¿yty w celu
44 dostarczenia us³ug sieciowych (potocznie zwanych "Lan Manager"),
45 dla klientów takich jak M$ Windows, OS/2 a tak¿e maszyn linuxowych.
46 W pakiecie znajduje siê równie¿ oprogramowanie klienckie. Samba u¿ywa
47 protoko³u NetBIOS po TCP/IP (NetBT) i nie wymaga ¶miesznego protoko³u
48 NetBEUI. Ta wersja ma pe³ne wsparcie dla blokowania plików, a tak¿e
49 wsparcie dla kodowania hase³ w standardzie M$ i zarzadzania komiczn±
52 UWAGA! Ta wersja jest przeznaczona dla maszyn wyposa¿onych w Kerberos'a V
63 CFLAGS=$RPM_OPT_FLAGS LDFLAGS=-s \
65 --sysconfdir=/etc/samba \
71 --with-privatedir=/etc/samba \
73 --localstatedir=/var \
76 --with-swatdir=/usr/share/swat
81 rm -rf $RPM_BUILD_ROOT
83 install -d $RPM_BUILD_ROOT
84 install -d $RPM_BUILD_ROOT/etc/samba/codepages/src
85 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,pam.d}
86 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
87 install -d $RPM_BUILD_ROOT/home/samba
88 install -d $RPM_BUILD_ROOT/lib/security
89 install -d $RPM_BUILD_ROOT/usr/{bin,sbin}
90 install -d $RPM_BUILD_ROOT/usr/man/{man1,man5,man7,man8}
91 install -d $RPM_BUILD_ROOT/var/lock/samba
92 install -d $RPM_BUILD_ROOT/var/log/samba
93 install -d $RPM_BUILD_ROOT/var/spool/samba
94 install -d $RPM_BUILD_ROOT/usr/share/swat/{include,images,help}
97 make prefix=$RPM_BUILD_ROOT/usr \
98 BASEDIR=$RPM_BUILD_ROOT/usr \
99 BINDIR=$RPM_BUILD_ROOT/usr/bin \
100 SBINDIR=$RPM_BUILD_ROOT/usr/sbin \
101 LIBDIR=$RPM_BUILD_ROOT/etc/samba \
102 PRIVATEDIR=$RPM_BUILD_ROOT/etc/samba \
103 SWATDIR=$RPM_BUILD_ROOT/usr/share/swat \
104 VARDIR=$RPM_BUILD_ROOT/var \
108 install source/codepages/codepage_def.* \
109 $RPM_BUILD_ROOT/etc/samba/codepages/src
111 install docs/manpages/*.1 $RPM_BUILD_ROOT/usr/man/man1
112 install docs/manpages/*.5 $RPM_BUILD_ROOT/usr/man/man5
113 install docs/manpages/*.7 $RPM_BUILD_ROOT/usr/man/man7
114 install docs/manpages/*.8 $RPM_BUILD_ROOT/usr/man/man8
116 install packaging/PLD/smb.conf $RPM_BUILD_ROOT/etc/samba
117 install packaging/PLD/smbusers $RPM_BUILD_ROOT/etc/samba
118 install packaging/PLD/smbprint $RPM_BUILD_ROOT/usr/bin
119 install packaging/PLD/smbadduser $RPM_BUILD_ROOT/usr/bin
120 install packaging/PLD/findsmb $RPM_BUILD_ROOT/usr/bin
121 install packaging/PLD/smb.init $RPM_BUILD_ROOT/etc/rc.d/init.d/smb
122 install packaging/PLD/samba.pam $RPM_BUILD_ROOT/etc/pam.d/samba
123 install packaging/PLD/samba.log $RPM_BUILD_ROOT/etc/logrotate.d/samba
125 install swat/help/*.html docs/htmldocs/*.html \
126 $RPM_BUILD_ROOT/usr/share/swat/help
127 install swat/images/*.gif $RPM_BUILD_ROOT/usr/share/swat/images
128 install swat/include/*.html $RPM_BUILD_ROOT/usr/share/swat/include
130 install -s source/bin/*.so $RPM_BUILD_ROOT/lib/security
132 touch $RPM_BUILD_ROOT/var/lock/samba/{STATUS..LCK,wins.dat,browse.dat}
134 echo 127.0.0.1 > $RPM_BUILD_ROOT/etc/samba/lmhosts
136 for i in 437 737 850 852 861 866 932 949 950 936; do
137 $RPM_BUILD_ROOT/usr/bin/make_smbcodepage c $i \
138 $RPM_BUILD_ROOT/etc/samba/codepages/src/codepage_def.$i \
139 $RPM_BUILD_ROOT/etc/samba/codepages/codepage.$i; done
141 bzip2 -9 $RPM_BUILD_ROOT/usr/man/{man1/*,man5/*,man7/*,man8/*}
142 bzip2 -9 README Manifest WHATSNEW.txt Roadmap docs/*.reg
145 rm -rf $RPM_BUILD_ROOT
148 /sbin/chkconfig --add smb
150 # Not for PLD-devel !
151 #if !( grep ^[:space:]*swat /etc/services > /dev/null ) then
152 #echo 'swat 901/tcp # Swat service used via inetd' >> /etc/services
155 # Not for PLD devel !
156 #if !( grep ^[:space:]*swat /etc/inetd.conf > /dev/null ) then
157 #echo 'swat stream tcp nowait.400 root /usr/sbin/swat swat' >> /etc/inetd.conf
158 #killall -HUP inetd >&2
163 /etc/rc.d/init.d/smb stop >&2
164 /sbin/chkconfig --del smb
166 # Not for PLD devel !
168 # tmpfile=/etc/tmp.$$
169 # sed -e '/^[:space:]*swat.*$/d' /etc/inetd.conf > $tmpfile
170 # mv $tmpfile inetd.conf
171 # sed -e '/^[:space:]*swat.*$/d' /etc/services > $tmpfile
172 # mv $tmpfile services
176 %defattr(644,root,root,755)
177 %doc README.bz2 Manifest.bz2 WHATSNEW.txt.bz2
178 %doc Roadmap.bz2 docs/faq/*.html docs/*.reg.bz2
180 %attr(755,root,root) /usr/bin/*
181 %attr(755,root,root) /usr/sbin/*
184 %config(noreplace) %verify(not size mtime md5) /etc/samba/smb.conf
185 %attr(600,root,root) %config %verify(not size mtime md5) /etc/samba/smbusers
186 %attr(640,root,root) %config %verify(not size mtime md5) /etc/samba/lmhosts
188 %attr(700,root,root) /etc/rc.d/init.d/smb
189 %attr(640,root,root) /etc/logrotate.d/samba
190 %attr(640,root,root) /etc/pam.d/samba
192 %attr(755,root,root) /lib/security/*.so
194 %attr(644,root, man) /usr/man/man[1578]/*
196 %attr(755,root,root) %dir /home/samba
198 %attr(755,root,root) %dir /etc/samba/codepages
199 /etc/samba/codepages/*
201 %attr(750,root,root) %dir /var/lock/samba
202 %attr(640,root,root) /var/lock/samba/*
204 %attr(0750,root, root) %dir /var/log/samba
205 %attr(1777,root, root) %dir /var/spool/samba
208 * Tue Jan 26 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
210 - updated to new version,
212 - added patch against GNU libc-2.1 -- prepared by Paul Laufer
213 http://www.cspupomona.edu/~pelaufer/samba,
214 - some other changes ...
216 * Wed Aug 05 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
218 - build against glibc-2.1,
219 patch prepared by Paul Laufer <PELaufer@csupomona.edu>
220 http://www.netcom.com/~mlaufer/samba,
221 - translation modified for pl,
222 - build with Kerberos V support,
223 - moved %changelog at the end of spec,
224 - build from non root's acccount,
225 - changed permisions of binaries to 755,
226 - moved config files to /etc/samba instead /etc,
227 - added a sticky bit on /var/spool/samba,
228 - minor modifications of spec.
230 * Sat Jul 4 1998 John H Terpstra <jht@samba.anu.edu.au>
231 - changed classification of codepage source files
232 - altered installation of samba system files
233 - modified doc handling (removed attribute setting parameters)
235 * Sat Jun 13 1998 John H Terpstra <jht@samba.anu.edu.au>
236 - Added code pages 737 and 861 to files section
237 - Added auto-generation of empty /etc/lmhosts file if not exist
238 - Always zap and create empty /var/lock/samba/STATUS..LCK file
240 * Wed Jun 10 1998 John H Terpstra <jht@samba.anu.edu.au>
241 - Updated version info for 1.9.18p8 release
242 - updated codepage support for pages 737 861
244 * Sun Apr 26 1998 John H Terpstra <jht@samba.anu.edu.au>
245 - minor tidy up in preparation for release of 1.9.18p5
246 - added findsmb utility from SGI package
248 * Wed Mar 18 1998 John H Terpstra <jht@samba.anu.edu.au>
249 - Updated version and codepage info.
250 - Release to test name resolve order
252 * Sat Jan 24 1998 John H Terpstra <jht@samba.anu.edu.au>
253 - Many optimisations (some suggested by Manoj Kasichainula <manojk@io.com>
254 - Use of chkconfig in place of individual symlinks to /etc/rc.d/init/smb
255 - Compounded make line
256 - Updated smb.init restart mechanism
257 - Use compound mkdir -p line instead of individual calls to mkdir
258 - Fixed smb.conf file path for log files
259 - Fixed smb.conf file path for incoming smb print spool directory
260 - Added a number of options to smb.conf file
261 - Added smbadduser command (missed from all previous RPMs) - Doooh!
262 - Added smbuser file and smb.conf file updates for username map