]> git.pld-linux.org Git - packages/samba.git/blob - samba.spec
- updated to 2.2.3 (fixed some memory leaks and fixed Win2000 support)
[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.3
13 Release:        1
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}-DESTDIR.patch
28 Patch3:         %{name}-manpages_PLD_fixes.patch
29 Patch4:         %{name}-smbprint.patch
30 Patch5:         %{name}-autoconf.patch
31 Patch6:         %{name}-smbadduser.patch
32 Patch7:         %{name}-nmbd_socket.patch
33 Prereq:         /sbin/chkconfig
34 Requires:       pam >= 0.66
35 Requires:       logrotate
36 Requires:       samba-common = %{version} 
37 BuildRequires:  autoconf
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/Administracyjne
124 Requires:       %{name}
125 Requires:       rc-inetd >= 0.8.2
126 Requires:       inetdaemon
127 Provides:       samba-swat
128 Obsoletes:      samba-swat
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 Samba-client 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 %patch4 -p1
182 %patch5 -p1
183 #%patch6 -p1
184 %patch7 -p1
185
186 %build
187 cd source
188 autoconf
189 %configure \
190         --with-readline \
191         --with-privatedir=%{_libdir} \
192         --with-lockdir=%{_var}/lock/samba \
193         --with-swatdir=%{_datadir}/swat \
194         --with-smbmount \
195         --with-automount \
196         --without-smbwrapper \
197         --with-netatalk \
198         --with-msdfs \
199         --with-quotas \
200         --with-vfs \
201         --with-utmp \
202         --with-syslog \
203         --with-mmap \
204         --with-pam \
205         --with-ssl \
206         --with-sslinc=%{_prefix}
207         
208 %{__make} all 
209
210 %install
211 rm -rf $RPM_BUILD_ROOT
212 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,pam.d,security,sysconfig/rc-inetd} \
213         $RPM_BUILD_ROOT/{var/{lock,log,log/archiv,spool},home}/samba \
214         $RPM_BUILD_ROOT/sbin 
215
216 cd source
217 %{__make} install DESTDIR=$RPM_BUILD_ROOT
218 install script/mksmbpasswd.sh /$RPM_BUILD_ROOT%{_sbindir}
219 cd ..
220
221 ln -sf %{_bindir}/smbmount $RPM_BUILD_ROOT/sbin/mount.smbfs 
222
223 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/smb
224 install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/samba
225 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/swat
226 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/samba
227 install %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/samba
228 install %{SOURCE6} $RPM_BUILD_ROOT%{_libdir}/smb.conf
229
230 touch $RPM_BUILD_ROOT/var/lock/samba/{STATUS..LCK,wins.dat,browse.dat}
231
232 echo 127.0.0.1 localhost > $RPM_BUILD_ROOT%{_libdir}/lmhosts
233
234 > $RPM_BUILD_ROOT%{_libdir}/smbusers
235 > $RPM_BUILD_ROOT/etc/security/blacklist.samba
236
237 rm -f docs/faq/*.{sgml,txt}
238 rm -f docs/htmldocs/*.[0-9].html
239
240 gzip -9nfr Manifest README Roadmap WHATSNEW.txt docs/{announce,history,THANKS} docs/textdocs/*.txt
241
242 %clean
243 rm -rf $RPM_BUILD_ROOT
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 %files
285 %defattr(644,root,root,755)
286 %attr(755,root,root) %{_sbindir}/nmbd
287 %attr(755,root,root) %{_sbindir}/smbd
288 %attr(755,root,root) %{_sbindir}/mksmbpasswd.sh
289 %attr(755,root,root) %{_bindir}/smbstatus
290 %attr(755,root,root) %{_bindir}/smbpasswd
291 %attr(755,root,root) %{_bindir}/make_*
292 %attr(755,root,root) %{_bindir}/smbcontrol
293
294 %dir %{_libdir}
295 %attr(600,root,root) %config(noreplace) %verify(not size mtime md5) %{_libdir}/smbusers
296 %attr(754,root,root) /etc/rc.d/init.d/smb
297 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/samba
298 %attr(640,root,root) /etc/logrotate.d/samba
299 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/samba
300 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/security/blacklist.samba
301 %{_mandir}/man1/smbstatus.1*
302 %{_mandir}/man1/smbcontrol.1*
303 %{_mandir}/man5/smbpasswd.5*
304 %{_mandir}/man7/samba.7*
305 %{_mandir}/man8/nmbd.8*
306 %{_mandir}/man8/smbd.8*
307 %{_mandir}/man8/smbpasswd.8*
308
309 %dir /home/samba
310 %dir /var/lock/samba
311 %ghost /var/lock/samba/*
312
313 %attr(0750,root,root) %dir /var/log/samba
314 %attr(0750,root,root) %dir /var/log/archiv/samba
315 %attr(1777,root,root) %dir /var/spool/samba
316
317 %files client
318 %defattr(644,root,root,755)
319 %attr(755,root,root) /sbin/mount.smbfs
320 %attr(755,root,root) %{_bindir}/smbmount
321 %attr(755,root,root) %{_bindir}/smbmnt
322 %attr(755,root,root) %{_bindir}/smbumount
323 %{_mandir}/man8/smbmnt.8*
324 %{_mandir}/man8/smbmount.8*
325 %{_mandir}/man8/smbumount.8*
326 %attr(755,root,root) %{_bindir}/nmblookup
327 %attr(755,root,root) %{_bindir}/smbclient
328 %attr(755,root,root) %{_bindir}/smbtar
329 %attr(755,root,root) %{_bindir}/smbspool
330 %attr(755,root,root) %{_bindir}/smbcacls
331 %{_mandir}/man1/smbtar.1*
332 %{_mandir}/man1/smbclient.1*
333 %{_mandir}/man1/nmblookup.1*
334 %{_mandir}/man1/smbcacls.1*
335 %attr(755,root,root) %{_bindir}/rpcclient
336 %{_mandir}/man1/rpcclient.1*
337
338 %files common
339 %defattr(644,root,root,755)
340 %doc README.gz Manifest.gz WHATSNEW.txt.gz
341 %doc Roadmap.gz docs/faq docs/Registry/*
342 %doc docs/textdocs docs/htmldocs/*.* docs/{history,announce,THANKS}.gz
343 %config(noreplace) %verify(not size mtime md5) %{_libdir}/smb.conf
344 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_libdir}/lmhosts
345 %attr(755,root,root) %{_bindir}/make_smbcodepage
346 %attr(755,root,root) %{_bindir}/make_unicodemap
347 %attr(755,root,root) %{_bindir}/testparm
348 %attr(755,root,root) %{_bindir}/testprns
349 %attr(755,root,root) %{_bindir}/make_printerdef
350 %{_libdir}/codepages
351 %{_mandir}/man1/make_smbcodepage.1*
352 %{_mandir}/man1/make_unicodemap.1*
353 %{_mandir}/man1/testparm.1*
354 %{_mandir}/man1/testprns.1*
355 %{_mandir}/man5/smb.conf.5*
356 %{_mandir}/man5/lmhosts.5*
357
358 %files -n swat
359 %defattr(644,root,root,755)
360 %doc swat/README*
361 %attr(755,root,root) %{_sbindir}/swat
362 %{_datadir}/swat
363 %{_mandir}/man8/swat.8*
364
365 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/rc-inetd/swat
This page took 0.063748 seconds and 4 git commands to generate.