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