3 %bcond_without ads # without ActiveDirectory support
4 %bcond_without cups # without CUPS support
5 %bcond_without kerberos5 # without Kerberos V support
6 %bcond_without ldap # without LDAP support
8 %bcond_with mks # with vfs-mks (mksd dependency not distributale)
11 # ADS requires kerberos5 and LDAP
12 %if !%{with kerberos5} || !%{with ldap}
15 %define vscan_version 0.3.6c-beta5
17 Summary(cs.UTF-8): Server SMB
18 Summary(da.UTF-8): SMB server
19 Summary(de.UTF-8): SMB-Server
20 Summary(es.UTF-8): El servidor SMB
21 Summary(fi.UTF-8): SMB-palvelin
22 Summary(fr.UTF-8): Serveur SMB
23 Summary(it.UTF-8): Server SMB
24 Summary(ja.UTF-8): Samba SMB サーバー
25 Summary(ko.UTF-8): 삼바 SMB 서버
26 Summary(pl.UTF-8): Serwer SMB
27 Summary(pt_BR.UTF-8): Cliente e servidor SMB
28 Summary(ru.UTF-8): SMB клиент и сервер
29 Summary(tr.UTF-8): SMB sunucusu
30 Summary(uk.UTF-8): SMB клієнт та сервер
31 Summary(zh_CN.UTF-8): Samba 客户端和服务器
37 Group: Networking/Daemons
38 Source0: http://www.samba.org/samba/ftp/stable/%{name}-%{version}.tar.gz
39 # Source0-md5: 322379680c12057f57685652a35a6b05
43 Source4: %{name}.sysconfig
44 Source5: %{name}.logrotate
46 Source7: http://www.openantivirus.org/download/%{name}-vscan-%{vscan_version}.tar.gz
47 # Source7-md5: 8f1dd119172e04e6d7c2d05526a4cf8b
49 Source9: winbind.sysconfig
50 Source10: %{name}-rfc3454.txt
51 Patch0: %{name}-smbwrapper.patch
52 Patch1: %{name}-c++-nofail.patch
53 Patch2: %{name}-pthread.patch
54 Patch3: %{name}-nscd.patch
55 Patch4: %{name}-lprng-no-dot-printers.patch
56 Patch5: %{name}-python.patch
57 Patch6: %{name}-client-upcall-buildfix.patch
58 URL: http://www.samba.org/
59 BuildRequires: acl-devel
60 BuildRequires: autoconf
61 BuildRequires: automake
62 %{?with_avahi:BuildRequires: avahi-devel}
63 %{?with_cups:BuildRequires: cups-devel >= 1:1.2.0}
64 BuildRequires: dmapi-devel
65 BuildRequires: fam-devel
67 %{?with_kerberos5:BuildRequires: heimdal-devel}
68 BuildRequires: keyutils-devel
69 BuildRequires: libmagic-devel
70 BuildRequires: libnscd-devel
71 BuildRequires: libtool >= 2:1.4d
72 BuildRequires: make >= 3.81
73 BuildRequires: ncurses-devel >= 5.2
74 %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
75 BuildRequires: openssl-devel >= 0.9.7d
76 BuildRequires: pam-devel >= 0.99.8.1
77 BuildRequires: popt-devel
78 %{?with_pgsql:BuildRequires: postgresql-devel}
79 BuildRequires: python-devel
80 BuildRequires: readline-devel >= 4.2
81 BuildRequires: rpmbuild(macros) >= 1.304
82 BuildRequires: sed >= 4.0
83 BuildRequires: xfsprogs-devel
84 Requires(post,preun): /sbin/chkconfig
85 Requires: %{name}-common = %{epoch}:%{version}-%{release}
86 Requires: logrotate >= 3.7-4
87 Requires: pam >= 0.99.8.1
89 Requires: setup >= 2.4.6-7
90 # smbd links with libcups
91 %{?with_cups:Requires: cups-lib >= 1:1.2.0}
92 Obsoletes: samba-pdb-xml
93 Obsoletes: samba-vfs-block
94 Obsoletes: python-samba
95 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
97 %define _vfsdir %{_libdir}/%{name}/vfs
98 %define _sambahome /home/services/samba
99 %define _sambalibdir %{_libdir}/%{name}
101 %define cups_serverbin %{_prefix}/lib/cups
103 %define schemadir /usr/share/openldap/schema
105 # CFLAGS modified (the second ./configure)
106 %undefine configure_cache
109 Samba provides an SMB server which can be used to provide network
110 services to SMB (sometimes called "Lan Manager") clients, including
111 various versions of MS Windows, OS/2, and other Linux machines. Samba
112 also provides some SMB clients, which complement the built-in SMB
113 filesystem in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols
114 and does NOT need NetBEUI (Microsoft Raw NetBIOS frame) protocol.
116 This release is known as the "Locking Update" and has full support for
117 Opportunistic File Locking. In addition this update includes native
118 support for Microsoft encrypted passwords, improved browse list and
119 WINS database management.
121 Please refer to the WHATSNEW.txt document for fixup information. This
122 binary release includes encrypted password support. Please read the
123 smb.conf file for implementation details.
125 %description -l cs.UTF-8
126 Samba poskytuje server SMB, který lze použít pro poskytování síťových
127 služeb klientům SMB (někdy nazývaných klienti "LAN manažer") včetně
128 klientů různých verzí MS Windows, OS/2 a dalších linuxových strojů.
129 Samba též poskytuje některé klienty SMB, kteří komplementují vestavěný
130 souborový systém SMB v Linuxu. Samba používá protokoly NetBIOS přes
131 TCP/IP (NetBT) a NEpotřebuje protokol NetBEUI (neformátovaný rámec
132 NetBIOS od společnosti Microsoft.
134 %description -l da.UTF-8
135 Samba tilbyder en SMB server som kan bruges til at tilbyde netværk
136 services til SMB (også kaldet "Lan Manager") klienter, incl.
137 forskellige versioner af MS Windows, OS/2, og andre Linux maskiner.
138 Samba tilbyder også SMB klienter, som udbygger det indbyggede SMB
139 filsystem i Linux. Samba benytter NetBIOS over TCP/IP (NetBT)
140 protocolen og kræver ikke NetBEUI (Microsoft Raw NetBIOS frame)
143 %description -l de.UTF-8
144 Samba stellt einen SMB-Server zum Anbieten von Netzwerkdiensten für
145 SMB-Clients (auch "Lan Manager" genannt) zur Verfügung, darunter
146 verschiedenen Versionen von MS Windows-, OS/2- und anderen
147 Linux-Rechnern. Samba enthält außerdem einige SMB-Clients, die das in
148 Linux integrierte SMB-Dateisystem ergänzen. Samba benutzt
149 NetBIOS-über-TCP/IP (NetBT)-Protokolle und benötigt KEIN NetBEUI
150 (Microsoft Raw NetBIOS frame)-Protokoll.
152 %description -l es.UTF-8
153 Samba provee un servidor SMB que se puede usar para ofrecer servicios
154 de red a clientes SMB (algunas veces se le llama de "Lan Manager"),
155 incluyendo varias versiones de MS Windows, OS/2, y otras máquinas
156 Linux. Samba también ofrece algunos clientes SMB, que complementan el
157 sistema de archivos SMB de Linux. Samba usa el protocolo NetBIOS sobre
158 TCP/IP (NetBT) y no necesita del protocolo NetBEUI (Microsoft Raw
161 %description -l fi.UTF-8
162 Samba on SMB-palvelin, jota voidaan käyttää SMB-asiakasohjelmien
163 verkkopalvelujen tarjoajana. SMB-protokollaa kutsutaan joskus "Lan
164 Manager" protokollaksi ja asiakasohjelmat toimivat dosissa,
165 Windowseissa, OS/2:ssa ja toisissa Linux-koneissa. Samban mukana on
166 myös joitakin SMB-asiakasohjelmia, jotka täydentävät Linuxin
167 kernelissä olevaa SMB-tiedostojärjestelmän tukea. Samba vaatii NetBIOS
168 over TCP/IP (NetBT) protokollaa eikä tarvitse tai pysty käyttämään
171 %description -l it.UTF-8
172 Samba fornisce un server SMB che puo` essere usato per fornire servizi
173 di rete ai client SMB, incluse le versioni MS Windows, OS/2 e per
174 altre macchine Linux. Samba fornisce anche i client SMB. Samba usa
175 NetBIOS sopra TCP/IP e non ha bisogno del protocollo NetBEUI.
177 %description -l ja.UTF-8
178 Samba は MS Windows の様々なバージョン、OS/2 そして他の Linux マシン
179 を含む SMB (たまに "Lan Manager" と呼ばれる)
180 クライアントにネットワーク サービスを提供するために使用される SMB
181 サーバを提供します。Samba は NetBIOS over TCP/IP (NetBT)
182 プロトコルを使用し、 NetBEUI(Microsoft Raw NetBIOS frame)
185 Samba ほとんど動作する NT ドメインコントロールの機能を特徴とし、
186 好きなブラウザを使って samba の smb.conf ファイルをリモート管理する
187 新しい SWAT (Samba Web Administration Tool) を含みます。
188 目下のところこれは inetd を通して TCP ポート 901 で有効になります。
190 %description -l ko.UTF-8
191 삼바는 MS Windows, OS/2, 혹은 다른 리눅스 머신을 포함하는 SMB(혹은
192 "Lan Manager"라고도 불림) 클라이언트를 네트워크 서비스 위해 사용할 수
193 있는 SMB 서버를 제공한다. 삼바는 TCP/IP 프로토콜을 통해 NetBIOS를
194 사용하고 NetBEUI (Microsoft Raw NetBIOS 프레임) 프로토콜은 필요하지
197 삼바-2.2 의 특징은 NT 도메인 컨트롤의 성능으로 작업을 하고, 새로운
198 SWAT(Samba Web Administration Tool)로 웹브라우저를 사용하여 원격지에서
199 삼바의 smb.conf 파일을 관리하도록 한다. 이러한 경우 inetd 데몬을 통해
202 최근 정보로 WHATSNEW.txt 파일의 문서를 참고하도록 한다. 바이너리의
203 릴리즈는 암호화된 패스워드를 제공한다.
205 %description -l pl.UTF-8
206 Samba udostępnia serwer SMB, który może być użyty w celu dostarczenia
207 usług sieciowych (potocznie zwanych "Lan Manager"), dla klientów
208 takich jak MS Windows, OS/2 a także maszyn linuksowych. W pakiecie
209 znajduje się również oprogramowanie klienckie. Samba używa protokołu
210 NetBIOS po TCP/IP (NetBT) i nie wymaga protokołu NetBEUI. Ta wersja ma
211 pełne wsparcie dla blokowania plików, a także wsparcie dla kodowania
212 haseł w standardzie MS i zarządzania bazą WINS.
214 %description -l pt_BR.UTF-8
215 O Samba provê um servidor SMB que pode ser usado para oferecer
216 serviços de rede a clientes SMB (algumas vezes chamado de "Lan
217 Manager"), incluindo várias versões de MS Windows, OS/2, e outras
218 máquinas Linux. O Samba também fornece alguns clientes SMB, que
219 complementam o sistema de arquivos SMB do Linux. O Samba usa o
220 protocolo NetBIOS sobre TCP/IP (NetBT) e não necessita do protocolo
221 NetBEUI (Microsoft Raw NetBIOS frame).
223 O Samba inclui a maioria das características de um servidor de
224 Controle de Domínios NT e o SWAT (Samba Web Administration Tool), que
225 permite que o arquivo smb.conf seja gerenciado remotamente através de
226 um navegador. Atualmente isto está sendo habilitado na porta TCP 901
229 %description -l ru.UTF-8
230 Samba предоставляет SMB-сервер, который может быть использован для
231 предоставления сетевых сервисов SMB (иногда называемым "Lan Manager")
232 клиентам, включая разнообразные версии MS Windows, OS/2, и другие
233 Linux-машины. Samba также предоставляет SMB-клиентов, которые работают
234 со встроенной в Linux файловой системой SMB.
236 Samba использует протокол NetBIOS over TCP/IP (NetBT) и не нуждается в
237 протоколе NetBEUI (Microsoft Raw NetBIOS frame).
239 Samba содержит практически работающую реализацию NT Domain Control и
240 включает новый SWAT (Samba Web Administration Tool), который позволяет
241 удаленно управлять конфигурационным файлом smb.conf при помощи вашего
242 любимого WEB-броузера. Пока что он разрешен через inetd на TCP-порту
245 %description -l uk.UTF-8
246 Samba надає SMB-сервер, що може бути використаний для надання
247 мережевих сервісів SMB (що їх іноді називають "Lan Manager") клієнтам,
248 включаючи різноманітні версії MS Windows, OS/2, та інші Linux-машини.
249 Samba також надає SMB-клієнтів, що працюють з вбудованою в Linux
250 файловою системою SMB.
252 Samba використовує протокол NetBIOS over TCP/IP (NetBT) та не потребує
253 протоколу NetBEUI (Microsoft Raw NetBIOS frame).
255 Samba містить майже працюючу реализацію NT Domain Control та новый
256 SWAT (Samba Web Administration Tool), котрий дозволяє віддалено
257 керувати конфігураційним файлом smb.conf за допомогою вашого
258 улюбленого WEB-броузера. Поки що він дозволений через inetd на
262 Summary: Samba Web Administration Tool
263 Summary(pl.UTF-8): Narzędzie administracyjne serwisu Samba
264 Summary(pt_BR.UTF-8): Samba SWAT e documentação Web
265 Summary(ru.UTF-8): Программа конфигурации SMB-сервера Samba
266 Summary(uk.UTF-8): Програма конфигурації SMB-сервера Samba
267 Group: Networking/Admin
268 Requires: %{name} = %{epoch}:%{version}-%{release}
270 Requires: rc-inetd >= 0.8.2
274 swat allows a Samba administrator to configure the complex smb.conf
275 file via a Web browser. In addition, a swat configuration page has
276 help links to all the configurable options in the smb.conf file
277 allowing an administrator to easily look up the effects of any change.
279 %description swat -l pl.UTF-8
280 swat pozwala na kompleksową konfigurację smb.conf przy pomocy
283 %description swat -l pt_BR.UTF-8
284 SWAT - ferramentada Web de configuração do Samba.
286 %description swat -l ru.UTF-8
287 Пакет samba-swat включает новый SWAT (Samba Web Administration Tool),
288 для удаленного администрирования файла smb.conf при помощи вашего
289 любимого Web-браузера.
291 %description swat -l uk.UTF-8
292 Пакет samba-swat містить новий SWAT (Samba Web Administration Tool),
293 для дистанційного адміністрування файлу smb.conf за допомогою вашого
294 улюбленого Web-браузеру.
297 Summary: Samba client programs
298 Summary(es.UTF-8): Cliente SMB de Samba
299 Summary(ja.UTF-8): Samba (SMB) クライアントプログラム
300 Summary(pl.UTF-8): Klienci serwera Samba
301 Summary(pt_BR.UTF-8): Cliente SMB do samba
302 Summary(ru.UTF-8): Клиентские программы Samba (SMB)
303 Summary(uk.UTF-8): Клієнтські програми Samba (SMB)
304 Group: Applications/Networking
305 Requires: %{name}-common = %{epoch}:%{version}-%{release}
306 Requires: libsmbclient = %{epoch}:%{version}-%{release}
307 %{?with_kerberos5:Requires: heimdal-libs}
308 Obsoletes: mount-cifs
312 Samba-client provides some SMB clients, which complement the build-in
313 SMB filesystem in Linux. These allow accessing of SMB shares and
314 printing to SMB printers.
316 %description client -l pt_BR.UTF-8
317 O pacote samba-clientes prove alguns clientes SMB, que complementam o
318 sistema de arquivos SMB do Linux. Eles permitem o acesso a shares SMB,
319 e também, à impressoras SMB.
321 %description client -l es.UTF-8
322 Cliente SMB de Samba.
324 %description client -l ja.UTF-8
325 Samba-client は Linux 上に含まれている SMB ファイルシステムを補う SMB
326 クライアントを提供します。これらは SMB 共有のアクセスと SMB
329 %description client -l pl.UTF-8
330 Samba-client dostarcza programy uzupełniające obsługę systemu plików
331 SMB zawartą w jądrze. Pozwalają one na współdzielenie zasobów SMB i
332 drukowanie w sieci SMB.
334 %description client -l pt_BR.UTF-8
335 O pacote samba-clientes prove alguns clientes SMB, que complementam o
336 sistema de arquivos SMB do Linux. Eles permitem o acesso a shares SMB,
337 e também, à impressoras SMB.
339 %description client -l ru.UTF-8
340 Пакет samba-client предоставляет некоторые клиенты SMB для работы со
341 встроенной файловой системой SMB в Linux. Эти клиенты позволяют
342 получать доступ к разделяемым каталогам SMB и печать на SMB-принтеры.
344 %description client -l uk.UTF-8
345 Пакет samba-client надає деякі клієнти SMB для роботи зі вбудованою
346 файловою системою SMB в Linux. Ці клієнти дозволяють отримувати доступ
347 до каталогів спільного використання SMB та друк на SMB-прінтери.
350 Summary: Files used by both Samba servers and clients
351 Summary(ja.UTF-8): Samba サーバーとクライアントで使用されるプログラム
352 Summary(pl.UTF-8): Pliki używane przez serwer i klientów Samba
353 Summary(pt_BR.UTF-8): Arquivos em comum entre samba e samba-clients
354 Summary(ru.UTF-8): Файлы, используемые как сервером, так и клиентом Samba
355 Summary(uk.UTF-8): Файли, що використовуються як сервером, так і клієнтом Samba
356 Group: Networking/Daemons
357 Requires: tdb >= 1.1.3
358 Requires: libtalloc >= %{version}-%{release}
361 Samba-common provides files necessary for both the server and client
364 %description common -l ja.UTF-8
365 Samba-common は Samba のサーバとクライアントの両方のパッケージで
368 %description common -l pl.UTF-8
369 Samba-common dostarcza pliki niezbędne zarówno dla serwera jak i
372 %description common -l pt_BR.UTF-8
373 Arquivos em comum entre os pacotes samba e samba-clients.
375 %description common -l ru.UTF-8
376 Samba-common содержит файлы, необходимые для работы как клиента, так и
379 %description common -l uk.UTF-8
380 Samba-common містить файли, необхідні для роботи як клієнта, так і
384 Summary: Samba-winbind daemon, utilities and documentation
385 Summary(pl.UTF-8): Demon samba-winbind, narzędzia i dokumentacja
386 Group: Networking/Daemons
387 Requires(post,preun): /sbin/chkconfig
388 Requires: %{name}-common = %{epoch}:%{version}-%{release}
391 Provides the winbind daemon and testing tools to allow authentication
392 and group/user enumeration from a Windows or Samba domain controller.
394 %description winbind -l pl.UTF-8
395 Pakiet zawiera demona winbind oraz narzędzia testowe. Umożliwia
396 uwierzytelnianie i wyliczanie grup/użytkowników z kontrolera domeny
400 Summary: Name Service Switch service for WINS
401 Summary(pl.UTF-8): Usługa Name Service Switch dla WINS
403 Requires: %{name}-common = %{epoch}:%{version}-%{release}
405 %description -n nss_wins
406 Provides the libnss_wins shared library which resolves NetBIOS names
409 %description -n nss_wins -l pl.UTF-8
410 Biblioteka dzielona libnss_wins rozwiązująca nazwy NetBIOS na adresy
413 %package -n pam-pam_smbpass
414 Summary: PAM Samba Password Module
415 Summary(pl.UTF-8): Moduł PAM smbpass
417 Obsoletes: pam_smbpass
419 %description -n pam-pam_smbpass
420 PAM module which can be used on conforming systems to keep the
421 smbpasswd (Samba password) database in sync with the Unix password
424 %description -n pam-pam_smbpass -l pl.UTF-8
425 Moduł PAM, który może być używany do trzymania pliku smbpasswd (hasła
426 Samby) zsynchronizowanego z hasłami uniksowymi.
428 %package -n libsmbclient
429 Summary: libsmbclient - samba client library
430 Summary(pl.UTF-8): libsmbclient - biblioteka klienta samby
433 %description -n libsmbclient
434 libsmbclient - library that allows to use samba clients functions.
436 %description -n libsmbclient -l pl.UTF-8
437 libsmbclient - biblioteka pozwalająca korzystać z funcji klienta
440 %package -n libsmbclient-devel
441 Summary: libsmbclient - samba client library
442 Summary(pl.UTF-8): libsmbclient - biblioteka klienta samby
443 Summary(pt_BR.UTF-8): Ferramentas de desenvolvimento para clientes samba
444 Group: Development/Libraries
445 Requires: libsmbclient = %{epoch}:%{version}-%{release}
447 %description -n libsmbclient-devel
448 Header files for libsmbclient.
450 %description -n libsmbclient-devel -l pl.UTF-8
451 Pliki nagłówkowe dla libsmbclient.
453 %description -n libsmbclient-devel -l pt_BR.UTF-8
454 Arquivos de inclusão, bibliotecas e documentação necessários para
455 desenvolver aplicativos clientes para o samba.
457 %package -n libsmbclient-static
458 Summary: Static version of libsmbclient - samba client library
459 Summary(pl.UTF-8): Statyczna wersja libsmbclient - biblioteki klienta samby
460 Summary(pt_BR.UTF-8): Ferramentas de desenvolvimento para clientes samba
461 Group: Development/Libraries
462 Requires: libsmbclient = %{epoch}:%{version}-%{release}
464 %description -n libsmbclient-static
465 Static libsmbclient library.
467 %description -n libsmbclient-static -l pl.UTF-8
468 Statyczna biblioteka libsmbclient.
470 %package -n libtalloc
471 Summary: The talloc library
474 %description -n libtalloc
475 The talloc library from the Samba suite.
477 %package -n libtalloc-devel
478 Summary: Developer tools for the talloc library
479 Group: Development/Libraries
480 Requires: libtalloc = %{epoch}:%{version}-%{release}
482 %description -n libtalloc-devel
483 The libtalloc-devel package contains the header files and libraries needed to
484 develop programs that link against the talloc library in the Samba suite.
487 Summary: Header files for Samba
488 Summary(pl.UTF-8): Pliki nagłówkowe Samby
489 Group: Development/Libraries
492 Header files for Samba.
494 %description devel -l pl.UTF-8
495 Pliki nagłówkowe Samby.
498 Summary: A utility for retrieving files using the SMB protocol
499 Summary(pl.UTF-8): Narzędzie do pobierania plików protokołem SMB
500 Group: Applications/Networking
502 %description -n smbget
503 wget-like utility for download files over SMB.
505 %description -n smbget -l pl.UTF-8
506 Narzędzie podobne do wgeta do pobierania plików protokołem SMB
507 używanym w sieciach MS Windows.
509 %package -n cups-backend-smb
510 Summary: CUPS backend for printing to SMB printers
511 Summary(pl.UTF-8): Backend CUPS-a drukujący na drukarkach SMB
512 Group: Applications/Printing
513 Requires: %{name}-client = %{epoch}:%{version}-%{release}
514 Requires: cups >= 1:1.2.0
516 %description -n cups-backend-smb
517 CUPS backend for printing to SMB printers.
519 %description -n cups-backend-smb -l pl.UTF-8
520 Backend CUPS-a drukujący na drukarkach SMB.
523 Summary: VFS module to audit file access
524 Summary(pl.UTF-8): Moduł VFS do monitorowania operacji na plikach
525 Group: Networking/Daemons
526 Requires: %{name} = %{epoch}:%{version}-%{release}
528 %description vfs-audit
529 A simple module to audit file access to the syslog facility. The
530 following operations are logged:
531 - share connect/disconnect,
532 - directory opens/create/remove,
533 - file open/close/rename/unlink/chmod.
535 %description vfs-audit -l pl.UTF-8
536 Proste moduły do monitorowania dostępu do plików na serwerze samba do
537 do sysloga. Monitorowane są następujące operacje:
538 - podłączenie do/odłączenie od zasobu,
539 - otwarcie/utworzenie/zmiana nazwy katalogu,
540 - otwarcie/zamknięcie/zmiana nazwy/skasowanie/zmiana praw plików.
542 Zawiera moduły audit, extd_audit i full_audit.
545 Summary: VFS module for CAP and samba compatibility
546 Summary(pl.UTF-8): Moduł VFS zgodności z CAP (Columbia AppleTalk Program)
547 Group: Networking/Daemons
548 Requires: %{name} = %{epoch}:%{version}-%{release}
551 Convert an incoming Shift-JIS character to the 3 byte hex
552 representation used by the Columbia AppleTalk Program (CAP), i.e. :AB.
553 This is used for compatibility between Samba and CAP.
555 %description vfs-cap -l pl.UTF-8
556 Zamienia znaki kodowane Shift-JIS do trzybajowej szestnastkowej
557 reprezentacji używanej przez program Columbia AppleTalk Program (CAP).
559 %package vfs-default_quota
560 Summary: VFS module to store default quotas in a specified quota record
561 Summary(pl.UTF-8): Moduł VFS do zapisywania domyślnych limitów w określonym rekordzie
562 Group: Networking/Daemons
563 Requires: %{name} = %{epoch}:%{version}-%{release}
565 %description vfs-default_quota
566 This VFS modules stores default quotas in a specified quota record.
568 %description vfs-default_quota -l pl.UTF-8
569 Ten moduł VFS zapisuje domyślne limity (quoty) w określonym rekordzie
572 %package vfs-expand_msdfs
573 Summary: VFS module for hosting a Microsoft Distributed File System Tree
574 Summary(pl.UTF-8): Moduł VFS obsługi Microsoft Distributed File System
575 Group: Networking/Daemons
576 Requires: %{name} = %{epoch}:%{version}-%{release}
578 %description vfs-expand_msdfs
579 A VFS module for hosting a Microsoft Distributed File System Tree.
581 The Distributed File System (DFS) provides a means of separating the
582 logical view of files and directories that users see from the actual
583 physical locations of these resources on the network. It allows for
584 higher availability, smoother storage expansion, load balancing, and
587 %description vfs-expand_msdfs -l pl.UTF-8
588 Moduł VFS do udostępniania drzewa systemu plików Microsoft Distributed
591 Distributed File System (DFS) umożliwia rozdzielanie logicznego widoku
592 plików i katalogów widocznych przez użytkowników z fizycznego
593 umiejscowienia tych zasobów w sieci. Pozwala to na wyższą dostępność,
594 płynniejsze powiększanie przestrzeni, rozdzielanie obciążenia itp.
596 %package vfs-fake_perms
597 Summary: VFS module to report read-only fires as writable
598 Summary(pl.UTF-8): Moduł VFS udający, że pliki tylko do odczytu są zapisywalne
599 Group: Networking/Daemons
600 Requires: %{name} = %{epoch}:%{version}-%{release}
602 %description vfs-fake_perms
603 This module allow Roaming Profile files and directories to be set (on
604 the Samba server under UNIX) as read only. This module will, if
605 installed on the Profiles share, report to the client that the Profile
606 files and directories are writeable. This satisfies the client even
607 though the files will never be overwritten as the client logs out or
610 %description vfs-fake_perms -l pl.UTF-8
611 Ten moduł pozwala na ustawienie plików i katalogów z wędrujących
612 profili (Roaming Profiles) jako tylko do odczytu. Moduł ten w
613 przypadku zainstalowania na udziale z profilami będzie zgłaszał
614 klientom, że pliki i katalogi z profilu są zapisywane. To wystarczy
615 klientom pomimo, że pliki nie zostaną nigdy nadpisane przy logowaniu
616 lub wylogowywaniu klienta.
618 %package vfs-notify_fam
619 Summary: VFS module to implement file change notifications
620 Summary(pl.UTF-8): Moduł VFS implementujący informowanie o zmianach w plikach
621 Group: Networking/Daemons
622 Requires: %{name} = %{epoch}:%{version}-%{release}
624 %description vfs-notify_fam
625 The vfs_notify_fam module makes use of the system FAM (File Alteration
626 Monitor) daemon to implement file change notifications for Windows
629 %description vfs-notify_fam -l pl.UTF-8
630 Ten moduł używa demona FAM (File Alteration Monitor) do implementacji
631 informowania o zmianach w plikach dla klientów Windows.
633 %package vfs-netatalk
634 Summary: VFS module for ease co-existence of samba and netatalk
635 Summary(pl.UTF-8): Moduł VFS ułatwiający współpracę serwisów samba i netatalk
636 Group: Networking/Daemons
637 Requires: %{name} = %{epoch}:%{version}-%{release}
639 %description vfs-netatalk
640 Package contains a netatalk VFS module for ease co-existence of Samba
641 and netatalk file sharing services.
643 %description vfs-netatalk -l pl.UTF-8
644 Pakiet zawiera moduł VFS netatalk umożliwiający współpracę usług samba
645 i netatalk przy udostępnianiu zasobów.
648 Summary: VFS module to add recycle bin facility to a samba share
649 Summary(pl.UTF-8): Moduł VFS dodający możliwość kosza do zasobu samby
650 Group: Networking/Daemons
651 Requires: %{name} = %{epoch}:%{version}-%{release}
653 %description vfs-recycle
654 VFS module to add recycle bin facility to a samba share.
656 %description vfs-recycle -l pl.UTF-8
657 Moduł VFS dodający możliwość kosza do zasobu samby.
659 %package vfs-readahead
660 Summary: VFS module for pre-loading the kernel buffer cache
661 Summary(pl.UTF-8): Moduł VFS do wczesnego odczytu danych do bufora cache jądra
662 Group: Networking/Daemons
663 Requires: %{name} = %{epoch}:%{version}-%{release}
665 %description vfs-readahead
666 This VFS module detects read requests at multiples of a given offset
667 (hex 0x80000 by default) and then tells the kernel via either the
668 readahead system call (on Linux) or the posix_fadvise system call to
669 pre-fetch this data into the buffer cache.
671 This module is useful for Windows Vista clients reading data using the
672 Windows Explorer program, which asynchronously does multiple file read
673 requests at offset boundaries of 0x80000 bytes.
675 %description vfs-readahead -l pl.UTF-8
676 Ten moduł VFS wykrywa żądania odczytu spod wielokrotności podanych
677 pozycji (domyślnie 0x80000 szesnastkowo) i instruuje jądro poprzez
678 wywołanie systemowe readahead (pod Linuksem) lub posix_fadvise do
679 wczesnego odczytu tych danych do bufora cache.
681 Ten moduł jest przydatny dla klientów Windows Vista odczytujących dane
682 przy użyciu programu Windows Explorer, który asynchronicznie wykonuje
683 wiele żądań odczytu plików spod pozycji o wielokrotnościach 0x80000
686 %package vfs-readonly
687 Summary: VFS module for read-only limitation for specified share
688 Summary(pl.UTF-8): Moduł VFS do ograniczania określonego udziału tylko do odczytu
689 Group: Networking/Daemons
690 Requires: %{name} = %{epoch}:%{version}-%{release}
692 %description vfs-readonly
693 This module performs a read-only limitation for specified share (or
694 all of them if it is loaded in a [global] section) based on period
695 definition in smb.conf.
697 %description vfs-readonly -l pl.UTF-8
698 Ten moduł wprowadza ograniczenie tylko do odczytu dla określonego
699 udziału (lub wszystkich, jeśli jest wczytywany w sekcji [global]) w
700 oparciu o definicje okresów w smb.conf.
702 %package vfs-shadow_copy
703 Summary: VFS module to make automatic copy of data in samba share
704 Summary(pl.UTF-8): Moduł VFS do tworzenia automatycznych kopii danych w zasobach samby
705 Group: Networking/Daemons
706 Requires: %{name} = %{epoch}:%{version}-%{release}
708 %description vfs-shadow_copy
709 VFS module to make automatic copy of data in samba share.
711 %description vfs-shadow_copy -l pl.UTF-8
712 Moduł VFS do tworzenia automatycznych kopii danych w zasobach samby.
714 %package vfs-vscan-antivir
715 Summary: On-access virus scanning for samba using AntiVir
716 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący AntiVir
717 Group: Networking/Daemons
718 Requires: %{name} = %{epoch}:%{version}-%{release}
719 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
721 %description vfs-vscan-antivir
722 A vfs-module for samba to implement on-access scanning using the
723 AntiVir antivirus software (which must be installed to use this).
725 %description vfs-vscan-antivir -l pl.UTF-8
726 Moduł vfs do samby implementujący skaning antywirusowy w czasie
727 dostępu do plików korzystając z oprogramowania antywirusowego AntiVir
728 (które musi być zainstalowane, aby wykorzystać ten moduł).
730 %package vfs-vscan-clamav
731 Summary: On-access virus scanning for samba using ClamAV
732 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący ClamAV
733 Group: Networking/Daemons
734 Requires: %{name} = %{epoch}:%{version}-%{release}
736 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
738 %description vfs-vscan-clamav
739 A vfs-module for samba to implement on-access scanning using the
740 ClamAV antivirus software (which must be installed to use this).
742 %description vfs-vscan-clamav -l pl.UTF-8
743 Moduł vfs do samby implementujący skaning antywirusowy w czasie
744 dostępu do plików korzystając z oprogramowania antywirusowego ClamAV
745 (które musi być zainstalowane, aby wykorzystać ten moduł).
747 %package vfs-vscan-fprot
748 Summary: On-access virus scanning for samba using FPROT
749 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący FPROT
750 Group: Networking/Daemons
751 Requires: %{name} = %{epoch}:%{version}-%{release}
752 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
753 Obsoletes: vscan-fprot
755 %description vfs-vscan-fprot
756 A vfs-module for samba to implement on-access scanning using the FPROT
757 antivirus software (which must be installed to use this).
759 %description vfs-vscan-fprot -l pl.UTF-8
760 Moduł vfs do samby implementujący skaning antywirusowy w czasie
761 dostępu do plików korzystając z oprogramowania antywirusowego FPROT
762 (które musi być zainstalowane, aby wykorzystać ten moduł).
764 %package vfs-vscan-fsav
765 Summary: On-access virus scanning for samba using F-Secure AntiVirus
766 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący F-Secure AntiVirus
767 Group: Networking/Daemons
768 Requires: %{name} = %{epoch}:%{version}-%{release}
769 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
770 Obsoletes: vscan-fsav
772 %description vfs-vscan-fsav
773 A vfs-module for samba to implement on-access scanning using the
774 F-Secure AntiVirus antivirus software (which must be installed to use
777 %description vfs-vscan-fsav -l pl.UTF-8
778 Moduł vfs do samby implementujący skaning antywirusowy w czasie
779 dostępu do plików korzystając z oprogramowania antywirusowego F-Secure
780 AntiVirus (które musi być zainstalowane, aby wykorzystać ten moduł).
782 %package vfs-vscan-kavp
783 Summary: On-access virus scanning for samba using Kaspersky AVP
784 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący Kaspersky AVP
785 Group: Networking/Daemons
786 Requires: %{name} = %{epoch}:%{version}-%{release}
787 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
788 Obsoletes: vscan-kavp
790 %description vfs-vscan-kavp
791 A vfs-module for samba to implement on-access scanning using the
792 Kaspersky AVP antivirus software (which must be installed to use
795 %description vfs-vscan-kavp -l pl.UTF-8
796 Moduł vfs do samby implementujący skaning antywirusowy w czasie
797 dostępu do plików korzystając z oprogramowania antywirusowego
798 Kaspersky AVP (które musi być zainstalowane, aby wykorzystać ten
801 %package vfs-vscan-mcafee
802 Summary: On-access virus scanning for samba using mcafee
803 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący mcafee
804 Group: Networking/Daemons
805 Requires: %{name} = %{epoch}:%{version}-%{release}
807 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
808 Obsoletes: vscan-mcafee
810 %description vfs-vscan-mcafee
811 A vfs-module for samba to implement on-access scanning using the
812 mcafee antivirus software (which must be installed to use this).
814 %description vfs-vscan-mcafee -l pl.UTF-8
815 Moduł vfs do samby implementujący skaning antywirusowy w czasie
816 dostępu do plików korzystając z oprogramowania antywirusowego mcafee
817 (które musi być zainstalowane, aby wykorzystać ten moduł).
819 %package vfs-vscan-mks
820 Summary: On-access virus scanning for samba using mks
821 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący mks
822 Group: Networking/Daemons
823 Requires: %{name} = %{epoch}:%{version}-%{release}
825 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
828 %description vfs-vscan-mks
829 A vfs-module for samba to implement on-access scanning using the mks
830 antivirus software (which must be installed to use this).
832 %description vfs-vscan-mks -l pl.UTF-8
833 Moduł vfs do samby implementujący skaning antywirusowy w czasie
834 dostępu do plików korzystając z oprogramowania antywirusowego mks
835 (które musi być zainstalowane, aby wykorzystać ten moduł).
837 %package vfs-vscan-openantivirus
838 Summary: On-access virus scanning for samba using OpenAntivirus
839 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący OpenAntiVirus
840 Group: Networking/Daemons
841 Requires: %{name} = %{epoch}:%{version}-%{release}
842 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
843 Obsoletes: vscan-openantivirus
845 %description vfs-vscan-openantivirus
846 A vfs-module for samba to implement on-access scanning using the
847 OpenAntivirus antivirus software (which must be installed to use
850 %description vfs-vscan-openantivirus -l pl.UTF-8
851 Moduł vfs do samby implementujący skaning antywirusowy w czasie
852 dostępu do plików korzystając z oprogramowania antywirusowego
853 OpenAntiVirus.org (które musi być zainstalowane, aby wykorzystać ten
856 %package vfs-vscan-sophos
857 Summary: On-access virus scanning for samba using Sophos
858 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący Sophos
859 Group: Networking/Daemons
860 Requires: %{name} = %{epoch}:%{version}-%{release}
861 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
862 Obsoletes: vscan-sophos
864 %description vfs-vscan-sophos
865 A vfs-module for samba to implement on-access scanning using the
866 Sophos antivirus software (which must be installed to use this).
868 %description vfs-vscan-sophos -l pl.UTF-8
869 Moduł vfs do samby implementujący skaning antywirusowy w czasie
870 dostępu do plików korzystając z oprogramowania antywirusowego Sophos
871 (które musi być zainstalowane, aby wykorzystać ten moduł).
873 %package vfs-vscan-symantec
874 Summary: On-access virus scanning for samba using Symantec
875 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący Symantec
876 Group: Networking/Daemons
877 Requires: %{name} = %{epoch}:%{version}-%{release}
878 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
879 Obsoletes: vscan-symantec
881 %description vfs-vscan-symantec
882 A vfs-module for samba to implement on-access scanning using the
883 Symantec antivirus software (which must be installed to use this).
885 %description vfs-vscan-symantec -l pl.UTF-8
886 Moduł vfs do samby implementujący skaning antywirusowy w czasie
887 dostępu do plików korzystając z oprogramowania antywirusowego firmy
888 Symantec (które musi być zainstalowane, aby wykorzystać ten moduł).
890 %package vfs-vscan-trend
891 Summary: On-access virus scanning for samba using Trend
892 Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący Trend
893 Group: Networking/Daemons
894 Requires: %{name} = %{epoch}:%{version}-%{release}
895 Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
896 Obsoletes: vscan-trend
898 %description vfs-vscan-trend
899 A vfs-module for samba to implement on-access scanning using the Trend
900 antivirus software (which must be installed to use this).
902 %description vfs-vscan-trend -l pl.UTF-8
903 Moduł vfs do samby implementujący skaning antywirusowy w czasie
904 dostępu do plików korzystając z oprogramowania antywirusowego Trend
905 (które musi być zainstalowane, aby wykorzystać ten moduł).
907 %package -n openldap-schema-samba
908 Summary: Samba LDAP schema
909 Summary(pl.UTF-8): Schemat LDAP dla samby
910 Group: Networking/Daemons
911 Requires(post,postun): sed >= 4.0
912 Requires: openldap-servers
914 %description -n openldap-schema-samba
915 This package contains samba.schema for openldap.
917 %description -n openldap-schema-samba -l pl.UTF-8
918 Ten pakiet zawiera schemat samby dla openldap-a.
921 Summary: Samba HTML documentation
922 Summary(pl.UTF-8): Documentacja samby w formacie HTML
925 %description doc-html
926 Samba HTML documentation.
928 %description doc-html -l pl.UTF-8
929 Documentacja samby w formacie HTML.
932 Summary: Samba documentation - PDF format
933 Summary(pl.UTF-8): Documentacja samby w formacie PDF
937 Samba PDF documentation.
939 %description doc-pdf -l pl.UTF-8
940 Documentacja samby w formacie PDF.
942 %package -n python-samba
943 Summary: Samba Module for Python
944 Group: Development/Languages/Python
945 %pyrequires_eq python
946 Requires: %{name}-common = %{epoch}:%{version}-%{release}
948 %description -n python-samba
949 Samba Module for Python.
961 %{__sed} -i 's#%SAMBAVERSION%#%{version}#' docs/htmldocs/index.html
968 install %{SOURCE10} source4/heimdal/lib/wind/rfc3454.txt
973 %{__autoconf} -Im4 -I../m4 -I../lib/replace -Ilib/replace -I../source4
975 --with-modulesdir=%{_sambalibdir} \
976 --with-rootsbindir=/sbin \
977 --with-pammodulesdir=/%{_lib}/security \
981 --with-libsmbclient \
982 --with-lockdir=/var/lib/samba \
985 --with%{!?with_ads:out}-ads \
986 --with-privatedir=%{_sysconfdir}/samba \
989 --with-swatdir=%{_datadir}/swat \
993 --without-included-popt \
994 --enable-merged-build \
995 --enable-automatic-dependencies \
999 --with%{!?with_ldap:out}-ldap \
1000 --with%{!?with_kerberos5:out}-krb5
1002 %{__make} -j1 everything pam_smbpass bin/smbget bin/mount.cifs bin/vfstest
1005 %{__make} -C libsmbclient/smbwrapper \
1007 CFLAGS="%{rpmcflags} -fPIC \$(DEFS) \\\$(SMBINCLUDE)"
1013 CFLAGS="%{rpmcflags} -fPIC"
1017 cd samba-vscan-%{vscan_version}
1018 cp -f /usr/share/automake/config.sub .
1020 ln -s ../../../source3/lib .
1025 rm -rf $RPM_BUILD_ROOT
1026 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,pam.d,security,sysconfig/rc-inetd} \
1027 $RPM_BUILD_ROOT{/var/{log,log/archive,spool}/samba,/var/lib/samba/printing} \
1028 $RPM_BUILD_ROOT/var/log/samba/cores/{smbd,nmbd} \
1029 $RPM_BUILD_ROOT{/sbin,/%{_lib}/security,%{_libdir},%{_vfsdir},%{_includedir},%{_sambahome},%{schemadir}}
1031 %{__make} -C source3 install \
1032 DESTDIR=$RPM_BUILD_ROOT \
1033 CONFIGDIR=$RPM_BUILD_ROOT%{_sysconfdir}/samba
1035 install source3/script/mksmbpasswd.sh $RPM_BUILD_ROOT%{_sbindir}
1037 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/smb
1038 install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/samba
1039 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/swat
1040 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/samba
1041 install %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/samba
1042 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/samba/smb.conf
1043 install %{SOURCE8} $RPM_BUILD_ROOT/etc/rc.d/init.d/winbind
1044 install %{SOURCE9} $RPM_BUILD_ROOT/etc/sysconfig/winbind
1046 install nsswitch/libnss_winbind.so $RPM_BUILD_ROOT/%{_lib}/libnss_winbind.so.2
1047 ln -s libnss_winbind.so.2 $RPM_BUILD_ROOT/%{_lib}/libnss_winbind.so
1048 install nsswitch/libnss_wins.so $RPM_BUILD_ROOT/%{_lib}/libnss_wins.so.2
1049 ln -s libnss_wins.so.2 $RPM_BUILD_ROOT/%{_lib}/libnss_wins.so
1050 install source3/bin/wbinfo $RPM_BUILD_ROOT%{_bindir}
1051 install source3/bin/smbget $RPM_BUILD_ROOT%{_bindir}
1052 install source3/bin/vfstest $RPM_BUILD_ROOT%{_bindir}
1054 install source3/bin/libsmbclient.a $RPM_BUILD_ROOT%{_libdir}/libsmbclient.a
1057 install examples/libsmbclient/smbwrapper/smbwrapper.so $RPM_BUILD_ROOT%{_libdir}/smbwrapper.so
1058 install examples/libsmbclient/smbwrapper/smbsh $RPM_BUILD_ROOT%{_bindir}
1059 install examples/libsmbclient/smbwrapper/smbsh.1 $RPM_BUILD_ROOT%{_mandir}/man1
1061 # these are needed to build samba-pdbsql
1062 install -d $RPM_BUILD_ROOT%{_includedir}/%{name}/{tdb,nsswitch}
1063 cp -a source3/include/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}
1064 cp -a lib/tdb/include/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/tdb
1065 cp -a nsswitch/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/nsswitch
1069 install examples/VFS/samba-vscan-%{vscan_version}/*.so $RPM_BUILD_ROOT%{_vfsdir}
1070 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
1073 touch $RPM_BUILD_ROOT/var/lib/samba/{wins.dat,browse.dat}
1075 echo '127.0.0.1 localhost' > $RPM_BUILD_ROOT%{_sysconfdir}/samba/lmhosts
1078 install -d $RPM_BUILD_ROOT%{cups_serverbin}/backend
1079 ln -s %{_bindir}/smbspool $RPM_BUILD_ROOT%{cups_serverbin}/backend/smb
1082 > $RPM_BUILD_ROOT%{_sysconfdir}/samba/smbusers
1083 > $RPM_BUILD_ROOT/etc/security/blacklist.samba
1085 # we have this utility in tdb package
1086 rm -f $RPM_BUILD_ROOT{%{_bindir}/tdb{backup,dump}*,%{_mandir}/man8/tdb{backup,dump}.8*}
1089 rm -r $RPM_BUILD_ROOT%{_datadir}/swat/using_samba
1092 rm -r $RPM_BUILD_ROOT%{_bindir}/{gentest4,locktest4,masktest4,nsstest4}
1094 mv $RPM_BUILD_ROOT%{_bindir}/tdbtool $RPM_BUILD_ROOT%{_bindir}/tdbtool_samba
1095 mv $RPM_BUILD_ROOT%{_bindir}/tdbtool4 $RPM_BUILD_ROOT%{_bindir}/tdbtool4_samba
1098 install examples/LDAP/samba.schema $RPM_BUILD_ROOT%{schemadir}
1101 %find_lang pam_winbind
1103 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
1104 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
1105 find $RPM_BUILD_ROOT%{py_sitedir} -name "*.py" -o -name "*.a" -o -name "*.la" | xargs rm -f
1108 rm -rf $RPM_BUILD_ROOT
1111 /sbin/chkconfig --add smb
1112 if [ -f /var/lock/samba/connections.tdb -a ! -f /var/lib/samba/connections.tdb ]; then
1113 echo >&2 "Moving old /var/lock/samba contents to /var/lib/samba"
1114 /sbin/service smb stop >&2
1115 mv -f /var/lock/samba/*.tdb /var/lib/samba 2>/dev/null || :
1116 mv -f /var/lock/samba/*.dat /var/lib/samba 2>/dev/null || :
1117 if [ -d /var/lock/samba/printing ]; then
1118 mv -f /var/lock/samba/printing/*.tdb /var/lib/samba/printing 2>/dev/null || :
1120 /sbin/service smb start >&2
1122 %service smb restart "Samba daemons"
1126 if [ "$1" = "0" ]; then
1128 /sbin/chkconfig --del smb
1132 /sbin/chkconfig --add winbind
1133 %service winbind restart "Winbind daemon"
1136 if [ "$1" = "0" ]; then
1137 %service winbind stop
1138 /sbin/chkconfig --del winbind
1142 %service -q rc-inetd reload
1145 if [ "$1" = 0 ]; then
1146 %service -q rc-inetd reload
1149 %post -n openldap-schema-samba
1150 # dependant schemas: cosine(uid) inetorgperson(displayName) nis(gidNumber)
1151 %openldap_schema_register %{schemadir}/samba.schema -d cosine,inetorgperson,nis
1152 %service -q ldap restart
1154 %postun -n openldap-schema-samba
1155 if [ "$1" = "0" ]; then
1156 %openldap_schema_unregister %{schemadir}/samba.schema
1157 %service -q ldap restart
1160 %triggerpostun -- samba < 1.9.18p7
1161 if [ "$1" != "0" ]; then
1162 /sbin/chkconfig --add smb
1165 %triggerpostun -- samba < 3.4.0
1166 %banner %{name} << EOF
1167 !!! WARNING !!! The default passdb backend has been changed to 'tdbsam'!
1168 That breaks existing setups using the 'smbpasswd' backend without explicit declaration!
1169 Please use 'passdb backend = smbpasswd' if you would like to stick to the 'smbpasswd'
1170 backend or convert your smbpasswd entries using e.g. 'pdbedit -i smbpasswd -e tdbsam'.
1174 %defattr(644,root,root,755)
1175 %attr(755,root,root) %{_sbindir}/nmbd
1176 %attr(755,root,root) %{_sbindir}/smbd
1177 %attr(755,root,root) %{_sbindir}/mksmbpasswd.sh
1178 %attr(755,root,root) %{_bindir}/ad2oLschema4
1179 %attr(755,root,root) %{_bindir}/oLschema2ldif4
1180 %attr(755,root,root) %{_bindir}/ldb*
1181 %attr(755,root,root) %{_bindir}/reg*
1182 # "This utility disabled until rewritten"
1183 #%attr(755,root,root) %{_bindir}/setnttoken4
1184 %attr(755,root,root) %{_bindir}/smbstatus
1185 %attr(755,root,root) %{_bindir}/smbpasswd
1186 %attr(755,root,root) %{_bindir}/smbcontrol
1187 %attr(755,root,root) %{_bindir}/tdbtool_samba
1189 %dir %{_libdir}/%{name}/pdb
1191 %attr(755,root,root) %{_vfsdir}/acl_tdb.so
1192 %attr(755,root,root) %{_vfsdir}/acl_xattr.so
1193 %attr(755,root,root) %{_vfsdir}/aio_fork.so
1194 %attr(755,root,root) %{_vfsdir}/dirsort.so
1195 %attr(755,root,root) %{_vfsdir}/fileid.so
1196 %attr(755,root,root) %{_vfsdir}/preopen.so
1197 %attr(755,root,root) %{_vfsdir}/shadow_copy2.so
1198 %attr(755,root,root) %{_vfsdir}/smb_traffic_analyzer.so
1199 %attr(755,root,root) %{_vfsdir}/streams_depot.so
1200 %attr(755,root,root) %{_vfsdir}/streams_xattr.so
1201 %attr(755,root,root) %{_vfsdir}/syncops.so
1202 %attr(755,root,root) %{_vfsdir}/xattr_tdb.so
1203 %{_mandir}/man8/vfs_acl_tdb.8*
1204 %{_mandir}/man8/vfs_acl_xattr.8*
1205 %{_mandir}/man8/vfs_dirsort.8*
1206 %{_mandir}/man8/vfs_fileid.8*
1207 %{_mandir}/man8/vfs_preopen.8*
1208 %{_mandir}/man8/vfs_shadow_copy2.8*
1209 %{_mandir}/man8/vfs_smb_traffic_analyzer.8*
1210 %{_mandir}/man8/vfs_streams_xattr.8*
1211 %{_mandir}/man8/vfs_streams_depot.8*
1212 %{_mandir}/man8/vfs_xattr_tdb.8*
1215 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/smbusers
1216 %attr(754,root,root) /etc/rc.d/init.d/smb
1217 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/samba
1218 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/samba
1219 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/samba
1220 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.samba
1221 %{_mandir}/man1/ldb*.1*
1222 %{_mandir}/man1/log2pcap.1*
1223 %{_mandir}/man1/smbstatus.1*
1224 %{_mandir}/man1/smbcontrol.1*
1225 %{_mandir}/man5/smbpasswd.5*
1226 %{_mandir}/man7/samba.7*
1227 %{_mandir}/man8/nmbd.8*
1228 %{_mandir}/man8/smbd.8*
1229 %{_mandir}/man8/smbpasswd.8*
1233 %ghost /var/lib/samba/*.dat
1234 %dir /var/lib/samba/printing
1236 %attr(750,root,root) %dir /var/log/samba
1237 %attr(750,root,root) %dir /var/log/samba/cores
1238 %attr(750,root,root) %dir /var/log/samba/cores/smbd
1239 %attr(750,root,root) %dir /var/log/samba/cores/nmbd
1240 %attr(750,root,root) %dir /var/log/archive/samba
1241 %attr(1777,root,root) %dir /var/spool/samba
1246 %files winbind -f pam_winbind.lang
1247 %defattr(644,root,root,755)
1248 %attr(755,root,root) %{_sbindir}/winbindd
1249 %attr(755,root,root) %{_bindir}/wbinfo
1250 %attr(755,root,root) %{_bindir}/wbinfo4
1251 %attr(755,root,root) /%{_lib}/security/pam_winbind*
1252 %attr(755,root,root) /%{_lib}/libnss_winbind*
1253 %attr(754,root,root) /etc/rc.d/init.d/winbind
1254 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/winbind
1255 %{_mandir}/man1/wbinfo*.1*
1256 %{_mandir}/man8/pam_winbind.8*
1257 %{_mandir}/man8/winbindd*.8*
1260 %defattr(644,root,root,755)
1261 %attr(755,root,root) /%{_lib}/libnss_wins*
1264 %defattr(644,root,root,755)
1265 %attr(755,root,root) /sbin/mount.cifs
1266 %attr(755,root,root) /sbin/umount.cifs
1267 %attr(755,root,root) %{_bindir}/cifsdd4
1268 %attr(755,root,root) %{_bindir}/findsmb
1269 %attr(755,root,root) %{_bindir}/net
1270 %attr(755,root,root) %{_bindir}/net4
1271 %attr(755,root,root) %{_bindir}/nmblookup
1272 %attr(755,root,root) %{_bindir}/nmblookup4
1273 %attr(755,root,root) %{_bindir}/rpcclient
1274 %attr(755,root,root) %{_bindir}/sharesec
1275 %attr(755,root,root) %{_bindir}/smbcacls
1276 %attr(755,root,root) %{_bindir}/smbclient
1277 %attr(755,root,root) %{_bindir}/smbclient4
1278 %attr(755,root,root) %{_bindir}/smbsh
1279 %attr(755,root,root) %{_bindir}/smbtar
1280 %attr(755,root,root) %{_bindir}/smbtree
1281 %attr(755,root,root) %{_sbindir}/cifs.upcall
1282 %attr(755,root,root) %{_libdir}/smbwrapper.so
1283 %{_mandir}/man1/findsmb.1*
1284 %{_mandir}/man1/nmblookup.1*
1285 %{_mandir}/man1/rpcclient.1*
1286 %{_mandir}/man1/sharesec.1*
1287 %{_mandir}/man1/smbcacls.1*
1288 %{_mandir}/man1/smbclient.1*
1289 %{_mandir}/man1/smbsh.1*
1290 %{_mandir}/man1/smbtar.1*
1291 %{_mandir}/man1/smbtree.1*
1292 %{_mandir}/man8/cifs.upcall.8*
1293 %{_mandir}/man8/net.8*
1294 %{_mandir}/man8/*mount.cifs.8*
1297 %defattr(644,root,root,755)
1298 %doc README Manifest WHATSNEW.txt
1299 %doc Roadmap docs/registry/*
1300 %doc docs/{history,THANKS}
1301 %dir %{_sysconfdir}/samba
1302 %attr(664,root,fileshare) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/smb.conf
1303 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/lmhosts
1304 %attr(755,root,root) %{_bindir}/eventlogadm
1305 %attr(755,root,root) %{_bindir}/getntacl4
1306 %attr(755,root,root) %{_bindir}/ndrdump4
1307 %attr(755,root,root) %{_bindir}/ntlm_auth
1308 %attr(755,root,root) %{_bindir}/ntlm_auth4
1309 %attr(755,root,root) %{_bindir}/pdbedit
1310 %attr(755,root,root) %{_bindir}/profiles
1311 %attr(755,root,root) %{_bindir}/smbcquotas
1312 %attr(755,root,root) %{_bindir}/testparm
1313 %attr(755,root,root) %{_bindir}/testparm4
1314 %attr(755,root,root) %{_bindir}/vfstest
1315 %dir %{_libdir}/%{name}
1316 %{_libdir}/%{name}/*.dat
1317 %dir %{_libdir}/%{name}/auth
1318 %attr(755,root,root) %{_libdir}/%{name}/auth/script.so
1319 %dir %{_libdir}/%{name}/charset
1320 %attr(755,root,root) %{_libdir}/%{name}/charset/*.so
1321 %{_mandir}/man1/ntlm_auth.1*
1322 %{_mandir}/man1/profiles.1*
1323 %{_mandir}/man1/smbcquotas.1*
1324 %{_mandir}/man1/testparm.1*
1325 %{_mandir}/man1/vfstest.1*
1326 #%{_mandir}/man1/log2pcap.1*
1327 %{_mandir}/man5/lmhosts.5*
1328 %{_mandir}/man5/smb.conf.5*
1329 %{_mandir}/man8/pdbedit.8*
1330 %{_mandir}/man8/eventlogadm.8*
1331 %{_mandir}/man8/idmap_ad.8*
1332 %{_mandir}/man8/idmap_adex.8*
1333 %{_mandir}/man8/idmap_hash.8*
1334 %{_mandir}/man8/idmap_ldap.8*
1335 %{_mandir}/man8/idmap_nss.8*
1336 %{_mandir}/man8/idmap_rid.8*
1337 %{_mandir}/man8/idmap_tdb.8*
1338 %{_mandir}/man8/idmap_tdb2.8*
1339 %{_mandir}/man8/tdbtool.8*
1342 %defattr(644,root,root,755)
1343 #%doc swat/README* swat/help/*
1345 %attr(755,root,root) %{_sbindir}/swat
1346 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/swat
1347 %dir %{_datadir}/swat
1348 %{_datadir}/swat/help
1349 %{_datadir}/swat/images
1350 %{_datadir}/swat/include
1351 %dir %{_datadir}/swat/lang
1352 %lang(ja) %{_datadir}/swat/lang/ja
1353 %lang(tr) %{_datadir}/swat/lang/tr
1354 %lang(de) %{_libdir}/%{name}/de.msg
1355 %{_libdir}/%{name}/en.msg
1356 %lang(fi) %{_libdir}/%{name}/fi.msg
1357 %lang(fr) %{_libdir}/%{name}/fr.msg
1358 %lang(it) %{_libdir}/%{name}/it.msg
1359 %lang(ja) %{_libdir}/%{name}/ja.msg
1360 %lang(nl) %{_libdir}/%{name}/nl.msg
1361 %lang(pl) %{_libdir}/%{name}/pl.msg
1362 %lang(ru) %{_libdir}/%{name}/ru.msg
1363 %lang(tr) %{_libdir}/%{name}/tr.msg
1364 %{_mandir}/man8/swat.8*
1366 %files -n pam-pam_smbpass
1367 %defattr(644,root,root,755)
1368 %doc source3/pam_smbpass/{CHAN*,README,TODO} source3/pam_smbpass/samples
1369 %attr(755,root,root) /%{_lib}/security/pam_smbpass.so
1371 %files -n libsmbclient
1372 %defattr(644,root,root,755)
1373 %attr(755,root,root) %{_libdir}/libsmbclient.so.*
1374 %attr(755,root,root) %{_libdir}/libwbclient.so.*
1375 %{_mandir}/man7/libsmbclient.7*
1377 %files -n libsmbclient-devel
1378 %defattr(644,root,root,755)
1379 %attr(755,root,root) %{_libdir}/libsmbclient.so
1380 %attr(755,root,root) %{_libdir}/libwbclient.so
1381 %{_includedir}/libsmbclient.h
1382 %{_includedir}/wbclient.h
1385 %defattr(644,root,root,755)
1386 %attr(755,root,root) %{_libdir}/libtalloc.so.*
1388 %files -n libtalloc-devel
1389 %defattr(644,root,root,755)
1390 %attr(755,root,root) %{_libdir}/libtalloc.so
1391 %{_includedir}/talloc.h
1394 %defattr(644,root,root,755)
1395 %{_includedir}/%{name}
1397 %files -n libsmbclient-static
1398 %defattr(644,root,root,755)
1399 %{_libdir}/libsmbclient.a
1402 %defattr(644,root,root,755)
1403 %attr(755,root,root) %{_bindir}/smbget
1404 %{_mandir}/man1/smbget.1*
1405 %{_mandir}/man5/smbgetrc.5*
1408 %files -n cups-backend-smb
1409 %defattr(644,root,root,755)
1410 %attr(755,root,root) %{_bindir}/smbspool
1411 %attr(755,root,root) %{cups_serverbin}/backend/smb
1412 %{_mandir}/man8/smbspool.8*
1416 %defattr(644,root,root,755)
1417 %attr(755,root,root) %{_vfsdir}/audit.so
1418 %attr(755,root,root) %{_vfsdir}/extd_audit.so
1419 %attr(755,root,root) %{_vfsdir}/full_audit.so
1420 %{_mandir}/man8/vfs_audit.8*
1421 %{_mandir}/man8/vfs_extd_audit.8*
1422 %{_mandir}/man8/vfs_full_audit.8*
1425 %defattr(644,root,root,755)
1426 %attr(755,root,root) %{_vfsdir}/cap.so
1427 %{_mandir}/man8/vfs_cap.8*
1429 %files vfs-default_quota
1430 %defattr(644,root,root,755)
1431 %attr(755,root,root) %{_vfsdir}/default_quota.so
1432 %{_mandir}/man8/vfs_default_quota.8*
1434 %files vfs-expand_msdfs
1435 %defattr(644,root,root,755)
1436 %attr(755,root,root) %{_vfsdir}/expand_msdfs.so
1438 %files vfs-fake_perms
1439 %defattr(644,root,root,755)
1440 %attr(755,root,root) %{_vfsdir}/fake_perms.so
1441 %{_mandir}/man8/vfs_fake_perms.8*
1443 %files vfs-notify_fam
1444 %defattr(644,root,root,755)
1445 %attr(755,root,root) %{_vfsdir}/notify_fam.so
1446 %{_mandir}/man8/vfs_notify_fam.8*
1449 %defattr(644,root,root,755)
1450 %attr(755,root,root) %{_vfsdir}/netatalk.so
1451 %{_mandir}/man8/vfs_netatalk.8*
1453 %files vfs-readahead
1454 %defattr(644,root,root,755)
1455 %attr(755,root,root) %{_vfsdir}/readahead.so
1456 %{_mandir}/man8/vfs_readahead.8*
1459 %defattr(644,root,root,755)
1460 %attr(755,root,root) %{_vfsdir}/readonly.so
1461 %{_mandir}/man8/vfs_readonly.8*
1464 %defattr(644,root,root,755)
1465 %attr(755,root,root) %{_vfsdir}/recycle.so
1466 %{_mandir}/man8/vfs_recycle.8*
1468 %files vfs-shadow_copy
1469 %defattr(644,root,root,755)
1470 %attr(755,root,root) %{_vfsdir}/shadow_copy.so
1471 %{_mandir}/man8/vfs_shadow_copy.8*
1474 %files vfs-vscan-antivir
1475 %defattr(644,root,root,755)
1476 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1477 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-antivir.conf
1478 %attr(755,root,root) %{_vfsdir}/vscan-antivir.so
1480 %files vfs-vscan-clamav
1481 %defattr(644,root,root,755)
1482 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1483 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-clamav.conf
1484 %attr(755,root,root) %{_vfsdir}/vscan-clamav.so
1486 %files vfs-vscan-fprot
1487 %defattr(644,root,root,755)
1488 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1489 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-fprotd.conf
1490 %attr(755,root,root) %{_vfsdir}/vscan-fprotd.so
1492 %files vfs-vscan-fsav
1493 %defattr(644,root,root,755)
1494 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1495 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-fsav.conf
1496 %attr(755,root,root) %{_vfsdir}/vscan-fsav.so
1498 %files vfs-vscan-kavp
1499 %defattr(644,root,root,755)
1500 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1501 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-kavp.conf
1502 %attr(755,root,root) %{_vfsdir}/vscan-kavp.so
1504 %files vfs-vscan-mcafee
1505 %defattr(644,root,root,755)
1506 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1507 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-mcdaemon.conf
1508 %attr(755,root,root) %{_vfsdir}/vscan-mcdaemon.so
1511 %ifarch %{ix86} %{x8664}
1512 %files vfs-vscan-mks
1513 %defattr(644,root,root,755)
1514 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1515 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-mks32.conf
1516 %attr(755,root,root) %{_vfsdir}/vscan-mksd.so
1520 %files vfs-vscan-openantivirus
1521 %defattr(644,root,root,755)
1522 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1523 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-oav.conf
1524 %attr(755,root,root) %{_vfsdir}/vscan-oav.so
1526 %files vfs-vscan-sophos
1527 %defattr(644,root,root,755)
1528 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1529 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-sophos.conf
1530 %attr(755,root,root) %{_vfsdir}/vscan-sophos.so
1532 %files vfs-vscan-symantec
1533 %defattr(644,root,root,755)
1534 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1535 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-icap.conf
1536 %attr(755,root,root) %{_vfsdir}/vscan-icap.so
1538 %files vfs-vscan-trend
1539 %defattr(644,root,root,755)
1540 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1541 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-trend.conf
1542 %attr(755,root,root) %{_vfsdir}/vscan-trend.so
1546 %files -n openldap-schema-samba
1547 %defattr(644,root,root,755)
1548 %{schemadir}/*.schema
1552 %defattr(644,root,root,755)
1553 %doc docs/htmldocs/*
1556 %defattr(644,root,root,755)
1560 %files -n python-samba
1561 %defattr(644,root,root,755)
1562 %attr(755,root,root) %{py_sitedir}/*.so
1563 %dir %{py_sitedir}/samba
1564 %attr(755,root,root) %{py_sitedir}/samba/*.so
1565 %{py_sitedir}/samba/*.py[co]
1566 %dir %{py_sitedir}/samba/dcerpc
1567 %{py_sitedir}/samba/dcerpc/*.py[co]
1568 %attr(755,root,root) %{py_sitedir}/samba/dcerpc/*.so
1569 %dir %{py_sitedir}/samba/tests
1570 %{py_sitedir}/samba/tests/*.py[co]
1571 %dir %{py_sitedir}/samba/tests/dcerpc
1572 %{py_sitedir}/samba/tests/dcerpc/*.py[co]
1573 %dir %{py_sitedir}/samba/torture
1574 %{py_sitedir}/samba/torture/*.py[co]