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