]> git.pld-linux.org Git - packages/samba.git/blob - samba.spec
- release 3
[packages/samba.git] / samba.spec
1 Summary:        SMB server
2 Summary(pl):    Serwer SMB
3 Summary(cs):    Server SMB
4 Summary(da):    SMB server
5 Summary(de):    SMB-Server
6 Summary(fi):    SMB-palvelin
7 Summary(fr):    Serveur SMB
8 Summary(it):    Server SMB
9 Summary(tr):    SMB sunucusu
10 Name:           samba
11 Version:        2.2.1a
12 Release:        3
13 License:        GPL
14 Group:          Networking/Daemons
15 Group(de):      Netzwerkwesen/Server
16 Group(pl):      Sieciowe/Serwery
17 URL:            http://www.samba.org/
18 Source0:        ftp://ftp.samba.org/pub/samba/%{name}-%{version}.tar.gz
19 Source1:        smb.init
20 Source2:        %{name}.pamd
21 Source3:        swat.inetd
22 Source4:        %{name}.sysconfig
23 Source5:        %{name}.logrotate
24 Source6:        smb.conf
25 Patch1:         %{name}-config.patch
26 Patch2:         %{name}-cap.patch
27 Patch3:         %{name}-DESTDIR.patch
28 Patch6:         %{name}-manpages_PLD_fixes.patch
29 Patch7:         %{name}-smbprint.patch
30 Patch8:         %{name}-autoconf.patch
31 Patch9:         %{name}-smbadduser.patch
32 Patch10:        %{name}-nocups.patch
33 Patch11:        %{name}-nmbd_socket.patch
34 Patch12:        %{name}-debug-0-suxorz.patch
35 Prereq:         /sbin/chkconfig
36 Requires:       pam >= 0.66
37 Requires:       logrotate
38 Requires:       samba-common = %{version} 
39 BuildRequires:  ncurses-devel >= 5.2
40 BuildRequires:  readline-devel >= 4.2
41 BuildRequires:  pam-devel > 0.66
42 BuildRequires:  openssl-devel >= 0.9.6a
43 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45 %define         _sysconfdir     /etc/samba
46 %define         _libdir         %{_sysconfdir}
47 %define         _localstatedir  %{_var}/log/samba
48
49 %description
50 Samba provides an SMB server which can be used to provide network
51 services to SMB (sometimes called "Lan Manager") clients, including
52 various versions of MS Windows, OS/2, and other Linux machines. Samba
53 also provides some SMB clients, which complement the built-in SMB
54 filesystem in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols
55 and does NOT need NetBEUI (Microsoft Raw NetBIOS frame) protocol.
56
57 This release is known as the "Locking Update" and has full support for
58 Opportunistic File Locking. In addition this update includes native
59 support for Microsoft encrypted passwords, improved browse list and
60 WINS database management.
61
62 Please refer to the WHATSNEW.txt document for fixup information. This
63 binary release includes encrypted password support. Please read the
64 smb.conf file and ENCRYPTION.txt in the docs directory for
65 implementation details.
66
67 %description -l cs
68 Samba poskytuje server SMB, který lze pou¾ít pro poskytování sí»ových
69 slu¾eb klientùm SMB (nìkdy nazývaných klienti "LAN mana¾er") vèetnì
70 klientù rùzných verzí MS Windows, OS/2 a dal¹ích linuxových strojù.
71 Samba té¾ poskytuje nìkteré klienty SMB, kteøí komplementují vestavìný
72 souborový systém SMB v Linuxu. Samba pou¾ívá protokoly NetBIOS pøes
73 TCP/IP (NetBT) a NEpotøebuje protokol NetBEUI (neformátovaný rámec
74 NetBIOS od spoleènosti Microsoft.
75
76 %description -l da
77 Samba tilbyder en SMB server som kan bruges til at tilbyde netværk
78 services til SMB (også kaldet "Lan Manager") klienter, incl.
79 forskellige versioner af MS Windows, OS/2, og andre Linux maskiner.
80 Samba tilbyder også SMB klienter, som udbygger det indbyggede SMB
81 filsystem i Linux. Samba benytter NetBIOS over TCP/IP (NetBT)
82 protocolen og kræver ikke NetBEUI (Microsoft Raw NetBIOS frame)
83 protokollen.
84
85 %description -l de
86 Samba stellt einen SMB-Server zum Anbieten von Netzwerkdiensten für
87 SMB-Clients (auch "Lan Manager" genannt) zur Verfügung, darunter
88 verschiedenen Versionen von MS Windows-, OS/2- und anderen
89 Linux-Rechnern. Samba enthält außerdem einige SMB-Clients, die das in
90 Linux integrierte SMB-Dateisystem ergänzen. Samba benutzt
91 NetBIOS-über-TCP/IP (NetBT)-Protokolle und benötigt KEIN NetBEUI
92 (Microsoft Raw NetBIOS frame)-Protokoll.
93
94 %description -l fi
95 Samba on SMB-palvelin, jota voidaan käyttää SMB-asiakasohjelmien
96 verkkopalvelujen tarjoajana. SMB-protokollaa kutsutaan joskus "Lan
97 Manager" protokollaksi ja asiakasohjelmat toimivat dosissa,
98 Windowseissa, OS/2:ssa ja toisissa Linux-koneissa. Samban mukana on
99 myös joitakin SMB-asiakasohjelmia, jotka täydentävät Linuxin
100 kernelissä olevaa SMB-tiedostojärjestelmän tukea. Samba vaatii NetBIOS
101 over TCP/IP (NetBT) protokollaa eikä tarvitse tai pysty käyttämään
102 NetBEUI-protokollaa.
103
104 %description -l it
105 Samba fornisce un server SMB che puo` essere usato per fornire servizi
106 di rete ai client SMB, incluse le versioni MS Windows, OS/2 e per
107 altre macchine Linux. Samba fornisce anche i client SMB. Samba usa
108 NetBIOS sopra TCP/IP e non ha bisogno del protocollo NetBEUI.
109
110 %description -l pl
111 Samba udostêpnia serwer SMB, który mo¿e byæ u¿yty w celu dostarczenia
112 us³ug sieciowych (potocznie zwanych "Lan Manager"), dla klientów
113 takich jak MS Windows, OS/2 a tak¿e maszyn linuksowych. W pakiecie
114 znajduje siê równie¿ oprogramowanie klienckie. Samba u¿ywa protoko³u
115 NetBIOS po TCP/IP (NetBT) i nie wymaga protoko³u NetBEUI. Ta wersja ma
116 pe³ne wsparcie dla blokowania plików, a tak¿e wsparcie dla kodowania
117 hase³ w standardzie MS i zarzadzania baz± WINS.
118
119 %package -n swat
120 Summary:        Samba Web Administration Tool
121 Summary(pl):    Narzêdzie administracyjne serwisu Samba
122 Group:          Networking/Admin
123 Group(de):      Netzwerkwesen/Administration
124 Group(pl):      Sieciowe/Administacyjne
125 Requires:       %{name}
126 Requires:       rc-inetd >= 0.8.2
127 Requires:       inetdaemon
128
129 %description -n swat
130 swat allows a Samba administrator to configure the complex smb.conf
131 file via a Web browser. In addition, a swat configuration page has
132 help links to all the configurable options in the smb.conf file
133 allowing an administrator to easily look up the effects of any change.
134
135 swat is run from inet server.
136
137 %description -n swat -l pl
138 swat pozwala na kompleksow± konfiguracjê smb.conf przy pomocy
139 przegl±darki www.
140
141 %package client
142 Summary:        Samba client programs.
143 Summary(pl):    Klienci serwera Samba
144 Group:          Applications/Networking
145 Group(de):      Applikationen/Netzwerkwesen
146 Group(pl):      Aplikacje/Sieciowe
147 Requires:       samba-common = %{version}
148 Obsoletes:      smbfs
149
150 %description client
151 Samba-client provides some SMB clients, which complement the build-in
152 SMB filesystem in Linux. These allow accessing of SMB shares and
153 printing to SMB printers.
154
155 %description client -l pl
156 Klient-samby dostarcza pewne programy które uzupe³niaj± system plików
157 SMB zawarty w j±drze. Pozwala na wspó³dzielenie i drukowanie w sieci
158 SMB.
159
160 %package common
161 Summary:        Files used by both Samba servers and clients.
162 Summary(pl):    Pliki u¿ywane przez serwer i klientów Samba.
163 Group:          Networking/Daemons
164 Group(de):      Netzwerkwesen/Server
165 Group(pl):      Sieciowe/Serwery
166
167 %description common
168 Samba-common provides files necessary for both the server and client
169 packages of Samba.
170
171 %description common -l pl
172 Samba-common dostarcza pliki niezbêdne zarówno dla serwera jak i
173 klientów Samba.
174
175 %prep
176 %setup -q
177 %patch1 -p1
178 %patch2 -p1
179 %patch3 -p1
180 #update required
181 #%patch6 -p1
182 %patch7 -p1
183 %patch8 -p1
184 %patch9 -p1
185 %patch10 -p1
186 %patch11 -p1
187 %patch12 -p1
188
189 %build
190 cd source
191 autoconf
192 %configure \
193         --with-readline \
194         --with-privatedir=%{_libdir} \
195         --with-lockdir=%{_var}/lock/samba \
196         --with-swatdir=%{_datadir}/swat \
197         --with-smbmount \
198         --with-automount \
199         --without-smbwrapper \
200         --with-netatalk \
201         --with-msdfs \
202         --with-quotas \
203         --with-vfs \
204         --with-utmp \
205         --with-syslog \
206         --with-mmap \
207         --with-pam \
208         --with-ssl \
209         --with-sslinc=%{_prefix}
210         
211 %{__make} all 
212
213 %install
214 rm -rf $RPM_BUILD_ROOT
215 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,pam.d,security,sysconfig/rc-inetd} \
216         $RPM_BUILD_ROOT/{var/{lock,log,log/archiv,spool},home}/samba \
217         $RPM_BUILD_ROOT/sbin 
218
219 cd source
220 %{__make} install DESTDIR=$RPM_BUILD_ROOT
221 install script/mksmbpasswd.sh /$RPM_BUILD_ROOT%{_sbindir}
222 cd ..
223
224 ln -sf %{_bindir}/smbmount $RPM_BUILD_ROOT/sbin/mount.smbfs 
225
226 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/smb
227 install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/samba
228 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/swat
229 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/samba
230 install %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/samba
231 install %{SOURCE6} $RPM_BUILD_ROOT%{_libdir}/smb.conf
232
233 touch $RPM_BUILD_ROOT/var/lock/samba/{STATUS..LCK,wins.dat,browse.dat}
234
235 echo 127.0.0.1 localhost > $RPM_BUILD_ROOT%{_libdir}/lmhosts
236
237 > $RPM_BUILD_ROOT%{_libdir}/smbusers
238 > $RPM_BUILD_ROOT/etc/security/blacklist.samba
239
240 gzip -9nfr README Manifest WHATSNEW.txt Roadmap docs/*.reg swat/README \
241         docs/textdocs/ docs/{history,announce,THANKS}
242
243 rm -f docs/faq/*.{sgml,txt}
244 rm -f docs/htmldocs/*.[0-9].html
245
246 %post
247 /sbin/chkconfig --add smb
248 if [ -r /var/lock/subsys/smb ]; then
249         /etc/rc.d/init.d/smb restart >&2
250 else
251         echo "Run \"/etc/rc.d/init.d/smb start\" to start Samba daemons."
252 fi
253
254 %preun
255 if [ "$1" = "0" ]; then
256         if [ -r /var/lock/subsys/smb ]; then
257                 /etc/rc.d/init.d/smb stop >&2
258         fi
259         /sbin/chkconfig --del smb
260 fi
261
262 %post -n swat
263 if [ -f /var/lock/subsys/rc-inetd ]; then
264         /etc/rc.d/init.d/rc-inetd reload 1>&2
265 else
266         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
267 fi
268
269 %postun -n swat
270 if [ -f /var/lock/subsys/rc-inetd ]; then
271         /etc/rc.d/init.d/rc-inetd reload
272 fi
273
274 %triggerpostun -- samba < 1.9.18p7
275 if [ "$1" != "0" ]; then
276         /sbin/chkconfig --add smb
277 fi
278
279 %triggerpostun -- samba < 2.0.5a-3
280 if [ "$1" != "0" ]; then
281         [ ! -d /var/lock/samba ] && mkdir -m 0755 /var/lock/samba
282         [ ! -d /var/spool/samba ] && mkdir -m 1777 /var/spool/samba
283 fi
284
285 %clean
286 rm -rf $RPM_BUILD_ROOT
287
288 %files
289 %defattr(644,root,root,755)
290 %attr(755,root,root) %{_sbindir}/nmbd
291 %attr(755,root,root) %{_sbindir}/smbd
292 %attr(755,root,root) %{_sbindir}/mksmbpasswd.sh
293 %attr(755,root,root) %{_bindir}/smbstatus
294 %attr(755,root,root) %{_bindir}/smbpasswd
295 #%attr(755,root,root) %{_bindir}/convert_smbpasswd
296 %attr(755,root,root) %{_bindir}/smbcontrol
297
298 %dir %{_libdir}
299 %attr(600,root,root) %config(noreplace) %verify(not size mtime md5) %{_libdir}/smbusers
300 %attr(754,root,root) /etc/rc.d/init.d/smb
301 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/samba
302 %attr(640,root,root) /etc/logrotate.d/samba
303 %attr(640,root,root) %config %verify(not size mtime md5) /etc/pam.d/samba
304 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/security/blacklist.samba
305 %{_mandir}/man1/smbstatus.1*
306 %{_mandir}/man1/smbcontrol.1*
307 %{_mandir}/man5/smbpasswd.5*
308 %{_mandir}/man7/samba.7*
309 %{_mandir}/man8/nmbd.8*
310 %{_mandir}/man8/smbd.8*
311 %{_mandir}/man8/smbpasswd.8*
312
313 %dir /home/samba
314 %dir /var/lock/samba
315 %ghost /var/lock/samba/*
316
317 %attr(0750,root,root) %dir /var/log/samba
318 %attr(0750,root,root) %dir /var/log/archiv/samba
319 %attr(1777,root,root) %dir /var/spool/samba
320
321 %files client
322 %defattr(644,root,root,755)
323 %attr(755,root,root) /sbin/mount.smbfs
324 %attr(755,root,root) %{_bindir}/smbmount
325 %attr(755,root,root) %{_bindir}/smbmnt
326 %attr(755,root,root) %{_bindir}/smbumount
327 %{_mandir}/man8/smbmnt.8*
328 %{_mandir}/man8/smbmount.8*
329 %{_mandir}/man8/smbumount.8*
330 %attr(755,root,root) %{_bindir}/nmblookup
331 %attr(755,root,root) %{_bindir}/smbclient
332 %attr(755,root,root) %{_bindir}/smbtar
333 %attr(755,root,root) %{_bindir}/smbspool
334 %attr(755,root,root) %{_bindir}/smbcacls
335 %{_mandir}/man1/smbtar.1*
336 %{_mandir}/man1/smbclient.1*
337 %{_mandir}/man1/nmblookup.1*
338 %{_mandir}/man1/smbcacls.1*
339 %attr(755,root,root) %{_bindir}/rpcclient
340 %{_mandir}/man1/rpcclient.1*
341
342 %files common
343 %defattr(644,root,root,755)
344 %doc README.gz Manifest.gz WHATSNEW.txt.gz
345 %doc Roadmap.gz docs/faq docs/*.reg.gz
346 %doc docs/textdocs docs/htmldocs/*.* docs/{history,announce,THANKS}.gz
347 %config(noreplace) %verify(not size mtime md5) %{_libdir}/smb.conf
348 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_libdir}/lmhosts
349 %attr(755,root,root) %{_bindir}/make_smbcodepage
350 %attr(755,root,root) %{_bindir}/make_unicodemap
351 %attr(755,root,root) %{_bindir}/testparm
352 %attr(755,root,root) %{_bindir}/testprns
353 %attr(755,root,root) %{_bindir}/make_printerdef
354 %{_libdir}/codepages
355 %{_mandir}/man1/make_smbcodepage.1*
356 %{_mandir}/man1/make_unicodemap.1*
357 %{_mandir}/man1/testparm.1*
358 %{_mandir}/man1/testprns.1*
359 %{_mandir}/man5/smb.conf.5*
360 %{_mandir}/man5/lmhosts.5*
361
362 %files -n swat
363 %defattr(644,root,root,755)
364 %doc swat/README*
365 %attr(755,root,root) %{_sbindir}/swat
366 %{_datadir}/swat
367 %{_mandir}/man8/swat.8*
368
369 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/rc-inetd/swat
This page took 0.048334 seconds and 3 git commands to generate.