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