]> git.pld-linux.org Git - packages/samba.git/blob - samba.spec
- updated to 2.2.3a + fixed quotas on 2.4.x
[packages/samba.git] / samba.spec
1 #
2 # Conditional build:
3 # _with_ldap    - with LDAP support
4 #
5 Summary:        SMB server
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
15 Name:           samba
16 Version:        2.2.3a
17 Release:        0.2
18 License:        GPL
19 Group:          Networking/Daemons
20 URL:            http://www.samba.org/
21 Source0:        ftp://ftp.samba.org/pub/samba/%{name}-%{version}.tar.bz2
22 Source1:        smb.init
23 Source2:        %{name}.pamd
24 Source3:        swat.inetd
25 Source4:        %{name}.sysconfig
26 Source5:        %{name}.logrotate
27 Source6:        smb.conf
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
41 Requires:       pam >= 0.66
42 Requires:       logrotate
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)
51
52 %define         _sysconfdir     /etc/samba
53 %define         _libdir         %{_sysconfdir}
54 %define         _localstatedir  %{_var}/log/samba
55
56 %description
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.
63
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.
68
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.
73
74 %description -l cs
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.
82
83 %description -l da
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)
90 protokollen.
91
92 %description -l de
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.
100
101 %description -l fi
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
109 NetBEUI-protokollaa.
110
111 %description -l it
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.
116
117 %description -l pl
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.
125
126 %package -n swat
127 Summary:        Samba Web Administration Tool
128 Summary(pl):    Narzêdzie administracyjne serwisu Samba
129 Group:          Networking/Admin
130 Requires:       %{name}
131 Requires:       rc-inetd >= 0.8.2
132 Requires:       inetdaemon
133 Provides:       samba-swat
134 Obsoletes:      samba-swat
135
136 %description -n 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.
141
142 swat is run from inet server.
143
144 %description -n swat -l pl
145 swat pozwala na kompleksow± konfiguracjê smb.conf przy pomocy
146 przegl±darki WWW.
147
148 %package client
149 Summary:        Samba client programs
150 Summary(pl):    Klienci serwera Samba
151 Group:          Applications/Networking
152 Requires:       samba-common = %{version}
153 Obsoletes:      smbfs
154
155 %description client
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.
159
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
163 SMB.
164
165 %package common
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
169
170 %description common
171 Samba-common provides files necessary for both the server and client
172 packages of Samba.
173
174 %description common -l pl
175 Samba-common dostarcza pliki niezbêdne zarówno dla serwera jak i
176 klientów Samba.
177
178 %package -n pam_smbpass
179 Summary:        PAM Samba Password Module
180 Summary(pl):    Modu³ PAM smbpass
181 Group:          Base
182
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
186 password file.
187
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.
191
192 %prep
193 %setup -q
194 %patch1 -p1
195 %patch2 -p1
196 %patch3 -p1
197 %patch4 -p1
198 %patch5 -p1
199 #%patch6 -p1
200 %patch7 -p1
201 %patch8 -p1
202 %patch9 -p1
203 %patch10 -p1
204 %patch11 -p1
205
206 %build
207 cd source
208 autoconf
209 %configure \
210         --with-readline \
211         --with-privatedir=%{_libdir} \
212         --with-lockdir=%{_var}/lock/samba \
213         --with-swatdir=%{_datadir}/swat \
214         --with-smbmount \
215         --with-automount \
216         --without-smbwrapper \
217         --with-netatalk \
218         --with-msdfs \
219         --without-quotas \
220         --with-vfs \
221         --with-utmp \
222         --with-syslog \
223         --with-mmap \
224         --with-pam \
225         --with-ssl \
226         --with-sslinc=%{_prefix} \
227         %{?_with_ldap:--with-ldapsam}
228
229 mv Makefile Makefile.old
230 sed -e "s#-symbolic##g" Makefile.old > Makefile
231
232 %{__make} everything pam_smbpass
233
234 %install
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}
239
240 cd source
241 %{__make} install DESTDIR=$RPM_BUILD_ROOT
242 install script/mksmbpasswd.sh /$RPM_BUILD_ROOT%{_sbindir}
243 cd ..
244
245 ln -sf %{_bindir}/smbmount $RPM_BUILD_ROOT/sbin/mount.smbfs
246
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
253
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}
258
259 touch $RPM_BUILD_ROOT/var/lock/samba/{STATUS..LCK,wins.dat,browse.dat}
260
261 echo 127.0.0.1 localhost > $RPM_BUILD_ROOT%{_libdir}/lmhosts
262
263 > $RPM_BUILD_ROOT%{_libdir}/smbusers
264 > $RPM_BUILD_ROOT/etc/security/blacklist.samba
265
266 rm -f docs/faq/*.{sgml,txt}
267 rm -f docs/htmldocs/*.[0-9].html
268
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
272
273 %clean
274 rm -rf $RPM_BUILD_ROOT
275
276 %post
277 /sbin/chkconfig --add smb
278 if [ -r /var/lock/subsys/smb ]; then
279         /etc/rc.d/init.d/smb restart >&2
280 else
281         echo "Run \"/etc/rc.d/init.d/smb start\" to start Samba daemons."
282 fi
283
284 %preun
285 if [ "$1" = "0" ]; then
286         if [ -r /var/lock/subsys/smb ]; then
287                 /etc/rc.d/init.d/smb stop >&2
288         fi
289         /sbin/chkconfig --del smb
290 fi
291
292 %post -n swat
293 if [ -f /var/lock/subsys/rc-inetd ]; then
294         /etc/rc.d/init.d/rc-inetd reload 1>&2
295 else
296         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
297 fi
298
299 %postun -n swat
300 if [ -f /var/lock/subsys/rc-inetd ]; then
301         /etc/rc.d/init.d/rc-inetd reload
302 fi
303
304 %triggerpostun -- samba < 1.9.18p7
305 if [ "$1" != "0" ]; then
306         /sbin/chkconfig --add smb
307 fi
308
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
313 fi
314
315 %files
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
325
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
329
330 %dir %{_libdir}
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*
345
346 %dir /home/samba
347 %dir /var/lock/samba
348 %ghost /var/lock/samba/*
349
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
353
354 %files client
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*
376
377 %files common
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
389 %{_libdir}/codepages
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*
396
397 %files -n swat
398 %defattr(644,root,root,755)
399 %doc swat/README*
400 %attr(755,root,root) %{_sbindir}/swat
401 %{_datadir}/swat
402 %{_mandir}/man8/swat.8*
403 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/rc-inetd/swat
404
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
This page took 0.192728 seconds and 3 git commands to generate.