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