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 URL: http://www.samba.org/
79 BuildRequires: acl-devel
80 BuildRequires: autoconf
81 BuildRequires: automake
82 %{?with_avahi:BuildRequires: avahi-devel}
83 %{?with_cups:BuildRequires: cups-devel >= 1:1.2.0}
84 BuildRequires: dmapi-devel
85 BuildRequires: fam-devel
86 BuildRequires: gettext-devel
87 %{?with_kerberos5:BuildRequires: heimdal-devel}
89 BuildRequires: keyutils-devel
90 BuildRequires: libmagic-devel
91 BuildRequires: libnscd-devel
92 BuildRequires: libtool >= 2:1.4d
93 BuildRequires: make >= 3.81
94 BuildRequires: ncurses-devel >= 5.2
95 %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
96 BuildRequires: openssl-devel >= 0.9.7d
97 BuildRequires: pam-devel >= 0.99.8.1
98 BuildRequires: pkgconfig
99 BuildRequires: popt-devel
100 %{?with_pgsql:BuildRequires: postgresql-devel}
101 BuildRequires: python-devel
102 BuildRequires: python-modules
103 BuildRequires: readline-devel >= 4.2
104 BuildRequires: rpmbuild(macros) >= 1.304
105 BuildRequires: sed >= 4.0
106 BuildRequires: tdb-devel
107 BuildRequires: xfsprogs-devel
108 Requires(post,preun): /sbin/chkconfig
109 Requires: %{name}-common = %{epoch}:%{version}-%{release}
110 Requires: logrotate >= 3.7-4
111 Requires: pam >= 0.99.8.1
113 Requires: setup >= 2.4.6-7
114 # smbd links with libcups
115 %{?with_cups:Requires: cups-lib >= 1:1.2.0}
116 Obsoletes: python-samba
117 Obsoletes: samba-pdb-xml
118 Obsoletes: samba-vfs-block
119 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
121 %define _vfsdir %{_libdir}/%{name}/vfs
122 %define _sambahome /home/services/samba
123 %define _sambalibdir %{_libdir}/%{name}
125 %define cups_serverbin %{_prefix}/lib/cups
127 %define schemadir /usr/share/openldap/schema
129 # CFLAGS modified (the second ./configure)
130 %undefine configure_cache
133 Samba provides an SMB server which can be used to provide network
134 services to SMB (sometimes called "Lan Manager") clients, including
135 various versions of MS Windows, OS/2, and other Linux machines. Samba
136 also provides some SMB clients, which complement the built-in SMB
137 filesystem in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols
138 and does NOT need NetBEUI (Microsoft Raw NetBIOS frame) protocol.
140 This release is known as the "Locking Update" and has full support for
141 Opportunistic File Locking. In addition this update includes native
142 support for Microsoft encrypted passwords, improved browse list and
143 WINS database management.
145 Please refer to the WHATSNEW.txt document for fixup information. This
146 binary release includes encrypted password support. Please read the
147 smb.conf file for implementation details.
149 %description -l cs.UTF-8
150 Samba poskytuje server SMB, který lze použít pro poskytování síťových
151 služeb klientům SMB (někdy nazývaných klienti "LAN manažer") včetně
152 klientů různých verzí MS Windows, OS/2 a dalších linuxových strojů.
153 Samba též poskytuje některé klienty SMB, kteří komplementují vestavěný
154 souborový systém SMB v Linuxu. Samba používá protokoly NetBIOS přes
155 TCP/IP (NetBT) a NEpotřebuje protokol NetBEUI (neformátovaný rámec
156 NetBIOS od společnosti Microsoft.
158 %description -l da.UTF-8
159 Samba tilbyder en SMB server som kan bruges til at tilbyde netværk
160 services til SMB (også kaldet "Lan Manager") klienter, incl.
161 forskellige versioner af MS Windows, OS/2, og andre Linux maskiner.
162 Samba tilbyder også SMB klienter, som udbygger det indbyggede SMB
163 filsystem i Linux. Samba benytter NetBIOS over TCP/IP (NetBT)
164 protocolen og kræver ikke NetBEUI (Microsoft Raw NetBIOS frame)
167 %description -l de.UTF-8
168 Samba stellt einen SMB-Server zum Anbieten von Netzwerkdiensten für
169 SMB-Clients (auch "Lan Manager" genannt) zur Verfügung, darunter
170 verschiedenen Versionen von MS Windows-, OS/2- und anderen
171 Linux-Rechnern. Samba enthält außerdem einige SMB-Clients, die das in
172 Linux integrierte SMB-Dateisystem ergänzen. Samba benutzt
173 NetBIOS-über-TCP/IP (NetBT)-Protokolle und benötigt KEIN NetBEUI
174 (Microsoft Raw NetBIOS frame)-Protokoll.
176 %description -l es.UTF-8
177 Samba provee un servidor SMB que se puede usar para ofrecer servicios
178 de red a clientes SMB (algunas veces se le llama de "Lan Manager"),
179 incluyendo varias versiones de MS Windows, OS/2, y otras máquinas
180 Linux. Samba también ofrece algunos clientes SMB, que complementan el
181 sistema de archivos SMB de Linux. Samba usa el protocolo NetBIOS sobre
182 TCP/IP (NetBT) y no necesita del protocolo NetBEUI (Microsoft Raw
185 %description -l fi.UTF-8
186 Samba on SMB-palvelin, jota voidaan käyttää SMB-asiakasohjelmien
187 verkkopalvelujen tarjoajana. SMB-protokollaa kutsutaan joskus "Lan
188 Manager" protokollaksi ja asiakasohjelmat toimivat dosissa,
189 Windowseissa, OS/2:ssa ja toisissa Linux-koneissa. Samban mukana on
190 myös joitakin SMB-asiakasohjelmia, jotka täydentävät Linuxin
191 kernelissä olevaa SMB-tiedostojärjestelmän tukea. Samba vaatii NetBIOS
192 over TCP/IP (NetBT) protokollaa eikä tarvitse tai pysty käyttämään
195 %description -l it.UTF-8
196 Samba fornisce un server SMB che puo` essere usato per fornire servizi
197 di rete ai client SMB, incluse le versioni MS Windows, OS/2 e per
198 altre macchine Linux. Samba fornisce anche i client SMB. Samba usa
199 NetBIOS sopra TCP/IP e non ha bisogno del protocollo NetBEUI.
201 %description -l ja.UTF-8
202 Samba は MS Windows の様々なバージョン、OS/2 そして他の Linux マシン
203 を含む SMB (たまに "Lan Manager" と呼ばれる)
204 クライアントにネットワーク サービスを提供するために使用される SMB
205 サーバを提供します。Samba は NetBIOS over TCP/IP (NetBT)
206 プロトコルを使用し、 NetBEUI(Microsoft Raw NetBIOS frame)
209 Samba ほとんど動作する NT ドメインコントロールの機能を特徴とし、
210 好きなブラウザを使って samba の smb.conf ファイルをリモート管理する
211 新しい SWAT (Samba Web Administration Tool) を含みます。
212 目下のところこれは inetd を通して TCP ポート 901 で有効になります。
214 %description -l ko.UTF-8
215 삼바는 MS Windows, OS/2, 혹은 다른 리눅스 머신을 포함하는 SMB(혹은
216 "Lan Manager"라고도 불림) 클라이언트를 네트워크 서비스 위해 사용할 수
217 있는 SMB 서버를 제공한다. 삼바는 TCP/IP 프로토콜을 통해 NetBIOS를
218 사용하고 NetBEUI (Microsoft Raw NetBIOS 프레임) 프로토콜은 필요하지
221 삼바-2.2 의 특징은 NT 도메인 컨트롤의 성능으로 작업을 하고, 새로운
222 SWAT(Samba Web Administration Tool)로 웹브라우저를 사용하여 원격지에서
223 삼바의 smb.conf 파일을 관리하도록 한다. 이러한 경우 inetd 데몬을 통해
226 최근 정보로 WHATSNEW.txt 파일의 문서를 참고하도록 한다. 바이너리의
227 릴리즈는 암호화된 패스워드를 제공한다.
229 %description -l pl.UTF-8
230 Samba udostępnia serwer SMB, który może być użyty w celu dostarczenia
231 usług sieciowych (potocznie zwanych "Lan Manager"), dla klientów
232 takich jak MS Windows, OS/2 a także maszyn linuksowych. W pakiecie
233 znajduje się również oprogramowanie klienckie. Samba używa protokołu
234 NetBIOS po TCP/IP (NetBT) i nie wymaga protokołu NetBEUI. Ta wersja ma
235 pełne wsparcie dla blokowania plików, a także wsparcie dla kodowania
236 haseł w standardzie MS i zarządzania bazą WINS.
238 %description -l pt_BR.UTF-8
239 O Samba provê um servidor SMB que pode ser usado para oferecer
240 serviços de rede a clientes SMB (algumas vezes chamado de "Lan
241 Manager"), incluindo várias versões de MS Windows, OS/2, e outras
242 máquinas Linux. O Samba também fornece alguns clientes SMB, que
243 complementam o sistema de arquivos SMB do Linux. O Samba usa o
244 protocolo NetBIOS sobre TCP/IP (NetBT) e não necessita do protocolo
245 NetBEUI (Microsoft Raw NetBIOS frame).
247 O Samba inclui a maioria das características de um servidor de
248 Controle de Domínios NT e o SWAT (Samba Web Administration Tool), que
249 permite que o arquivo smb.conf seja gerenciado remotamente através de
250 um navegador. Atualmente isto está sendo habilitado na porta TCP 901
253 %description -l ru.UTF-8
254 Samba предоставляет SMB-сервер, который может быть использован для
255 предоставления сетевых сервисов SMB (иногда называемым "Lan Manager")
256 клиентам, включая разнообразные версии MS Windows, OS/2, и другие
257 Linux-машины. Samba также предоставляет SMB-клиентов, которые работают
258 со встроенной в Linux файловой системой SMB.
260 Samba использует протокол NetBIOS over TCP/IP (NetBT) и не нуждается в
261 протоколе NetBEUI (Microsoft Raw NetBIOS frame).
263 Samba содержит практически работающую реализацию NT Domain Control и
264 включает новый SWAT (Samba Web Administration Tool), который позволяет
265 удаленно управлять конфигурационным файлом smb.conf при помощи вашего
266 любимого WEB-броузера. Пока что он разрешен через inetd на TCP-порту
269 %description -l uk.UTF-8
270 Samba надає SMB-сервер, що може бути використаний для надання
271 мережевих сервісів SMB (що їх іноді називають "Lan Manager") клієнтам,
272 включаючи різноманітні версії MS Windows, OS/2, та інші Linux-машини.
273 Samba також надає SMB-клієнтів, що працюють з вбудованою в Linux
274 файловою системою SMB.
276 Samba використовує протокол NetBIOS over TCP/IP (NetBT) та не потребує
277 протоколу NetBEUI (Microsoft Raw NetBIOS frame).
279 Samba містить майже працюючу реализацію NT Domain Control та новый
280 SWAT (Samba Web Administration Tool), котрий дозволяє віддалено
281 керувати конфігураційним файлом smb.conf за допомогою вашого
282 улюбленого WEB-броузера. Поки що він дозволений через inetd на
286 Summary: Samba Web Administration Tool
287 Summary(pl.UTF-8): Narzędzie administracyjne serwisu Samba
288 Summary(pt_BR.UTF-8): Samba SWAT e documentação Web
289 Summary(ru.UTF-8): Программа конфигурации SMB-сервера Samba
290 Summary(uk.UTF-8): Програма конфигурації SMB-сервера Samba
291 Group: Networking/Admin
292 Requires: %{name} = %{epoch}:%{version}-%{release}
294 Requires: rc-inetd >= 0.8.2
298 swat allows a Samba administrator to configure the complex smb.conf
299 file via a Web browser. In addition, a swat configuration page has
300 help links to all the configurable options in the smb.conf file
301 allowing an administrator to easily look up the effects of any change.
303 %description swat -l pl.UTF-8
304 swat pozwala na kompleksową konfigurację smb.conf przy pomocy
307 %description swat -l pt_BR.UTF-8
308 SWAT - ferramentada Web de configuração do Samba.
310 %description swat -l ru.UTF-8
311 Пакет samba-swat включает новый SWAT (Samba Web Administration Tool),
312 для удаленного администрирования файла smb.conf при помощи вашего
313 любимого Web-браузера.
315 %description swat -l uk.UTF-8
316 Пакет samba-swat містить новий SWAT (Samba Web Administration Tool),
317 для дистанційного адміністрування файлу smb.conf за допомогою вашого
318 улюбленого Web-браузеру.
321 Summary: Samba client programs
322 Summary(es.UTF-8): Cliente SMB de Samba
323 Summary(ja.UTF-8): Samba (SMB) クライアントプログラム
324 Summary(pl.UTF-8): Klienci serwera Samba
325 Summary(pt_BR.UTF-8): Cliente SMB do samba
326 Summary(ru.UTF-8): Клиентские программы Samba (SMB)
327 Summary(uk.UTF-8): Клієнтські програми Samba (SMB)
328 Group: Applications/Networking
329 Requires: %{name}-common = %{epoch}:%{version}-%{release}
330 %{?with_kerberos5:Requires: heimdal-libs}
331 Requires: libsmbclient = %{epoch}:%{version}-%{release}
332 Obsoletes: mount-cifs
336 Samba-client provides some SMB clients, which complement the build-in
337 SMB filesystem in Linux. These allow accessing of SMB shares and
338 printing to SMB printers.
340 %description client -l pt_BR.UTF-8
341 O pacote samba-clientes prove alguns clientes SMB, que complementam o
342 sistema de arquivos SMB do Linux. Eles permitem o acesso a shares SMB,
343 e também, à impressoras SMB.
345 %description client -l es.UTF-8
346 Cliente SMB de Samba.
348 %description client -l ja.UTF-8
349 Samba-client は Linux 上に含まれている SMB ファイルシステムを補う SMB
350 クライアントを提供します。これらは SMB 共有のアクセスと SMB
353 %description client -l pl.UTF-8
354 Samba-client dostarcza programy uzupełniające obsługę systemu plików
355 SMB zawartą w jądrze. Pozwalają one na współdzielenie zasobów SMB i
356 drukowanie w sieci SMB.
358 %description client -l pt_BR.UTF-8
359 O pacote samba-clientes prove alguns clientes SMB, que complementam o
360 sistema de arquivos SMB do Linux. Eles permitem o acesso a shares SMB,
361 e também, à impressoras SMB.
363 %description client -l ru.UTF-8
364 Пакет samba-client предоставляет некоторые клиенты SMB для работы со
365 встроенной файловой системой SMB в Linux. Эти клиенты позволяют
366 получать доступ к разделяемым каталогам SMB и печать на SMB-принтеры.
368 %description client -l uk.UTF-8
369 Пакет samba-client надає деякі клієнти SMB для роботи зі вбудованою
370 файловою системою SMB в Linux. Ці клієнти дозволяють отримувати доступ
371 до каталогів спільного використання SMB та друк на SMB-прінтери.
374 Summary: Files used by both Samba servers and clients
375 Summary(ja.UTF-8): Samba サーバーとクライアントで使用されるプログラム
376 Summary(pl.UTF-8): Pliki używane przez serwer i klientów Samba
377 Summary(pt_BR.UTF-8): Arquivos em comum entre samba e samba-clients
378 Summary(ru.UTF-8): Файлы, используемые как сервером, так и клиентом Samba
379 Summary(uk.UTF-8): Файли, що використовуються як сервером, так і клієнтом Samba
380 Group: Networking/Daemons
381 Requires: libtalloc >= %{version}-%{release}
382 Requires: tdb >= 1.1.3
385 Samba-common provides files necessary for both the server and client
388 %description common -l ja.UTF-8
389 Samba-common は Samba のサーバとクライアントの両方のパッケージで
392 %description common -l pl.UTF-8
393 Samba-common dostarcza pliki niezbędne zarówno dla serwera jak i
396 %description common -l pt_BR.UTF-8
397 Arquivos em comum entre os pacotes samba e samba-clients.
399 %description common -l ru.UTF-8
400 Samba-common содержит файлы, необходимые для работы как клиента, так и
403 %description common -l uk.UTF-8
404 Samba-common містить файли, необхідні для роботи як клієнта, так і
408 Summary: Samba-winbind daemon, utilities and documentation
409 Summary(pl.UTF-8): Demon samba-winbind, narzędzia i dokumentacja
410 Group: Networking/Daemons
411 Requires(post,preun): /sbin/chkconfig
412 Requires: %{name}-common = %{epoch}:%{version}-%{release}
415 Provides the winbind daemon and testing tools to allow authentication
416 and group/user enumeration from a Windows or Samba domain controller.
418 %description winbind -l pl.UTF-8
419 Pakiet zawiera demona winbind oraz narzędzia testowe. Umożliwia
420 uwierzytelnianie i wyliczanie grup/użytkowników z kontrolera domeny
424 Summary: Name Service Switch service for WINS
425 Summary(pl.UTF-8): Usługa Name Service Switch dla WINS
427 Requires: %{name}-common = %{epoch}:%{version}-%{release}
429 %description -n nss_wins
430 Provides the libnss_wins shared library which resolves NetBIOS names
433 %description -n nss_wins -l pl.UTF-8
434 Biblioteka dzielona libnss_wins rozwiązująca nazwy NetBIOS na adresy
437 %package -n pam-pam_smbpass
438 Summary: PAM Samba Password Module
439 Summary(pl.UTF-8): Moduł PAM smbpass
441 Obsoletes: pam_smbpass
443 %description -n pam-pam_smbpass
444 PAM module which can be used on conforming systems to keep the
445 smbpasswd (Samba password) database in sync with the Unix password
448 %description -n pam-pam_smbpass -l pl.UTF-8
449 Moduł PAM, który może być używany do trzymania pliku smbpasswd (hasła
450 Samby) zsynchronizowanego z hasłami uniksowymi.
452 %package -n libsmbclient
453 Summary: libsmbclient - samba client library
454 Summary(pl.UTF-8): libsmbclient - biblioteka klienta samby
457 %description -n libsmbclient
458 libsmbclient - library that allows to use samba clients functions.
460 %description -n libsmbclient -l pl.UTF-8
461 libsmbclient - biblioteka pozwalająca korzystać z funcji klienta
464 %package -n libsmbclient-devel
465 Summary: libsmbclient - samba client library
466 Summary(pl.UTF-8): libsmbclient - biblioteka klienta samby
467 Summary(pt_BR.UTF-8): Ferramentas de desenvolvimento para clientes samba
468 Group: Development/Libraries
469 Requires: libsmbclient = %{epoch}:%{version}-%{release}
471 %description -n libsmbclient-devel
472 Header files for libsmbclient.
474 %description -n libsmbclient-devel -l pl.UTF-8
475 Pliki nagłówkowe dla libsmbclient.
477 %description -n libsmbclient-devel -l pt_BR.UTF-8
478 Arquivos de inclusão, bibliotecas e documentação necessários para
479 desenvolver aplicativos clientes para o samba.
481 %package -n libsmbclient-static
482 Summary: Static version of libsmbclient - samba client library
483 Summary(pl.UTF-8): Statyczna wersja libsmbclient - biblioteki klienta samby
484 Summary(pt_BR.UTF-8): Ferramentas de desenvolvimento para clientes samba
485 Group: Development/Libraries
486 Requires: libsmbclient = %{epoch}:%{version}-%{release}
488 %description -n libsmbclient-static
489 Static libsmbclient library.
491 %description -n libsmbclient-static -l pl.UTF-8
492 Statyczna biblioteka libsmbclient.
494 %package -n libtalloc
495 Summary: The talloc library
498 %description -n libtalloc
499 The talloc library from the Samba suite.
501 %package -n libtalloc-devel
502 Summary: Developer tools for the talloc library
503 Group: Development/Libraries
504 Requires: libtalloc = %{epoch}:%{version}-%{release}
506 %description -n libtalloc-devel
507 The libtalloc-devel package contains the header files and libraries needed to
508 develop programs that link against the talloc library in the Samba suite.
511 Summary: Header files for Samba
512 Summary(pl.UTF-8): Pliki nagłówkowe Samby
513 Group: Development/Libraries
516 Header files for Samba.
518 %description devel -l pl.UTF-8
519 Pliki nagłówkowe Samby.
522 Summary: A utility for retrieving files using the SMB protocol
523 Summary(pl.UTF-8): Narzędzie do pobierania plików protokołem SMB
524 Group: Applications/Networking
526 %description -n smbget
527 wget-like utility for download files over SMB.
529 %description -n smbget -l pl.UTF-8
530 Narzędzie podobne do wgeta do pobierania plików protokołem SMB
531 używanym w sieciach MS Windows.
533 %package -n cups-backend-smb
534 Summary: CUPS backend for printing to SMB printers
535 Summary(pl.UTF-8): Backend CUPS-a drukujący na drukarkach SMB
536 Group: Applications/Printing
537 Requires: %{name}-client = %{epoch}:%{version}-%{release}
538 Requires: cups >= 1:1.2.0
540 %description -n cups-backend-smb
541 CUPS backend for printing to SMB printers.
543 %description -n cups-backend-smb -l pl.UTF-8
544 Backend CUPS-a drukujący na drukarkach SMB.
547 Summary: VFS module to audit file access
548 Summary(pl.UTF-8): Moduł VFS do monitorowania operacji na plikach
549 Group: Networking/Daemons
550 Requires: %{name} = %{epoch}:%{version}-%{release}
552 %description vfs-audit
553 A simple module to audit file access to the syslog facility. The
554 following operations are logged:
555 - share connect/disconnect,
556 - directory opens/create/remove,
557 - file open/close/rename/unlink/chmod.
559 %description vfs-audit -l pl.UTF-8
560 Proste moduły do monitorowania dostępu do plików na serwerze samba do
561 do sysloga. Monitorowane są następujące operacje:
562 - podłączenie do/odłączenie od zasobu,
563 - otwarcie/utworzenie/zmiana nazwy katalogu,
564 - otwarcie/zamknięcie/zmiana nazwy/skasowanie/zmiana praw plików.
566 Zawiera moduły audit, extd_audit i full_audit.
569 Summary: VFS module for CAP and samba compatibility
570 Summary(pl.UTF-8): Moduł VFS zgodności z CAP (Columbia AppleTalk Program)
571 Group: Networking/Daemons
572 Requires: %{name} = %{epoch}:%{version}-%{release}
575 Convert an incoming Shift-JIS character to the 3 byte hex
576 representation used by the Columbia AppleTalk Program (CAP), i.e. :AB.
577 This is used for compatibility between Samba and CAP.
579 %description vfs-cap -l pl.UTF-8
580 Zamienia znaki kodowane Shift-JIS do trzybajowej szestnastkowej
581 reprezentacji używanej przez program Columbia AppleTalk Program (CAP).
583 %package vfs-default_quota
584 Summary: VFS module to store default quotas in a specified quota record
585 Summary(pl.UTF-8): Moduł VFS do zapisywania domyślnych limitów w określonym rekordzie
586 Group: Networking/Daemons
587 Requires: %{name} = %{epoch}:%{version}-%{release}
589 %description vfs-default_quota
590 This VFS modules stores default quotas in a specified quota record.
592 %description vfs-default_quota -l pl.UTF-8
593 Ten moduł VFS zapisuje domyślne limity (quoty) w określonym rekordzie
596 %package vfs-expand_msdfs
597 Summary: VFS module for hosting a Microsoft Distributed File System Tree
598 Summary(pl.UTF-8): Moduł VFS obsługi Microsoft Distributed File System
599 Group: Networking/Daemons
600 Requires: %{name} = %{epoch}:%{version}-%{release}
602 %description vfs-expand_msdfs
603 A VFS module for hosting a Microsoft Distributed File System Tree.
605 The Distributed File System (DFS) provides a means of separating the
606 logical view of files and directories that users see from the actual
607 physical locations of these resources on the network. It allows for
608 higher availability, smoother storage expansion, load balancing, and
611 %description vfs-expand_msdfs -l pl.UTF-8
612 Moduł VFS do udostępniania drzewa systemu plików Microsoft Distributed
615 Distributed File System (DFS) umożliwia rozdzielanie logicznego widoku
616 plików i katalogów widocznych przez użytkowników z fizycznego
617 umiejscowienia tych zasobów w sieci. Pozwala to na wyższą dostępność,
618 płynniejsze powiększanie przestrzeni, rozdzielanie obciążenia itp.
620 %package vfs-fake_perms
621 Summary: VFS module to report read-only fires as writable
622 Summary(pl.UTF-8): Moduł VFS udający, że pliki tylko do odczytu są zapisywalne
623 Group: Networking/Daemons
624 Requires: %{name} = %{epoch}:%{version}-%{release}
626 %description vfs-fake_perms
627 This module allow Roaming Profile files and directories to be set (on
628 the Samba server under UNIX) as read only. This module will, if
629 installed on the Profiles share, report to the client that the Profile
630 files and directories are writeable. This satisfies the client even
631 though the files will never be overwritten as the client logs out or
634 %description vfs-fake_perms -l pl.UTF-8
635 Ten moduł pozwala na ustawienie plików i katalogów z wędrujących
636 profili (Roaming Profiles) jako tylko do odczytu. Moduł ten w
637 przypadku zainstalowania na udziale z profilami będzie zgłaszał
638 klientom, że pliki i katalogi z profilu są zapisywane. To wystarczy
639 klientom pomimo, że pliki nie zostaną nigdy nadpisane przy logowaniu
640 lub wylogowywaniu klienta.
642 %package vfs-notify_fam
643 Summary: VFS module to implement file change notifications
644 Summary(pl.UTF-8): Moduł VFS implementujący informowanie o zmianach w plikach
645 Group: Networking/Daemons
646 Requires: %{name} = %{epoch}:%{version}-%{release}
648 %description vfs-notify_fam
649 The vfs_notify_fam module makes use of the system FAM (File Alteration
650 Monitor) daemon to implement file change notifications for Windows
653 %description vfs-notify_fam -l pl.UTF-8
654 Ten moduł używa demona FAM (File Alteration Monitor) do implementacji
655 informowania o zmianach w plikach dla klientów Windows.
657 %package vfs-netatalk
658 Summary: VFS module for ease co-existence of samba and netatalk
659 Summary(pl.UTF-8): Moduł VFS ułatwiający współpracę serwisów samba i netatalk
660 Group: Networking/Daemons
661 Requires: %{name} = %{epoch}:%{version}-%{release}
663 %description vfs-netatalk
664 Package contains a netatalk VFS module for ease co-existence of Samba
665 and netatalk file sharing services.
667 %description vfs-netatalk -l pl.UTF-8
668 Pakiet zawiera moduł VFS netatalk umożliwiający współpracę usług samba
669 i netatalk przy udostępnianiu zasobów.
672 Summary: VFS module to add recycle bin facility to a samba share
673 Summary(pl.UTF-8): Moduł VFS dodający możliwość kosza do zasobu samby
674 Group: Networking/Daemons
675 Requires: %{name} = %{epoch}:%{version}-%{release}
677 %description vfs-recycle
678 VFS module to add recycle bin facility to a samba share.
680 %description vfs-recycle -l pl.UTF-8
681 Moduł VFS dodający możliwość kosza do zasobu samby.
683 %package vfs-readahead
684 Summary: VFS module for pre-loading the kernel buffer cache
685 Summary(pl.UTF-8): Moduł VFS do wczesnego odczytu danych do bufora cache jądra
686 Group: Networking/Daemons
687 Requires: %{name} = %{epoch}:%{version}-%{release}
689 %description vfs-readahead
690 This VFS module detects read requests at multiples of a given offset
691 (hex 0x80000 by default) and then tells the kernel via either the
692 readahead system call (on Linux) or the posix_fadvise system call to
693 pre-fetch this data into the buffer cache.
695 This module is useful for Windows Vista clients reading data using the
696 Windows Explorer program, which asynchronously does multiple file read
697 requests at offset boundaries of 0x80000 bytes.
699 %description vfs-readahead -l pl.UTF-8
700 Ten moduł VFS wykrywa żądania odczytu spod wielokrotności podanych
701 pozycji (domyślnie 0x80000 szesnastkowo) i instruuje jądro poprzez
702 wywołanie systemowe readahead (pod Linuksem) lub posix_fadvise do
703 wczesnego odczytu tych danych do bufora cache.
705 Ten moduł jest przydatny dla klientów Windows Vista odczytujących dane
706 przy użyciu programu Windows Explorer, który asynchronicznie wykonuje
707 wiele żądań odczytu plików spod pozycji o wielokrotnościach 0x80000
710 %package vfs-readonly
711 Summary: VFS module for read-only limitation for specified share
712 Summary(pl.UTF-8): Moduł VFS do ograniczania określonego udziału tylko do odczytu
713 Group: Networking/Daemons
714 Requires: %{name} = %{epoch}:%{version}-%{release}
716 %description vfs-readonly
717 This module performs a read-only limitation for specified share (or
718 all of them if it is loaded in a [global] section) based on period
719 definition in smb.conf.
721 %description vfs-readonly -l pl.UTF-8
722 Ten moduł wprowadza ograniczenie tylko do odczytu dla określonego
723 udziału (lub wszystkich, jeśli jest wczytywany w sekcji [global]) w
724 oparciu o definicje okresów w smb.conf.
726 %package vfs-shadow_copy
727 Summary: VFS module to make automatic copy of data in samba share
728 Summary(pl.UTF-8): Moduł VFS do tworzenia automatycznych kopii danych w zasobach samby
729 Group: Networking/Daemons
730 Requires: %{name} = %{epoch}:%{version}-%{release}
732 %description vfs-shadow_copy
733 VFS module to make automatic copy of data in samba share.
735 %description vfs-shadow_copy -l pl.UTF-8
736 Moduł VFS do tworzenia automatycznych kopii danych w zasobach samby.
738 %package vfs-vscan-antivir
739 Summary: On-access virus scanning for samba using AntiVir
740 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący AntiVir
741 Group: Networking/Daemons
742 Requires: %{name} = %{epoch}:%{version}-%{release}
743 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
745 %description vfs-vscan-antivir
746 A vfs-module for samba to implement on-access scanning using the
747 AntiVir antivirus software (which must be installed to use this).
749 %description vfs-vscan-antivir -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 AntiVir
752 (które musi być zainstalowane, aby wykorzystać ten moduł).
754 %package vfs-vscan-clamav
755 Summary: On-access virus scanning for samba using ClamAV
756 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący ClamAV
757 Group: Networking/Daemons
758 Requires: %{name} = %{epoch}:%{version}-%{release}
760 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
762 %description vfs-vscan-clamav
763 A vfs-module for samba to implement on-access scanning using the
764 ClamAV antivirus software (which must be installed to use this).
766 %description vfs-vscan-clamav -l pl.UTF-8
767 Moduł vfs do samby implementujący skaning antywirusowy w czasie
768 dostępu do plików korzystając z oprogramowania antywirusowego ClamAV
769 (które musi być zainstalowane, aby wykorzystać ten moduł).
771 %package vfs-vscan-fprot
772 Summary: On-access virus scanning for samba using FPROT
773 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący FPROT
774 Group: Networking/Daemons
775 Requires: %{name} = %{epoch}:%{version}-%{release}
776 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
777 Obsoletes: vscan-fprot
779 %description vfs-vscan-fprot
780 A vfs-module for samba to implement on-access scanning using the FPROT
781 antivirus software (which must be installed to use this).
783 %description vfs-vscan-fprot -l pl.UTF-8
784 Moduł vfs do samby implementujący skaning antywirusowy w czasie
785 dostępu do plików korzystając z oprogramowania antywirusowego FPROT
786 (które musi być zainstalowane, aby wykorzystać ten moduł).
788 %package vfs-vscan-fsav
789 Summary: On-access virus scanning for samba using F-Secure AntiVirus
790 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący F-Secure AntiVirus
791 Group: Networking/Daemons
792 Requires: %{name} = %{epoch}:%{version}-%{release}
793 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
794 Obsoletes: vscan-fsav
796 %description vfs-vscan-fsav
797 A vfs-module for samba to implement on-access scanning using the
798 F-Secure AntiVirus antivirus software (which must be installed to use
801 %description vfs-vscan-fsav -l pl.UTF-8
802 Moduł vfs do samby implementujący skaning antywirusowy w czasie
803 dostępu do plików korzystając z oprogramowania antywirusowego F-Secure
804 AntiVirus (które musi być zainstalowane, aby wykorzystać ten moduł).
806 %package vfs-vscan-kavp
807 Summary: On-access virus scanning for samba using Kaspersky AVP
808 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący Kaspersky AVP
809 Group: Networking/Daemons
810 Requires: %{name} = %{epoch}:%{version}-%{release}
811 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
812 Obsoletes: vscan-kavp
814 %description vfs-vscan-kavp
815 A vfs-module for samba to implement on-access scanning using the
816 Kaspersky AVP antivirus software (which must be installed to use
819 %description vfs-vscan-kavp -l pl.UTF-8
820 Moduł vfs do samby implementujący skaning antywirusowy w czasie
821 dostępu do plików korzystając z oprogramowania antywirusowego
822 Kaspersky AVP (które musi być zainstalowane, aby wykorzystać ten
825 %package vfs-vscan-mcafee
826 Summary: On-access virus scanning for samba using mcafee
827 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący mcafee
828 Group: Networking/Daemons
829 Requires: %{name} = %{epoch}:%{version}-%{release}
831 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
832 Obsoletes: vscan-mcafee
834 %description vfs-vscan-mcafee
835 A vfs-module for samba to implement on-access scanning using the
836 mcafee antivirus software (which must be installed to use this).
838 %description vfs-vscan-mcafee -l pl.UTF-8
839 Moduł vfs do samby implementujący skaning antywirusowy w czasie
840 dostępu do plików korzystając z oprogramowania antywirusowego mcafee
841 (które musi być zainstalowane, aby wykorzystać ten moduł).
843 %package vfs-vscan-mks
844 Summary: On-access virus scanning for samba using mks
845 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący mks
846 Group: Networking/Daemons
847 Requires: %{name} = %{epoch}:%{version}-%{release}
849 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
852 %description vfs-vscan-mks
853 A vfs-module for samba to implement on-access scanning using the mks
854 antivirus software (which must be installed to use this).
856 %description vfs-vscan-mks -l pl.UTF-8
857 Moduł vfs do samby implementujący skaning antywirusowy w czasie
858 dostępu do plików korzystając z oprogramowania antywirusowego mks
859 (które musi być zainstalowane, aby wykorzystać ten moduł).
861 %package vfs-vscan-openantivirus
862 Summary: On-access virus scanning for samba using OpenAntivirus
863 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący OpenAntiVirus
864 Group: Networking/Daemons
865 Requires: %{name} = %{epoch}:%{version}-%{release}
866 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
867 Obsoletes: vscan-openantivirus
869 %description vfs-vscan-openantivirus
870 A vfs-module for samba to implement on-access scanning using the
871 OpenAntivirus antivirus software (which must be installed to use
874 %description vfs-vscan-openantivirus -l pl.UTF-8
875 Moduł vfs do samby implementujący skaning antywirusowy w czasie
876 dostępu do plików korzystając z oprogramowania antywirusowego
877 OpenAntiVirus.org (które musi być zainstalowane, aby wykorzystać ten
880 %package vfs-vscan-sophos
881 Summary: On-access virus scanning for samba using Sophos
882 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący Sophos
883 Group: Networking/Daemons
884 Requires: %{name} = %{epoch}:%{version}-%{release}
885 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
886 Obsoletes: vscan-sophos
888 %description vfs-vscan-sophos
889 A vfs-module for samba to implement on-access scanning using the
890 Sophos antivirus software (which must be installed to use this).
892 %description vfs-vscan-sophos -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 Sophos
895 (które musi być zainstalowane, aby wykorzystać ten moduł).
897 %package vfs-vscan-symantec
898 Summary: On-access virus scanning for samba using Symantec
899 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący Symantec
900 Group: Networking/Daemons
901 Requires: %{name} = %{epoch}:%{version}-%{release}
902 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
903 Obsoletes: vscan-symantec
905 %description vfs-vscan-symantec
906 A vfs-module for samba to implement on-access scanning using the
907 Symantec antivirus software (which must be installed to use this).
909 %description vfs-vscan-symantec -l pl.UTF-8
910 Moduł vfs do samby implementujący skaning antywirusowy w czasie
911 dostępu do plików korzystając z oprogramowania antywirusowego firmy
912 Symantec (które musi być zainstalowane, aby wykorzystać ten moduł).
914 %package vfs-vscan-trend
915 Summary: On-access virus scanning for samba using Trend
916 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący Trend
917 Group: Networking/Daemons
918 Requires: %{name} = %{epoch}:%{version}-%{release}
919 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
920 Obsoletes: vscan-trend
922 %description vfs-vscan-trend
923 A vfs-module for samba to implement on-access scanning using the Trend
924 antivirus software (which must be installed to use this).
926 %description vfs-vscan-trend -l pl.UTF-8
927 Moduł vfs do samby implementujący skaning antywirusowy w czasie
928 dostępu do plików korzystając z oprogramowania antywirusowego Trend
929 (które musi być zainstalowane, aby wykorzystać ten moduł).
931 %package -n openldap-schema-samba
932 Summary: Samba LDAP schema
933 Summary(pl.UTF-8): Schemat LDAP dla samby
934 Group: Networking/Daemons
935 Requires(post,postun): sed >= 4.0
936 Requires: openldap-servers
938 %description -n openldap-schema-samba
939 This package contains samba.schema for openldap.
941 %description -n openldap-schema-samba -l pl.UTF-8
942 Ten pakiet zawiera schemat samby dla openldap-a.
945 Summary: Samba HTML documentation
946 Summary(pl.UTF-8): Documentacja samby w formacie HTML
949 %description doc-html
950 Samba HTML documentation.
952 %description doc-html -l pl.UTF-8
953 Documentacja samby w formacie HTML.
956 Summary: Samba documentation - PDF format
957 Summary(pl.UTF-8): Documentacja samby w formacie PDF
961 Samba PDF documentation.
963 %description doc-pdf -l pl.UTF-8
964 Documentacja samby w formacie PDF.
966 %package -n python-samba
967 Summary: Samba Module for Python
968 Group: Development/Languages/Python
969 %pyrequires_eq python
970 Requires: %{name}-common = %{epoch}:%{version}-%{release}
972 %description -n python-samba
973 Samba Module for Python.
984 %{__sed} -i 's#%SAMBAVERSION%#%{version}#' docs/htmldocs/index.html
991 install %{SOURCE10} source4/heimdal/lib/wind/rfc3454.txt
996 %{__autoconf} -Im4 -I../m4 -I../lib/replace -Ilib/replace -I../source4
998 --with-modulesdir=%{_sambalibdir} \
999 --with-rootsbindir=/sbin \
1000 --with-pammodulesdir=/%{_lib}/security \
1001 --with-acl-support \
1002 --with-aio-support \
1004 --with-libsmbclient \
1005 --with-lockdir=/var/lib/samba \
1007 --with-pam_smbpass \
1008 --with%{!?with_ads:out}-ads \
1009 --with-privatedir=%{_sysconfdir}/samba \
1012 --with-swatdir=%{_datadir}/swat \
1016 --without-included-popt \
1017 --%{?with_merged_build:en}%{!?with_merged_build:dis}able-merged-build \
1018 --enable-automatic-dependencies \
1020 --%{?with_avahi:en}%{!?with_avahi:dis}able-avahi \
1022 --with%{!?with_ldap:out}-ldap \
1023 --with%{!?with_kerberos5:out}-krb5
1025 %{__make} -j1 everything pam_smbpass bin/smbget bin/mount.cifs bin/vfstest
1028 %{__make} -C libsmbclient/smbwrapper \
1030 CFLAGS="%{rpmcflags} -fPIC \$(DEFS) \\\$(SMBINCLUDE)"
1036 CFLAGS="%{rpmcflags} -fPIC"
1040 cd samba-vscan-%{vscan_version}
1041 cp -f /usr/share/automake/config.sub .
1043 ln -s ../../../source3/lib .
1048 rm -rf $RPM_BUILD_ROOT
1049 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,pam.d,security,sysconfig/rc-inetd} \
1050 $RPM_BUILD_ROOT{/var/{log,log/archive,spool}/samba,/var/lib/samba/printing} \
1051 $RPM_BUILD_ROOT/var/log/samba/cores/{smbd,nmbd} \
1052 $RPM_BUILD_ROOT{/sbin,/%{_lib}/security,%{_libdir},%{_vfsdir},%{_includedir},%{_sambahome},%{schemadir}}
1054 %{__make} -C source3 install \
1055 DESTDIR=$RPM_BUILD_ROOT \
1056 CONFIGDIR=$RPM_BUILD_ROOT%{_sysconfdir}/samba
1058 install source3/script/mksmbpasswd.sh $RPM_BUILD_ROOT%{_sbindir}
1060 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/smb
1061 install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/samba
1062 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/swat
1063 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/samba
1064 install %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/samba
1065 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/samba/smb.conf
1066 install %{SOURCE8} $RPM_BUILD_ROOT/etc/rc.d/init.d/winbind
1067 install %{SOURCE9} $RPM_BUILD_ROOT/etc/sysconfig/winbind
1069 install nsswitch/libnss_winbind.so $RPM_BUILD_ROOT/%{_lib}/libnss_winbind.so.2
1070 ln -s libnss_winbind.so.2 $RPM_BUILD_ROOT/%{_lib}/libnss_winbind.so
1071 install nsswitch/libnss_wins.so $RPM_BUILD_ROOT/%{_lib}/libnss_wins.so.2
1072 ln -s libnss_wins.so.2 $RPM_BUILD_ROOT/%{_lib}/libnss_wins.so
1073 install source3/bin/wbinfo $RPM_BUILD_ROOT%{_bindir}
1074 install source3/bin/smbget $RPM_BUILD_ROOT%{_bindir}
1075 install source3/bin/vfstest $RPM_BUILD_ROOT%{_bindir}
1077 install source3/bin/libsmbclient.a $RPM_BUILD_ROOT%{_libdir}/libsmbclient.a
1080 install examples/libsmbclient/smbwrapper/smbwrapper.so $RPM_BUILD_ROOT%{_libdir}/smbwrapper.so
1081 install examples/libsmbclient/smbwrapper/smbsh $RPM_BUILD_ROOT%{_bindir}
1082 install examples/libsmbclient/smbwrapper/smbsh.1 $RPM_BUILD_ROOT%{_mandir}/man1
1084 # these are needed to build samba-pdbsql
1085 install -d $RPM_BUILD_ROOT%{_includedir}/%{name}/{tdb,nsswitch}
1086 cp -a source3/include/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}
1087 cp -a lib/tdb/include/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/tdb
1088 cp -a nsswitch/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/nsswitch
1092 install examples/VFS/samba-vscan-%{vscan_version}/*.so $RPM_BUILD_ROOT%{_vfsdir}
1093 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
1096 touch $RPM_BUILD_ROOT/var/lib/samba/{wins.dat,browse.dat}
1098 echo '127.0.0.1 localhost' > $RPM_BUILD_ROOT%{_sysconfdir}/samba/lmhosts
1101 install -d $RPM_BUILD_ROOT%{cups_serverbin}/backend
1102 ln -s %{_bindir}/smbspool $RPM_BUILD_ROOT%{cups_serverbin}/backend/smb
1105 > $RPM_BUILD_ROOT%{_sysconfdir}/samba/smbusers
1106 > $RPM_BUILD_ROOT/etc/security/blacklist.samba
1108 # we have this utility in tdb package
1109 rm -f $RPM_BUILD_ROOT{%{_bindir}/tdb{backup,dump}*,%{_mandir}/man8/tdb{backup,dump}.8*}
1112 rm -r $RPM_BUILD_ROOT%{_datadir}/swat/using_samba
1115 %if %{with merged_build}
1116 rm -r $RPM_BUILD_ROOT%{_bindir}/{gentest4,locktest4,masktest4,nsstest4}
1119 mv $RPM_BUILD_ROOT%{_bindir}/tdbtool $RPM_BUILD_ROOT%{_bindir}/tdbtool_samba
1120 %if %{with merged_build}
1121 mv $RPM_BUILD_ROOT%{_bindir}/tdbtool4 $RPM_BUILD_ROOT%{_bindir}/tdbtool4_samba
1125 install examples/LDAP/samba.schema $RPM_BUILD_ROOT%{schemadir}
1128 %find_lang pam_winbind
1130 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
1131 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
1132 find $RPM_BUILD_ROOT%{py_sitedir} -name "*.py" -o -name "*.a" -o -name "*.la" | xargs rm -f
1135 rm -rf $RPM_BUILD_ROOT
1138 /sbin/chkconfig --add smb
1139 if [ -f /var/lock/samba/connections.tdb -a ! -f /var/lib/samba/connections.tdb ]; then
1140 echo >&2 "Moving old /var/lock/samba contents to /var/lib/samba"
1141 /sbin/service smb stop >&2
1142 mv -f /var/lock/samba/*.tdb /var/lib/samba 2>/dev/null || :
1143 mv -f /var/lock/samba/*.dat /var/lib/samba 2>/dev/null || :
1144 if [ -d /var/lock/samba/printing ]; then
1145 mv -f /var/lock/samba/printing/*.tdb /var/lib/samba/printing 2>/dev/null || :
1147 /sbin/service smb start >&2
1149 %service smb restart "Samba daemons"
1153 if [ "$1" = "0" ]; then
1155 /sbin/chkconfig --del smb
1159 /sbin/chkconfig --add winbind
1160 %service winbind restart "Winbind daemon"
1163 if [ "$1" = "0" ]; then
1164 %service winbind stop
1165 /sbin/chkconfig --del winbind
1169 %service -q rc-inetd reload
1172 if [ "$1" = 0 ]; then
1173 %service -q rc-inetd reload
1176 %post -n openldap-schema-samba
1177 # dependant schemas: cosine(uid) inetorgperson(displayName) nis(gidNumber)
1178 %openldap_schema_register %{schemadir}/samba.schema -d cosine,inetorgperson,nis
1179 %service -q ldap restart
1181 %postun -n openldap-schema-samba
1182 if [ "$1" = "0" ]; then
1183 %openldap_schema_unregister %{schemadir}/samba.schema
1184 %service -q ldap restart
1187 %triggerpostun -- samba < 1.9.18p7
1188 if [ "$1" != "0" ]; then
1189 /sbin/chkconfig --add smb
1192 %triggerpostun -- samba < 3.4.0
1193 %banner %{name} << EOF
1194 !!! WARNING !!! The default passdb backend has been changed to 'tdbsam'!
1195 That breaks existing setups using the 'smbpasswd' backend without explicit declaration!
1196 Please use 'passdb backend = smbpasswd' if you would like to stick to the 'smbpasswd'
1197 backend or convert your smbpasswd entries using e.g. 'pdbedit -i smbpasswd -e tdbsam'.
1201 %defattr(644,root,root,755)
1202 %attr(755,root,root) %{_sbindir}/nmbd
1203 %attr(755,root,root) %{_sbindir}/smbd
1204 %attr(755,root,root) %{_sbindir}/mksmbpasswd.sh
1205 %if %{with merged_build}
1206 %attr(755,root,root) %{_bindir}/ad2oLschema4
1207 %attr(755,root,root) %{_bindir}/oLschema2ldif4
1208 %attr(755,root,root) %{_bindir}/reg*
1209 # "This utility disabled until rewritten"
1210 #%attr(755,root,root) %{_bindir}/setnttoken4
1212 %attr(755,root,root) %{_bindir}/ldb*
1213 %attr(755,root,root) %{_bindir}/smbstatus
1214 %attr(755,root,root) %{_bindir}/smbpasswd
1215 %attr(755,root,root) %{_bindir}/smbcontrol
1216 %attr(755,root,root) %{_bindir}/tdbtool_samba
1218 %dir %{_libdir}/%{name}/pdb
1220 %attr(755,root,root) %{_vfsdir}/acl_tdb.so
1221 %attr(755,root,root) %{_vfsdir}/acl_xattr.so
1222 %attr(755,root,root) %{_vfsdir}/aio_fork.so
1223 %attr(755,root,root) %{_vfsdir}/dirsort.so
1224 %attr(755,root,root) %{_vfsdir}/fileid.so
1225 %attr(755,root,root) %{_vfsdir}/preopen.so
1226 %attr(755,root,root) %{_vfsdir}/shadow_copy2.so
1227 %attr(755,root,root) %{_vfsdir}/smb_traffic_analyzer.so
1228 %attr(755,root,root) %{_vfsdir}/streams_depot.so
1229 %attr(755,root,root) %{_vfsdir}/streams_xattr.so
1230 %attr(755,root,root) %{_vfsdir}/syncops.so
1231 %attr(755,root,root) %{_vfsdir}/xattr_tdb.so
1232 %{_mandir}/man8/vfs_acl_tdb.8*
1233 %{_mandir}/man8/vfs_acl_xattr.8*
1234 %{_mandir}/man8/vfs_dirsort.8*
1235 %{_mandir}/man8/vfs_fileid.8*
1236 %{_mandir}/man8/vfs_preopen.8*
1237 %{_mandir}/man8/vfs_shadow_copy2.8*
1238 %{_mandir}/man8/vfs_smb_traffic_analyzer.8*
1239 %{_mandir}/man8/vfs_streams_xattr.8*
1240 %{_mandir}/man8/vfs_streams_depot.8*
1241 %{_mandir}/man8/vfs_xattr_tdb.8*
1244 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/smbusers
1245 %attr(754,root,root) /etc/rc.d/init.d/smb
1246 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/samba
1247 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/samba
1248 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/samba
1249 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.samba
1250 %{_mandir}/man1/ldb*.1*
1251 %{_mandir}/man1/log2pcap.1*
1252 %{_mandir}/man1/smbstatus.1*
1253 %{_mandir}/man1/smbcontrol.1*
1254 %{_mandir}/man5/smbpasswd.5*
1255 %{_mandir}/man7/samba.7*
1256 %{_mandir}/man8/nmbd.8*
1257 %{_mandir}/man8/smbd.8*
1258 %{_mandir}/man8/smbpasswd.8*
1262 %ghost /var/lib/samba/*.dat
1263 %dir /var/lib/samba/printing
1265 %attr(750,root,root) %dir /var/log/samba
1266 %attr(750,root,root) %dir /var/log/samba/cores
1267 %attr(750,root,root) %dir /var/log/samba/cores/smbd
1268 %attr(750,root,root) %dir /var/log/samba/cores/nmbd
1269 %attr(750,root,root) %dir /var/log/archive/samba
1270 %attr(1777,root,root) %dir /var/spool/samba
1275 %files winbind -f pam_winbind.lang
1276 %defattr(644,root,root,755)
1277 %attr(755,root,root) %{_sbindir}/winbindd
1278 %attr(755,root,root) %{_bindir}/wbinfo
1279 %if %{with merged_build}
1280 %attr(755,root,root) %{_bindir}/wbinfo4
1282 %attr(755,root,root) /%{_lib}/security/pam_winbind*
1283 %attr(755,root,root) /%{_lib}/libnss_winbind*
1284 %attr(754,root,root) /etc/rc.d/init.d/winbind
1285 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/winbind
1286 %{_mandir}/man1/wbinfo*.1*
1287 %{_mandir}/man8/pam_winbind.8*
1288 %{_mandir}/man8/winbindd*.8*
1291 %defattr(644,root,root,755)
1292 %attr(755,root,root) /%{_lib}/libnss_wins*
1295 %defattr(644,root,root,755)
1296 %if %{with merged_build}
1297 %attr(755,root,root) %{_bindir}/cifsdd4
1298 %attr(755,root,root) %{_bindir}/net4
1299 %attr(755,root,root) %{_bindir}/nmblookup4
1300 %attr(755,root,root) %{_bindir}/smbclient4
1301 %attr(755,root,root) %{_sbindir}/cifs.upcall
1302 %{_mandir}/man8/cifs.upcall.8*
1304 %attr(755,root,root) /sbin/mount.cifs
1305 %attr(755,root,root) /sbin/umount.cifs
1306 %attr(755,root,root) %{_bindir}/findsmb
1307 %attr(755,root,root) %{_bindir}/net
1308 %attr(755,root,root) %{_bindir}/nmblookup
1309 %attr(755,root,root) %{_bindir}/rpcclient
1310 %attr(755,root,root) %{_bindir}/sharesec
1311 %attr(755,root,root) %{_bindir}/smbcacls
1312 %attr(755,root,root) %{_bindir}/smbclient
1313 %attr(755,root,root) %{_bindir}/smbsh
1314 %attr(755,root,root) %{_bindir}/smbtar
1315 %attr(755,root,root) %{_bindir}/smbtree
1316 %attr(755,root,root) %{_libdir}/smbwrapper.so
1317 %{_mandir}/man1/findsmb.1*
1318 %{_mandir}/man1/nmblookup.1*
1319 %{_mandir}/man1/rpcclient.1*
1320 %{_mandir}/man1/sharesec.1*
1321 %{_mandir}/man1/smbcacls.1*
1322 %{_mandir}/man1/smbclient.1*
1323 %{_mandir}/man1/smbsh.1*
1324 %{_mandir}/man1/smbtar.1*
1325 %{_mandir}/man1/smbtree.1*
1326 %{_mandir}/man8/net.8*
1327 %{_mandir}/man8/*mount.cifs.8*
1330 %defattr(644,root,root,755)
1331 %if %{with merged_build}
1332 %attr(755,root,root) %{_bindir}/getntacl4
1333 %attr(755,root,root) %{_bindir}/ndrdump4
1334 %attr(755,root,root) %{_bindir}/ntlm_auth4
1335 %attr(755,root,root) %{_bindir}/testparm4
1337 %doc README Manifest WHATSNEW.txt
1338 %doc Roadmap docs/registry/*
1339 %doc docs/{history,THANKS}
1340 %dir %{_sysconfdir}/samba
1341 %attr(664,root,fileshare) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/smb.conf
1342 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/lmhosts
1343 %attr(755,root,root) %{_bindir}/eventlogadm
1344 %attr(755,root,root) %{_bindir}/ntlm_auth
1345 %attr(755,root,root) %{_bindir}/pdbedit
1346 %attr(755,root,root) %{_bindir}/profiles
1347 %attr(755,root,root) %{_bindir}/smbcquotas
1348 %attr(755,root,root) %{_bindir}/testparm
1349 %attr(755,root,root) %{_bindir}/vfstest
1350 %dir %{_libdir}/%{name}
1351 %{_libdir}/%{name}/*.dat
1352 %dir %{_libdir}/%{name}/auth
1353 %attr(755,root,root) %{_libdir}/%{name}/auth/script.so
1354 %dir %{_libdir}/%{name}/charset
1355 %attr(755,root,root) %{_libdir}/%{name}/charset/*.so
1356 %{_mandir}/man1/ntlm_auth.1*
1357 %{_mandir}/man1/profiles.1*
1358 %{_mandir}/man1/smbcquotas.1*
1359 %{_mandir}/man1/testparm.1*
1360 %{_mandir}/man1/vfstest.1*
1361 #%{_mandir}/man1/log2pcap.1*
1362 %{_mandir}/man5/lmhosts.5*
1363 %{_mandir}/man5/smb.conf.5*
1364 %{_mandir}/man8/pdbedit.8*
1365 %{_mandir}/man8/eventlogadm.8*
1366 %{_mandir}/man8/idmap_ad.8*
1367 %{_mandir}/man8/idmap_adex.8*
1368 %{_mandir}/man8/idmap_hash.8*
1369 %{_mandir}/man8/idmap_ldap.8*
1370 %{_mandir}/man8/idmap_nss.8*
1371 %{_mandir}/man8/idmap_rid.8*
1372 %{_mandir}/man8/idmap_tdb.8*
1373 %{_mandir}/man8/idmap_tdb2.8*
1374 %{_mandir}/man8/tdbtool.8*
1377 %defattr(644,root,root,755)
1378 #%doc swat/README* swat/help/*
1380 %attr(755,root,root) %{_sbindir}/swat
1381 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/swat
1382 %dir %{_datadir}/swat
1383 %{_datadir}/swat/help
1384 %{_datadir}/swat/images
1385 %{_datadir}/swat/include
1386 %dir %{_datadir}/swat/lang
1387 %lang(ja) %{_datadir}/swat/lang/ja
1388 %lang(tr) %{_datadir}/swat/lang/tr
1389 %lang(de) %{_libdir}/%{name}/de.msg
1390 %{_libdir}/%{name}/en.msg
1391 %lang(fi) %{_libdir}/%{name}/fi.msg
1392 %lang(fr) %{_libdir}/%{name}/fr.msg
1393 %lang(it) %{_libdir}/%{name}/it.msg
1394 %lang(ja) %{_libdir}/%{name}/ja.msg
1395 %lang(nl) %{_libdir}/%{name}/nl.msg
1396 %lang(pl) %{_libdir}/%{name}/pl.msg
1397 %lang(ru) %{_libdir}/%{name}/ru.msg
1398 %lang(tr) %{_libdir}/%{name}/tr.msg
1399 %{_mandir}/man8/swat.8*
1401 %files -n pam-pam_smbpass
1402 %defattr(644,root,root,755)
1403 %doc source3/pam_smbpass/{CHAN*,README,TODO} source3/pam_smbpass/samples
1404 %attr(755,root,root) /%{_lib}/security/pam_smbpass.so
1406 %files -n libsmbclient
1407 %defattr(644,root,root,755)
1408 %attr(755,root,root) %{_libdir}/libsmbclient.so.*
1409 %attr(755,root,root) %{_libdir}/libwbclient.so.*
1410 %{_mandir}/man7/libsmbclient.7*
1412 %files -n libsmbclient-devel
1413 %defattr(644,root,root,755)
1414 %attr(755,root,root) %{_libdir}/libsmbclient.so
1415 %attr(755,root,root) %{_libdir}/libwbclient.so
1416 %{_includedir}/libsmbclient.h
1417 %{_includedir}/wbclient.h
1420 %defattr(644,root,root,755)
1421 %attr(755,root,root) %{_libdir}/libtalloc.so.*
1423 %files -n libtalloc-devel
1424 %defattr(644,root,root,755)
1425 %attr(755,root,root) %{_libdir}/libtalloc.so
1426 %{_includedir}/talloc.h
1429 %defattr(644,root,root,755)
1430 %{_includedir}/%{name}
1432 %files -n libsmbclient-static
1433 %defattr(644,root,root,755)
1434 %{_libdir}/libsmbclient.a
1437 %defattr(644,root,root,755)
1438 %attr(755,root,root) %{_bindir}/smbget
1439 %{_mandir}/man1/smbget.1*
1440 %{_mandir}/man5/smbgetrc.5*
1443 %files -n cups-backend-smb
1444 %defattr(644,root,root,755)
1445 %attr(755,root,root) %{_bindir}/smbspool
1446 %attr(755,root,root) %{cups_serverbin}/backend/smb
1447 %{_mandir}/man8/smbspool.8*
1451 %defattr(644,root,root,755)
1452 %attr(755,root,root) %{_vfsdir}/audit.so
1453 %attr(755,root,root) %{_vfsdir}/extd_audit.so
1454 %attr(755,root,root) %{_vfsdir}/full_audit.so
1455 %{_mandir}/man8/vfs_audit.8*
1456 %{_mandir}/man8/vfs_extd_audit.8*
1457 %{_mandir}/man8/vfs_full_audit.8*
1460 %defattr(644,root,root,755)
1461 %attr(755,root,root) %{_vfsdir}/cap.so
1462 %{_mandir}/man8/vfs_cap.8*
1464 %files vfs-default_quota
1465 %defattr(644,root,root,755)
1466 %attr(755,root,root) %{_vfsdir}/default_quota.so
1467 %{_mandir}/man8/vfs_default_quota.8*
1469 %files vfs-expand_msdfs
1470 %defattr(644,root,root,755)
1471 %attr(755,root,root) %{_vfsdir}/expand_msdfs.so
1473 %files vfs-fake_perms
1474 %defattr(644,root,root,755)
1475 %attr(755,root,root) %{_vfsdir}/fake_perms.so
1476 %{_mandir}/man8/vfs_fake_perms.8*
1478 %files vfs-notify_fam
1479 %defattr(644,root,root,755)
1480 %attr(755,root,root) %{_vfsdir}/notify_fam.so
1481 %{_mandir}/man8/vfs_notify_fam.8*
1484 %defattr(644,root,root,755)
1485 %attr(755,root,root) %{_vfsdir}/netatalk.so
1486 %{_mandir}/man8/vfs_netatalk.8*
1488 %files vfs-readahead
1489 %defattr(644,root,root,755)
1490 %attr(755,root,root) %{_vfsdir}/readahead.so
1491 %{_mandir}/man8/vfs_readahead.8*
1494 %defattr(644,root,root,755)
1495 %attr(755,root,root) %{_vfsdir}/readonly.so
1496 %{_mandir}/man8/vfs_readonly.8*
1499 %defattr(644,root,root,755)
1500 %attr(755,root,root) %{_vfsdir}/recycle.so
1501 %{_mandir}/man8/vfs_recycle.8*
1503 %files vfs-shadow_copy
1504 %defattr(644,root,root,755)
1505 %attr(755,root,root) %{_vfsdir}/shadow_copy.so
1506 %{_mandir}/man8/vfs_shadow_copy.8*
1509 %files vfs-vscan-antivir
1510 %defattr(644,root,root,755)
1511 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1512 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-antivir.conf
1513 %attr(755,root,root) %{_vfsdir}/vscan-antivir.so
1515 %files vfs-vscan-clamav
1516 %defattr(644,root,root,755)
1517 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1518 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-clamav.conf
1519 %attr(755,root,root) %{_vfsdir}/vscan-clamav.so
1521 %files vfs-vscan-fprot
1522 %defattr(644,root,root,755)
1523 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1524 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-fprotd.conf
1525 %attr(755,root,root) %{_vfsdir}/vscan-fprotd.so
1527 %files vfs-vscan-fsav
1528 %defattr(644,root,root,755)
1529 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1530 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-fsav.conf
1531 %attr(755,root,root) %{_vfsdir}/vscan-fsav.so
1533 %files vfs-vscan-kavp
1534 %defattr(644,root,root,755)
1535 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1536 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-kavp.conf
1537 %attr(755,root,root) %{_vfsdir}/vscan-kavp.so
1539 %files vfs-vscan-mcafee
1540 %defattr(644,root,root,755)
1541 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1542 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-mcdaemon.conf
1543 %attr(755,root,root) %{_vfsdir}/vscan-mcdaemon.so
1546 %ifarch %{ix86} %{x8664}
1547 %files vfs-vscan-mks
1548 %defattr(644,root,root,755)
1549 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1550 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-mks32.conf
1551 %attr(755,root,root) %{_vfsdir}/vscan-mksd.so
1555 %files vfs-vscan-openantivirus
1556 %defattr(644,root,root,755)
1557 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1558 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-oav.conf
1559 %attr(755,root,root) %{_vfsdir}/vscan-oav.so
1561 %files vfs-vscan-sophos
1562 %defattr(644,root,root,755)
1563 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1564 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-sophos.conf
1565 %attr(755,root,root) %{_vfsdir}/vscan-sophos.so
1567 %files vfs-vscan-symantec
1568 %defattr(644,root,root,755)
1569 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1570 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-icap.conf
1571 %attr(755,root,root) %{_vfsdir}/vscan-icap.so
1573 %files vfs-vscan-trend
1574 %defattr(644,root,root,755)
1575 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1576 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-trend.conf
1577 %attr(755,root,root) %{_vfsdir}/vscan-trend.so
1581 %files -n openldap-schema-samba
1582 %defattr(644,root,root,755)
1583 %{schemadir}/*.schema
1587 %defattr(644,root,root,755)
1588 %doc docs/htmldocs/*
1591 %defattr(644,root,root,755)
1595 %files -n python-samba
1596 %defattr(644,root,root,755)
1597 %attr(755,root,root) %{py_sitedir}/*.so
1598 %dir %{py_sitedir}/samba
1599 %attr(755,root,root) %{py_sitedir}/samba/*.so
1600 %{py_sitedir}/samba/*.py[co]
1601 %dir %{py_sitedir}/samba/dcerpc
1602 %{py_sitedir}/samba/dcerpc/*.py[co]
1603 %attr(755,root,root) %{py_sitedir}/samba/dcerpc/*.so
1604 %dir %{py_sitedir}/samba/tests
1605 %{py_sitedir}/samba/tests/*.py[co]
1606 %dir %{py_sitedir}/samba/tests/dcerpc
1607 %{py_sitedir}/samba/tests/dcerpc/*.py[co]
1608 %dir %{py_sitedir}/samba/torture
1609 %{py_sitedir}/samba/torture/*.py[co]