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