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