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