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