3 # _with_ldap - with LDAP support
6 Summary(pl): Serwer SMB
7 Summary(cs): Server SMB
8 Summary(da): SMB server
9 Summary(de): SMB-Server
10 Summary(fi): SMB-palvelin
11 Summary(fr): Serveur SMB
12 Summary(it): Server SMB
13 Summary(pl): Serwer SMB
14 Summary(tr): SMB sunucusu
19 Group: Networking/Daemons
20 URL: http://www.samba.org/
21 Source0: ftp://ftp.samba.org/pub/samba/%{name}-%{version}.tar.bz2
25 Source4: %{name}.sysconfig
26 Source5: %{name}.logrotate
28 Patch1: %{name}-config.patch
29 Patch2: %{name}-DESTDIR.patch
30 Patch3: %{name}-manpages_PLD_fixes.patch
31 Patch4: %{name}-smbprint.patch
32 Patch5: %{name}-autoconf.patch
33 Patch6: %{name}-smbadduser.patch
34 Patch7: %{name}-nmbd_socket.patch
35 Patch8: %{name}-pam_smbpass.patch
36 Patch9: %{name}-srv_spoolss_nt.patch
37 # needed for external vfs modules to work.
38 Patch10: %{name}-vfs.patch
39 Patch11: %{name}-quota.patch
40 Prereq: /sbin/chkconfig
43 Requires: samba-common = %{version}
44 BuildRequires: autoconf
45 BuildRequires: ncurses-devel >= 5.2
46 BuildRequires: readline-devel >= 4.2
47 BuildRequires: pam-devel > 0.66
48 %{?_with_ldap:BuildRequires: openldap-devel}
49 BuildRequires: openssl-devel >= 0.9.6a
50 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52 %define _sysconfdir /etc/samba
53 %define _libdir %{_sysconfdir}
54 %define _localstatedir %{_var}/log/samba
57 Samba provides an SMB server which can be used to provide network
58 services to SMB (sometimes called "Lan Manager") clients, including
59 various versions of MS Windows, OS/2, and other Linux machines. Samba
60 also provides some SMB clients, which complement the built-in SMB
61 filesystem in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols
62 and does NOT need NetBEUI (Microsoft Raw NetBIOS frame) protocol.
64 This release is known as the "Locking Update" and has full support for
65 Opportunistic File Locking. In addition this update includes native
66 support for Microsoft encrypted passwords, improved browse list and
67 WINS database management.
69 Please refer to the WHATSNEW.txt document for fixup information. This
70 binary release includes encrypted password support. Please read the
71 smb.conf file and ENCRYPTION.txt in the docs directory for
72 implementation details.
75 Samba poskytuje server SMB, který lze pou¾ít pro poskytování sí»ových
76 slu¾eb klientùm SMB (nìkdy nazývaných klienti "LAN mana¾er") vèetnì
77 klientù rùzných verzí MS Windows, OS/2 a dal¹ích linuxových strojù.
78 Samba té¾ poskytuje nìkteré klienty SMB, kteøí komplementují vestavìný
79 souborový systém SMB v Linuxu. Samba pou¾ívá protokoly NetBIOS pøes
80 TCP/IP (NetBT) a NEpotøebuje protokol NetBEUI (neformátovaný rámec
81 NetBIOS od spoleènosti Microsoft.
84 Samba tilbyder en SMB server som kan bruges til at tilbyde netværk
85 services til SMB (også kaldet "Lan Manager") klienter, incl.
86 forskellige versioner af MS Windows, OS/2, og andre Linux maskiner.
87 Samba tilbyder også SMB klienter, som udbygger det indbyggede SMB
88 filsystem i Linux. Samba benytter NetBIOS over TCP/IP (NetBT)
89 protocolen og kræver ikke NetBEUI (Microsoft Raw NetBIOS frame)
93 Samba stellt einen SMB-Server zum Anbieten von Netzwerkdiensten für
94 SMB-Clients (auch "Lan Manager" genannt) zur Verfügung, darunter
95 verschiedenen Versionen von MS Windows-, OS/2- und anderen
96 Linux-Rechnern. Samba enthält außerdem einige SMB-Clients, die das in
97 Linux integrierte SMB-Dateisystem ergänzen. Samba benutzt
98 NetBIOS-über-TCP/IP (NetBT)-Protokolle und benötigt KEIN NetBEUI
99 (Microsoft Raw NetBIOS frame)-Protokoll.
102 Samba on SMB-palvelin, jota voidaan käyttää SMB-asiakasohjelmien
103 verkkopalvelujen tarjoajana. SMB-protokollaa kutsutaan joskus "Lan
104 Manager" protokollaksi ja asiakasohjelmat toimivat dosissa,
105 Windowseissa, OS/2:ssa ja toisissa Linux-koneissa. Samban mukana on
106 myös joitakin SMB-asiakasohjelmia, jotka täydentävät Linuxin
107 kernelissä olevaa SMB-tiedostojärjestelmän tukea. Samba vaatii NetBIOS
108 over TCP/IP (NetBT) protokollaa eikä tarvitse tai pysty käyttämään
112 Samba fornisce un server SMB che puo` essere usato per fornire servizi
113 di rete ai client SMB, incluse le versioni MS Windows, OS/2 e per
114 altre macchine Linux. Samba fornisce anche i client SMB. Samba usa
115 NetBIOS sopra TCP/IP e non ha bisogno del protocollo NetBEUI.
118 Samba udostêpnia serwer SMB, który mo¿e byæ u¿yty w celu dostarczenia
119 us³ug sieciowych (potocznie zwanych "Lan Manager"), dla klientów
120 takich jak MS Windows, OS/2 a tak¿e maszyn linuksowych. W pakiecie
121 znajduje siê równie¿ oprogramowanie klienckie. Samba u¿ywa protoko³u
122 NetBIOS po TCP/IP (NetBT) i nie wymaga protoko³u NetBEUI. Ta wersja ma
123 pe³ne wsparcie dla blokowania plików, a tak¿e wsparcie dla kodowania
124 hase³ w standardzie MS i zarzadzania baz± WINS.
127 Summary: Samba Web Administration Tool
128 Summary(pl): Narzêdzie administracyjne serwisu Samba
129 Group: Networking/Admin
131 Requires: rc-inetd >= 0.8.2
134 Obsoletes: samba-swat
137 swat allows a Samba administrator to configure the complex smb.conf
138 file via a Web browser. In addition, a swat configuration page has
139 help links to all the configurable options in the smb.conf file
140 allowing an administrator to easily look up the effects of any change.
142 swat is run from inet server.
144 %description -n swat -l pl
145 swat pozwala na kompleksow± konfiguracjê smb.conf przy pomocy
149 Summary: Samba client programs
150 Summary(pl): Klienci serwera Samba
151 Group: Applications/Networking
152 Requires: samba-common = %{version}
156 Samba-client provides some SMB clients, which complement the build-in
157 SMB filesystem in Linux. These allow accessing of SMB shares and
158 printing to SMB printers.
160 %description client -l pl
161 Samba-client dostarcza pewne programy które uzupe³niaj± system plików
162 SMB zawarty w j±drze. Pozwala na wspó³dzielenie i drukowanie w sieci
166 Summary: Files used by both Samba servers and clients
167 Summary(pl): Pliki u¿ywane przez serwer i klientów Samba
168 Group: Networking/Daemons
171 Samba-common provides files necessary for both the server and client
174 %description common -l pl
175 Samba-common dostarcza pliki niezbêdne zarówno dla serwera jak i
178 %package -n pam_smbpass
179 Summary: PAM Samba Password Module
180 Summary(pl): Modu³ PAM smbpass
183 %description -n pam_smbpass
184 PAM module which can be used on conforming systems to
185 keep the smbpasswd (Samba password) database in sync with the unix
188 %description -n pam_smbpass -l pl
189 Modu³ PAMa, który mo¿e byæ u¿ywany do trzymania pliku smbpasswd
190 (has³a Samby) zsynchronizowanego z has³ami unixowymi.
211 --with-privatedir=%{_libdir} \
212 --with-lockdir=%{_var}/lock/samba \
213 --with-swatdir=%{_datadir}/swat \
216 --without-smbwrapper \
226 --with-sslinc=%{_prefix} \
227 %{?_with_ldap:--with-ldapsam}
229 mv Makefile Makefile.old
230 sed -e "s#-symbolic##g" Makefile.old > Makefile
232 %{__make} everything pam_smbpass
235 rm -rf $RPM_BUILD_ROOT
236 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,pam.d,security,sysconfig/rc-inetd} \
237 $RPM_BUILD_ROOT/{var/{lock,log,log/archiv,spool},home}/samba \
238 $RPM_BUILD_ROOT/{sbin,lib/security}
241 %{__make} install DESTDIR=$RPM_BUILD_ROOT
242 install script/mksmbpasswd.sh /$RPM_BUILD_ROOT%{_sbindir}
245 ln -sf %{_bindir}/smbmount $RPM_BUILD_ROOT/sbin/mount.smbfs
247 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/smb
248 install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/samba
249 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/swat
250 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/samba
251 install %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/samba
252 install %{SOURCE6} $RPM_BUILD_ROOT%{_libdir}/smb.conf
254 install source/nsswitch/libnss_wins.so $RPM_BUILD_ROOT/lib/libnss_wins.so.2
255 install source/nsswitch/pam_winbind.so $RPM_BUILD_ROOT/lib/security/
256 install source/bin/pam_smbpass.so $RPM_BUILD_ROOT/lib/security/
257 install source/bin/wbinfo $RPM_BUILD_ROOT%{_bindir}
259 touch $RPM_BUILD_ROOT/var/lock/samba/{STATUS..LCK,wins.dat,browse.dat}
261 echo 127.0.0.1 localhost > $RPM_BUILD_ROOT%{_libdir}/lmhosts
263 > $RPM_BUILD_ROOT%{_libdir}/smbusers
264 > $RPM_BUILD_ROOT/etc/security/blacklist.samba
266 rm -f docs/faq/*.{sgml,txt}
267 rm -f docs/htmldocs/*.[0-9].html
269 gzip -9nfr Manifest README Roadmap WHATSNEW.txt docs/{announce,history,THANKS} docs/textdocs/*.txt
270 gzip -9nfr source/nsswitch/README source/pam_smbpass/{CHAN*,README,TODO}
271 gzip -9nfr packaging/Mandrake/system-auth-winbind.pamd
274 rm -rf $RPM_BUILD_ROOT
277 /sbin/chkconfig --add smb
278 if [ -r /var/lock/subsys/smb ]; then
279 /etc/rc.d/init.d/smb restart >&2
281 echo "Run \"/etc/rc.d/init.d/smb start\" to start Samba daemons."
285 if [ "$1" = "0" ]; then
286 if [ -r /var/lock/subsys/smb ]; then
287 /etc/rc.d/init.d/smb stop >&2
289 /sbin/chkconfig --del smb
293 if [ -f /var/lock/subsys/rc-inetd ]; then
294 /etc/rc.d/init.d/rc-inetd reload 1>&2
296 echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
300 if [ -f /var/lock/subsys/rc-inetd ]; then
301 /etc/rc.d/init.d/rc-inetd reload
304 %triggerpostun -- samba < 1.9.18p7
305 if [ "$1" != "0" ]; then
306 /sbin/chkconfig --add smb
309 %triggerpostun -- samba < 2.0.5a-3
310 if [ "$1" != "0" ]; then
311 [ ! -d /var/lock/samba ] && mkdir -m 0755 /var/lock/samba
312 [ ! -d /var/spool/samba ] && mkdir -m 1777 /var/spool/samba
316 %defattr(644,root,root,755)
317 %doc docs/nsswitch/README.gz packaging/Mandrake/*.gz
318 %attr(755,root,root) %{_sbindir}/nmbd
319 %attr(755,root,root) %{_sbindir}/smbd
320 %attr(755,root,root) %{_sbindir}/winbindd
321 %attr(755,root,root) %{_sbindir}/mksmbpasswd.sh
322 %attr(755,root,root) %{_bindir}/smbstatus
323 %attr(755,root,root) %{_bindir}/smbpasswd
324 %attr(755,root,root) %{_bindir}/smbcontrol
326 %doc source/nsswitch/README.gz winbind.pam*
327 %attr(755,root,root) /lib/libnss_wins*
328 %attr(755,root,root) /lib/security/pam_winbind.so
331 %attr(600,root,root) %config(noreplace) %verify(not size mtime md5) %{_libdir}/smbusers
332 %attr(754,root,root) /etc/rc.d/init.d/smb
333 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/samba
334 %attr(640,root,root) /etc/logrotate.d/samba
335 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/samba
336 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/security/blacklist.samba
337 %{_mandir}/man1/smbstatus.1*
338 %{_mandir}/man1/smbcontrol.1*
339 %{_mandir}/man5/smbpasswd.5*
340 %{_mandir}/man7/samba.7*
341 %{_mandir}/man8/nmbd.8*
342 %{_mandir}/man8/smbd.8*
343 %{_mandir}/man8/smbpasswd.8*
344 %{_mandir}/man8/winbindd.8*
348 %ghost /var/lock/samba/*
350 %attr(0750,root,root) %dir /var/log/samba
351 %attr(0750,root,root) %dir /var/log/archiv/samba
352 %attr(1777,root,root) %dir /var/spool/samba
355 %defattr(644,root,root,755)
356 %attr(755,root,root) /sbin/mount.smbfs
357 %attr(755,root,root) %{_bindir}/smbmount
358 %attr(755,root,root) %{_bindir}/smbmnt
359 %attr(755,root,root) %{_bindir}/smbumount
360 %{_mandir}/man8/smbmnt.8*
361 %{_mandir}/man8/smbmount.8*
362 %{_mandir}/man8/smbumount.8*
363 %attr(755,root,root) %{_bindir}/nmblookup
364 %attr(755,root,root) %{_bindir}/smbclient
365 %attr(755,root,root) %{_bindir}/smbtar
366 %attr(755,root,root) %{_bindir}/smbspool
367 %attr(755,root,root) %{_bindir}/smbcacls
368 %{_mandir}/man1/smbtar.1*
369 %{_mandir}/man1/smbclient.1*
370 %{_mandir}/man1/nmblookup.1*
371 %{_mandir}/man1/smbcacls.1*
372 %attr(755,root,root) %{_bindir}/rpcclient
373 %{_mandir}/man1/rpcclient.1*
374 %attr(755,root,root) %{_bindir}/wbinfo
375 %{_mandir}/man1/wbinfo.1*
378 %defattr(644,root,root,755)
379 %doc README.gz Manifest.gz WHATSNEW.txt.gz
380 %doc Roadmap.gz docs/faq docs/Registry/*
381 %doc docs/textdocs docs/htmldocs/*.* docs/{history,announce,THANKS}.gz
382 %config(noreplace) %verify(not size mtime md5) %{_libdir}/smb.conf
383 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_libdir}/lmhosts
384 %attr(755,root,root) %{_bindir}/make_smbcodepage
385 %attr(755,root,root) %{_bindir}/make_unicodemap
386 %attr(755,root,root) %{_bindir}/testparm
387 %attr(755,root,root) %{_bindir}/testprns
388 %attr(755,root,root) %{_bindir}/make_printerdef
390 %{_mandir}/man1/make_smbcodepage.1*
391 %{_mandir}/man1/make_unicodemap.1*
392 %{_mandir}/man1/testparm.1*
393 %{_mandir}/man1/testprns.1*
394 %{_mandir}/man5/smb.conf.5*
395 %{_mandir}/man5/lmhosts.5*
398 %defattr(644,root,root,755)
400 %attr(755,root,root) %{_sbindir}/swat
402 %{_mandir}/man8/swat.8*
403 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/rc-inetd/swat
405 %files -n pam_smbpass
406 %defattr(644,root,root,755)
407 %doc docs/pam_smbpass/*.gz docs/pam_smbpass/samples
408 %attr(755,root,root) /lib/security/pam_smbpass.so