]> git.pld-linux.org Git - packages/samba.git/blob - samba.spec
b9ab0a5d4e664c0d2e4a9ef5a60e426eb321d52c
[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:        4
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 rm -f docs/faq/*.{sgml,txt}
241 rm -f docs/htmldocs/*.[0-9].html
242
243 gzip -9nfr Manifest README Roadmap WHATSNEW.txt docs/*.reg docs/{announce,history,THANKS} docs/textdocs/*.txt 
244
245 %post
246 /sbin/chkconfig --add smb
247 if [ -r /var/lock/subsys/smb ]; then
248         /etc/rc.d/init.d/smb restart >&2
249 else
250         echo "Run \"/etc/rc.d/init.d/smb start\" to start Samba daemons."
251 fi
252
253 %preun
254 if [ "$1" = "0" ]; then
255         if [ -r /var/lock/subsys/smb ]; then
256                 /etc/rc.d/init.d/smb stop >&2
257         fi
258         /sbin/chkconfig --del smb
259 fi
260
261 %post -n swat
262 if [ -f /var/lock/subsys/rc-inetd ]; then
263         /etc/rc.d/init.d/rc-inetd reload 1>&2
264 else
265         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
266 fi
267
268 %postun -n swat
269 if [ -f /var/lock/subsys/rc-inetd ]; then
270         /etc/rc.d/init.d/rc-inetd reload
271 fi
272
273 %triggerpostun -- samba < 1.9.18p7
274 if [ "$1" != "0" ]; then
275         /sbin/chkconfig --add smb
276 fi
277
278 %triggerpostun -- samba < 2.0.5a-3
279 if [ "$1" != "0" ]; then
280         [ ! -d /var/lock/samba ] && mkdir -m 0755 /var/lock/samba
281         [ ! -d /var/spool/samba ] && mkdir -m 1777 /var/spool/samba
282 fi
283
284 %clean
285 rm -rf $RPM_BUILD_ROOT
286
287 %files
288 %defattr(644,root,root,755)
289 %attr(755,root,root) %{_sbindir}/nmbd
290 %attr(755,root,root) %{_sbindir}/smbd
291 %attr(755,root,root) %{_sbindir}/mksmbpasswd.sh
292 %attr(755,root,root) %{_bindir}/smbstatus
293 %attr(755,root,root) %{_bindir}/smbpasswd
294 %attr(755,root,root) %{_bindir}/make_*
295 %attr(755,root,root) %{_bindir}/smbcontrol
296
297 %dir %{_libdir}
298 %attr(600,root,root) %config(noreplace) %verify(not size mtime md5) %{_libdir}/smbusers
299 %attr(754,root,root) /etc/rc.d/init.d/smb
300 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/samba
301 %attr(640,root,root) /etc/logrotate.d/samba
302 %attr(640,root,root) %config %verify(not size mtime md5) /etc/pam.d/samba
303 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/security/blacklist.samba
304 %{_mandir}/man1/smbstatus.1*
305 %{_mandir}/man1/smbcontrol.1*
306 %{_mandir}/man5/smbpasswd.5*
307 %{_mandir}/man7/samba.7*
308 %{_mandir}/man8/nmbd.8*
309 %{_mandir}/man8/smbd.8*
310 %{_mandir}/man8/smbpasswd.8*
311
312 %dir /home/samba
313 %dir /var/lock/samba
314 %ghost /var/lock/samba/*
315
316 %attr(0750,root,root) %dir /var/log/samba
317 %attr(0750,root,root) %dir /var/log/archiv/samba
318 %attr(1777,root,root) %dir /var/spool/samba
319
320 %files client
321 %defattr(644,root,root,755)
322 %attr(755,root,root) /sbin/mount.smbfs
323 %attr(755,root,root) %{_bindir}/smbmount
324 %attr(755,root,root) %{_bindir}/smbmnt
325 %attr(755,root,root) %{_bindir}/smbumount
326 %{_mandir}/man8/smbmnt.8*
327 %{_mandir}/man8/smbmount.8*
328 %{_mandir}/man8/smbumount.8*
329 %attr(755,root,root) %{_bindir}/nmblookup
330 %attr(755,root,root) %{_bindir}/smbclient
331 %attr(755,root,root) %{_bindir}/smbtar
332 %attr(755,root,root) %{_bindir}/smbspool
333 %attr(755,root,root) %{_bindir}/smbcacls
334 %{_mandir}/man1/smbtar.1*
335 %{_mandir}/man1/smbclient.1*
336 %{_mandir}/man1/nmblookup.1*
337 %{_mandir}/man1/smbcacls.1*
338 %attr(755,root,root) %{_bindir}/rpcclient
339 %{_mandir}/man1/rpcclient.1*
340
341 %files common
342 %defattr(644,root,root,755)
343 %doc README.gz Manifest.gz WHATSNEW.txt.gz
344 %doc Roadmap.gz docs/faq docs/*.reg.gz
345 %doc docs/textdocs docs/htmldocs/*.* docs/{history,announce,THANKS}.gz
346 %config(noreplace) %verify(not size mtime md5) %{_libdir}/smb.conf
347 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_libdir}/lmhosts
348 %attr(755,root,root) %{_bindir}/make_smbcodepage
349 %attr(755,root,root) %{_bindir}/make_unicodemap
350 %attr(755,root,root) %{_bindir}/testparm
351 %attr(755,root,root) %{_bindir}/testprns
352 %attr(755,root,root) %{_bindir}/make_printerdef
353 %{_libdir}/codepages
354 %{_mandir}/man1/make_smbcodepage.1*
355 %{_mandir}/man1/make_unicodemap.1*
356 %{_mandir}/man1/testparm.1*
357 %{_mandir}/man1/testprns.1*
358 %{_mandir}/man5/smb.conf.5*
359 %{_mandir}/man5/lmhosts.5*
360
361 %files -n swat
362 %defattr(644,root,root,755)
363 %doc swat/README*
364 %attr(755,root,root) %{_sbindir}/swat
365 %{_datadir}/swat
366 %{_mandir}/man8/swat.8*
367
368 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/rc-inetd/swat
This page took 0.059893 seconds and 3 git commands to generate.