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