3 # - review python-samba
4 # - drop tdb.spec and build tdb,tdb-devel,tdb-static package from samba
5 # - look into other distro specs for valid %descriptions for samba 3
6 # - unpackaged man pages for modules that are not built by default,
7 # maybe we should build them?
8 # /usr/share/man/man8/vfs_cacheprime.8*
9 # /usr/share/man/man8/vfs_catia.8*
10 # /usr/share/man/man8/vfs_commit.8*
11 # /usr/share/man/man8/vfs_gpfs.8*
12 # /usr/share/man/man8/vfs_notify_fam.8*
13 # /usr/share/man/man8/vfs_prealloc.8*
14 # - libmsrpc.so is broken (references smbc_attr_server() which is no longer exported from libsmbclient)
18 # - MERGE vfs modules into main package, what was the point of splitting these?
22 %bcond_without ads # without ActiveDirectory support
23 %bcond_without cups # without CUPS support
24 %bcond_without kerberos5 # without Kerberos V support
25 %bcond_without ldap # without LDAP support
27 %bcond_without merged_build # without samba3+samba4 merge
28 # http://wiki.samba.org/index.php/Franky
29 %bcond_with mks # with vfs-mks (mksd dependency not distributale)
32 # ADS requires kerberos5 and LDAP
33 %if !%{with kerberos5} || !%{with ldap}
36 %define vscan_version 0.3.6c-beta5
38 Summary(cs.UTF-8): Server SMB
39 Summary(da.UTF-8): SMB server
40 Summary(de.UTF-8): SMB-Server
41 Summary(es.UTF-8): El servidor SMB
42 Summary(fi.UTF-8): SMB-palvelin
43 Summary(fr.UTF-8): Serveur SMB
44 Summary(it.UTF-8): Server SMB
45 Summary(ja.UTF-8): Samba SMB サーバー
46 Summary(ko.UTF-8): 삼바 SMB 서버
47 Summary(pl.UTF-8): Serwer SMB
48 Summary(pt_BR.UTF-8): Cliente e servidor SMB
49 Summary(ru.UTF-8): SMB клиент и сервер
50 Summary(tr.UTF-8): SMB sunucusu
51 Summary(uk.UTF-8): SMB клієнт та сервер
52 Summary(zh_CN.UTF-8): Samba 客户端和服务器
58 Group: Networking/Daemons
59 Source0: http://www.samba.org/samba/ftp/stable/%{name}-%{version}.tar.gz
60 # Source0-md5: 491a1bc9c94ad2f1e6d1c29da271b242
64 Source4: %{name}.sysconfig
65 Source5: %{name}.logrotate
67 Source7: http://www.openantivirus.org/download/%{name}-vscan-%{vscan_version}.tar.gz
68 # Source7-md5: 8f1dd119172e04e6d7c2d05526a4cf8b
70 Source9: winbind.sysconfig
71 Source10: %{name}-rfc3454.txt
72 Patch0: %{name}-smbwrapper.patch
73 Patch1: %{name}-c++-nofail.patch
74 Patch2: %{name}-pthread.patch
75 Patch3: %{name}-nscd.patch
76 Patch4: %{name}-lprng-no-dot-printers.patch
77 Patch5: %{name}-python.patch
78 Patch6: %{name}-spoolss-mismerge.patch
79 URL: http://www.samba.org/
80 BuildRequires: acl-devel
81 BuildRequires: autoconf
82 BuildRequires: automake
83 %{?with_avahi:BuildRequires: avahi-devel}
84 %{?with_cups:BuildRequires: cups-devel >= 1:1.2.0}
85 BuildRequires: dmapi-devel
86 BuildRequires: fam-devel
87 BuildRequires: gettext-devel
88 %{?with_kerberos5:BuildRequires: heimdal-devel}
90 BuildRequires: keyutils-devel
91 BuildRequires: libmagic-devel
92 BuildRequires: libnscd-devel
93 BuildRequires: libtool >= 2:1.4d
94 BuildRequires: make >= 3.81
95 BuildRequires: ncurses-devel >= 5.2
96 %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
97 BuildRequires: openssl-devel >= 0.9.7d
98 BuildRequires: pam-devel >= 0.99.8.1
99 BuildRequires: pkgconfig
100 BuildRequires: popt-devel
101 %{?with_pgsql:BuildRequires: postgresql-devel}
102 BuildRequires: python-devel
103 BuildRequires: python-modules
104 BuildRequires: readline-devel >= 4.2
105 BuildRequires: rpmbuild(macros) >= 1.304
106 BuildRequires: sed >= 4.0
107 BuildRequires: tdb-devel
108 BuildRequires: xfsprogs-devel
109 Requires(post,preun): /sbin/chkconfig
110 Requires: %{name}-common = %{epoch}:%{version}-%{release}
111 Requires: logrotate >= 3.7-4
112 Requires: pam >= 0.99.8.1
114 Requires: setup >= 2.4.6-7
115 # smbd links with libcups
116 %{?with_cups:Requires: cups-lib >= 1:1.2.0}
117 Obsoletes: python-samba
118 Obsoletes: samba-pdb-xml
119 Obsoletes: samba-vfs-block
120 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
122 %define _vfsdir %{_libdir}/%{name}/vfs
123 %define _sambahome /home/services/samba
124 %define _sambalibdir %{_libdir}/%{name}
126 %define cups_serverbin %{_prefix}/lib/cups
128 %define schemadir /usr/share/openldap/schema
130 # CFLAGS modified (the second ./configure)
131 %undefine configure_cache
134 Samba provides an SMB server which can be used to provide network
135 services to SMB (sometimes called "Lan Manager") clients, including
136 various versions of MS Windows, OS/2, and other Linux machines. Samba
137 also provides some SMB clients, which complement the built-in SMB
138 filesystem in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols
139 and does NOT need NetBEUI (Microsoft Raw NetBIOS frame) protocol.
141 This release is known as the "Locking Update" and has full support for
142 Opportunistic File Locking. In addition this update includes native
143 support for Microsoft encrypted passwords, improved browse list and
144 WINS database management.
146 Please refer to the WHATSNEW.txt document for fixup information. This
147 binary release includes encrypted password support. Please read the
148 smb.conf file for implementation details.
150 %description -l cs.UTF-8
151 Samba poskytuje server SMB, který lze použít pro poskytování síťových
152 služeb klientům SMB (někdy nazývaných klienti "LAN manažer") včetně
153 klientů různých verzí MS Windows, OS/2 a dalších linuxových strojů.
154 Samba též poskytuje některé klienty SMB, kteří komplementují vestavěný
155 souborový systém SMB v Linuxu. Samba používá protokoly NetBIOS přes
156 TCP/IP (NetBT) a NEpotřebuje protokol NetBEUI (neformátovaný rámec
157 NetBIOS od společnosti Microsoft.
159 %description -l da.UTF-8
160 Samba tilbyder en SMB server som kan bruges til at tilbyde netværk
161 services til SMB (også kaldet "Lan Manager") klienter, incl.
162 forskellige versioner af MS Windows, OS/2, og andre Linux maskiner.
163 Samba tilbyder også SMB klienter, som udbygger det indbyggede SMB
164 filsystem i Linux. Samba benytter NetBIOS over TCP/IP (NetBT)
165 protocolen og kræver ikke NetBEUI (Microsoft Raw NetBIOS frame)
168 %description -l de.UTF-8
169 Samba stellt einen SMB-Server zum Anbieten von Netzwerkdiensten für
170 SMB-Clients (auch "Lan Manager" genannt) zur Verfügung, darunter
171 verschiedenen Versionen von MS Windows-, OS/2- und anderen
172 Linux-Rechnern. Samba enthält außerdem einige SMB-Clients, die das in
173 Linux integrierte SMB-Dateisystem ergänzen. Samba benutzt
174 NetBIOS-über-TCP/IP (NetBT)-Protokolle und benötigt KEIN NetBEUI
175 (Microsoft Raw NetBIOS frame)-Protokoll.
177 %description -l es.UTF-8
178 Samba provee un servidor SMB que se puede usar para ofrecer servicios
179 de red a clientes SMB (algunas veces se le llama de "Lan Manager"),
180 incluyendo varias versiones de MS Windows, OS/2, y otras máquinas
181 Linux. Samba también ofrece algunos clientes SMB, que complementan el
182 sistema de archivos SMB de Linux. Samba usa el protocolo NetBIOS sobre
183 TCP/IP (NetBT) y no necesita del protocolo NetBEUI (Microsoft Raw
186 %description -l fi.UTF-8
187 Samba on SMB-palvelin, jota voidaan käyttää SMB-asiakasohjelmien
188 verkkopalvelujen tarjoajana. SMB-protokollaa kutsutaan joskus "Lan
189 Manager" protokollaksi ja asiakasohjelmat toimivat dosissa,
190 Windowseissa, OS/2:ssa ja toisissa Linux-koneissa. Samban mukana on
191 myös joitakin SMB-asiakasohjelmia, jotka täydentävät Linuxin
192 kernelissä olevaa SMB-tiedostojärjestelmän tukea. Samba vaatii NetBIOS
193 over TCP/IP (NetBT) protokollaa eikä tarvitse tai pysty käyttämään
196 %description -l it.UTF-8
197 Samba fornisce un server SMB che puo` essere usato per fornire servizi
198 di rete ai client SMB, incluse le versioni MS Windows, OS/2 e per
199 altre macchine Linux. Samba fornisce anche i client SMB. Samba usa
200 NetBIOS sopra TCP/IP e non ha bisogno del protocollo NetBEUI.
202 %description -l ja.UTF-8
203 Samba は MS Windows の様々なバージョン、OS/2 そして他の Linux マシン
204 を含む SMB (たまに "Lan Manager" と呼ばれる)
205 クライアントにネットワーク サービスを提供するために使用される SMB
206 サーバを提供します。Samba は NetBIOS over TCP/IP (NetBT)
207 プロトコルを使用し、 NetBEUI(Microsoft Raw NetBIOS frame)
210 Samba ほとんど動作する NT ドメインコントロールの機能を特徴とし、
211 好きなブラウザを使って samba の smb.conf ファイルをリモート管理する
212 新しい SWAT (Samba Web Administration Tool) を含みます。
213 目下のところこれは inetd を通して TCP ポート 901 で有効になります。
215 %description -l ko.UTF-8
216 삼바는 MS Windows, OS/2, 혹은 다른 리눅스 머신을 포함하는 SMB(혹은
217 "Lan Manager"라고도 불림) 클라이언트를 네트워크 서비스 위해 사용할 수
218 있는 SMB 서버를 제공한다. 삼바는 TCP/IP 프로토콜을 통해 NetBIOS를
219 사용하고 NetBEUI (Microsoft Raw NetBIOS 프레임) 프로토콜은 필요하지
222 삼바-2.2 의 특징은 NT 도메인 컨트롤의 성능으로 작업을 하고, 새로운
223 SWAT(Samba Web Administration Tool)로 웹브라우저를 사용하여 원격지에서
224 삼바의 smb.conf 파일을 관리하도록 한다. 이러한 경우 inetd 데몬을 통해
227 최근 정보로 WHATSNEW.txt 파일의 문서를 참고하도록 한다. 바이너리의
228 릴리즈는 암호화된 패스워드를 제공한다.
230 %description -l pl.UTF-8
231 Samba udostępnia serwer SMB, który może być użyty w celu dostarczenia
232 usług sieciowych (potocznie zwanych "Lan Manager"), dla klientów
233 takich jak MS Windows, OS/2 a także maszyn linuksowych. W pakiecie
234 znajduje się również oprogramowanie klienckie. Samba używa protokołu
235 NetBIOS po TCP/IP (NetBT) i nie wymaga protokołu NetBEUI. Ta wersja ma
236 pełne wsparcie dla blokowania plików, a także wsparcie dla kodowania
237 haseł w standardzie MS i zarządzania bazą WINS.
239 %description -l pt_BR.UTF-8
240 O Samba provê um servidor SMB que pode ser usado para oferecer
241 serviços de rede a clientes SMB (algumas vezes chamado de "Lan
242 Manager"), incluindo várias versões de MS Windows, OS/2, e outras
243 máquinas Linux. O Samba também fornece alguns clientes SMB, que
244 complementam o sistema de arquivos SMB do Linux. O Samba usa o
245 protocolo NetBIOS sobre TCP/IP (NetBT) e não necessita do protocolo
246 NetBEUI (Microsoft Raw NetBIOS frame).
248 O Samba inclui a maioria das características de um servidor de
249 Controle de Domínios NT e o SWAT (Samba Web Administration Tool), que
250 permite que o arquivo smb.conf seja gerenciado remotamente através de
251 um navegador. Atualmente isto está sendo habilitado na porta TCP 901
254 %description -l ru.UTF-8
255 Samba предоставляет SMB-сервер, который может быть использован для
256 предоставления сетевых сервисов SMB (иногда называемым "Lan Manager")
257 клиентам, включая разнообразные версии MS Windows, OS/2, и другие
258 Linux-машины. Samba также предоставляет SMB-клиентов, которые работают
259 со встроенной в Linux файловой системой SMB.
261 Samba использует протокол NetBIOS over TCP/IP (NetBT) и не нуждается в
262 протоколе NetBEUI (Microsoft Raw NetBIOS frame).
264 Samba содержит практически работающую реализацию NT Domain Control и
265 включает новый SWAT (Samba Web Administration Tool), который позволяет
266 удаленно управлять конфигурационным файлом smb.conf при помощи вашего
267 любимого WEB-броузера. Пока что он разрешен через inetd на TCP-порту
270 %description -l uk.UTF-8
271 Samba надає SMB-сервер, що може бути використаний для надання
272 мережевих сервісів SMB (що їх іноді називають "Lan Manager") клієнтам,
273 включаючи різноманітні версії MS Windows, OS/2, та інші Linux-машини.
274 Samba також надає SMB-клієнтів, що працюють з вбудованою в Linux
275 файловою системою SMB.
277 Samba використовує протокол NetBIOS over TCP/IP (NetBT) та не потребує
278 протоколу NetBEUI (Microsoft Raw NetBIOS frame).
280 Samba містить майже працюючу реализацію NT Domain Control та новый
281 SWAT (Samba Web Administration Tool), котрий дозволяє віддалено
282 керувати конфігураційним файлом smb.conf за допомогою вашого
283 улюбленого WEB-броузера. Поки що він дозволений через inetd на
287 Summary: Samba Web Administration Tool
288 Summary(pl.UTF-8): Narzędzie administracyjne serwisu Samba
289 Summary(pt_BR.UTF-8): Samba SWAT e documentação Web
290 Summary(ru.UTF-8): Программа конфигурации SMB-сервера Samba
291 Summary(uk.UTF-8): Програма конфигурації SMB-сервера Samba
292 Group: Networking/Admin
293 Requires: %{name} = %{epoch}:%{version}-%{release}
295 Requires: rc-inetd >= 0.8.2
299 swat allows a Samba administrator to configure the complex smb.conf
300 file via a Web browser. In addition, a swat configuration page has
301 help links to all the configurable options in the smb.conf file
302 allowing an administrator to easily look up the effects of any change.
304 %description swat -l pl.UTF-8
305 swat pozwala na kompleksową konfigurację smb.conf przy pomocy
308 %description swat -l pt_BR.UTF-8
309 SWAT - ferramentada Web de configuração do Samba.
311 %description swat -l ru.UTF-8
312 Пакет samba-swat включает новый SWAT (Samba Web Administration Tool),
313 для удаленного администрирования файла smb.conf при помощи вашего
314 любимого Web-браузера.
316 %description swat -l uk.UTF-8
317 Пакет samba-swat містить новий SWAT (Samba Web Administration Tool),
318 для дистанційного адміністрування файлу smb.conf за допомогою вашого
319 улюбленого Web-браузеру.
322 Summary: Samba client programs
323 Summary(es.UTF-8): Cliente SMB de Samba
324 Summary(ja.UTF-8): Samba (SMB) クライアントプログラム
325 Summary(pl.UTF-8): Klienci serwera Samba
326 Summary(pt_BR.UTF-8): Cliente SMB do samba
327 Summary(ru.UTF-8): Клиентские программы Samba (SMB)
328 Summary(uk.UTF-8): Клієнтські програми Samba (SMB)
329 Group: Applications/Networking
330 Requires: %{name}-common = %{epoch}:%{version}-%{release}
331 %{?with_kerberos5:Requires: heimdal-libs}
332 Requires: libsmbclient = %{epoch}:%{version}-%{release}
333 Obsoletes: mount-cifs
337 Samba-client provides some SMB clients, which complement the build-in
338 SMB filesystem in Linux. These allow accessing of SMB shares and
339 printing to SMB printers.
341 %description client -l pt_BR.UTF-8
342 O pacote samba-clientes prove alguns clientes SMB, que complementam o
343 sistema de arquivos SMB do Linux. Eles permitem o acesso a shares SMB,
344 e também, à impressoras SMB.
346 %description client -l es.UTF-8
347 Cliente SMB de Samba.
349 %description client -l ja.UTF-8
350 Samba-client は Linux 上に含まれている SMB ファイルシステムを補う SMB
351 クライアントを提供します。これらは SMB 共有のアクセスと SMB
354 %description client -l pl.UTF-8
355 Samba-client dostarcza programy uzupełniające obsługę systemu plików
356 SMB zawartą w jądrze. Pozwalają one na współdzielenie zasobów SMB i
357 drukowanie w sieci SMB.
359 %description client -l pt_BR.UTF-8
360 O pacote samba-clientes prove alguns clientes SMB, que complementam o
361 sistema de arquivos SMB do Linux. Eles permitem o acesso a shares SMB,
362 e também, à impressoras SMB.
364 %description client -l ru.UTF-8
365 Пакет samba-client предоставляет некоторые клиенты SMB для работы со
366 встроенной файловой системой SMB в Linux. Эти клиенты позволяют
367 получать доступ к разделяемым каталогам SMB и печать на SMB-принтеры.
369 %description client -l uk.UTF-8
370 Пакет samba-client надає деякі клієнти SMB для роботи зі вбудованою
371 файловою системою SMB в Linux. Ці клієнти дозволяють отримувати доступ
372 до каталогів спільного використання SMB та друк на SMB-прінтери.
375 Summary: Files used by both Samba servers and clients
376 Summary(ja.UTF-8): Samba サーバーとクライアントで使用されるプログラム
377 Summary(pl.UTF-8): Pliki używane przez serwer i klientów Samba
378 Summary(pt_BR.UTF-8): Arquivos em comum entre samba e samba-clients
379 Summary(ru.UTF-8): Файлы, используемые как сервером, так и клиентом Samba
380 Summary(uk.UTF-8): Файли, що використовуються як сервером, так і клієнтом Samba
381 Group: Networking/Daemons
382 Requires: libtalloc >= %{version}-%{release}
383 Requires: tdb >= 1.1.3
386 Samba-common provides files necessary for both the server and client
389 %description common -l ja.UTF-8
390 Samba-common は Samba のサーバとクライアントの両方のパッケージで
393 %description common -l pl.UTF-8
394 Samba-common dostarcza pliki niezbędne zarówno dla serwera jak i
397 %description common -l pt_BR.UTF-8
398 Arquivos em comum entre os pacotes samba e samba-clients.
400 %description common -l ru.UTF-8
401 Samba-common содержит файлы, необходимые для работы как клиента, так и
404 %description common -l uk.UTF-8
405 Samba-common містить файли, необхідні для роботи як клієнта, так і
409 Summary: Samba-winbind daemon, utilities and documentation
410 Summary(pl.UTF-8): Demon samba-winbind, narzędzia i dokumentacja
411 Group: Networking/Daemons
412 Requires(post,preun): /sbin/chkconfig
413 Requires: %{name}-common = %{epoch}:%{version}-%{release}
416 Provides the winbind daemon and testing tools to allow authentication
417 and group/user enumeration from a Windows or Samba domain controller.
419 %description winbind -l pl.UTF-8
420 Pakiet zawiera demona winbind oraz narzędzia testowe. Umożliwia
421 uwierzytelnianie i wyliczanie grup/użytkowników z kontrolera domeny
425 Summary: Name Service Switch service for WINS
426 Summary(pl.UTF-8): Usługa Name Service Switch dla WINS
428 Requires: %{name}-common = %{epoch}:%{version}-%{release}
430 %description -n nss_wins
431 Provides the libnss_wins shared library which resolves NetBIOS names
434 %description -n nss_wins -l pl.UTF-8
435 Biblioteka dzielona libnss_wins rozwiązująca nazwy NetBIOS na adresy
438 %package -n pam-pam_smbpass
439 Summary: PAM Samba Password Module
440 Summary(pl.UTF-8): Moduł PAM smbpass
442 Obsoletes: pam_smbpass
444 %description -n pam-pam_smbpass
445 PAM module which can be used on conforming systems to keep the
446 smbpasswd (Samba password) database in sync with the Unix password
449 %description -n pam-pam_smbpass -l pl.UTF-8
450 Moduł PAM, który może być używany do trzymania pliku smbpasswd (hasła
451 Samby) zsynchronizowanego z hasłami uniksowymi.
453 %package -n libsmbclient
454 Summary: libsmbclient - samba client library
455 Summary(pl.UTF-8): libsmbclient - biblioteka klienta samby
458 %description -n libsmbclient
459 libsmbclient - library that allows to use samba clients functions.
461 %description -n libsmbclient -l pl.UTF-8
462 libsmbclient - biblioteka pozwalająca korzystać z funcji klienta
465 %package -n libsmbclient-devel
466 Summary: libsmbclient - samba client library
467 Summary(pl.UTF-8): libsmbclient - biblioteka klienta samby
468 Summary(pt_BR.UTF-8): Ferramentas de desenvolvimento para clientes samba
469 Group: Development/Libraries
470 Requires: libsmbclient = %{epoch}:%{version}-%{release}
472 %description -n libsmbclient-devel
473 Header files for libsmbclient.
475 %description -n libsmbclient-devel -l pl.UTF-8
476 Pliki nagłówkowe dla libsmbclient.
478 %description -n libsmbclient-devel -l pt_BR.UTF-8
479 Arquivos de inclusão, bibliotecas e documentação necessários para
480 desenvolver aplicativos clientes para o samba.
482 %package -n libsmbclient-static
483 Summary: Static version of libsmbclient - samba client library
484 Summary(pl.UTF-8): Statyczna wersja libsmbclient - biblioteki klienta samby
485 Summary(pt_BR.UTF-8): Ferramentas de desenvolvimento para clientes samba
486 Group: Development/Libraries
487 Requires: libsmbclient = %{epoch}:%{version}-%{release}
489 %description -n libsmbclient-static
490 Static libsmbclient library.
492 %description -n libsmbclient-static -l pl.UTF-8
493 Statyczna biblioteka libsmbclient.
495 %package -n libtalloc
496 Summary: The talloc library
499 %description -n libtalloc
500 The talloc library from the Samba suite.
502 %package -n libtalloc-devel
503 Summary: Developer tools for the talloc library
504 Group: Development/Libraries
505 Requires: libtalloc = %{epoch}:%{version}-%{release}
507 %description -n libtalloc-devel
508 The libtalloc-devel package contains the header files and libraries needed to
509 develop programs that link against the talloc library in the Samba suite.
512 Summary: Header files for Samba
513 Summary(pl.UTF-8): Pliki nagłówkowe Samby
514 Group: Development/Libraries
517 Header files for Samba.
519 %description devel -l pl.UTF-8
520 Pliki nagłówkowe Samby.
523 Summary: A utility for retrieving files using the SMB protocol
524 Summary(pl.UTF-8): Narzędzie do pobierania plików protokołem SMB
525 Group: Applications/Networking
527 %description -n smbget
528 wget-like utility for download files over SMB.
530 %description -n smbget -l pl.UTF-8
531 Narzędzie podobne do wgeta do pobierania plików protokołem SMB
532 używanym w sieciach MS Windows.
534 %package -n cups-backend-smb
535 Summary: CUPS backend for printing to SMB printers
536 Summary(pl.UTF-8): Backend CUPS-a drukujący na drukarkach SMB
537 Group: Applications/Printing
538 Requires: %{name}-client = %{epoch}:%{version}-%{release}
539 Requires: cups >= 1:1.2.0
541 %description -n cups-backend-smb
542 CUPS backend for printing to SMB printers.
544 %description -n cups-backend-smb -l pl.UTF-8
545 Backend CUPS-a drukujący na drukarkach SMB.
548 Summary: VFS module to audit file access
549 Summary(pl.UTF-8): Moduł VFS do monitorowania operacji na plikach
550 Group: Networking/Daemons
551 Requires: %{name} = %{epoch}:%{version}-%{release}
553 %description vfs-audit
554 A simple module to audit file access to the syslog facility. The
555 following operations are logged:
556 - share connect/disconnect,
557 - directory opens/create/remove,
558 - file open/close/rename/unlink/chmod.
560 %description vfs-audit -l pl.UTF-8
561 Proste moduły do monitorowania dostępu do plików na serwerze samba do
562 do sysloga. Monitorowane są następujące operacje:
563 - podłączenie do/odłączenie od zasobu,
564 - otwarcie/utworzenie/zmiana nazwy katalogu,
565 - otwarcie/zamknięcie/zmiana nazwy/skasowanie/zmiana praw plików.
567 Zawiera moduły audit, extd_audit i full_audit.
570 Summary: VFS module for CAP and samba compatibility
571 Summary(pl.UTF-8): Moduł VFS zgodności z CAP (Columbia AppleTalk Program)
572 Group: Networking/Daemons
573 Requires: %{name} = %{epoch}:%{version}-%{release}
576 Convert an incoming Shift-JIS character to the 3 byte hex
577 representation used by the Columbia AppleTalk Program (CAP), i.e. :AB.
578 This is used for compatibility between Samba and CAP.
580 %description vfs-cap -l pl.UTF-8
581 Zamienia znaki kodowane Shift-JIS do trzybajowej szestnastkowej
582 reprezentacji używanej przez program Columbia AppleTalk Program (CAP).
584 %package vfs-default_quota
585 Summary: VFS module to store default quotas in a specified quota record
586 Summary(pl.UTF-8): Moduł VFS do zapisywania domyślnych limitów w określonym rekordzie
587 Group: Networking/Daemons
588 Requires: %{name} = %{epoch}:%{version}-%{release}
590 %description vfs-default_quota
591 This VFS modules stores default quotas in a specified quota record.
593 %description vfs-default_quota -l pl.UTF-8
594 Ten moduł VFS zapisuje domyślne limity (quoty) w określonym rekordzie
597 %package vfs-expand_msdfs
598 Summary: VFS module for hosting a Microsoft Distributed File System Tree
599 Summary(pl.UTF-8): Moduł VFS obsługi Microsoft Distributed File System
600 Group: Networking/Daemons
601 Requires: %{name} = %{epoch}:%{version}-%{release}
603 %description vfs-expand_msdfs
604 A VFS module for hosting a Microsoft Distributed File System Tree.
606 The Distributed File System (DFS) provides a means of separating the
607 logical view of files and directories that users see from the actual
608 physical locations of these resources on the network. It allows for
609 higher availability, smoother storage expansion, load balancing, and
612 %description vfs-expand_msdfs -l pl.UTF-8
613 Moduł VFS do udostępniania drzewa systemu plików Microsoft Distributed
616 Distributed File System (DFS) umożliwia rozdzielanie logicznego widoku
617 plików i katalogów widocznych przez użytkowników z fizycznego
618 umiejscowienia tych zasobów w sieci. Pozwala to na wyższą dostępność,
619 płynniejsze powiększanie przestrzeni, rozdzielanie obciążenia itp.
621 %package vfs-fake_perms
622 Summary: VFS module to report read-only fires as writable
623 Summary(pl.UTF-8): Moduł VFS udający, że pliki tylko do odczytu są zapisywalne
624 Group: Networking/Daemons
625 Requires: %{name} = %{epoch}:%{version}-%{release}
627 %description vfs-fake_perms
628 This module allow Roaming Profile files and directories to be set (on
629 the Samba server under UNIX) as read only. This module will, if
630 installed on the Profiles share, report to the client that the Profile
631 files and directories are writeable. This satisfies the client even
632 though the files will never be overwritten as the client logs out or
635 %description vfs-fake_perms -l pl.UTF-8
636 Ten moduł pozwala na ustawienie plików i katalogów z wędrujących
637 profili (Roaming Profiles) jako tylko do odczytu. Moduł ten w
638 przypadku zainstalowania na udziale z profilami będzie zgłaszał
639 klientom, że pliki i katalogi z profilu są zapisywane. To wystarczy
640 klientom pomimo, że pliki nie zostaną nigdy nadpisane przy logowaniu
641 lub wylogowywaniu klienta.
643 %package vfs-notify_fam
644 Summary: VFS module to implement file change notifications
645 Summary(pl.UTF-8): Moduł VFS implementujący informowanie o zmianach w plikach
646 Group: Networking/Daemons
647 Requires: %{name} = %{epoch}:%{version}-%{release}
649 %description vfs-notify_fam
650 The vfs_notify_fam module makes use of the system FAM (File Alteration
651 Monitor) daemon to implement file change notifications for Windows
654 %description vfs-notify_fam -l pl.UTF-8
655 Ten moduł używa demona FAM (File Alteration Monitor) do implementacji
656 informowania o zmianach w plikach dla klientów Windows.
658 %package vfs-netatalk
659 Summary: VFS module for ease co-existence of samba and netatalk
660 Summary(pl.UTF-8): Moduł VFS ułatwiający współpracę serwisów samba i netatalk
661 Group: Networking/Daemons
662 Requires: %{name} = %{epoch}:%{version}-%{release}
664 %description vfs-netatalk
665 Package contains a netatalk VFS module for ease co-existence of Samba
666 and netatalk file sharing services.
668 %description vfs-netatalk -l pl.UTF-8
669 Pakiet zawiera moduł VFS netatalk umożliwiający współpracę usług samba
670 i netatalk przy udostępnianiu zasobów.
673 Summary: VFS module to add recycle bin facility to a samba share
674 Summary(pl.UTF-8): Moduł VFS dodający możliwość kosza do zasobu samby
675 Group: Networking/Daemons
676 Requires: %{name} = %{epoch}:%{version}-%{release}
678 %description vfs-recycle
679 VFS module to add recycle bin facility to a samba share.
681 %description vfs-recycle -l pl.UTF-8
682 Moduł VFS dodający możliwość kosza do zasobu samby.
684 %package vfs-readahead
685 Summary: VFS module for pre-loading the kernel buffer cache
686 Summary(pl.UTF-8): Moduł VFS do wczesnego odczytu danych do bufora cache jądra
687 Group: Networking/Daemons
688 Requires: %{name} = %{epoch}:%{version}-%{release}
690 %description vfs-readahead
691 This VFS module detects read requests at multiples of a given offset
692 (hex 0x80000 by default) and then tells the kernel via either the
693 readahead system call (on Linux) or the posix_fadvise system call to
694 pre-fetch this data into the buffer cache.
696 This module is useful for Windows Vista clients reading data using the
697 Windows Explorer program, which asynchronously does multiple file read
698 requests at offset boundaries of 0x80000 bytes.
700 %description vfs-readahead -l pl.UTF-8
701 Ten moduł VFS wykrywa żądania odczytu spod wielokrotności podanych
702 pozycji (domyślnie 0x80000 szesnastkowo) i instruuje jądro poprzez
703 wywołanie systemowe readahead (pod Linuksem) lub posix_fadvise do
704 wczesnego odczytu tych danych do bufora cache.
706 Ten moduł jest przydatny dla klientów Windows Vista odczytujących dane
707 przy użyciu programu Windows Explorer, który asynchronicznie wykonuje
708 wiele żądań odczytu plików spod pozycji o wielokrotnościach 0x80000
711 %package vfs-readonly
712 Summary: VFS module for read-only limitation for specified share
713 Summary(pl.UTF-8): Moduł VFS do ograniczania określonego udziału tylko do odczytu
714 Group: Networking/Daemons
715 Requires: %{name} = %{epoch}:%{version}-%{release}
717 %description vfs-readonly
718 This module performs a read-only limitation for specified share (or
719 all of them if it is loaded in a [global] section) based on period
720 definition in smb.conf.
722 %description vfs-readonly -l pl.UTF-8
723 Ten moduł wprowadza ograniczenie tylko do odczytu dla określonego
724 udziału (lub wszystkich, jeśli jest wczytywany w sekcji [global]) w
725 oparciu o definicje okresów w smb.conf.
727 %package vfs-shadow_copy
728 Summary: VFS module to make automatic copy of data in samba share
729 Summary(pl.UTF-8): Moduł VFS do tworzenia automatycznych kopii danych w zasobach samby
730 Group: Networking/Daemons
731 Requires: %{name} = %{epoch}:%{version}-%{release}
733 %description vfs-shadow_copy
734 VFS module to make automatic copy of data in samba share.
736 %description vfs-shadow_copy -l pl.UTF-8
737 Moduł VFS do tworzenia automatycznych kopii danych w zasobach samby.
739 %package vfs-vscan-antivir
740 Summary: On-access virus scanning for samba using AntiVir
741 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący AntiVir
742 Group: Networking/Daemons
743 Requires: %{name} = %{epoch}:%{version}-%{release}
744 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
746 %description vfs-vscan-antivir
747 A vfs-module for samba to implement on-access scanning using the
748 AntiVir antivirus software (which must be installed to use this).
750 %description vfs-vscan-antivir -l pl.UTF-8
751 Moduł vfs do samby implementujący skaning antywirusowy w czasie
752 dostępu do plików korzystając z oprogramowania antywirusowego AntiVir
753 (które musi być zainstalowane, aby wykorzystać ten moduł).
755 %package vfs-vscan-clamav
756 Summary: On-access virus scanning for samba using ClamAV
757 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący ClamAV
758 Group: Networking/Daemons
759 Requires: %{name} = %{epoch}:%{version}-%{release}
761 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
763 %description vfs-vscan-clamav
764 A vfs-module for samba to implement on-access scanning using the
765 ClamAV antivirus software (which must be installed to use this).
767 %description vfs-vscan-clamav -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 ClamAV
770 (które musi być zainstalowane, aby wykorzystać ten moduł).
772 %package vfs-vscan-fprot
773 Summary: On-access virus scanning for samba using FPROT
774 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący FPROT
775 Group: Networking/Daemons
776 Requires: %{name} = %{epoch}:%{version}-%{release}
777 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
778 Obsoletes: vscan-fprot
780 %description vfs-vscan-fprot
781 A vfs-module for samba to implement on-access scanning using the FPROT
782 antivirus software (which must be installed to use this).
784 %description vfs-vscan-fprot -l pl.UTF-8
785 Moduł vfs do samby implementujący skaning antywirusowy w czasie
786 dostępu do plików korzystając z oprogramowania antywirusowego FPROT
787 (które musi być zainstalowane, aby wykorzystać ten moduł).
789 %package vfs-vscan-fsav
790 Summary: On-access virus scanning for samba using F-Secure AntiVirus
791 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący F-Secure AntiVirus
792 Group: Networking/Daemons
793 Requires: %{name} = %{epoch}:%{version}-%{release}
794 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
795 Obsoletes: vscan-fsav
797 %description vfs-vscan-fsav
798 A vfs-module for samba to implement on-access scanning using the
799 F-Secure AntiVirus antivirus software (which must be installed to use
802 %description vfs-vscan-fsav -l pl.UTF-8
803 Moduł vfs do samby implementujący skaning antywirusowy w czasie
804 dostępu do plików korzystając z oprogramowania antywirusowego F-Secure
805 AntiVirus (które musi być zainstalowane, aby wykorzystać ten moduł).
807 %package vfs-vscan-kavp
808 Summary: On-access virus scanning for samba using Kaspersky AVP
809 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący Kaspersky AVP
810 Group: Networking/Daemons
811 Requires: %{name} = %{epoch}:%{version}-%{release}
812 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
813 Obsoletes: vscan-kavp
815 %description vfs-vscan-kavp
816 A vfs-module for samba to implement on-access scanning using the
817 Kaspersky AVP antivirus software (which must be installed to use
820 %description vfs-vscan-kavp -l pl.UTF-8
821 Moduł vfs do samby implementujący skaning antywirusowy w czasie
822 dostępu do plików korzystając z oprogramowania antywirusowego
823 Kaspersky AVP (które musi być zainstalowane, aby wykorzystać ten
826 %package vfs-vscan-mcafee
827 Summary: On-access virus scanning for samba using mcafee
828 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący mcafee
829 Group: Networking/Daemons
830 Requires: %{name} = %{epoch}:%{version}-%{release}
832 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
833 Obsoletes: vscan-mcafee
835 %description vfs-vscan-mcafee
836 A vfs-module for samba to implement on-access scanning using the
837 mcafee antivirus software (which must be installed to use this).
839 %description vfs-vscan-mcafee -l pl.UTF-8
840 Moduł vfs do samby implementujący skaning antywirusowy w czasie
841 dostępu do plików korzystając z oprogramowania antywirusowego mcafee
842 (które musi być zainstalowane, aby wykorzystać ten moduł).
844 %package vfs-vscan-mks
845 Summary: On-access virus scanning for samba using mks
846 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący mks
847 Group: Networking/Daemons
848 Requires: %{name} = %{epoch}:%{version}-%{release}
850 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
853 %description vfs-vscan-mks
854 A vfs-module for samba to implement on-access scanning using the mks
855 antivirus software (which must be installed to use this).
857 %description vfs-vscan-mks -l pl.UTF-8
858 Moduł vfs do samby implementujący skaning antywirusowy w czasie
859 dostępu do plików korzystając z oprogramowania antywirusowego mks
860 (które musi być zainstalowane, aby wykorzystać ten moduł).
862 %package vfs-vscan-openantivirus
863 Summary: On-access virus scanning for samba using OpenAntivirus
864 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący OpenAntiVirus
865 Group: Networking/Daemons
866 Requires: %{name} = %{epoch}:%{version}-%{release}
867 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
868 Obsoletes: vscan-openantivirus
870 %description vfs-vscan-openantivirus
871 A vfs-module for samba to implement on-access scanning using the
872 OpenAntivirus antivirus software (which must be installed to use
875 %description vfs-vscan-openantivirus -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
878 OpenAntiVirus.org (które musi być zainstalowane, aby wykorzystać ten
881 %package vfs-vscan-sophos
882 Summary: On-access virus scanning for samba using Sophos
883 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący Sophos
884 Group: Networking/Daemons
885 Requires: %{name} = %{epoch}:%{version}-%{release}
886 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
887 Obsoletes: vscan-sophos
889 %description vfs-vscan-sophos
890 A vfs-module for samba to implement on-access scanning using the
891 Sophos antivirus software (which must be installed to use this).
893 %description vfs-vscan-sophos -l pl.UTF-8
894 Moduł vfs do samby implementujący skaning antywirusowy w czasie
895 dostępu do plików korzystając z oprogramowania antywirusowego Sophos
896 (które musi być zainstalowane, aby wykorzystać ten moduł).
898 %package vfs-vscan-symantec
899 Summary: On-access virus scanning for samba using Symantec
900 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący Symantec
901 Group: Networking/Daemons
902 Requires: %{name} = %{epoch}:%{version}-%{release}
903 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
904 Obsoletes: vscan-symantec
906 %description vfs-vscan-symantec
907 A vfs-module for samba to implement on-access scanning using the
908 Symantec antivirus software (which must be installed to use this).
910 %description vfs-vscan-symantec -l pl.UTF-8
911 Moduł vfs do samby implementujący skaning antywirusowy w czasie
912 dostępu do plików korzystając z oprogramowania antywirusowego firmy
913 Symantec (które musi być zainstalowane, aby wykorzystać ten moduł).
915 %package vfs-vscan-trend
916 Summary: On-access virus scanning for samba using Trend
917 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący Trend
918 Group: Networking/Daemons
919 Requires: %{name} = %{epoch}:%{version}-%{release}
920 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
921 Obsoletes: vscan-trend
923 %description vfs-vscan-trend
924 A vfs-module for samba to implement on-access scanning using the Trend
925 antivirus software (which must be installed to use this).
927 %description vfs-vscan-trend -l pl.UTF-8
928 Moduł vfs do samby implementujący skaning antywirusowy w czasie
929 dostępu do plików korzystając z oprogramowania antywirusowego Trend
930 (które musi być zainstalowane, aby wykorzystać ten moduł).
932 %package -n openldap-schema-samba
933 Summary: Samba LDAP schema
934 Summary(pl.UTF-8): Schemat LDAP dla samby
935 Group: Networking/Daemons
936 Requires(post,postun): sed >= 4.0
937 Requires: openldap-servers
939 %description -n openldap-schema-samba
940 This package contains samba.schema for openldap.
942 %description -n openldap-schema-samba -l pl.UTF-8
943 Ten pakiet zawiera schemat samby dla openldap-a.
946 Summary: Samba HTML documentation
947 Summary(pl.UTF-8): Documentacja samby w formacie HTML
950 %description doc-html
951 Samba HTML documentation.
953 %description doc-html -l pl.UTF-8
954 Documentacja samby w formacie HTML.
957 Summary: Samba documentation - PDF format
958 Summary(pl.UTF-8): Documentacja samby w formacie PDF
962 Samba PDF documentation.
964 %description doc-pdf -l pl.UTF-8
965 Documentacja samby w formacie PDF.
967 %package -n python-samba
968 Summary: Samba Module for Python
969 Group: Development/Languages/Python
970 %pyrequires_eq python
971 Requires: %{name}-common = %{epoch}:%{version}-%{release}
973 %description -n python-samba
974 Samba Module for Python.
986 %{__sed} -i 's#%SAMBAVERSION%#%{version}#' docs/htmldocs/index.html
993 install %{SOURCE10} source4/heimdal/lib/wind/rfc3454.txt
998 %{__autoconf} -Im4 -I../m4 -I../lib/replace -Ilib/replace -I../source4
1000 --with-modulesdir=%{_sambalibdir} \
1001 --with-rootsbindir=/sbin \
1002 --with-pammodulesdir=/%{_lib}/security \
1003 --with-acl-support \
1004 --with-aio-support \
1006 --with-libsmbclient \
1007 --with-lockdir=/var/lib/samba \
1009 --with-pam_smbpass \
1010 --with%{!?with_ads:out}-ads \
1011 --with-privatedir=%{_sysconfdir}/samba \
1014 --with-swatdir=%{_datadir}/swat \
1018 --without-included-popt \
1019 --%{?with_merged_build:en}%{!?with_merged_build:dis}able-merged-build \
1020 --enable-automatic-dependencies \
1022 --%{?with_avahi:en}%{!?with_avahi:dis}able-avahi \
1024 --with%{!?with_ldap:out}-ldap \
1025 --with%{!?with_kerberos5:out}-krb5
1027 %{__make} -j1 everything pam_smbpass bin/smbget bin/mount.cifs bin/vfstest
1030 %{__make} -C libsmbclient/smbwrapper \
1032 CFLAGS="%{rpmcflags} -fPIC \$(DEFS) \\\$(SMBINCLUDE)"
1038 CFLAGS="%{rpmcflags} -fPIC"
1042 cd samba-vscan-%{vscan_version}
1043 cp -f /usr/share/automake/config.sub .
1045 ln -s ../../../source3/lib .
1050 rm -rf $RPM_BUILD_ROOT
1051 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,pam.d,security,sysconfig/rc-inetd} \
1052 $RPM_BUILD_ROOT{/var/{log,log/archive,spool}/samba,/var/lib/samba/printing} \
1053 $RPM_BUILD_ROOT/var/log/samba/cores/{smbd,nmbd} \
1054 $RPM_BUILD_ROOT{/sbin,/%{_lib}/security,%{_libdir},%{_vfsdir},%{_includedir},%{_sambahome},%{schemadir}}
1056 %{__make} -C source3 install \
1057 DESTDIR=$RPM_BUILD_ROOT \
1058 CONFIGDIR=$RPM_BUILD_ROOT%{_sysconfdir}/samba
1060 install source3/script/mksmbpasswd.sh $RPM_BUILD_ROOT%{_sbindir}
1062 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/smb
1063 install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/samba
1064 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/swat
1065 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/samba
1066 install %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/samba
1067 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/samba/smb.conf
1068 install %{SOURCE8} $RPM_BUILD_ROOT/etc/rc.d/init.d/winbind
1069 install %{SOURCE9} $RPM_BUILD_ROOT/etc/sysconfig/winbind
1071 install nsswitch/libnss_winbind.so $RPM_BUILD_ROOT/%{_lib}/libnss_winbind.so.2
1072 ln -s libnss_winbind.so.2 $RPM_BUILD_ROOT/%{_lib}/libnss_winbind.so
1073 install nsswitch/libnss_wins.so $RPM_BUILD_ROOT/%{_lib}/libnss_wins.so.2
1074 ln -s libnss_wins.so.2 $RPM_BUILD_ROOT/%{_lib}/libnss_wins.so
1075 install source3/bin/wbinfo $RPM_BUILD_ROOT%{_bindir}
1076 install source3/bin/smbget $RPM_BUILD_ROOT%{_bindir}
1077 install source3/bin/vfstest $RPM_BUILD_ROOT%{_bindir}
1079 install source3/bin/libsmbclient.a $RPM_BUILD_ROOT%{_libdir}/libsmbclient.a
1082 install examples/libsmbclient/smbwrapper/smbwrapper.so $RPM_BUILD_ROOT%{_libdir}/smbwrapper.so
1083 install examples/libsmbclient/smbwrapper/smbsh $RPM_BUILD_ROOT%{_bindir}
1084 install examples/libsmbclient/smbwrapper/smbsh.1 $RPM_BUILD_ROOT%{_mandir}/man1
1086 # these are needed to build samba-pdbsql
1087 install -d $RPM_BUILD_ROOT%{_includedir}/%{name}/{tdb,nsswitch}
1088 cp -a source3/include/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}
1089 cp -a lib/tdb/include/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/tdb
1090 cp -a nsswitch/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/nsswitch
1094 install examples/VFS/samba-vscan-%{vscan_version}/*.so $RPM_BUILD_ROOT%{_vfsdir}
1095 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
1098 touch $RPM_BUILD_ROOT/var/lib/samba/{wins.dat,browse.dat}
1100 echo '127.0.0.1 localhost' > $RPM_BUILD_ROOT%{_sysconfdir}/samba/lmhosts
1103 install -d $RPM_BUILD_ROOT%{cups_serverbin}/backend
1104 ln -s %{_bindir}/smbspool $RPM_BUILD_ROOT%{cups_serverbin}/backend/smb
1107 > $RPM_BUILD_ROOT%{_sysconfdir}/samba/smbusers
1108 > $RPM_BUILD_ROOT/etc/security/blacklist.samba
1110 # we have this utility in tdb package
1111 rm -f $RPM_BUILD_ROOT{%{_bindir}/tdb{backup,dump}*,%{_mandir}/man8/tdb{backup,dump}.8*}
1114 rm -r $RPM_BUILD_ROOT%{_datadir}/swat/using_samba
1117 %if %{with merged_build}
1118 rm -r $RPM_BUILD_ROOT%{_bindir}/{gentest4,locktest4,masktest4,nsstest4}
1121 mv $RPM_BUILD_ROOT%{_bindir}/tdbtool $RPM_BUILD_ROOT%{_bindir}/tdbtool_samba
1122 %if %{with merged_build}
1123 mv $RPM_BUILD_ROOT%{_bindir}/tdbtool4 $RPM_BUILD_ROOT%{_bindir}/tdbtool4_samba
1127 install examples/LDAP/samba.schema $RPM_BUILD_ROOT%{schemadir}
1130 %find_lang pam_winbind
1132 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
1133 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
1134 find $RPM_BUILD_ROOT%{py_sitedir} -name "*.py" -o -name "*.a" -o -name "*.la" | xargs rm -f
1137 rm -rf $RPM_BUILD_ROOT
1140 /sbin/chkconfig --add smb
1141 if [ -f /var/lock/samba/connections.tdb -a ! -f /var/lib/samba/connections.tdb ]; then
1142 echo >&2 "Moving old /var/lock/samba contents to /var/lib/samba"
1143 /sbin/service smb stop >&2
1144 mv -f /var/lock/samba/*.tdb /var/lib/samba 2>/dev/null || :
1145 mv -f /var/lock/samba/*.dat /var/lib/samba 2>/dev/null || :
1146 if [ -d /var/lock/samba/printing ]; then
1147 mv -f /var/lock/samba/printing/*.tdb /var/lib/samba/printing 2>/dev/null || :
1149 /sbin/service smb start >&2
1151 %service smb restart "Samba daemons"
1155 if [ "$1" = "0" ]; then
1157 /sbin/chkconfig --del smb
1161 /sbin/chkconfig --add winbind
1162 %service winbind restart "Winbind daemon"
1165 if [ "$1" = "0" ]; then
1166 %service winbind stop
1167 /sbin/chkconfig --del winbind
1171 %service -q rc-inetd reload
1174 if [ "$1" = 0 ]; then
1175 %service -q rc-inetd reload
1178 %post -n openldap-schema-samba
1179 # dependant schemas: cosine(uid) inetorgperson(displayName) nis(gidNumber)
1180 %openldap_schema_register %{schemadir}/samba.schema -d cosine,inetorgperson,nis
1181 %service -q ldap restart
1183 %postun -n openldap-schema-samba
1184 if [ "$1" = "0" ]; then
1185 %openldap_schema_unregister %{schemadir}/samba.schema
1186 %service -q ldap restart
1189 %triggerpostun -- samba < 1.9.18p7
1190 if [ "$1" != "0" ]; then
1191 /sbin/chkconfig --add smb
1194 %triggerpostun -- samba < 3.4.0
1195 %banner %{name} << EOF
1196 !!! WARNING !!! The default passdb backend has been changed to 'tdbsam'!
1197 That breaks existing setups using the 'smbpasswd' backend without explicit declaration!
1198 Please use 'passdb backend = smbpasswd' if you would like to stick to the 'smbpasswd'
1199 backend or convert your smbpasswd entries using e.g. 'pdbedit -i smbpasswd -e tdbsam'.
1203 %defattr(644,root,root,755)
1204 %attr(755,root,root) %{_sbindir}/nmbd
1205 %attr(755,root,root) %{_sbindir}/smbd
1206 %attr(755,root,root) %{_sbindir}/mksmbpasswd.sh
1207 %if %{with merged_build}
1208 %attr(755,root,root) %{_bindir}/ad2oLschema4
1209 %attr(755,root,root) %{_bindir}/oLschema2ldif4
1210 %attr(755,root,root) %{_bindir}/reg*
1211 # "This utility disabled until rewritten"
1212 #%attr(755,root,root) %{_bindir}/setnttoken4
1214 %attr(755,root,root) %{_bindir}/ldb*
1215 %attr(755,root,root) %{_bindir}/smbstatus
1216 %attr(755,root,root) %{_bindir}/smbpasswd
1217 %attr(755,root,root) %{_bindir}/smbcontrol
1218 %attr(755,root,root) %{_bindir}/tdbtool_samba
1220 %dir %{_libdir}/%{name}/pdb
1222 %attr(755,root,root) %{_vfsdir}/acl_tdb.so
1223 %attr(755,root,root) %{_vfsdir}/acl_xattr.so
1224 %attr(755,root,root) %{_vfsdir}/aio_fork.so
1225 %attr(755,root,root) %{_vfsdir}/dirsort.so
1226 %attr(755,root,root) %{_vfsdir}/fileid.so
1227 %attr(755,root,root) %{_vfsdir}/preopen.so
1228 %attr(755,root,root) %{_vfsdir}/shadow_copy2.so
1229 %attr(755,root,root) %{_vfsdir}/smb_traffic_analyzer.so
1230 %attr(755,root,root) %{_vfsdir}/streams_depot.so
1231 %attr(755,root,root) %{_vfsdir}/streams_xattr.so
1232 %attr(755,root,root) %{_vfsdir}/syncops.so
1233 %attr(755,root,root) %{_vfsdir}/xattr_tdb.so
1234 %{_mandir}/man8/vfs_acl_tdb.8*
1235 %{_mandir}/man8/vfs_acl_xattr.8*
1236 %{_mandir}/man8/vfs_dirsort.8*
1237 %{_mandir}/man8/vfs_fileid.8*
1238 %{_mandir}/man8/vfs_preopen.8*
1239 %{_mandir}/man8/vfs_shadow_copy2.8*
1240 %{_mandir}/man8/vfs_smb_traffic_analyzer.8*
1241 %{_mandir}/man8/vfs_streams_xattr.8*
1242 %{_mandir}/man8/vfs_streams_depot.8*
1243 %{_mandir}/man8/vfs_xattr_tdb.8*
1246 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/smbusers
1247 %attr(754,root,root) /etc/rc.d/init.d/smb
1248 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/samba
1249 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/samba
1250 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/samba
1251 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.samba
1252 %{_mandir}/man1/ldb*.1*
1253 %{_mandir}/man1/log2pcap.1*
1254 %{_mandir}/man1/smbstatus.1*
1255 %{_mandir}/man1/smbcontrol.1*
1256 %{_mandir}/man5/smbpasswd.5*
1257 %{_mandir}/man7/samba.7*
1258 %{_mandir}/man8/nmbd.8*
1259 %{_mandir}/man8/smbd.8*
1260 %{_mandir}/man8/smbpasswd.8*
1264 %ghost /var/lib/samba/*.dat
1265 %dir /var/lib/samba/printing
1267 %attr(750,root,root) %dir /var/log/samba
1268 %attr(750,root,root) %dir /var/log/samba/cores
1269 %attr(750,root,root) %dir /var/log/samba/cores/smbd
1270 %attr(750,root,root) %dir /var/log/samba/cores/nmbd
1271 %attr(750,root,root) %dir /var/log/archive/samba
1272 %attr(1777,root,root) %dir /var/spool/samba
1277 %files winbind -f pam_winbind.lang
1278 %defattr(644,root,root,755)
1279 %attr(755,root,root) %{_sbindir}/winbindd
1280 %attr(755,root,root) %{_bindir}/wbinfo
1281 %if %{with merged_build}
1282 %attr(755,root,root) %{_bindir}/wbinfo4
1284 %attr(755,root,root) /%{_lib}/security/pam_winbind*
1285 %attr(755,root,root) /%{_lib}/libnss_winbind*
1286 %attr(754,root,root) /etc/rc.d/init.d/winbind
1287 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/winbind
1288 %{_mandir}/man1/wbinfo*.1*
1289 %{_mandir}/man8/pam_winbind.8*
1290 %{_mandir}/man8/winbindd*.8*
1293 %defattr(644,root,root,755)
1294 %attr(755,root,root) /%{_lib}/libnss_wins*
1297 %defattr(644,root,root,755)
1298 %if %{with merged_build}
1299 %attr(755,root,root) %{_bindir}/cifsdd4
1300 %attr(755,root,root) %{_bindir}/net4
1301 %attr(755,root,root) %{_bindir}/nmblookup4
1302 %attr(755,root,root) %{_bindir}/smbclient4
1303 %attr(755,root,root) %{_sbindir}/cifs.upcall
1304 %{_mandir}/man8/cifs.upcall.8*
1306 %attr(755,root,root) /sbin/mount.cifs
1307 %attr(755,root,root) /sbin/umount.cifs
1308 %attr(755,root,root) %{_bindir}/findsmb
1309 %attr(755,root,root) %{_bindir}/net
1310 %attr(755,root,root) %{_bindir}/nmblookup
1311 %attr(755,root,root) %{_bindir}/rpcclient
1312 %attr(755,root,root) %{_bindir}/sharesec
1313 %attr(755,root,root) %{_bindir}/smbcacls
1314 %attr(755,root,root) %{_bindir}/smbclient
1315 %attr(755,root,root) %{_bindir}/smbsh
1316 %attr(755,root,root) %{_bindir}/smbtar
1317 %attr(755,root,root) %{_bindir}/smbtree
1318 %attr(755,root,root) %{_libdir}/smbwrapper.so
1319 %{_mandir}/man1/findsmb.1*
1320 %{_mandir}/man1/nmblookup.1*
1321 %{_mandir}/man1/rpcclient.1*
1322 %{_mandir}/man1/sharesec.1*
1323 %{_mandir}/man1/smbcacls.1*
1324 %{_mandir}/man1/smbclient.1*
1325 %{_mandir}/man1/smbsh.1*
1326 %{_mandir}/man1/smbtar.1*
1327 %{_mandir}/man1/smbtree.1*
1328 %{_mandir}/man8/net.8*
1329 %{_mandir}/man8/*mount.cifs.8*
1332 %defattr(644,root,root,755)
1333 %if %{with merged_build}
1334 %attr(755,root,root) %{_bindir}/getntacl4
1335 %attr(755,root,root) %{_bindir}/ndrdump4
1336 %attr(755,root,root) %{_bindir}/ntlm_auth4
1337 %attr(755,root,root) %{_bindir}/testparm4
1339 %doc README Manifest WHATSNEW.txt
1340 %doc Roadmap docs/registry/*
1341 %doc docs/{history,THANKS}
1342 %dir %{_sysconfdir}/samba
1343 %attr(664,root,fileshare) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/smb.conf
1344 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/lmhosts
1345 %attr(755,root,root) %{_bindir}/eventlogadm
1346 %attr(755,root,root) %{_bindir}/ntlm_auth
1347 %attr(755,root,root) %{_bindir}/pdbedit
1348 %attr(755,root,root) %{_bindir}/profiles
1349 %attr(755,root,root) %{_bindir}/smbcquotas
1350 %attr(755,root,root) %{_bindir}/testparm
1351 %attr(755,root,root) %{_bindir}/vfstest
1352 %dir %{_libdir}/%{name}
1353 %{_libdir}/%{name}/*.dat
1354 %dir %{_libdir}/%{name}/auth
1355 %attr(755,root,root) %{_libdir}/%{name}/auth/script.so
1356 %dir %{_libdir}/%{name}/charset
1357 %attr(755,root,root) %{_libdir}/%{name}/charset/*.so
1358 %{_mandir}/man1/ntlm_auth.1*
1359 %{_mandir}/man1/profiles.1*
1360 %{_mandir}/man1/smbcquotas.1*
1361 %{_mandir}/man1/testparm.1*
1362 %{_mandir}/man1/vfstest.1*
1363 #%{_mandir}/man1/log2pcap.1*
1364 %{_mandir}/man5/lmhosts.5*
1365 %{_mandir}/man5/smb.conf.5*
1366 %{_mandir}/man8/pdbedit.8*
1367 %{_mandir}/man8/eventlogadm.8*
1368 %{_mandir}/man8/idmap_ad.8*
1369 %{_mandir}/man8/idmap_adex.8*
1370 %{_mandir}/man8/idmap_hash.8*
1371 %{_mandir}/man8/idmap_ldap.8*
1372 %{_mandir}/man8/idmap_nss.8*
1373 %{_mandir}/man8/idmap_rid.8*
1374 %{_mandir}/man8/idmap_tdb.8*
1375 %{_mandir}/man8/idmap_tdb2.8*
1376 %{_mandir}/man8/tdbtool.8*
1379 %defattr(644,root,root,755)
1380 #%doc swat/README* swat/help/*
1382 %attr(755,root,root) %{_sbindir}/swat
1383 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/swat
1384 %dir %{_datadir}/swat
1385 %{_datadir}/swat/help
1386 %{_datadir}/swat/images
1387 %{_datadir}/swat/include
1388 %dir %{_datadir}/swat/lang
1389 %lang(ja) %{_datadir}/swat/lang/ja
1390 %lang(tr) %{_datadir}/swat/lang/tr
1391 %lang(de) %{_libdir}/%{name}/de.msg
1392 %{_libdir}/%{name}/en.msg
1393 %lang(fi) %{_libdir}/%{name}/fi.msg
1394 %lang(fr) %{_libdir}/%{name}/fr.msg
1395 %lang(it) %{_libdir}/%{name}/it.msg
1396 %lang(ja) %{_libdir}/%{name}/ja.msg
1397 %lang(nl) %{_libdir}/%{name}/nl.msg
1398 %lang(pl) %{_libdir}/%{name}/pl.msg
1399 %lang(ru) %{_libdir}/%{name}/ru.msg
1400 %lang(tr) %{_libdir}/%{name}/tr.msg
1401 %{_mandir}/man8/swat.8*
1403 %files -n pam-pam_smbpass
1404 %defattr(644,root,root,755)
1405 %doc source3/pam_smbpass/{CHAN*,README,TODO} source3/pam_smbpass/samples
1406 %attr(755,root,root) /%{_lib}/security/pam_smbpass.so
1408 %files -n libsmbclient
1409 %defattr(644,root,root,755)
1410 %attr(755,root,root) %{_libdir}/libsmbclient.so.*
1411 %attr(755,root,root) %{_libdir}/libwbclient.so.*
1412 %{_mandir}/man7/libsmbclient.7*
1414 %files -n libsmbclient-devel
1415 %defattr(644,root,root,755)
1416 %attr(755,root,root) %{_libdir}/libsmbclient.so
1417 %attr(755,root,root) %{_libdir}/libwbclient.so
1418 %{_includedir}/libsmbclient.h
1419 %{_includedir}/wbclient.h
1422 %defattr(644,root,root,755)
1423 %attr(755,root,root) %{_libdir}/libtalloc.so.*
1425 %files -n libtalloc-devel
1426 %defattr(644,root,root,755)
1427 %attr(755,root,root) %{_libdir}/libtalloc.so
1428 %{_includedir}/talloc.h
1431 %defattr(644,root,root,755)
1432 %{_includedir}/%{name}
1434 %files -n libsmbclient-static
1435 %defattr(644,root,root,755)
1436 %{_libdir}/libsmbclient.a
1439 %defattr(644,root,root,755)
1440 %attr(755,root,root) %{_bindir}/smbget
1441 %{_mandir}/man1/smbget.1*
1442 %{_mandir}/man5/smbgetrc.5*
1445 %files -n cups-backend-smb
1446 %defattr(644,root,root,755)
1447 %attr(755,root,root) %{_bindir}/smbspool
1448 %attr(755,root,root) %{cups_serverbin}/backend/smb
1449 %{_mandir}/man8/smbspool.8*
1453 %defattr(644,root,root,755)
1454 %attr(755,root,root) %{_vfsdir}/audit.so
1455 %attr(755,root,root) %{_vfsdir}/extd_audit.so
1456 %attr(755,root,root) %{_vfsdir}/full_audit.so
1457 %{_mandir}/man8/vfs_audit.8*
1458 %{_mandir}/man8/vfs_extd_audit.8*
1459 %{_mandir}/man8/vfs_full_audit.8*
1462 %defattr(644,root,root,755)
1463 %attr(755,root,root) %{_vfsdir}/cap.so
1464 %{_mandir}/man8/vfs_cap.8*
1466 %files vfs-default_quota
1467 %defattr(644,root,root,755)
1468 %attr(755,root,root) %{_vfsdir}/default_quota.so
1469 %{_mandir}/man8/vfs_default_quota.8*
1471 %files vfs-expand_msdfs
1472 %defattr(644,root,root,755)
1473 %attr(755,root,root) %{_vfsdir}/expand_msdfs.so
1475 %files vfs-fake_perms
1476 %defattr(644,root,root,755)
1477 %attr(755,root,root) %{_vfsdir}/fake_perms.so
1478 %{_mandir}/man8/vfs_fake_perms.8*
1480 %files vfs-notify_fam
1481 %defattr(644,root,root,755)
1482 %attr(755,root,root) %{_vfsdir}/notify_fam.so
1483 %{_mandir}/man8/vfs_notify_fam.8*
1486 %defattr(644,root,root,755)
1487 %attr(755,root,root) %{_vfsdir}/netatalk.so
1488 %{_mandir}/man8/vfs_netatalk.8*
1490 %files vfs-readahead
1491 %defattr(644,root,root,755)
1492 %attr(755,root,root) %{_vfsdir}/readahead.so
1493 %{_mandir}/man8/vfs_readahead.8*
1496 %defattr(644,root,root,755)
1497 %attr(755,root,root) %{_vfsdir}/readonly.so
1498 %{_mandir}/man8/vfs_readonly.8*
1501 %defattr(644,root,root,755)
1502 %attr(755,root,root) %{_vfsdir}/recycle.so
1503 %{_mandir}/man8/vfs_recycle.8*
1505 %files vfs-shadow_copy
1506 %defattr(644,root,root,755)
1507 %attr(755,root,root) %{_vfsdir}/shadow_copy.so
1508 %{_mandir}/man8/vfs_shadow_copy.8*
1511 %files vfs-vscan-antivir
1512 %defattr(644,root,root,755)
1513 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1514 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-antivir.conf
1515 %attr(755,root,root) %{_vfsdir}/vscan-antivir.so
1517 %files vfs-vscan-clamav
1518 %defattr(644,root,root,755)
1519 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1520 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-clamav.conf
1521 %attr(755,root,root) %{_vfsdir}/vscan-clamav.so
1523 %files vfs-vscan-fprot
1524 %defattr(644,root,root,755)
1525 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1526 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-fprotd.conf
1527 %attr(755,root,root) %{_vfsdir}/vscan-fprotd.so
1529 %files vfs-vscan-fsav
1530 %defattr(644,root,root,755)
1531 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1532 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-fsav.conf
1533 %attr(755,root,root) %{_vfsdir}/vscan-fsav.so
1535 %files vfs-vscan-kavp
1536 %defattr(644,root,root,755)
1537 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1538 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-kavp.conf
1539 %attr(755,root,root) %{_vfsdir}/vscan-kavp.so
1541 %files vfs-vscan-mcafee
1542 %defattr(644,root,root,755)
1543 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1544 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-mcdaemon.conf
1545 %attr(755,root,root) %{_vfsdir}/vscan-mcdaemon.so
1548 %ifarch %{ix86} %{x8664}
1549 %files vfs-vscan-mks
1550 %defattr(644,root,root,755)
1551 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1552 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-mks32.conf
1553 %attr(755,root,root) %{_vfsdir}/vscan-mksd.so
1557 %files vfs-vscan-openantivirus
1558 %defattr(644,root,root,755)
1559 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1560 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-oav.conf
1561 %attr(755,root,root) %{_vfsdir}/vscan-oav.so
1563 %files vfs-vscan-sophos
1564 %defattr(644,root,root,755)
1565 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1566 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-sophos.conf
1567 %attr(755,root,root) %{_vfsdir}/vscan-sophos.so
1569 %files vfs-vscan-symantec
1570 %defattr(644,root,root,755)
1571 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1572 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-icap.conf
1573 %attr(755,root,root) %{_vfsdir}/vscan-icap.so
1575 %files vfs-vscan-trend
1576 %defattr(644,root,root,755)
1577 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1578 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-trend.conf
1579 %attr(755,root,root) %{_vfsdir}/vscan-trend.so
1583 %files -n openldap-schema-samba
1584 %defattr(644,root,root,755)
1585 %{schemadir}/*.schema
1589 %defattr(644,root,root,755)
1590 %doc docs/htmldocs/*
1593 %defattr(644,root,root,755)
1597 %files -n python-samba
1598 %defattr(644,root,root,755)
1599 %attr(755,root,root) %{py_sitedir}/*.so
1600 %dir %{py_sitedir}/samba
1601 %attr(755,root,root) %{py_sitedir}/samba/*.so
1602 %{py_sitedir}/samba/*.py[co]
1603 %dir %{py_sitedir}/samba/dcerpc
1604 %{py_sitedir}/samba/dcerpc/*.py[co]
1605 %attr(755,root,root) %{py_sitedir}/samba/dcerpc/*.so
1606 %dir %{py_sitedir}/samba/tests
1607 %{py_sitedir}/samba/tests/*.py[co]
1608 %dir %{py_sitedir}/samba/tests/dcerpc
1609 %{py_sitedir}/samba/tests/dcerpc/*.py[co]
1610 %dir %{py_sitedir}/samba/torture
1611 %{py_sitedir}/samba/torture/*.py[co]