]> git.pld-linux.org Git - packages/samba.git/blob - samba.spec
0d9180e022a9d1640e430a089377f6ac7a732df4
[packages/samba.git] / samba.spec
1 # TODO:
2 # - look into other distro specs for valid %descriptions for samba 3
3 # - unpackaged man pages for modules that are not built by default,
4 #   maybe we should build them?
5 #   /usr/share/man/man8/vfs_cacheprime.8*
6 #   /usr/share/man/man8/vfs_catia.8*
7 #   /usr/share/man/man8/vfs_commit.8*
8 #   /usr/share/man/man8/vfs_gpfs.8*
9 #   /usr/share/man/man8/vfs_notify_fam.8*
10 #   /usr/share/man/man8/vfs_prealloc.8*
11 # - libmsrpc.so is broken (references smbc_attr_server() which is no longer exported from libsmbclient)
12 #
13 # Conditional build:
14 %bcond_without  ads             # without ActiveDirectory support
15 %bcond_without  cups            # without CUPS support
16 %bcond_without  kerberos5       # without Kerberos V support
17 %bcond_without  ldap            # without LDAP support
18 %bcond_with     mks             # with vfs-mks (mksd dependency not distributale)
19 %bcond_with     vscan
20
21 # ADS requires kerberos5 and LDAP
22 %if !%{with kerberos5} || !%{with ldap}
23 %undefine       with_ads
24 %endif
25 %define         vscan_version 0.3.6c-beta5
26 Summary:        SMB server
27 Summary(cs.UTF-8):      Server SMB
28 Summary(da.UTF-8):      SMB server
29 Summary(de.UTF-8):      SMB-Server
30 Summary(es.UTF-8):      El servidor SMB
31 Summary(fi.UTF-8):      SMB-palvelin
32 Summary(fr.UTF-8):      Serveur SMB
33 Summary(it.UTF-8):      Server SMB
34 Summary(ja.UTF-8):      Samba SMB サーバー
35 Summary(ko.UTF-8):      삼바 SMB 서버
36 Summary(pl.UTF-8):      Serwer SMB
37 Summary(pt_BR.UTF-8):   Cliente e servidor SMB
38 Summary(ru.UTF-8):      SMB клиент и сервер
39 Summary(tr.UTF-8):      SMB sunucusu
40 Summary(uk.UTF-8):      SMB клієнт та сервер
41 Summary(zh_CN.UTF-8):   Samba 客户端和服务器
42 Name:           samba
43 Version:        3.2.4
44 Release:        0.1
45 Epoch:          1
46 License:        GPL v2
47 Group:          Networking/Daemons
48 Source0:        http://www.samba.org/samba/ftp/%{name}-%{version}.tar.gz
49 # Source0-md5:  7870a6bb3a025c6081cd56688acd494a
50 Source1:        smb.init
51 Source2:        %{name}.pamd
52 Source3:        swat.inetd
53 Source4:        %{name}.sysconfig
54 Source5:        %{name}.logrotate
55 Source6:        smb.conf
56 Source7:        http://www.openantivirus.org/download/%{name}-vscan-%{vscan_version}.tar.gz
57 # Source7-md5:  8f1dd119172e04e6d7c2d05526a4cf8b
58 Source8:        winbind.init
59 Source9:        winbind.sysconfig
60 Patch0:         %{name}-lib64.patch
61 Patch1:         %{name}-smbwrapper.patch
62 Patch2:         %{name}-c++-nofail.patch
63 Patch3:         %{name}-pthread.patch
64 Patch4:         %{name}-nscd.patch
65 Patch5:         %{name}-doc.patch
66 Patch6:         %{name}-libs-needed.patch
67 Patch7:         %{name}-lprng-no-dot-printers.patch
68 Patch8:         %{name}-cap.patch
69 Patch9:         %{name}-printerlocation.patch
70 Patch10:        %{name}-ac.patch
71 Patch11:        %{name}-link.patch
72 URL:            http://www.samba.org/
73 BuildRequires:  acl-devel
74 BuildRequires:  autoconf
75 BuildRequires:  automake
76 %{?with_cups:BuildRequires:     cups-devel >= 1:1.2.0}
77 BuildRequires:  dmapi-devel
78 BuildRequires:  fam-devel
79 BuildRequires:  iconv
80 %{?with_kerberos5:BuildRequires:        krb5-devel}
81 BuildRequires:  libmagic-devel
82 BuildRequires:  libnscd-devel
83 BuildRequires:  libtool >= 2:1.4d
84 BuildRequires:  ncurses-devel >= 5.2
85 %{?with_ldap:BuildRequires:     openldap-devel >= 2.3.0}
86 BuildRequires:  openssl-devel >= 0.9.7d
87 BuildRequires:  pam-devel >= 0.99.8.1
88 BuildRequires:  popt-devel
89 %{?with_pgsql:BuildRequires:    postgresql-devel}
90 BuildRequires:  readline-devel >= 4.2
91 BuildRequires:  rpmbuild(macros) >= 1.304
92 BuildRequires:  sed >= 4.0
93 BuildRequires:  xfsprogs-devel
94 Requires(post,preun):   /sbin/chkconfig
95 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
96 Requires:       logrotate >= 3.7-4
97 Requires:       pam >= 0.99.8.1
98 Requires:       rc-scripts
99 Requires:       setup >= 2.4.6-7
100 # smbd links with libcups
101 %{?with_cups:Requires:  cups-lib >= 1:1.2.0}
102 Obsoletes:      samba-pdb-xml
103 Obsoletes:      samba-vfs-block
104 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
105
106 %define         _vfsdir         %{_libdir}/%{name}/vfs
107 %define         _sambahome      /home/services/samba
108 %define         _sambalibdir    %{_libdir}/%{name}
109 %if %{with cups}
110 %define         cups_serverbin  %{_prefix}/lib/cups
111 %endif
112 %define         schemadir       /usr/share/openldap/schema
113
114 # CFLAGS modified (the second ./configure)
115 %undefine       configure_cache
116
117 %description
118 Samba provides an SMB server which can be used to provide network
119 services to SMB (sometimes called "Lan Manager") clients, including
120 various versions of MS Windows, OS/2, and other Linux machines. Samba
121 also provides some SMB clients, which complement the built-in SMB
122 filesystem in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols
123 and does NOT need NetBEUI (Microsoft Raw NetBIOS frame) protocol.
124
125 This release is known as the "Locking Update" and has full support for
126 Opportunistic File Locking. In addition this update includes native
127 support for Microsoft encrypted passwords, improved browse list and
128 WINS database management.
129
130 Please refer to the WHATSNEW.txt document for fixup information. This
131 binary release includes encrypted password support. Please read the
132 smb.conf file for implementation details.
133
134 %description -l cs.UTF-8
135 Samba poskytuje server SMB, který lze použít pro poskytování síťových
136 služeb klientům SMB (někdy nazývaných klienti "LAN manažer") včetně
137 klientů různých verzí MS Windows, OS/2 a dalších linuxových strojů.
138 Samba též poskytuje některé klienty SMB, kteří komplementují vestavěný
139 souborový systém SMB v Linuxu. Samba používá protokoly NetBIOS přes
140 TCP/IP (NetBT) a NEpotřebuje protokol NetBEUI (neformátovaný rámec
141 NetBIOS od společnosti Microsoft.
142
143 %description -l da.UTF-8
144 Samba tilbyder en SMB server som kan bruges til at tilbyde netværk
145 services til SMB (også kaldet "Lan Manager") klienter, incl.
146 forskellige versioner af MS Windows, OS/2, og andre Linux maskiner.
147 Samba tilbyder også SMB klienter, som udbygger det indbyggede SMB
148 filsystem i Linux. Samba benytter NetBIOS over TCP/IP (NetBT)
149 protocolen og kræver ikke NetBEUI (Microsoft Raw NetBIOS frame)
150 protokollen.
151
152 %description -l de.UTF-8
153 Samba stellt einen SMB-Server zum Anbieten von Netzwerkdiensten für
154 SMB-Clients (auch "Lan Manager" genannt) zur Verfügung, darunter
155 verschiedenen Versionen von MS Windows-, OS/2- und anderen
156 Linux-Rechnern. Samba enthält außerdem einige SMB-Clients, die das in
157 Linux integrierte SMB-Dateisystem ergänzen. Samba benutzt
158 NetBIOS-über-TCP/IP (NetBT)-Protokolle und benötigt KEIN NetBEUI
159 (Microsoft Raw NetBIOS frame)-Protokoll.
160
161 %description -l es.UTF-8
162 Samba provee un servidor SMB que se puede usar para ofrecer servicios
163 de red a clientes SMB (algunas veces se le llama de "Lan Manager"),
164 incluyendo varias versiones de MS Windows, OS/2, y otras máquinas
165 Linux. Samba también ofrece algunos clientes SMB, que complementan el
166 sistema de archivos SMB de Linux. Samba usa el protocolo NetBIOS sobre
167 TCP/IP (NetBT) y no necesita del protocolo NetBEUI (Microsoft Raw
168 NetBIOS frame).
169
170 %description -l fi.UTF-8
171 Samba on SMB-palvelin, jota voidaan käyttää SMB-asiakasohjelmien
172 verkkopalvelujen tarjoajana. SMB-protokollaa kutsutaan joskus "Lan
173 Manager" protokollaksi ja asiakasohjelmat toimivat dosissa,
174 Windowseissa, OS/2:ssa ja toisissa Linux-koneissa. Samban mukana on
175 myös joitakin SMB-asiakasohjelmia, jotka täydentävät Linuxin
176 kernelissä olevaa SMB-tiedostojärjestelmän tukea. Samba vaatii NetBIOS
177 over TCP/IP (NetBT) protokollaa eikä tarvitse tai pysty käyttämään
178 NetBEUI-protokollaa.
179
180 %description -l it.UTF-8
181 Samba fornisce un server SMB che puo` essere usato per fornire servizi
182 di rete ai client SMB, incluse le versioni MS Windows, OS/2 e per
183 altre macchine Linux. Samba fornisce anche i client SMB. Samba usa
184 NetBIOS sopra TCP/IP e non ha bisogno del protocollo NetBEUI.
185
186 %description -l ja.UTF-8
187 Samba は MS Windows の様々なバージョン、OS/2 そして他の Linux マシン
188 を含む SMB (たまに "Lan Manager" と呼ばれる)
189 クライアントにネットワーク サービスを提供するために使用される SMB
190 サーバを提供します。Samba は NetBIOS over TCP/IP (NetBT)
191 プロトコルを使用し、 NetBEUI(Microsoft Raw NetBIOS frame)
192 プロトコルは必要ありません。
193
194 Samba ほとんど動作する NT ドメインコントロールの機能を特徴とし、
195 好きなブラウザを使って samba の smb.conf ファイルをリモート管理する
196 新しい SWAT (Samba Web Administration Tool) を含みます。
197 目下のところこれは inetd を通して TCP ポート 901 で有効になります。
198
199 %description -l ko.UTF-8
200 삼바는 MS Windows, OS/2, 혹은 다른 리눅스 머신을 포함하는 SMB(혹은
201 "Lan Manager"라고도 불림) 클라이언트를 네트워크 서비스 위해 사용할 수
202 있는 SMB 서버를 제공한다. 삼바는 TCP/IP 프로토콜을 통해 NetBIOS를
203 사용하고 NetBEUI (Microsoft Raw NetBIOS 프레임) 프로토콜은 필요하지
204 않다.
205
206 삼바-2.2 의 특징은 NT 도메인 컨트롤의 성능으로 작업을 하고, 새로운
207 SWAT(Samba Web Administration Tool)로 웹브라우저를 사용하여 원격지에서
208 삼바의 smb.conf 파일을 관리하도록 한다. 이러한 경우 inetd 데몬을 통해
209 TCP 901 포트를 사용하게 된다.
210
211 최근 정보로 WHATSNEW.txt 파일의 문서를 참고하도록 한다. 바이너리의
212 릴리즈는 암호화된 패스워드를 제공한다.
213
214 %description -l pl.UTF-8
215 Samba udostępnia serwer SMB, który może być użyty w celu dostarczenia
216 usług sieciowych (potocznie zwanych "Lan Manager"), dla klientów
217 takich jak MS Windows, OS/2 a także maszyn linuksowych. W pakiecie
218 znajduje się również oprogramowanie klienckie. Samba używa protokołu
219 NetBIOS po TCP/IP (NetBT) i nie wymaga protokołu NetBEUI. Ta wersja ma
220 pełne wsparcie dla blokowania plików, a także wsparcie dla kodowania
221 haseł w standardzie MS i zarządzania bazą WINS.
222
223 %description -l pt_BR.UTF-8
224 O Samba provê um servidor SMB que pode ser usado para oferecer
225 serviços de rede a clientes SMB (algumas vezes chamado de "Lan
226 Manager"), incluindo várias versões de MS Windows, OS/2, e outras
227 máquinas Linux. O Samba também fornece alguns clientes SMB, que
228 complementam o sistema de arquivos SMB do Linux. O Samba usa o
229 protocolo NetBIOS sobre TCP/IP (NetBT) e não necessita do protocolo
230 NetBEUI (Microsoft Raw NetBIOS frame).
231
232 O Samba inclui a maioria das características de um servidor de
233 Controle de Domínios NT e o SWAT (Samba Web Administration Tool), que
234 permite que o arquivo smb.conf seja gerenciado remotamente através de
235 um navegador. Atualmente isto está sendo habilitado na porta TCP 901
236 via inetd.
237
238 %description -l ru.UTF-8
239 Samba предоставляет SMB-сервер, который может быть использован для
240 предоставления сетевых сервисов SMB (иногда называемым "Lan Manager")
241 клиентам, включая разнообразные версии MS Windows, OS/2, и другие
242 Linux-машины. Samba также предоставляет SMB-клиентов, которые работают
243 со встроенной в Linux файловой системой SMB.
244
245 Samba использует протокол NetBIOS over TCP/IP (NetBT) и не нуждается в
246 протоколе NetBEUI (Microsoft Raw NetBIOS frame).
247
248 Samba содержит практически работающую реализацию NT Domain Control и
249 включает новый SWAT (Samba Web Administration Tool), который позволяет
250 удаленно управлять конфигурационным файлом smb.conf при помощи вашего
251 любимого WEB-броузера. Пока что он разрешен через inetd на TCP-порту
252 901.
253
254 %description -l uk.UTF-8
255 Samba надає SMB-сервер, що може бути використаний для надання
256 мережевих сервісів SMB (що їх іноді називають "Lan Manager") клієнтам,
257 включаючи різноманітні версії MS Windows, OS/2, та інші Linux-машини.
258 Samba також надає SMB-клієнтів, що працюють з вбудованою в Linux
259 файловою системою SMB.
260
261 Samba використовує протокол NetBIOS over TCP/IP (NetBT) та не потребує
262 протоколу NetBEUI (Microsoft Raw NetBIOS frame).
263
264 Samba містить майже працюючу реализацію NT Domain Control та новый
265 SWAT (Samba Web Administration Tool), котрий дозволяє віддалено
266 керувати конфігураційним файлом smb.conf за допомогою вашого
267 улюбленого WEB-броузера. Поки що він дозволений через inetd на
268 TCP-порту 901.
269
270 %package swat
271 Summary:        Samba Web Administration Tool
272 Summary(pl.UTF-8):      Narzędzie administracyjne serwisu Samba
273 Summary(pt_BR.UTF-8):   Samba SWAT e documentação Web
274 Summary(ru.UTF-8):      Программа конфигурации SMB-сервера Samba
275 Summary(uk.UTF-8):      Програма конфигурації SMB-сервера Samba
276 Group:          Networking/Admin
277 Requires:       %{name} = %{epoch}:%{version}-%{release}
278 Requires:       inetdaemon
279 Requires:       rc-inetd >= 0.8.2
280 Obsoletes:      swat
281
282 %description swat
283 swat allows a Samba administrator to configure the complex smb.conf
284 file via a Web browser. In addition, a swat configuration page has
285 help links to all the configurable options in the smb.conf file
286 allowing an administrator to easily look up the effects of any change.
287
288 %description swat -l pl.UTF-8
289 swat pozwala na kompleksową konfigurację smb.conf przy pomocy
290 przeglądarki WWW.
291
292 %description swat -l pt_BR.UTF-8
293 SWAT - ferramentada Web de configuração do Samba.
294
295 %description swat -l ru.UTF-8
296 Пакет samba-swat включает новый SWAT (Samba Web Administration Tool),
297 для удаленного администрирования файла smb.conf при помощи вашего
298 любимого Web-браузера.
299
300 %description swat -l uk.UTF-8
301 Пакет samba-swat містить новий SWAT (Samba Web Administration Tool),
302 для дистанційного адміністрування файлу smb.conf за допомогою вашого
303 улюбленого Web-браузеру.
304
305 %package client
306 Summary:        Samba client programs
307 Summary(es.UTF-8):      Cliente SMB de Samba
308 Summary(ja.UTF-8):      Samba (SMB) クライアントプログラム
309 Summary(pl.UTF-8):      Klienci serwera Samba
310 Summary(pt_BR.UTF-8):   Cliente SMB do samba
311 Summary(ru.UTF-8):      Клиентские программы Samba (SMB)
312 Summary(uk.UTF-8):      Клієнтські програми Samba (SMB)
313 Group:          Applications/Networking
314 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
315 %{?with_kerberos5:Requires:     krb5-libs}
316 Obsoletes:      mount-cifs
317 Obsoletes:      smbfs
318
319 %description client
320 Samba-client provides some SMB clients, which complement the build-in
321 SMB filesystem in Linux. These allow accessing of SMB shares and
322 printing to SMB printers.
323
324 %description client -l pt_BR.UTF-8
325 O pacote samba-clientes prove alguns clientes SMB, que complementam o
326 sistema de arquivos SMB do Linux. Eles permitem o acesso a shares SMB,
327 e também, à impressoras SMB.
328
329 %description client -l es.UTF-8
330 Cliente SMB de Samba.
331
332 %description client -l ja.UTF-8
333 Samba-client は Linux 上に含まれている SMB ファイルシステムを補う SMB
334 クライアントを提供します。これらは SMB 共有のアクセスと SMB
335 プリンタへの印刷を許可します。
336
337 %description client -l pl.UTF-8
338 Samba-client dostarcza programy uzupełniające obsługę systemu plików
339 SMB zawartą w jądrze. Pozwalają one na współdzielenie zasobów SMB i
340 drukowanie w sieci SMB.
341
342 %description client -l pt_BR.UTF-8
343 O pacote samba-clientes prove alguns clientes SMB, que complementam o
344 sistema de arquivos SMB do Linux. Eles permitem o acesso a shares SMB,
345 e também, à impressoras SMB.
346
347 %description client -l ru.UTF-8
348 Пакет samba-client предоставляет некоторые клиенты SMB для работы со
349 встроенной файловой системой SMB в Linux. Эти клиенты позволяют
350 получать доступ к разделяемым каталогам SMB и печать на SMB-принтеры.
351
352 %description client -l uk.UTF-8
353 Пакет samba-client надає деякі клієнти SMB для роботи зі вбудованою
354 файловою системою SMB в Linux. Ці клієнти дозволяють отримувати доступ
355 до каталогів спільного використання SMB та друк на SMB-прінтери.
356
357 %package common
358 Summary:        Files used by both Samba servers and clients
359 Summary(ja.UTF-8):      Samba サーバーとクライアントで使用されるプログラム
360 Summary(pl.UTF-8):      Pliki używane przez serwer i klientów Samba
361 Summary(pt_BR.UTF-8):   Arquivos em comum entre samba e samba-clients
362 Summary(ru.UTF-8):      Файлы, используемые как сервером, так и клиентом Samba
363 Summary(uk.UTF-8):      Файли, що використовуються як сервером, так і клієнтом Samba
364 Group:          Networking/Daemons
365
366 %description common
367 Samba-common provides files necessary for both the server and client
368 packages of Samba.
369
370 %description common -l ja.UTF-8
371 Samba-common は Samba のサーバとクライアントの両方のパッケージで
372 使用されるファイルを提供します。
373
374 %description common -l pl.UTF-8
375 Samba-common dostarcza pliki niezbędne zarówno dla serwera jak i
376 klientów Samba.
377
378 %description common -l pt_BR.UTF-8
379 Arquivos em comum entre os pacotes samba e samba-clients.
380
381 %description common -l ru.UTF-8
382 Samba-common содержит файлы, необходимые для работы как клиента, так и
383 сервера Samba.
384
385 %description common -l uk.UTF-8
386 Samba-common містить файли, необхідні для роботи як клієнта, так і
387 сервера Samba.
388
389 %package winbind
390 Summary:        Samba-winbind daemon, utilities and documentation
391 Summary(pl.UTF-8):      Demon samba-winbind, narzędzia i dokumentacja
392 Group:          Networking/Daemons
393 Requires(post,preun):   /sbin/chkconfig
394 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
395
396 %description winbind
397 Provides the winbind daemon and testing tools to allow authentication
398 and group/user enumeration from a Windows or Samba domain controller.
399
400 %description winbind -l pl.UTF-8
401 Pakiet zawiera demona winbind oraz narzędzia testowe. Umożliwia
402 uwierzytelnianie i wyliczanie grup/użytkowników z kontrolera domeny
403 Windows lub Samba.
404
405 %package -n nss_wins
406 Summary:        Name Service Switch service for WINS
407 Summary(pl.UTF-8):      Usługa Name Service Switch dla WINS
408 Group:          Base
409 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
410
411 %description -n nss_wins
412 Provides the libnss_wins shared library which resolves NetBIOS names
413 to IP addresses.
414
415 %description -n nss_wins -l pl.UTF-8
416 Biblioteka dzielona libnss_wins rozwiązująca nazwy NetBIOS na adresy
417 IP.
418
419 %package -n pam-pam_smbpass
420 Summary:        PAM Samba Password Module
421 Summary(pl.UTF-8):      Moduł PAM smbpass
422 Group:          Base
423 Obsoletes:      pam_smbpass
424
425 %description -n pam-pam_smbpass
426 PAM module which can be used on conforming systems to keep the
427 smbpasswd (Samba password) database in sync with the Unix password
428 file.
429
430 %description -n pam-pam_smbpass -l pl.UTF-8
431 Moduł PAM, który może być używany do trzymania pliku smbpasswd (hasła
432 Samby) zsynchronizowanego z hasłami uniksowymi.
433
434 %package -n libsmbclient
435 Summary:        libsmbclient - samba client library
436 Summary(pl.UTF-8):      libsmbclient - biblioteka klienta samby
437 Group:          Libraries
438
439 %description -n libsmbclient
440 libsmbclient - library that allows to use samba clients functions.
441
442 %description -n libsmbclient -l pl.UTF-8
443 libsmbclient - biblioteka pozwalająca korzystać z funcji klienta
444 samby.
445
446 %package -n libsmbclient-devel
447 Summary:        libsmbclient - samba client library
448 Summary(pl.UTF-8):      libsmbclient - biblioteka klienta samby
449 Summary(pt_BR.UTF-8):   Ferramentas de desenvolvimento para clientes samba
450 Group:          Development/Libraries
451 Requires:       libsmbclient = %{epoch}:%{version}-%{release}
452
453 %description -n libsmbclient-devel
454 Header files for libsmbclient.
455
456 %description -n libsmbclient-devel -l pl.UTF-8
457 Pliki nagłówkowe dla libsmbclient.
458
459 %description -n libsmbclient-devel -l pt_BR.UTF-8
460 Arquivos de inclusão, bibliotecas e documentação necessários para
461 desenvolver aplicativos clientes para o samba.
462
463 %package -n libsmbclient-static
464 Summary:        Static version of libsmbclient - samba client library
465 Summary(pl.UTF-8):      Statyczna wersja libsmbclient - biblioteki klienta samby
466 Summary(pt_BR.UTF-8):   Ferramentas de desenvolvimento para clientes samba
467 Group:          Development/Libraries
468 Requires:       libsmbclient = %{epoch}:%{version}-%{release}
469
470 %description -n libsmbclient-static
471 Static libsmbclient library.
472
473 %description -n libsmbclient-static -l pl.UTF-8
474 Statyczna biblioteka libsmbclient.
475
476 %package devel
477 Summary:        Header files for Samba
478 Summary(pl.UTF-8):      Pliki nagłówkowe Samby
479 Group:          Development/Libraries
480
481 %description devel
482 Header files for Samba.
483
484 %description devel -l pl.UTF-8
485 Pliki nagłówkowe Samby.
486
487 %package -n smbget
488 Summary:        A utility for retrieving files using the SMB protocol
489 Summary(pl.UTF-8):      Narzędzie do pobierania plików protokołem SMB
490 Group:          Applications/Networking
491
492 %description -n smbget
493 wget-like utility for download files over SMB.
494
495 %description -n smbget -l pl.UTF-8
496 Narzędzie podobne do wgeta do pobierania plików protokołem SMB
497 używanym w sieciach MS Windows.
498
499 %package -n cups-backend-smb
500 Summary:        CUPS backend for printing to SMB printers
501 Summary(pl.UTF-8):      Backend CUPS-a drukujący na drukarkach SMB
502 Group:          Applications/Printing
503 Requires:       %{name}-client = %{epoch}:%{version}-%{release}
504 Requires:       cups >= 1:1.2.0
505
506 %description -n cups-backend-smb
507 CUPS backend for printing to SMB printers.
508
509 %description -n cups-backend-smb -l pl.UTF-8
510 Backend CUPS-a drukujący na drukarkach SMB.
511
512 %package vfs-audit
513 Summary:        VFS module to audit file access
514 Summary(pl.UTF-8):      Moduł VFS do monitorowania operacji na plikach
515 Group:          Networking/Daemons
516 Requires:       %{name} = %{epoch}:%{version}-%{release}
517
518 %description vfs-audit
519 A simple module to audit file access to the syslog facility. The
520 following operations are logged:
521  - share connect/disconnect,
522  - directory opens/create/remove,
523  - file open/close/rename/unlink/chmod.
524
525 %description vfs-audit -l pl.UTF-8
526 Proste moduły do monitorowania dostępu do plików na serwerze samba do
527 do sysloga. Monitorowane są następujące operacje:
528  - podłączenie do/odłączenie od zasobu,
529  - otwarcie/utworzenie/zmiana nazwy katalogu,
530  - otwarcie/zamknięcie/zmiana nazwy/skasowanie/zmiana praw plików.
531
532 Zawiera moduły audit, extd_audit i full_audit.
533
534 %package vfs-cap
535 Summary:        VFS module for CAP and samba compatibility
536 Summary(pl.UTF-8):      Moduł VFS zgodności z CAP (Columbia AppleTalk Program)
537 Group:          Networking/Daemons
538 Requires:       %{name} = %{epoch}:%{version}-%{release}
539
540 %description vfs-cap
541 Convert an incoming Shift-JIS character to the 3 byte hex
542 representation used by the Columbia AppleTalk Program (CAP), i.e. :AB.
543 This is used for compatibility between Samba and CAP.
544
545 %description vfs-cap -l pl.UTF-8
546 Zamienia znaki kodowane Shift-JIS do trzybajowej szestnastkowej
547 reprezentacji używanej przez program Columbia AppleTalk Program (CAP).
548
549 %package vfs-default_quota
550 Summary:        VFS module to store default quotas in a specified quota record
551 Summary(pl.UTF-8):      Moduł VFS do zapisywania domyślnych limitów w określonym rekordzie
552 Group:          Networking/Daemons
553 Requires:       %{name} = %{epoch}:%{version}-%{release}
554
555 %description vfs-default_quota
556 This VFS modules stores default quotas in a specified quota record.
557
558 %description vfs-default_quota -l pl.UTF-8
559 Ten moduł VFS zapisuje domyślne limity (quoty) w określonym rekordzie
560 limitów.
561
562 %package vfs-expand_msdfs
563 Summary:        VFS module for hosting a Microsoft Distributed File System Tree
564 Summary(pl.UTF-8):      Moduł VFS obsługi Microsoft Distributed File System
565 Group:          Networking/Daemons
566 Requires:       %{name} = %{epoch}:%{version}-%{release}
567
568 %description vfs-expand_msdfs
569 A VFS module for hosting a Microsoft Distributed File System Tree.
570
571 The Distributed File System (DFS) provides a means of separating the
572 logical view of files and directories that users see from the actual
573 physical locations of these resources on the network. It allows for
574 higher availability, smoother storage expansion, load balancing, and
575 so on.
576
577 %description vfs-expand_msdfs -l pl.UTF-8
578 Moduł VFS do udostępniania drzewa systemu plików Microsoft Distributed
579 File System.
580
581 Distributed File System (DFS) umożliwia rozdzielanie logicznego widoku
582 plików i katalogów widocznych przez użytkowników z fizycznego
583 umiejscowienia tych zasobów w sieci. Pozwala to na wyższą dostępność,
584 płynniejsze powiększanie przestrzeni, rozdzielanie obciążenia itp.
585
586 %package vfs-fake_perms
587 Summary:        VFS module to report read-only fires as writable
588 Summary(pl.UTF-8):      Moduł VFS udający, że pliki tylko do odczytu są zapisywalne
589 Group:          Networking/Daemons
590 Requires:       %{name} = %{epoch}:%{version}-%{release}
591
592 %description vfs-fake_perms
593 This module allow Roaming Profile files and directories to be set (on
594 the Samba server under UNIX) as read only. This module will, if
595 installed on the Profiles share, report to the client that the Profile
596 files and directories are writeable. This satisfies the client even
597 though the files will never be overwritten as the client logs out or
598 shuts down.
599
600 %description vfs-fake_perms -l pl.UTF-8
601 Ten moduł pozwala na ustawienie plików i katalogów z wędrujących
602 profili (Roaming Profiles) jako tylko do odczytu. Moduł ten w
603 przypadku zainstalowania na udziale z profilami będzie zgłaszał
604 klientom, że pliki i katalogi z profilu są zapisywane. To wystarczy
605 klientom pomimo, że pliki nie zostaną nigdy nadpisane przy logowaniu
606 lub wylogowywaniu klienta.
607
608 %package vfs-notify_fam
609 Summary:        VFS module to implement  file  change  notifications
610 Summary(pl.UTF-8):      Moduł VFS implementujący informowanie o zmianach w plikach
611 Group:          Networking/Daemons
612 Requires:       %{name} = %{epoch}:%{version}-%{release}
613
614 %description vfs-notify_fam
615 The vfs_notify_fam module makes use of the system FAM (File Alteration
616 Monitor) daemon to implement file change notifications for Windows
617 clients.
618
619 %description vfs-notify_fam -l pl.UTF-8
620 Ten moduł używa demona FAM (File Alteration Monitor) do implementacji
621 informowania o zmianach w plikach dla klientów Windows.
622
623 %package vfs-netatalk
624 Summary:        VFS module for ease co-existence of samba and netatalk
625 Summary(pl.UTF-8):      Moduł VFS ułatwiający współpracę serwisów samba i netatalk
626 Group:          Networking/Daemons
627 Requires:       %{name} = %{epoch}:%{version}-%{release}
628
629 %description vfs-netatalk
630 Package contains a netatalk VFS module for ease co-existence of Samba
631 and netatalk file sharing services.
632
633 %description vfs-netatalk -l pl.UTF-8
634 Pakiet zawiera moduł VFS netatalk umożliwiający współpracę usług samba
635 i netatalk przy udostępnianiu zasobów.
636
637 %package vfs-recycle
638 Summary:        VFS module to add recycle bin facility to a samba share
639 Summary(pl.UTF-8):      Moduł VFS dodający możliwość kosza do zasobu samby
640 Group:          Networking/Daemons
641 Requires:       %{name} = %{epoch}:%{version}-%{release}
642
643 %description vfs-recycle
644 VFS module to add recycle bin facility to a samba share.
645
646 %description vfs-recycle -l pl.UTF-8
647 Moduł VFS dodający możliwość kosza do zasobu samby.
648
649 %package vfs-readahead
650 Summary:        VFS module for pre-loading the kernel buffer cache
651 Summary(pl.UTF-8):      Moduł VFS do wczesnego odczytu danych do bufora cache jądra
652 Group:          Networking/Daemons
653 Requires:       %{name} = %{epoch}:%{version}-%{release}
654
655 %description vfs-readahead
656 This VFS module detects read requests at multiples of a given offset
657 (hex 0x80000 by default) and then tells the kernel via either the
658 readahead system call (on Linux) or the posix_fadvise system call to
659 pre-fetch this data into the buffer cache.
660
661 This module is useful for Windows Vista clients reading data using the
662 Windows Explorer program, which asynchronously does multiple file read
663 requests at offset boundaries of 0x80000 bytes.
664
665 %description vfs-readahead -l pl.UTF-8
666 Ten moduł VFS wykrywa żądania odczytu spod wielokrotności podanych
667 pozycji (domyślnie 0x80000 szesnastkowo) i instruuje jądro poprzez
668 wywołanie systemowe readahead (pod Linuksem) lub posix_fadvise do
669 wczesnego odczytu tych danych do bufora cache.
670
671 Ten moduł jest przydatny dla klientów Windows Vista odczytujących dane
672 przy użyciu programu Windows Explorer, który asynchronicznie wykonuje
673 wiele żądań odczytu plików spod pozycji o wielokrotnościach 0x80000
674 bajtów.
675
676 %package vfs-readonly
677 Summary:        VFS module for read-only limitation for specified share
678 Summary(pl.UTF-8):      Moduł VFS do ograniczania określonego udziału tylko do odczytu
679 Group:          Networking/Daemons
680 Requires:       %{name} = %{epoch}:%{version}-%{release}
681
682 %description vfs-readonly
683 This module performs a read-only limitation for specified share (or
684 all of them if it is loaded in a [global] section) based on period
685 definition in smb.conf.
686
687 %description vfs-readonly -l pl.UTF-8
688 Ten moduł wprowadza ograniczenie tylko do odczytu dla określonego
689 udziału (lub wszystkich, jeśli jest wczytywany w sekcji [global]) w
690 oparciu o definicje okresów w smb.conf.
691
692 %package vfs-shadow_copy
693 Summary:        VFS module to make automatic copy of data in samba share
694 Summary(pl.UTF-8):      Moduł VFS do tworzenia automatycznych kopii danych w zasobach samby
695 Group:          Networking/Daemons
696 Requires:       %{name} = %{epoch}:%{version}-%{release}
697
698 %description vfs-shadow_copy
699 VFS module to make automatic copy of data in samba share.
700
701 %description vfs-shadow_copy -l pl.UTF-8
702 Moduł VFS do tworzenia automatycznych kopii danych w zasobach samby.
703
704 %package vfs-vscan-antivir
705 Summary:        On-access virus scanning for samba using AntiVir
706 Summary(pl.UTF-8):      Skaner antywirusowy online wykorzystujący AntiVir
707 Group:          Networking/Daemons
708 Requires:       %{name} = %{epoch}:%{version}-%{release}
709 Provides:       %{name}-vscan = %{epoch}:%{version}-%{release}
710
711 %description vfs-vscan-antivir
712 A vfs-module for samba to implement on-access scanning using the
713 AntiVir antivirus software (which must be installed to use this).
714
715 %description vfs-vscan-antivir -l pl.UTF-8
716 Moduł vfs do samby implementujący skaning antywirusowy w czasie
717 dostępu do plików korzystając z oprogramowania antywirusowego AntiVir
718 (które musi być zainstalowane, aby wykorzystać ten moduł).
719
720 %package vfs-vscan-clamav
721 Summary:        On-access virus scanning for samba using ClamAV
722 Summary(pl.UTF-8):      Skaner antywirusowy online wykorzystujący ClamAV
723 Group:          Networking/Daemons
724 Requires:       %{name} = %{epoch}:%{version}-%{release}
725 Requires:       clamav
726 Provides:       %{name}-vscan = %{epoch}:%{version}-%{release}
727
728 %description vfs-vscan-clamav
729 A vfs-module for samba to implement on-access scanning using the
730 ClamAV antivirus software (which must be installed to use this).
731
732 %description vfs-vscan-clamav -l pl.UTF-8
733 Moduł vfs do samby implementujący skaning antywirusowy w czasie
734 dostępu do plików korzystając z oprogramowania antywirusowego ClamAV
735 (które musi być zainstalowane, aby wykorzystać ten moduł).
736
737 %package vfs-vscan-fprot
738 Summary:        On-access virus scanning for samba using FPROT
739 Summary(pl.UTF-8):      Skaner antywirusowy online wykorzystujący FPROT
740 Group:          Networking/Daemons
741 Requires:       %{name} = %{epoch}:%{version}-%{release}
742 Provides:       %{name}-vscan = %{epoch}:%{version}-%{release}
743 Obsoletes:      vscan-fprot
744
745 %description vfs-vscan-fprot
746 A vfs-module for samba to implement on-access scanning using the FPROT
747 antivirus software (which must be installed to use this).
748
749 %description vfs-vscan-fprot -l pl.UTF-8
750 Moduł vfs do samby implementujący skaning antywirusowy w czasie
751 dostępu do plików korzystając z oprogramowania antywirusowego FPROT
752 (które musi być zainstalowane, aby wykorzystać ten moduł).
753
754 %package vfs-vscan-fsav
755 Summary:        On-access virus scanning for samba using F-Secure AntiVirus
756 Summary(pl.UTF-8):      Skaner antywirusowy online wykorzystujący F-Secure AntiVirus
757 Group:          Networking/Daemons
758 Requires:       %{name} = %{epoch}:%{version}-%{release}
759 Provides:       %{name}-vscan = %{epoch}:%{version}-%{release}
760 Obsoletes:      vscan-fsav
761
762 %description vfs-vscan-fsav
763 A vfs-module for samba to implement on-access scanning using the
764 F-Secure AntiVirus antivirus software (which must be installed to use
765 this).
766
767 %description vfs-vscan-fsav -l pl.UTF-8
768 Moduł vfs do samby implementujący skaning antywirusowy w czasie
769 dostępu do plików korzystając z oprogramowania antywirusowego F-Secure
770 AntiVirus (które musi być zainstalowane, aby wykorzystać ten moduł).
771
772 %package vfs-vscan-kavp
773 Summary:        On-access virus scanning for samba using Kaspersky AVP
774 Summary(pl.UTF-8):      Skaner antywirusowy online wykorzystujący Kaspersky AVP
775 Group:          Networking/Daemons
776 Requires:       %{name} = %{epoch}:%{version}-%{release}
777 Provides:       %{name}-vscan = %{epoch}:%{version}-%{release}
778 Obsoletes:      vscan-kavp
779
780 %description vfs-vscan-kavp
781 A vfs-module for samba to implement on-access scanning using the
782 Kaspersky AVP antivirus software (which must be installed to use
783 this).
784
785 %description vfs-vscan-kavp -l pl.UTF-8
786 Moduł vfs do samby implementujący skaning antywirusowy w czasie
787 dostępu do plików korzystając z oprogramowania antywirusowego
788 Kaspersky AVP (które musi być zainstalowane, aby wykorzystać ten
789 moduł).
790
791 %package vfs-vscan-mcafee
792 Summary:        On-access virus scanning for samba using mcafee
793 Summary(pl.UTF-8):      Skaner antywirusowy online wykorzystujący mcafee
794 Group:          Networking/Daemons
795 Requires:       %{name} = %{epoch}:%{version}-%{release}
796 #Requires:      mcafee
797 Provides:       %{name}-vscan = %{epoch}:%{version}-%{release}
798 Obsoletes:      vscan-mcafee
799
800 %description vfs-vscan-mcafee
801 A vfs-module for samba to implement on-access scanning using the
802 mcafee antivirus software (which must be installed to use this).
803
804 %description vfs-vscan-mcafee -l pl.UTF-8
805 Moduł vfs do samby implementujący skaning antywirusowy w czasie
806 dostępu do plików korzystając z oprogramowania antywirusowego mcafee
807 (które musi być zainstalowane, aby wykorzystać ten moduł).
808
809 %package vfs-vscan-mks
810 Summary:        On-access virus scanning for samba using mks
811 Summary(pl.UTF-8):      Skaner antywirusowy online wykorzystujący mks
812 Group:          Networking/Daemons
813 Requires:       %{name} = %{epoch}:%{version}-%{release}
814 Requires:       mksd
815 Provides:       %{name}-vscan = %{epoch}:%{version}-%{release}
816 Obsoletes:      vscan-mks
817
818 %description vfs-vscan-mks
819 A vfs-module for samba to implement on-access scanning using the mks
820 antivirus software (which must be installed to use this).
821
822 %description vfs-vscan-mks -l pl.UTF-8
823 Moduł vfs do samby implementujący skaning antywirusowy w czasie
824 dostępu do plików korzystając z oprogramowania antywirusowego mks
825 (które musi być zainstalowane, aby wykorzystać ten moduł).
826
827 %package vfs-vscan-openantivirus
828 Summary:        On-access virus scanning for samba using OpenAntivirus
829 Summary(pl.UTF-8):      Skaner antywirusowy online wykorzystujący OpenAntiVirus
830 Group:          Networking/Daemons
831 Requires:       %{name} = %{epoch}:%{version}-%{release}
832 Provides:       %{name}-vscan = %{epoch}:%{version}-%{release}
833 Obsoletes:      vscan-openantivirus
834
835 %description vfs-vscan-openantivirus
836 A vfs-module for samba to implement on-access scanning using the
837 OpenAntivirus antivirus software (which must be installed to use
838 this).
839
840 %description vfs-vscan-openantivirus -l pl.UTF-8
841 Moduł vfs do samby implementujący skaning antywirusowy w czasie
842 dostępu do plików korzystając z oprogramowania antywirusowego
843 OpenAntiVirus.org (które musi być zainstalowane, aby wykorzystać ten
844 moduł).
845
846 %package vfs-vscan-sophos
847 Summary:        On-access virus scanning for samba using Sophos
848 Summary(pl.UTF-8):      Skaner antywirusowy online wykorzystujący Sophos
849 Group:          Networking/Daemons
850 Requires:       %{name} = %{epoch}:%{version}-%{release}
851 Provides:       %{name}-vscan = %{epoch}:%{version}-%{release}
852 Obsoletes:      vscan-sophos
853
854 %description vfs-vscan-sophos
855 A vfs-module for samba to implement on-access scanning using the
856 Sophos antivirus software (which must be installed to use this).
857
858 %description vfs-vscan-sophos -l pl.UTF-8
859 Moduł vfs do samby implementujący skaning antywirusowy w czasie
860 dostępu do plików korzystając z oprogramowania antywirusowego Sophos
861 (które musi być zainstalowane, aby wykorzystać ten moduł).
862
863 %package vfs-vscan-symantec
864 Summary:        On-access virus scanning for samba using Symantec
865 Summary(pl.UTF-8):      Skaner antywirusowy online wykorzystujący Symantec
866 Group:          Networking/Daemons
867 Requires:       %{name} = %{epoch}:%{version}-%{release}
868 Provides:       %{name}-vscan = %{epoch}:%{version}-%{release}
869 Obsoletes:      vscan-symantec
870
871 %description vfs-vscan-symantec
872 A vfs-module for samba to implement on-access scanning using the
873 Symantec antivirus software (which must be installed to use this).
874
875 %description vfs-vscan-symantec -l pl.UTF-8
876 Moduł vfs do samby implementujący skaning antywirusowy w czasie
877 dostępu do plików korzystając z oprogramowania antywirusowego firmy
878 Symantec (które musi być zainstalowane, aby wykorzystać ten moduł).
879
880 %package vfs-vscan-trend
881 Summary:        On-access virus scanning for samba using Trend
882 Summary(pl.UTF-8):      Skaner antywirusowy online wykorzystujący Trend
883 Group:          Networking/Daemons
884 Requires:       %{name} = %{epoch}:%{version}-%{release}
885 Provides:       %{name}-vscan = %{epoch}:%{version}-%{release}
886 Obsoletes:      vscan-trend
887
888 %description vfs-vscan-trend
889 A vfs-module for samba to implement on-access scanning using the Trend
890 antivirus software (which must be installed to use this).
891
892 %description vfs-vscan-trend -l pl.UTF-8
893 Moduł vfs do samby implementujący skaning antywirusowy w czasie
894 dostępu do plików korzystając z oprogramowania antywirusowego Trend
895 (które musi być zainstalowane, aby wykorzystać ten moduł).
896
897 %package -n openldap-schema-samba
898 Summary:        Samba LDAP schema
899 Summary(pl.UTF-8):      Schemat LDAP dla samby
900 Group:          Networking/Daemons
901 Requires(post,postun):  sed >= 4.0
902 Requires:       openldap-servers
903
904 %description -n openldap-schema-samba
905 This package contains samba.schema for openldap.
906
907 %description -n openldap-schema-samba -l pl.UTF-8
908 Ten pakiet zawiera schemat samby dla openldap-a.
909
910 %package doc-html
911 Summary:        Samba HTML documentation
912 Summary(pl.UTF-8):      Documentacja samby w formacie HTML
913 Group:          Documentation
914
915 %description doc-html
916 Samba HTML documentation.
917
918 %description doc-html -l pl.UTF-8
919 Documentacja samby w formacie HTML.
920
921 %package doc-pdf
922 Summary:        Samba documentation - PDF format
923 Summary(pl.UTF-8):      Documentacja samby w formacie PDF
924 Group:          Documentation
925
926 %description doc-pdf
927 Samba PDF documentation.
928
929 %description doc-pdf -l pl.UTF-8
930 Documentacja samby w formacie PDF.
931
932 %prep
933 %setup -q
934 %if "%{_lib}" == "lib64"
935 #%patch0 -p1
936 %endif
937 %patch1 -p1
938 %patch2 -p1
939 %patch3 -p1
940 %patch4 -p1
941 #%patch5 -p1
942 #%patch6 -p1
943 %patch7 -p1
944 # OBSOLETE
945 #%patch8 -p1
946 #?
947 #%patch9 -p1
948 #?
949 #%patch10 -p1
950 %patch11 -p1
951 %{__sed} -i 's#%SAMBAVERSION%#%{version}#' docs/htmldocs/index.html
952
953 cd examples/VFS
954 tar xzf %{SOURCE7}
955 mv README{,.vfs}
956 cd ../..
957
958 %build
959 cd source
960 %{__libtoolize}
961 %{__autoconf} -Im4 -Ilib/replace
962 %configure \
963         --libdir=%{_sambalibdir} \
964         --with-rootsbindir=/sbin \
965         --with-pammodulesdir=/%{_lib}/security \
966         --with-acl-support \
967         --with-automount \
968         --with-libsmbclient \
969         --with-lockdir=/var/lib/samba \
970         --with-pam \
971         --with-pam_smbpass \
972         --with%{!?with_ads:out}-ads \
973         --with-privatedir=%{_sysconfdir}/samba \
974         --with-quotas \
975         --with-readline \
976         --with-swatdir=%{_datadir}/swat \
977         --with-syslog \
978         --with-utmp \
979         --with-fhs \
980         --with%{!?with_ldap:out}-ldap \
981         --with%{!?with_kerberos5:out}-krb5
982
983 %{__make} proto
984 %{__make} everything pam_smbpass bin/smbget bin/mount.cifs bin/vfstest
985
986 cd ../examples
987 %{__make} -C libsmbclient/smbwrapper \
988         CC="%{__cc}" \
989         CFLAGS="%{rpmcflags} -fPIC \$(DEFS) \\\$(SMBINCLUDE)"
990
991 cd VFS
992 %{__autoheader}
993 %{__autoconf}
994 %configure \
995         CFLAGS="%{rpmcflags} -fPIC"
996 %{__make}
997
998 %if %{with vscan}
999 cd samba-vscan-%{vscan_version}
1000 cp -f /usr/share/automake/config.sub .
1001 %configure
1002 ln -s ../../../source/lib .
1003 %{__make} all
1004 %endif
1005
1006 %install
1007 rm -rf $RPM_BUILD_ROOT
1008 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,pam.d,security,sysconfig/rc-inetd} \
1009         $RPM_BUILD_ROOT{/var/{log,log/archive,spool}/samba,/var/lib/samba/printing} \
1010         $RPM_BUILD_ROOT/var/log/samba/cores/{smbd,nmbd} \
1011         $RPM_BUILD_ROOT{/sbin,/%{_lib}/security,%{_libdir},%{_vfsdir},%{_includedir},%{_sambahome},%{schemadir}}
1012
1013 %{__make} -C source install \
1014         DESTDIR=$RPM_BUILD_ROOT \
1015         CONFIGDIR=$RPM_BUILD_ROOT%{_sysconfdir}/samba
1016
1017 install source/script/mksmbpasswd.sh $RPM_BUILD_ROOT%{_sbindir}
1018
1019 ln -sf %{_bindir}/smbmount $RPM_BUILD_ROOT/sbin/mount.smbfs
1020
1021 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/smb
1022 install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/samba
1023 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/swat
1024 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/samba
1025 install %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/samba
1026 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/samba/smb.conf
1027 install %{SOURCE8} $RPM_BUILD_ROOT/etc/rc.d/init.d/winbind
1028 install %{SOURCE9} $RPM_BUILD_ROOT/etc/sysconfig/winbind
1029
1030 install source/nsswitch/libnss_winbind.so $RPM_BUILD_ROOT/%{_lib}/libnss_winbind.so.2
1031 ln -s libnss_winbind.so.2               $RPM_BUILD_ROOT/%{_lib}/libnss_winbind.so
1032 install source/nsswitch/libnss_wins.so  $RPM_BUILD_ROOT/%{_lib}/libnss_wins.so.2
1033 ln -s libnss_wins.so.2                  $RPM_BUILD_ROOT/%{_lib}/libnss_wins.so
1034 install source/bin/wbinfo               $RPM_BUILD_ROOT%{_bindir}
1035 install source/bin/smbget               $RPM_BUILD_ROOT%{_bindir}
1036 install source/bin/vfstest              $RPM_BUILD_ROOT%{_bindir}
1037
1038 mv $RPM_BUILD_ROOT%{_libdir}/samba/lib*.so* $RPM_BUILD_ROOT%{_libdir}
1039 install source/bin/libsmbclient.a $RPM_BUILD_ROOT%{_libdir}/libsmbclient.a
1040
1041 # smbwrapper
1042 install examples/libsmbclient/smbwrapper/smbwrapper.so $RPM_BUILD_ROOT%{_libdir}/smbwrapper.so
1043 install examples/libsmbclient/smbwrapper/smbsh $RPM_BUILD_ROOT%{_bindir}
1044 install examples/libsmbclient/smbwrapper/smbsh.1 $RPM_BUILD_ROOT%{_mandir}/man1
1045
1046 # these are needed to build samba-pdbsql
1047 install -d $RPM_BUILD_ROOT%{_includedir}/%{name}/{tdb,nsswitch}
1048 cp -a source/include/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}
1049 cp -a source/lib/tdb/include/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/tdb
1050 cp -a source/nsswitch/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/nsswitch
1051
1052 %if %{with vscan}
1053 # vscan modules
1054 install examples/VFS/samba-vscan-%{vscan_version}/*.so $RPM_BUILD_ROOT%{_vfsdir}
1055 install examples/VFS/samba-vscan-%{vscan_version}/{antivir,clamav,fprot,icap,kaspersky,mks,openantivirus,sophos,trend,f-secure,nai}/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/samba
1056 %endif
1057
1058 touch $RPM_BUILD_ROOT/var/lib/samba/{wins.dat,browse.dat}
1059
1060 echo '127.0.0.1 localhost' > $RPM_BUILD_ROOT%{_sysconfdir}/samba/lmhosts
1061
1062 %if %{with cups}
1063 install -d $RPM_BUILD_ROOT%{cups_serverbin}/backend
1064 ln -s %{_bindir}/smbspool $RPM_BUILD_ROOT%{cups_serverbin}/backend/smb
1065 %endif
1066
1067 > $RPM_BUILD_ROOT%{_sysconfdir}/samba/smbusers
1068 > $RPM_BUILD_ROOT/etc/security/blacklist.samba
1069
1070 # we have this utility in tdb package
1071 rm -f $RPM_BUILD_ROOT{%{_bindir}/tdbdump,%{_mandir}/man8/tdbdump.8*}
1072
1073 mv $RPM_BUILD_ROOT%{_bindir}/tdbtool $RPM_BUILD_ROOT%{_bindir}/tdbtool_samba
1074
1075 %if %{with ldap}
1076 install examples/LDAP/samba.schema $RPM_BUILD_ROOT%{schemadir}
1077 %endif
1078
1079 %clean
1080 rm -rf $RPM_BUILD_ROOT
1081
1082 %post
1083 /sbin/chkconfig --add smb
1084 if [ -f /var/lock/samba/connections.tdb -a ! -f /var/lib/samba/connections.tdb ]; then
1085         echo >&2 "Moving old /var/lock/samba contents to /var/lib/samba"
1086         /sbin/service smb stop >&2
1087         mv -f /var/lock/samba/*.tdb /var/lib/samba 2>/dev/null || :
1088         mv -f /var/lock/samba/*.dat /var/lib/samba 2>/dev/null || :
1089         if [ -d /var/lock/samba/printing ]; then
1090                 mv -f /var/lock/samba/printing/*.tdb /var/lib/samba/printing 2>/dev/null || :
1091         fi
1092         /sbin/service smb start >&2
1093 else
1094         %service smb restart "Samba daemons"
1095 fi
1096
1097 %preun
1098 if [ "$1" = "0" ]; then
1099         %service smb stop
1100         /sbin/chkconfig --del smb
1101 fi
1102
1103 %post winbind
1104 /sbin/chkconfig --add winbind
1105 %service winbind restart "Winbind daemon"
1106
1107 %preun winbind
1108 if [ "$1" = "0" ]; then
1109         %service winbind stop
1110         /sbin/chkconfig --del winbind
1111 fi
1112
1113 %post swat
1114 %service -q rc-inetd reload
1115
1116 %postun swat
1117 if [ "$1" = 0 ]; then
1118         %service -q rc-inetd reload
1119 fi
1120
1121 %post -n openldap-schema-samba
1122 # dependant schemas: cosine(uid) inetorgperson(displayName) nis(gidNumber)
1123 %openldap_schema_register %{schemadir}/samba.schema -d cosine,inetorgperson,nis
1124 %service -q ldap restart
1125
1126 %postun -n openldap-schema-samba
1127 if [ "$1" = "0" ]; then
1128         %openldap_schema_unregister %{schemadir}/samba.schema
1129         %service -q ldap restart
1130 fi
1131
1132 %triggerpostun -- samba < 1.9.18p7
1133 if [ "$1" != "0" ]; then
1134         /sbin/chkconfig --add smb
1135 fi
1136
1137 %files
1138 %defattr(644,root,root,755)
1139 %attr(755,root,root) %{_sbindir}/nmbd
1140 %attr(755,root,root) %{_sbindir}/smbd
1141 %attr(755,root,root) %{_sbindir}/mksmbpasswd.sh
1142 %attr(755,root,root) %{_bindir}/ldb*
1143 %attr(755,root,root) %{_bindir}/smbstatus
1144 %attr(755,root,root) %{_bindir}/smbpasswd
1145 %attr(755,root,root) %{_bindir}/smbcontrol
1146 %attr(755,root,root) %{_bindir}/tdbbackup
1147 %attr(755,root,root) %{_bindir}/tdbtool_samba
1148
1149 %dir %{_libdir}/%{name}/pdb
1150 %dir %{_vfsdir}
1151
1152 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/smbusers
1153 %attr(754,root,root) /etc/rc.d/init.d/smb
1154 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/samba
1155 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/samba
1156 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/samba
1157 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.samba
1158 %{_mandir}/man1/ldb*.1*
1159 %{_mandir}/man1/log2pcap.1*
1160 %{_mandir}/man1/smbstatus.1*
1161 %{_mandir}/man1/smbcontrol.1*
1162 %{_mandir}/man5/smbpasswd.5*
1163 %{_mandir}/man7/samba.7*
1164 %{_mandir}/man8/nmbd.8*
1165 %{_mandir}/man8/smbd.8*
1166 %{_mandir}/man8/smbpasswd.8*
1167 %{_mandir}/man8/tdbbackup.8*
1168
1169 %dir %{_sambahome}
1170 %dir /var/lib/samba
1171 %ghost /var/lib/samba/*.dat
1172 %dir /var/lib/samba/printing
1173
1174 %attr(750,root,root) %dir /var/log/samba
1175 %attr(750,root,root) %dir /var/log/samba/cores
1176 %attr(750,root,root) %dir /var/log/samba/cores/smbd
1177 %attr(750,root,root) %dir /var/log/samba/cores/nmbd
1178 %attr(750,root,root) %dir /var/log/archive/samba
1179 %attr(1777,root,root) %dir /var/spool/samba
1180 %if %{with ldap}
1181 %doc examples/LDAP
1182 %endif
1183
1184 %files winbind
1185 %defattr(644,root,root,755)
1186 %attr(755,root,root) %{_sbindir}/winbindd
1187 %attr(755,root,root) %{_bindir}/wbinfo
1188 %attr(755,root,root) /%{_lib}/security/pam_winbind*
1189 %attr(755,root,root) /%{_lib}/libnss_winbind*
1190 %attr(754,root,root) /etc/rc.d/init.d/winbind
1191 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/winbind
1192 %{_mandir}/man1/wbinfo*.1*
1193 %{_mandir}/man7/pam_winbind.7*
1194 %{_mandir}/man8/winbindd*.8*
1195
1196 %files -n nss_wins
1197 %defattr(644,root,root,755)
1198 %attr(755,root,root) /%{_lib}/libnss_wins*
1199
1200 %files client
1201 %defattr(644,root,root,755)
1202 %attr(755,root,root) /sbin/mount.smbfs
1203 %attr(755,root,root) /sbin/mount.cifs
1204 %attr(755,root,root) /sbin/umount.cifs
1205 %attr(755,root,root) %{_bindir}/findsmb
1206 %attr(755,root,root) %{_bindir}/net
1207 %attr(755,root,root) %{_bindir}/nmblookup
1208 %attr(755,root,root) %{_bindir}/rpcclient
1209 %attr(755,root,root) %{_bindir}/smbcacls
1210 %attr(755,root,root) %{_bindir}/smbclient
1211 %attr(755,root,root) %{_bindir}/smbsh
1212 %attr(755,root,root) %{_bindir}/smbtar
1213 %attr(755,root,root) %{_bindir}/smbtree
1214 %attr(755,root,root) %{_sbindir}/cifs.upcall
1215 %attr(755,root,root) %{_libdir}/smbwrapper.so
1216 %{_mandir}/man1/findsmb.1*
1217 %{_mandir}/man1/nmblookup.1*
1218 %{_mandir}/man1/rpcclient.1*
1219 %{_mandir}/man1/smbcacls.1*
1220 %{_mandir}/man1/smbclient.1*
1221 %{_mandir}/man1/smbsh.1*
1222 %{_mandir}/man1/smbtar.1*
1223 %{_mandir}/man1/smbtree.1*
1224 %{_mandir}/man8/cifs.upcall.8*
1225 %{_mandir}/man8/net.8*
1226 %{_mandir}/man8/*mount.cifs.8*
1227
1228 %files common
1229 %defattr(644,root,root,755)
1230 %doc README Manifest WHATSNEW.txt
1231 %doc Roadmap docs/registry/*
1232 %doc docs/{history,THANKS}
1233 %dir %{_sysconfdir}/samba
1234 %attr(664,root,fileshare) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/smb.conf
1235 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/lmhosts
1236 %attr(755,root,root) %{_bindir}/eventlogadm
1237 %attr(755,root,root) %{_bindir}/ntlm_auth
1238 %attr(755,root,root) %{_bindir}/pdbedit
1239 %attr(755,root,root) %{_bindir}/profiles
1240 %attr(755,root,root) %{_bindir}/smbcquotas
1241 %attr(755,root,root) %{_bindir}/testparm
1242 %attr(755,root,root) %{_bindir}/vfstest
1243 %dir %{_libdir}/%{name}
1244 # how this one is used? SONAME is libsmbsharemodes.so.0
1245 %attr(755,root,root) %{_libdir}/libsmbsharemodes.so
1246 %{_libdir}/%{name}/*.dat
1247 %dir %{_libdir}/%{name}/auth
1248 %attr(755,root,root) %{_libdir}/%{name}/auth/script.so
1249 %dir %{_libdir}/%{name}/charset
1250 %attr(755,root,root) %{_libdir}/%{name}/charset/*.so
1251 %{_mandir}/man1/ntlm_auth.1*
1252 %{_mandir}/man1/profiles.1*
1253 %{_mandir}/man1/smbcquotas.1*
1254 %{_mandir}/man1/testparm.1*
1255 %{_mandir}/man1/vfstest.1*
1256 #%{_mandir}/man1/log2pcap.1*
1257 %{_mandir}/man5/lmhosts.5*
1258 %{_mandir}/man5/smb.conf.5*
1259 %{_mandir}/man8/pdbedit.8*
1260 %{_mandir}/man8/eventlogadm.8*
1261 %{_mandir}/man8/idmap_ad.8*
1262 %{_mandir}/man8/idmap_ldap.8*
1263 %{_mandir}/man8/idmap_nss.8*
1264 %{_mandir}/man8/idmap_rid.8*
1265 %{_mandir}/man8/idmap_tdb.8*
1266 %{_mandir}/man8/tdbtool.8*
1267
1268 %files swat
1269 %defattr(644,root,root,755)
1270 #%doc swat/README* swat/help/*
1271 %doc swat/help/*
1272 %attr(755,root,root) %{_sbindir}/swat
1273 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/swat
1274 %dir %{_datadir}/swat
1275 %{_datadir}/swat/help
1276 %{_datadir}/swat/images
1277 %{_datadir}/swat/include
1278 %dir %{_datadir}/swat/lang
1279 %lang(ja) %{_datadir}/swat/lang/ja
1280 %lang(tr) %{_datadir}/swat/lang/tr
1281 %lang(de) %{_libdir}/%{name}/de.msg
1282 %{_libdir}/%{name}/en.msg
1283 %lang(fi) %{_libdir}/%{name}/fi.msg
1284 %lang(fr) %{_libdir}/%{name}/fr.msg
1285 %lang(it) %{_libdir}/%{name}/it.msg
1286 %lang(ja) %{_libdir}/%{name}/ja.msg
1287 %lang(nl) %{_libdir}/%{name}/nl.msg
1288 %lang(pl) %{_libdir}/%{name}/pl.msg
1289 %lang(tr) %{_libdir}/%{name}/tr.msg
1290 %{_mandir}/man8/swat.8*
1291
1292 %files -n pam-pam_smbpass
1293 %defattr(644,root,root,755)
1294 %doc source/pam_smbpass/{CHAN*,README,TODO} source/pam_smbpass/samples
1295 %attr(755,root,root) /%{_lib}/security/pam_smbpass.so
1296
1297 %files -n libsmbclient
1298 %defattr(644,root,root,755)
1299 %attr(755,root,root) %{_libdir}/libsmbclient.so.*
1300 %attr(755,root,root) %{_libdir}/libwbclient.so.*
1301 %{_mandir}/man7/libsmbclient.7*
1302
1303 %files -n libsmbclient-devel
1304 %defattr(644,root,root,755)
1305 %attr(755,root,root) %{_libdir}/libsmbclient.so
1306 %attr(755,root,root) %{_libdir}/libwbclient.so
1307 %{_includedir}/libsmbclient.h
1308 %{_includedir}/wbclient.h
1309
1310 %files devel
1311 %defattr(644,root,root,755)
1312 %{_includedir}/%{name}
1313
1314 %files -n libsmbclient-static
1315 %defattr(644,root,root,755)
1316 %{_libdir}/libsmbclient.a
1317
1318 %files -n smbget
1319 %defattr(644,root,root,755)
1320 %attr(755,root,root) %{_bindir}/smbget
1321 %{_mandir}/man1/smbget.1*
1322 %{_mandir}/man5/smbgetrc.5*
1323
1324 %if %{with cups}
1325 %files -n cups-backend-smb
1326 %defattr(644,root,root,755)
1327 %attr(755,root,root) %{_bindir}/smbspool
1328 %attr(755,root,root) %{cups_serverbin}/backend/smb
1329 %{_mandir}/man8/smbspool.8*
1330 %endif
1331
1332 %files vfs-audit
1333 %defattr(644,root,root,755)
1334 %attr(755,root,root) %{_vfsdir}/audit.so
1335 %attr(755,root,root) %{_vfsdir}/extd_audit.so
1336 %attr(755,root,root) %{_vfsdir}/full_audit.so
1337 %{_mandir}/man8/vfs_audit.8*
1338 %{_mandir}/man8/vfs_extd_audit.8*
1339 %{_mandir}/man8/vfs_full_audit.8*
1340
1341 %files vfs-cap
1342 %defattr(644,root,root,755)
1343 %attr(755,root,root) %{_vfsdir}/cap.so
1344 %{_mandir}/man8/vfs_cap.8*
1345
1346 %files vfs-default_quota
1347 %defattr(644,root,root,755)
1348 %attr(755,root,root) %{_vfsdir}/default_quota.so
1349 %{_mandir}/man8/vfs_default_quota.8*
1350
1351 %files vfs-expand_msdfs
1352 %defattr(644,root,root,755)
1353 %attr(755,root,root) %{_vfsdir}/expand_msdfs.so
1354
1355 %files vfs-fake_perms
1356 %defattr(644,root,root,755)
1357 %attr(755,root,root) %{_vfsdir}/fake_perms.so
1358 %{_mandir}/man8/vfs_fake_perms.8*
1359
1360 %files vfs-notify_fam
1361 %defattr(644,root,root,755)
1362 %attr(755,root,root) %{_vfsdir}/notify_fam.so
1363 %{_mandir}/man8/vfs_notify_fam.8*
1364
1365 %files vfs-netatalk
1366 %defattr(644,root,root,755)
1367 %attr(755,root,root) %{_vfsdir}/netatalk.so
1368 %{_mandir}/man8/vfs_netatalk.8*
1369
1370 %files vfs-readahead
1371 %defattr(644,root,root,755)
1372 %attr(755,root,root) %{_vfsdir}/readahead.so
1373 %{_mandir}/man8/vfs_readahead.8*
1374
1375 %files vfs-readonly
1376 %defattr(644,root,root,755)
1377 %attr(755,root,root) %{_vfsdir}/readonly.so
1378 %{_mandir}/man8/vfs_readonly.8*
1379
1380 %files vfs-recycle
1381 %defattr(644,root,root,755)
1382 %attr(755,root,root) %{_vfsdir}/recycle.so
1383 %{_mandir}/man8/vfs_recycle.8*
1384
1385 %files vfs-shadow_copy
1386 %defattr(644,root,root,755)
1387 %attr(755,root,root) %{_vfsdir}/shadow_copy.so
1388 %{_mandir}/man8/vfs_shadow_copy.8*
1389
1390 %if %{with vscan}
1391 %files vfs-vscan-antivir
1392 %defattr(644,root,root,755)
1393 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1394 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-antivir.conf
1395 %attr(755,root,root) %{_vfsdir}/vscan-antivir.so
1396
1397 %files vfs-vscan-clamav
1398 %defattr(644,root,root,755)
1399 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1400 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-clamav.conf
1401 %attr(755,root,root) %{_vfsdir}/vscan-clamav.so
1402
1403 %files vfs-vscan-fprot
1404 %defattr(644,root,root,755)
1405 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1406 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-fprotd.conf
1407 %attr(755,root,root) %{_vfsdir}/vscan-fprotd.so
1408
1409 %files vfs-vscan-fsav
1410 %defattr(644,root,root,755)
1411 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1412 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-fsav.conf
1413 %attr(755,root,root) %{_vfsdir}/vscan-fsav.so
1414
1415 %files vfs-vscan-kavp
1416 %defattr(644,root,root,755)
1417 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1418 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-kavp.conf
1419 %attr(755,root,root) %{_vfsdir}/vscan-kavp.so
1420
1421 %files vfs-vscan-mcafee
1422 %defattr(644,root,root,755)
1423 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1424 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-mcdaemon.conf
1425 %attr(755,root,root) %{_vfsdir}/vscan-mcdaemon.so
1426
1427 %if %{with mks}
1428 %ifarch %{ix86} %{x8664}
1429 %files vfs-vscan-mks
1430 %defattr(644,root,root,755)
1431 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1432 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-mks32.conf
1433 %attr(755,root,root) %{_vfsdir}/vscan-mksd.so
1434 %endif
1435 %endif
1436
1437 %files vfs-vscan-openantivirus
1438 %defattr(644,root,root,755)
1439 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1440 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-oav.conf
1441 %attr(755,root,root) %{_vfsdir}/vscan-oav.so
1442
1443 %files vfs-vscan-sophos
1444 %defattr(644,root,root,755)
1445 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1446 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-sophos.conf
1447 %attr(755,root,root) %{_vfsdir}/vscan-sophos.so
1448
1449 %files vfs-vscan-symantec
1450 %defattr(644,root,root,755)
1451 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1452 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-icap.conf
1453 %attr(755,root,root) %{_vfsdir}/vscan-icap.so
1454
1455 %files vfs-vscan-trend
1456 %defattr(644,root,root,755)
1457 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1458 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-trend.conf
1459 %attr(755,root,root) %{_vfsdir}/vscan-trend.so
1460 %endif
1461
1462 %if %{with ldap}
1463 %files -n openldap-schema-samba
1464 %defattr(644,root,root,755)
1465 %{schemadir}/*.schema
1466 %endif
1467
1468 %files doc-html
1469 %defattr(644,root,root,755)
1470 %doc docs/htmldocs/*
1471
1472 %files doc-pdf
1473 %defattr(644,root,root,755)
1474 %doc docs/*.pdf
This page took 0.284236 seconds and 3 git commands to generate.