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