]> git.pld-linux.org Git - packages/samba.git/blob - samba.spec
- missing pl, cleanups, strict internal deps
[packages/samba.git] / samba.spec
1 #
2 # TODO:
3 # - package python tools
4 # - check winbindd package without samba server installed
5 # - look into other distro specs for valid %descriptions for samba 3
6 # - review configure options
7 #
8 # Conditional build:
9 %bcond_without  cups            # without CUPS support
10 %bcond_without  mysql           # without MySQL support
11 %bcond_with     ldapsam         # with LDAP SAM 2.2 based auth (instead of smbpasswd)
12 #%bcond_with    ipv6            # with IPv6 support
13 %bcond_without  ldap            # without LDAP support
14 %bcond_without  krb5            # without Kerberos5/Heimdal support
15 %bcond_with     python          # with python utils, not builds, not packaged now
16 #
17 %define         vscan_version 0.3.4
18 Summary:        SMB server
19 Summary(cs):    Server SMB
20 Summary(da):    SMB server
21 Summary(de):    SMB-Server
22 Summary(es):    El servidor SMB
23 Summary(fi):    SMB-palvelin
24 Summary(fr):    Serveur SMB
25 Summary(it):    Server SMB
26 Summary(ja):    Samba SMB ¥µ¡¼¥Ð¡¼
27 Summary(ko):    »ï¹Ù SMB ¼­¹ö
28 Summary(pl):    Serwer SMB
29 Summary(pt_BR): Cliente e servidor SMB
30 Summary(ru):    SMB ËÌÉÅÎÔ É ÓÅÒ×ÅÒ
31 Summary(tr):    SMB sunucusu
32 Summary(uk):    SMB Ë̦¤ÎÔ ÔÁ ÓÅÒ×ÅÒ
33 Summary(zh_CN): Samba ¿Í»§¶ËºÍ·þÎñÆ÷
34 Name:           samba
35 Version:        3.0.4
36 Epoch:          1
37 Release:        1
38 License:        GPL v2
39 Group:          Networking/Daemons
40 Source0:        http://www.samba.org/samba/ftp/%{name}-%{version}.tar.gz
41 # Source0-md5:  0156265c1e95ac662deef386f615504f
42 Source1:        smb.init
43 Source2:        %{name}.pamd
44 Source3:        swat.inetd
45 Source4:        %{name}.sysconfig
46 Source5:        %{name}.logrotate
47 Source6:        smb.conf
48 Source7:        http://dl.sourceforge.net/openantivirus/%{name}-vscan-%{vscan_version}.tar.bz2
49 # Source7-md5:  acbcb28cff080dcf2ee732b7f2c0f949
50 Source8:        http://aramin.net/~undefine/%{name}-vscan-clamav-0.2.tar.bz2
51 # Source8-md5:  8d425d1e287bdf9d343b6ae4b1c9e842
52 Source9:        winbind.init
53 Source10:       winbind.sysconfig
54 Patch0:         %{name}-statfs-workaround.patch
55 Patch1:         %{name}-lib64.patch
56 #Patch2:        http://v6web.litech.org/samba/%{name}-2.2.4+IPv6-20020609.diff
57 URL:            http://www.samba.org/
58 BuildRequires:  acl-devel
59 BuildRequires:  autoconf
60 BuildRequires:  automake
61 %{?with_cups:BuildRequires:     cups-devel}
62 %{?with_krb5:BuildRequires:     heimdal-devel}
63 BuildRequires:  libtool >= 2:1.4d
64 BuildRequires:  libxml2-devel
65 %if %{with mysql}
66 BuildRequires:  mysql-devel
67 BuildRequires:  mysql-extras
68 %endif
69 BuildRequires:  ncurses-devel >= 5.2
70 %{?with_ldap:BuildRequires:     openldap-devel}
71 BuildRequires:  openssl-devel >= 0.9.7d
72 BuildRequires:  pam-devel > 0.66
73 BuildRequires:  popt-devel
74 BuildRequires:  readline-devel >= 4.2
75 BuildRequires:  xfsprogs-devel
76 %{?with_python:BuildRequires:   python-devel}
77 PreReq:         rc-scripts
78 Requires(post,preun):   /sbin/chkconfig
79 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
80 Requires:       logrotate
81 Requires:       pam >= 0.66
82 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
83
84 %define         _vfsdir         %{_libdir}/%{name}/vfs
85 %define         _sambahome      /home/services/samba
86 %if %{with cups}
87 %define         cups_serverbin  %(cups-config --serverbin)
88 %endif
89
90 %description
91 Samba provides an SMB server which can be used to provide network
92 services to SMB (sometimes called "Lan Manager") clients, including
93 various versions of MS Windows, OS/2, and other Linux machines. Samba
94 also provides some SMB clients, which complement the built-in SMB
95 filesystem in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols
96 and does NOT need NetBEUI (Microsoft Raw NetBIOS frame) protocol.
97
98 This release is known as the "Locking Update" and has full support for
99 Opportunistic File Locking. In addition this update includes native
100 support for Microsoft encrypted passwords, improved browse list and
101 WINS database management.
102
103 Please refer to the WHATSNEW.txt document for fixup information. This
104 binary release includes encrypted password support. Please read the
105 smb.conf file and ENCRYPTION.txt in the docs directory for
106 implementation details.
107
108 %description -l cs
109 Samba poskytuje server SMB, který lze pou¾ít pro poskytování sí»ových
110 slu¾eb klientùm SMB (nìkdy nazývaných klienti "LAN mana¾er") vèetnì
111 klientù rùzných verzí MS Windows, OS/2 a dal¹ích linuxových strojù.
112 Samba té¾ poskytuje nìkteré klienty SMB, kteøí komplementují vestavìný
113 souborový systém SMB v Linuxu. Samba pou¾ívá protokoly NetBIOS pøes
114 TCP/IP (NetBT) a NEpotøebuje protokol NetBEUI (neformátovaný rámec
115 NetBIOS od spoleènosti Microsoft.
116
117 %description -l da
118 Samba tilbyder en SMB server som kan bruges til at tilbyde netværk
119 services til SMB (også kaldet "Lan Manager") klienter, incl.
120 forskellige versioner af MS Windows, OS/2, og andre Linux maskiner.
121 Samba tilbyder også SMB klienter, som udbygger det indbyggede SMB
122 filsystem i Linux. Samba benytter NetBIOS over TCP/IP (NetBT)
123 protocolen og kræver ikke NetBEUI (Microsoft Raw NetBIOS frame)
124 protokollen.
125
126 %description -l de
127 Samba stellt einen SMB-Server zum Anbieten von Netzwerkdiensten für
128 SMB-Clients (auch "Lan Manager" genannt) zur Verfügung, darunter
129 verschiedenen Versionen von MS Windows-, OS/2- und anderen
130 Linux-Rechnern. Samba enthält außerdem einige SMB-Clients, die das in
131 Linux integrierte SMB-Dateisystem ergänzen. Samba benutzt
132 NetBIOS-über-TCP/IP (NetBT)-Protokolle und benötigt KEIN NetBEUI
133 (Microsoft Raw NetBIOS frame)-Protokoll.
134
135 %description -l es
136 Samba provee un servidor SMB que se puede usar para ofrecer servicios
137 de red a clientes SMB (algunas veces se le llama de "Lan Manager"),
138 incluyendo varias versiones de MS Windows, OS/2, y otras máquinas
139 Linux. Samba también ofrece algunos clientes SMB, que complementan el
140 sistema de archivos SMB de Linux. Samba usa el protocolo NetBIOS sobre
141 TCP/IP (NetBT) y no necesita del protocolo NetBEUI (Microsoft Raw
142 NetBIOS frame).
143
144 %description -l fi
145 Samba on SMB-palvelin, jota voidaan käyttää SMB-asiakasohjelmien
146 verkkopalvelujen tarjoajana. SMB-protokollaa kutsutaan joskus "Lan
147 Manager" protokollaksi ja asiakasohjelmat toimivat dosissa,
148 Windowseissa, OS/2:ssa ja toisissa Linux-koneissa. Samban mukana on
149 myös joitakin SMB-asiakasohjelmia, jotka täydentävät Linuxin
150 kernelissä olevaa SMB-tiedostojärjestelmän tukea. Samba vaatii NetBIOS
151 over TCP/IP (NetBT) protokollaa eikä tarvitse tai pysty käyttämään
152 NetBEUI-protokollaa.
153
154 %description -l it
155 Samba fornisce un server SMB che puo` essere usato per fornire servizi
156 di rete ai client SMB, incluse le versioni MS Windows, OS/2 e per
157 altre macchine Linux. Samba fornisce anche i client SMB. Samba usa
158 NetBIOS sopra TCP/IP e non ha bisogno del protocollo NetBEUI.
159
160 %description -l ja
161 Samba ¤Ï MS Windows ¤ÎÍÍ¡¹¤Ê¥Ð¡¼¥¸¥ç¥ó¡¢OS/2 ¤½¤·¤Æ¾¤Î Linux ¥Þ¥·¥ó
162 ¤ò´Þ¤à SMB (¤¿¤Þ¤Ë "Lan Manager" ¤È¸Æ¤Ð¤ì¤ë)
163 ¥¯¥é¥¤¥¢¥ó¥È¤Ë¥Í¥Ã¥È¥ï¡¼¥¯ ¥µ¡¼¥Ó¥¹¤òÄ󶡤¹¤ë¤¿¤á¤Ë»ÈÍѤµ¤ì¤ë SMB
164 ¥µ¡¼¥Ð¤òÄ󶡤·¤Þ¤¹¡£Samba ¤Ï NetBIOS over TCP/IP (NetBT)
165 ¥×¥í¥È¥³¥ë¤ò»ÈÍѤ·¡¢ NetBEUI(Microsoft Raw NetBIOS frame)
166 ¥×¥í¥È¥³¥ë¤ÏɬÍפ¢¤ê¤Þ¤»¤ó¡£
167
168 Samba ¤Û¤È¤ó¤ÉÆ°ºî¤¹¤ë NT ¥É¥á¥¤¥ó¥³¥ó¥È¥í¡¼¥ë¤Îµ¡Ç½¤òÆÃħ¤È¤·¡¢
169 ¹¥¤­¤Ê¥Ö¥é¥¦¥¶¤ò»È¤Ã¤Æ samba ¤Î smb.conf ¥Õ¥¡¥¤¥ë¤ò¥ê¥â¡¼¥È´ÉÍý¤¹¤ë
170 ¿·¤·¤¤ SWAT (Samba Web Administration Tool) ¤ò´Þ¤ß¤Þ¤¹¡£
171 Ìܲ¼¤Î¤È¤³¤í¤³¤ì¤Ï inetd ¤òÄ̤·¤Æ TCP ¥Ý¡¼¥È 901 ¤ÇÍ­¸ú¤Ë¤Ê¤ê¤Þ¤¹¡£
172
173 %description -l ko
174 »ï¹Ù´Â MS Windows, OS/2, È¤Àº ´Ù¸¥ ¸®´ª½º ¸Ó½ÅÀ» Æ÷ÇÔÇϴ SMB(ȤÀº
175 "Lan Manager"¶ó°íµµ ºÒ¸²) Å¬¶óÀ̾ðÆ®¸¦ ³×Æ®¿öÅ© ¼­ºñ½º À§ÇØ »ç¿ëÇÒ ¼ö
176 Àִ SMB ¼­¹ö¸¦ Á¦°øÇÑ´Ù. »ï¹Ù´Â TCP/IP ÇÁ·ÎÅäÄÝÀ» ÅëÇØ NetBIOS¸¦
177 »ç¿ëÇÏ°í NetBEUI (Microsoft Raw NetBIOS ÇÁ·¹ÀÓ) ÇÁ·ÎÅäÄÝÀº ÇÊ¿äÇÏÁö
178 ¾Ê´Ù.
179
180 »ï¹Ù-2.2 ÀǠƯ¡Àº NT µµ¸ÞÀΠÄÁÆ®·ÑÀÇ ¼º´ÉÀ¸·Î ÀÛ¾÷À» ÇÏ°í, »õ·Î¿î
181 SWAT(Samba Web Administration Tool)·Î À¥ºê¶ó¿ìÀú¸¦ »ç¿ëÇÏ¿© ¿ø°ÝÁö¿¡¼­
182 »ï¹ÙÀÇ smb.conf ÆÄÀÏÀ» °ü¸®Çϵµ·Ï ÇÑ´Ù. ÀÌ·¯ÇÑ °æ¿ì inetd µ¥¸óÀ» ÅëÇØ
183 TCP 901 Æ÷Æ®¸¦ »ç¿ëÇÏ°Ô µÈ´Ù.
184
185 ÃÖ±Ù Á¤º¸·Î WHATSNEW.txt ÆÄÀÏÀÇ ¹®¼­¸¦ Âü°íÇϵµ·Ï ÇÑ´Ù. ¹ÙÀ̳ʸ®ÀÇ
186 ¸±¸®Áî´Â ¾ÏȣȭµÈ Æнº¿öµå¸¦ Á¦°øÇÑ´Ù. ±¸Çö¿¡ ´ëÇÑ ÀÚ¼¼ÇÑ Á¤º¸¸¦ ¾ò±â
187 À§ÇØ docs µð·ºÅ丮³»¿¡ Àִ smb.conf ÆÄÀÏ°ú ENCRYPTION.txt ÆÄÀÏÀ»
188 Àо´Ù.
189
190 %description -l pl
191 Samba udostêpnia serwer SMB, który mo¿e byæ u¿yty w celu dostarczenia
192 us³ug sieciowych (potocznie zwanych "Lan Manager"), dla klientów
193 takich jak MS Windows, OS/2 a tak¿e maszyn linuksowych. W pakiecie
194 znajduje siê równie¿ oprogramowanie klienckie. Samba u¿ywa protoko³u
195 NetBIOS po TCP/IP (NetBT) i nie wymaga protoko³u NetBEUI. Ta wersja ma
196 pe³ne wsparcie dla blokowania plików, a tak¿e wsparcie dla kodowania
197 hase³ w standardzie MS i zarz±dzania baz± WINS.
198
199 %description -l pt_BR
200 O Samba provê um servidor SMB que pode ser usado para oferecer
201 serviços de rede a clientes SMB (algumas vezes chamado de "Lan
202 Manager"), incluindo várias versões de MS Windows, OS/2, e outras
203 máquinas Linux. O Samba também fornece alguns clientes SMB, que
204 complementam o sistema de arquivos SMB do Linux. O Samba usa o
205 protocolo NetBIOS sobre TCP/IP (NetBT) e não necessita do protocolo
206 NetBEUI (Microsoft Raw NetBIOS frame).
207
208 O Samba inclui a maioria das características de um servidor de
209 Controle de Domínios NT e o SWAT (Samba Web Administration Tool), que
210 permite que o arquivo smb.conf seja gerenciado remotamente através de
211 um navegador. Atualmente isto está sendo habilitado na porta TCP 901
212 via inetd.
213
214 %description -l ru
215 Samba ÐÒÅÄÏÓÔÁ×ÌÑÅÔ SMB-ÓÅÒ×ÅÒ, ËÏÔÏÒÙÊ ÍÏÖÅÔ ÂÙÔØ ÉÓÐÏÌØÚÏ×ÁΠÄÌÑ
216 ÐÒÅÄÏÓÔÁ×ÌÅÎÉÑ ÓÅÔÅ×ÙÈ ÓÅÒ×ÉÓÏ× SMB (ÉÎÏÇÄÁ ÎÁÚÙ×ÁÅÍÙÍ "Lan Manager")
217 ËÌÉÅÎÔÁÍ, ×ËÌÀÞÁÑ ÒÁÚÎÏÏÂÒÁÚÎÙÅ ×ÅÒÓÉÉ MS Windows, OS/2, É ÄÒÕÇÉÅ
218 Linux-ÍÁÛÉÎÙ. Samba ÔÁËÖÅ ÐÒÅÄÏÓÔÁ×ÌÑÅÔ SMB-ËÌÉÅÎÔÏ×, ËÏÔÏÒÙÅ ÒÁÂÏÔÁÀÔ
219 ÓÏ ×ÓÔÒÏÅÎÎÏÊ × Linux ÆÁÊÌÏ×ÏÊ ÓÉÓÔÅÍÏÊ SMB.
220
221 Samba ÉÓÐÏÌØÚÕÅÔ ÐÒÏÔÏËÏÌ NetBIOS over TCP/IP (NetBT) É ÎÅ ÎÕÖÄÁÅÔÓÑ ×
222 ÐÒÏÔÏËÏÌÅ NetBEUI (Microsoft Raw NetBIOS frame).
223
224 Samba ÓÏÄÅÒÖÉÔ ÐÒÁËÔÉÞÅÓËÉ ÒÁÂÏÔÁÀÝÕÀ ÒÅÁÌÉÚÁÃÉÀ NT Domain Control É
225 ×ËÌÀÞÁÅÔ ÎÏ×ÙÊ SWAT (Samba Web Administration Tool), ËÏÔÏÒÙÊ ÐÏÚ×ÏÌÑÅÔ
226 ÕÄÁÌÅÎÎÏ ÕÐÒÁ×ÌÑÔØ ËÏÎÆÉÇÕÒÁÃÉÏÎÎÙÍ ÆÁÊÌÏÍ smb.conf ÐÒÉ ÐÏÍÏÝÉ ×ÁÛÅÇÏ
227 ÌÀÂÉÍÏÇÏ WEB-ÂÒÏÕÚÅÒÁ. ðÏËÁ ÞÔÏ ÏΠÒÁÚÒÅÛÅΠÞÅÒÅÚ inetd ÎÁ TCP-ÐÏÒÔÕ
228 901.
229
230 %description -l uk
231 Samba ÎÁÄÁ¤ SMB-ÓÅÒ×ÅÒ, ÝÏ ÍÏÖÅ ÂÕÔÉ ×ÉËÏÒÉÓÔÁÎÉÊ ÄÌÑ ÎÁÄÁÎÎÑ
232 ÍÅÒÅÖÅ×ÉÈ ÓÅÒצӦנSMB (ÝÏ §È ¦ÎÏĦ ÎÁÚÉ×ÁÀÔØ "Lan Manager") Ë̦¤ÎÔÁÍ,
233 ×ËÌÀÞÁÀÞÉ Ò¦ÚÎÏÍÁΦÔΦ ×ÅÒÓ¦§ MS Windows, OS/2, ÔÁ ¦ÎÛ¦ Linux-ÍÁÛÉÎÉ.
234 Samba ÔÁËÏÖ ÎÁÄÁ¤ SMB-Ë̦¤ÎÔ¦×, ÝÏ ÐÒÁÃÀÀÔØ Ú ×ÂÕÄÏ×ÁÎÏÀ × Linux
235 ÆÁÊÌÏ×ÏÀ ÓÉÓÔÅÍÏÀ SMB.
236
237 Samba ×ÉËÏÒÉÓÔÏ×Õ¤ ÐÒÏÔÏËÏÌ NetBIOS over TCP/IP (NetBT) ÔÁ ÎÅ ÐÏÔÒÅÂÕ¤
238 ÐÒÏÔÏËÏÌÕ NetBEUI (Microsoft Raw NetBIOS frame).
239
240 Samba Í¦ÓÔÉÔØ ÍÁÊÖÅ ÐÒÁÃÀÀÞÕ ÒÅÁÌÉÚÁæÀ NT Domain Control ÔÁ ÎÏ×ÙÊ
241 SWAT (Samba Web Administration Tool), ËÏÔÒÉÊ ÄÏÚ×ÏÌѤ ×¦ÄÄÁÌÅÎÏ
242 ËÅÒÕ×ÁÔÉ ËÏÎƦÇÕÒÁæÊÎÉÍ ÆÁÊÌÏÍ smb.conf ÚÁ ÄÏÐÏÍÏÇÏÀ ×ÁÛÏÇÏ
243 ÕÌÀÂÌÅÎÏÇÏ WEB-ÂÒÏÕÚÅÒÁ. ðÏËÉ ÝϠצΠÄÏÚ×ÏÌÅÎÉÊ ÞÅÒÅÚ inetd ÎÁ
244 TCP-ÐÏÒÔÕ 901.
245
246 %package swat
247 Summary:        Samba Web Administration Tool
248 Summary(es):    Samba SWAT and Web documentation
249 Summary(pl):    Narzêdzie administracyjne serwisu Samba
250 Summary(pt_BR): Samba SWAT e documentação Web
251 Summary(ru):    ðÒÏÇÒÁÍÍÁ ËÏÎÆÉÇÕÒÁÃÉÉ SMB-ÓÅÒ×ÅÒÁ Samba
252 Summary(uk):    ðÒÏÇÒÁÍÁ ËÏÎÆÉÇÕÒÁ槠SMB-ÓÅÒ×ÅÒÁ Samba
253 Group:          Networking/Admin
254 Requires:       %{name} = %{epoch}:%{version}-%{release}
255 Requires:       inetdaemon
256 Requires:       rc-inetd >= 0.8.2
257 Obsoletes:      swat
258
259 %description swat
260 swat allows a Samba administrator to configure the complex smb.conf
261 file via a Web browser. In addition, a swat configuration page has
262 help links to all the configurable options in the smb.conf file
263 allowing an administrator to easily look up the effects of any change.
264
265 %description swat -l pl
266 swat pozwala na kompleksow± konfiguracjê smb.conf przy pomocy
267 przegl±darki WWW.
268
269 %description swat -l pt_BR
270 SWAT - ferramentada Web de configuração do Samba.
271
272 %description swat -l ru
273 ðÁËÅÔ samba-swat ×ËÌÀÞÁÅÔ ÎÏ×ÙÊ SWAT (Samba Web Administration Tool),
274 ÄÌÑ ÕÄÁÌÅÎÎÏÇÏ ÁÄÍÉÎÉÓÔÒÉÒÏ×ÁÎÉÑ ÆÁÊÌÁ smb.conf ÐÒÉ ÐÏÍÏÝÉ ×ÁÛÅÇÏ
275 ÌÀÂÉÍÏÇÏ Web-ÂÒÁÕÚÅÒÁ.
276
277 %description swat -l uk
278 ðÁËÅÔ samba-swat Í¦ÓÔÉÔØ ÎÏ×ÉÊ SWAT (Samba Web Administration Tool),
279 ÄÌÑ ÄÉÓÔÁÎæÊÎÏÇÏ ÁÄͦΦÓÔÒÕ×ÁÎÎÑ ÆÁÊÌÕ smb.conf ÚÁ ÄÏÐÏÍÏÇÏÀ ×ÁÛÏÇÏ
280 ÕÌÀÂÌÅÎÏÇÏ Web-ÂÒÁÕÚÅÒÕ.
281
282 %package pdb-mysql
283 Summary:        Samba MySQL password database plugin
284 Summary(pl):    Wtyczka Samby do przechowywania hase³ w bazie MySQL
285 Group:          Networking/Daemons
286 Requires:       %{name} = %{epoch}:%{version}-%{release}
287
288 %description pdb-mysql
289 Samba MySQL password database plugin.
290
291 %description pdb-mysql -l pl
292 Wtyczka Samby do przechowywania hase³ w bazie MySQL.
293
294 %package pdb-xml
295 Summary:        Samba XML password database plugin
296 Summary(pl):    Wtyczka Samby do przechowywania hase³ w bazie XML
297 Group:          Networking/Daemons
298 Requires:       %{name} = %{epoch}:%{version}-%{release}
299
300 %description pdb-xml
301 Samba XML password database plugin.
302
303 %description pdb-xml -l pl
304 Wtyczka Samby do przechowywania hase³ w bazie XML.
305
306 %package client
307 Summary:        Samba client programs
308 Summary(es):    Cliente SMB de Samba
309 Summary(ja):    Samba (SMB) ¥¯¥é¥¤¥¢¥ó¥È¥×¥í¥°¥é¥à
310 Summary(pl):    Klienci serwera Samba
311 Summary(pt_BR): Cliente SMB do samba
312 Summary(ru):    ëÌÉÅÎÔÓËÉÅ ÐÒÏÇÒÁÍÍÙ Samba (SMB)
313 Summary(uk):    ë̦¤ÎÔÓØ˦ ÐÒÏÇÒÁÍÉ Samba (SMB)
314 Group:          Applications/Networking
315 Requires:       samba-common = %{epoch}:%{version}-%{release}
316 Obsoletes:      smbfs
317 Obsoletes:      mount-cifs
318
319 %description client
320 Samba-client provides some SMB clients, which complement the build-in
321 SMB filesystem in Linux. These allow accessing of SMB shares and
322 printing to SMB printers.
323
324 %description client -l pt_BR
325 O pacote samba-clientes prove alguns clientes SMB, que complementam o
326 sistema de arquivos SMB do Linux. Eles permitem o acesso a shares SMB,
327 e também, à impressoras SMB.
328
329 %description client -l es
330 Cliente SMB de Samba.
331
332 %description client -l ja
333 Samba-client ¤Ï Linux ¾å¤Ë´Þ¤Þ¤ì¤Æ¤¤¤ë SMB ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òÊ䤦 SMB
334 ¥¯¥é¥¤¥¢¥ó¥È¤òÄ󶡤·¤Þ¤¹¡£¤³¤ì¤é¤Ï SMB ¶¦Í­¤Î¥¢¥¯¥»¥¹¤È SMB
335 ¥×¥ê¥ó¥¿¤Ø¤Î°õºþ¤òµö²Ä¤·¤Þ¤¹¡£
336
337 %description client -l pl
338 Samba-client dostarcza programy uzupe³niaj±ce obs³ugê systemu plików
339 SMB zawart± w j±drze. Pozwalaj± one na wspó³dzielenie zasobów SMB i
340 drukowanie w sieci SMB.
341
342 %description client -l pt_BR
343 O pacote samba-clientes prove alguns clientes SMB, que complementam o
344 sistema de arquivos SMB do Linux. Eles permitem o acesso a shares SMB,
345 e também, à impressoras SMB.
346
347 %description client -l ru
348 ðÁËÅÔ samba-client ÐÒÅÄÏÓÔÁ×ÌÑÅÔ ÎÅËÏÔÏÒÙÅ ËÌÉÅÎÔÙ SMB ÄÌÑ ÒÁÂÏÔÙ ÓÏ
349 ×ÓÔÒÏÅÎÎÏÊ ÆÁÊÌÏ×ÏÊ ÓÉÓÔÅÍÏÊ SMB × Linux. üÔÉ ËÌÉÅÎÔÙ ÐÏÚ×ÏÌÑÀÔ
350 ÐÏÌÕÞÁÔØ ÄÏÓÔÕРˠÒÁÚÄÅÌÑÅÍÙÍ ËÁÔÁÌÏÇÁÍ SMB É ÐÅÞÁÔØ ÎÁ SMB-ÐÒÉÎÔÅÒÙ.
351
352 %description client -l uk
353 ðÁËÅÔ samba-client ÎÁÄÁ¤ ÄÅÑ˦ Ë̦¤ÎÔÉ SMB ÄÌÑ ÒÏÂÏÔÉ Ú¦ ×ÂÕÄÏ×ÁÎÏÀ
354 ÆÁÊÌÏ×ÏÀ ÓÉÓÔÅÍÏÀ SMB × Linux. ã¦ Ë̦¤ÎÔÉ ÄÏÚ×ÏÌÑÀÔØ ÏÔÒÉÍÕ×ÁÔÉ ÄÏÓÔÕÐ
355 ÄÏ ËÁÔÁÌÏǦנÓЦÌØÎÏÇÏ ×ÉËÏÒÉÓÔÁÎÎÑ SMB ÔÁ ÄÒÕË ÎÁ SMB-ÐÒ¦ÎÔÅÒÉ.
356
357 %package common
358 Summary:        Files used by both Samba servers and clients
359 Summary(es):    Common files between samba and samba-clients
360 Summary(ja):    Samba ¥µ¡¼¥Ð¡¼¤È¥¯¥é¥¤¥¢¥ó¥È¤Ç»ÈÍѤµ¤ì¤ë¥×¥í¥°¥é¥à
361 Summary(pl):    Pliki u¿ywane przez serwer i klientów Samba
362 Summary(pt_BR): Arquivos em comum entre samba e samba-clients
363 Summary(ru):    æÁÊÌÙ, ÉÓÐÏÌØÚÕÅÍÙÅ ËÁË ÓÅÒ×ÅÒÏÍ, ÔÁË É ËÌÉÅÎÔÏÍ Samba
364 Summary(uk):    æÁÊÌÉ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØÓÑ ÑË ÓÅÒ×ÅÒÏÍ, ÔÁË ¦ Ë̦¤ÎÔÏÍ Samba
365 Group:          Networking/Daemons
366
367 %description common
368 Samba-common provides files necessary for both the server and client
369 packages of Samba.
370
371 %description common -l ja
372 Samba-common ¤Ï Samba ¤Î¥µ¡¼¥Ð¤È¥¯¥é¥¤¥¢¥ó¥È¤ÎξÊý¤Î¥Ñ¥Ã¥±¡¼¥¸¤Ç
373 »ÈÍѤµ¤ì¤ë¥Õ¥¡¥¤¥ë¤òÄ󶡤·¤Þ¤¹¡£
374
375 %description common -l pl
376 Samba-common dostarcza pliki niezbêdne zarówno dla serwera jak i
377 klientów Samba.
378
379 %description common -l pt_BR
380 Arquivos em comum entre os pacotes samba e samba-clients.
381
382 %description common -l ru
383 Samba-common ÓÏÄÅÒÖÉÔ ÆÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÂÏÔÙ ËÁË ËÌÉÅÎÔÁ, ÔÁË É
384 ÓÅÒ×ÅÒÁ Samba.
385
386 %description common -l uk
387 Samba-common Í¦ÓÔÉÔØ ÆÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÂÏÔÉ ÑË Ë̦¤ÎÔÁ, ÔÁË ¦
388 ÓÅÒ×ÅÒÁ Samba.
389
390 %package winbind
391 Summary:        Samba-winbind daemon, utilities and documentation
392 Summary(pl):    Demon samba-winbind, narzêdzia i dokumentacja
393 Group:          Networking/Daemons
394 Requires(post,preun):   /sbin/chkconfig
395 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
396
397 %description winbind
398 Provides the winbind daemon and testing tools to allow authentication
399 and group/user enumeration from a Windows or Samba domain controller.
400
401 %description winbind -l pl
402 Pakiet zawiera demona winbind oraz narzêdzia testowe. Umo¿liwia
403 uwierzytelnianie i wyliczanie grup/u¿ytkowników z kontrolera domeny
404 Windows lub Samba.
405
406 %package -n nss_wins
407 Summary:        Name Service Switch service for WINS
408 Summary(pl):    Us³uga Name Service Switch dla WINS
409 Group:          Base
410 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
411
412 %description -n nss_wins
413 Provides the libnss_wins shared library which resolves NetBIOS names
414 to IP addresses.
415
416 %description -n nss_wins -l pl
417 Biblioteka dzielona libnss_wins rozwi±zuj±ca nazwy NetBIOS na adresy
418 IP.
419
420 %package -n pam-pam_smbpass
421 Summary:        PAM Samba Password Module
422 Summary(pl):    Modu³ PAM smbpass
423 Group:          Base
424 Obsoletes:      pam_smbpass
425
426 %description -n pam-pam_smbpass
427 PAM module which can be used on conforming systems to keep the
428 smbpasswd (Samba password) database in sync with the unix password
429 file.
430
431 %description -n pam-pam_smbpass -l pl
432 Modu³ PAM, który mo¿e byæ u¿ywany do trzymania pliku smbpasswd (has³a
433 Samby) zsynchronizowanego z has³ami unixowymi.
434
435 %package -n libsmbclient
436 Summary:        libsmbclient - samba client library
437 Summary(pl):    libsmbclient - biblioteka klienta samby
438 Group:          Libraries
439
440 %description -n libsmbclient
441 libsmbclient - library that allows to use samba clients functions.
442
443 %description -n libsmbclient -l pl
444 libsmbclient - biblioteka pozwalaj±ca korzystaæ z funcji klienta
445 samby.
446
447 %package -n libsmbclient-devel
448 Summary:        libsmbclient - samba client library
449 Summary(pl):    libsmbclient - biblioteka klienta samby
450 Summary(pt_BR): Ferramentas de desenvolvimento para clientes samba
451 Group:          Development/Libraries
452 Requires:       libsmbclient = %{epoch}:%{version}-%{release}
453
454 %description -n libsmbclient-devel
455 Header files for libsmbclient.
456
457 %description -n libsmbclient-devel -l pl
458 Pliki nag³ówkowe dla libsmbclient.
459
460 %description -n libsmbclient-devel -l pt_BR
461 Arquivos de inclusão, bibliotecas e documentação necessários para
462 desenvolver aplicativos clientes para o samba.
463
464 %package -n libsmbclient-static
465 Summary:        Static version of libsmbclient - samba client library
466 Summary(pl):    Statyczna wersja libsmbclient - biblioteki klienta samby
467 Summary(pt_BR): Ferramentas de desenvolvimento para clientes samba
468 Group:          Development/Libraries
469 Requires:       libsmbclient = %{epoch}:%{version}-%{release}
470
471 %description -n libsmbclient-static
472 Static libsmbclient library.
473
474 %description -n libsmbclient-static -l pl
475 Statyczna biblioteka libsmbclient.
476
477 %package -n smbget
478 Summary:        A utility for retrieving files using the SMB protocol
479 Summary(pl):    Narzêdzie do pobierania plików protoko³em SMB
480 Group:          Applications/Networking
481
482 %description -n smbget
483 wget-like utility for download files over SMB.
484
485 %description -n smbget -l pl
486 Narzêdzie podobne do wgeta do pobierania plików protoko³em SMB
487 u¿ywanym w sieciach MS Windows.
488
489 %package -n cups-backend-smb
490 Summary:        CUPS backend for printing to SMB printers
491 Summary(pl):    Backend CUPS-a drukuj±cy na drukarkach SMB
492 Group:          Applications/Printing
493 Requires:       %{name}-client = %{epoch}:%{version}-%{release}
494 Requires:       cups
495
496 %description -n cups-backend-smb
497 CUPS backend for printing to SMB printers.
498
499 %description -n cups-backend-smb -l pl
500 Backend CUPS-a drukuj±cy na drukarkach SMB.
501
502 %package vfs-audit
503 Summary:        VFS module to audit file access
504 Summary(pl):    Modu³ VFS do monitorowania operacji na plikach
505 Group:          Networking/Daemons
506 Requires:       %{name} = %{epoch}:%{version}-%{release}
507
508 %description vfs-audit
509 A simple module to audit file access to the syslog facility. The
510 following operations are logged: share connect/disconnect, directory
511 opens/create/remove, file open/close/rename/unlink/chmod.
512
513 %description vfs-audit -l pl
514 Prosty modu³ do monitorowania dostêpu do plików do sysloga.
515 Monitorowane s± nastêpuj±ce operacje: pod³±czone/od³±czenie do zasobu,
516 otwarcie/utworzenie/zmiana nazwy katalogu, otwarcie/zamknêcie/zmiana
517 nazwy/skasowania/zmiana praw plików.
518
519 %package vfs-block
520 Summary:        VFS module to block access to files
521 Summary(pl):    Modu³y VFS do blokowania dostêpu do plików
522 Group:          Networking/Daemons
523 Requires:       %{name} = %{epoch}:%{version}-%{release}
524
525 %description vfs-block
526 Sample module by Ronald Kuetemeier <ronald@kuetemeier.com> to block
527 named symbolic link following. Note: Config file is in
528 /etc/samba/samba-block.conf .
529
530 %description vfs-block -l pl
531 Przyk³adowy modu³ stworzony przez Ronald Kuetemeier
532 <ronald@kuetemeier.com> do blokowania dostêpu do plików wskazywanych
533 przez linki symboliczne. Plik konfiguracyjny w
534 /etc/samba/samba-block.conf .
535
536 %package vfs-recycle
537 Summary:        VFS module to add recycle bin facility to a samba share
538 Summary(pl):    Modu³ VFS dodaj±cy mo¿liwo¶æ kosza do zasobu samby
539 Group:          Networking/Daemons
540 Requires:       %{name} = %{epoch}:%{version}-%{release}
541
542 %description vfs-recycle
543 VFS module to add recycle bin facility to a samba share.
544
545 %description vfs-recycle -l pl
546 Modu³ VFS dodaj±cy mo¿liwo¶æ kosza do zasobu samby.
547
548 %package vfs-shadow-copy
549 Summary:        VFS module to make automatic copy of data in samba share
550 Summary(pl):    Modu³ VFS do tworzenia automatycznych kopii danych w udziale samby
551 Group:          Networking/Daemons
552 Requires:       %{name} = %{epoch}:%{version}-%{release}
553
554 %description vfs-shadow-copy
555 VFS module to make automatic copy of data in samba share.
556
557 %description vfs-shadow-copy -l pl
558 Modu³ VFS do tworzenia automatycznych kopii danych w udziale samby.
559
560 %package vfs-vscan-clamav
561 Summary:        On-access virus scanning for samba using ClamAV
562 Summary(pl):    Skaner antywirusowy online wykorzystuj±cy ClamAV
563 Group:          Networking/Daemons
564 Requires:       %{name} = %{epoch}:%{version}-%{release}
565 Requires:       clamav
566 Provides:       %{name}-vscan = %{epoch}:%{version}-%{release}
567
568 %description vfs-vscan-clamav
569 A vfs-module for samba to implement on-access scanning using the
570 ClamAV antivirus software (which must be installed to use this).
571
572 %description vfs-vscan-clamav -l pl
573 Modu³ vfs do samby implementuj±cy skaning antywirusowy w czasie
574 dostêpu do plików korzystaj±c z oprogramowania antywirusowego ClamAV
575 (które musi byæ zainstalowane, aby wykorzystaæ ten modu³).
576
577 %package vfs-vscan-fprot
578 Summary:        On-access virus scanning for samba using FPROT
579 Summary(pl):    Skaner antywirusowy online wykorzystuj±cy FPROT
580 Group:          Networking/Daemons
581 Requires:       %{name} = %{epoch}:%{version}-%{release}
582 Provides:       %{name}-vscan = %{epoch}:%{version}-%{release}
583 Obsoletes:      vscan-fprot
584
585 %description vfs-vscan-fprot
586 A vfs-module for samba to implement on-access scanning using the FPROT
587 antivirus software (which must be installed to use this).
588
589 %description vfs-vscan-fprot -l pl
590 Modu³ vfs do samby implementuj±cy skaning antywirusowy w czasie
591 dostêpu do plików korzystaj±c z oprogramowania antywirusowego FPROT
592 (które musi byæ zainstalowane, aby wykorzystaæ ten modu³).
593
594 %package vfs-vscan-openantivirus
595 Summary:        On-access virus scanning for samba using OpenAntivirus
596 Summary(pl):    Modu³ VFS dodaj±cy obs³ugê antywirusa OpenAntiVirus
597 Group:          Networking/Daemons
598 Requires:       %{name} = %{epoch}:%{version}-%{release}
599 Provides:       %{name}-vscan = %{epoch}:%{version}-%{release}
600 Obsoletes:      vscan-openantivirus
601
602 %description vfs-vscan-openantivirus
603 A vfs-module for samba to implement on-access scanning using the
604 OpenAntivirus antivirus software (which must be installed to use
605 this).
606
607 %description vfs-vscan-openantivirus -l pl
608 Modu³ vfs do samby implementuj±cy skaning antywirusowy w czasie
609 dostêpu do plików korzystaj±c z oprogramowania antywirusowego
610 OpenAntiVirus.org (które musi byæ zainstalowane, aby wykorzystaæ ten
611 modu³).
612
613 %package vfs-vscan-sophos
614 Summary:        On-access virus scanning for samba using Sophos
615 Summary(pl):    Modu³ VFS dodaj±cy obs³ugê antywirusa Sophos
616 Group:          Networking/Daemons
617 Requires:       %{name} = %{epoch}:%{version}-%{release}
618 Provides:       %{name}-vscan = %{epoch}:%{version}-%{release}
619 Obsoletes:      vscan-sophos
620
621 %description vfs-vscan-sophos
622 A vfs-module for samba to implement on-access scanning using the
623 Sophos antivirus software (which must be installed to use this).
624
625 %description vfs-vscan-sophos -l pl
626 Modu³ vfs do samby implementuj±cy skaning antywirusowy w czasie
627 dostêpu do plików korzystaj±c z oprogramowania antywirusowego Sophos
628 (które musi byæ zainstalowane, aby wykorzystaæ ten modu³).
629
630 %package vfs-vscan-symantec
631 Summary:        On-access virus scanning for samba using Symantec
632 Summary(pl):    Skaner antywirusowy online wykorzystuj±cy Symantec
633 Group:          Networking/Daemons
634 Requires:       %{name} = %{epoch}:%{version}-%{release}
635 Provides:       %{name}-vscan = %{epoch}:%{version}-%{release}
636 Obsoletes:      vscan-symantec
637
638 %description vfs-vscan-symantec
639 A vfs-module for samba to implement on-access scanning using the
640 Symantec antivirus software (which must be installed to use this).
641
642 %description vfs-vscan-symantec -l pl
643 Modu³ vfs do samby implementuj±cy skaning antywirusowy w czasie
644 dostêpu do plików korzystaj±c z oprogramowania antywirusowego firmy
645 Symantec (które musi byæ zainstalowane, aby wykorzystaæ ten modu³).
646
647 %package vfs-vscan-trend
648 Summary:        On-access virus scanning for samba using Trend
649 Summary(pl):    Modu³ VFS dodaj±cy obs³ugê antywirusa Trend
650 Group:          Networking/Daemons
651 Requires:       %{name} = %{epoch}:%{version}-%{release}
652 Provides:       %{name}-vscan = %{epoch}:%{version}-%{release}
653 Obsoletes:      vscan-trend
654
655 %description vfs-vscan-trend
656 A vfs-module for samba to implement on-access scanning using the Trend
657 antivirus software (which must be installed to use this).
658
659 %description vfs-vscan-trend -l pl
660 Modu³ vfs do samby implementuj±cy skaning antywirusowy w czasie
661 dostêpu do plików korzystaj±c z oprogramowania antywirusowego Trend
662 (które musi byæ zainstalowane, aby wykorzystaæ ten modu³).
663
664 %package vfs-vscan-mks
665 Summary:        On-access virus scanning for samba using mks
666 Summary(pl):    Modu³ VFS dodaj±cy obs³ugê antywirusa mks
667 Group:          Networking/Daemons
668 Requires:       %{name} = %{epoch}:%{version}-%{release}
669 Requires:       mksd
670 Provides:       %{name}-vscan = %{epoch}:%{version}-%{release}
671 Obsoletes:      vscan-mks
672
673 %description vfs-vscan-mks
674 A vfs-module for samba to implement on-access scanning using the mks
675 antivirus software (which must be installed to use this).
676
677 %description vfs-vscan-mks -l pl
678 Modu³ vfs do samby implementuj±cy skaning antywirusowy w czasie
679 dostêpu do plików korzystaj±c z oprogramowania antywirusowego mks
680 (które musi byæ zainstalowane, aby wykorzystaæ ten modu³).
681
682 %package vfs-vscan-kavp
683 Summary:        On-access virus scanning for samba using Kaspersky AVP
684 Summary(pl):    Modu³ VFS dodaj±cy obs³ugê antywirusa Kaspersky AVP
685 Group:          Networking/Daemons
686 Requires:       %{name} = %{epoch}:%{version}-%{release}
687 Provides:       %{name}-vscan = %{epoch}:%{version}-%{release}
688 Obsoletes:      vscan-kavp
689
690 %description vfs-vscan-kavp
691 A vfs-module for samba to implement on-access scanning using the
692 Kaspersky AVP antivirus software (which must be installed to use
693 this).
694
695 %description vfs-vscan-kavp -l pl
696 Modu³ vfs do samby implementuj±cy skaning antywirusowy w czasie
697 dostêpu do plików korzystaj±c z oprogramowania antywirusowego
698 Kaspersky AVP (które musi byæ zainstalowane, aby wykorzystaæ ten
699 modu³).
700
701 %prep
702 %setup -q
703 %patch0 -p1
704 %ifarch amd64
705 %patch1 -p1
706 %endif
707 #%{?with_ipv6:%patch2 -p1}
708
709 cd examples/VFS
710 tar xjf %{SOURCE7}
711 #cd %{name}-vscan-%{vscan_version}
712 #tar xjf %{SOURCE8}
713
714 %build
715 cd source
716 %{__libtoolize}
717 %{__autoconf}
718
719 # Removed options (default or not supported by configure script)
720 #       --with-mmap \
721 #       --with-netatalk \
722 #       --without-smbwrapper \
723 #       --with-sslinc=%{_prefix} \
724 #       --with-vfs \
725 #       --with-tdbsam \
726 #       %{?with_ipv6:--with-ipv6} \
727
728 %configure \
729         --with-acl-support \
730         --with-automount \
731         --with-libsmbclient \
732         --with-pam \
733         --with-pam_smbpass \
734         --with-ads \
735         --with-privatedir=%{_sysconfdir}/samba \
736         --with-quotas \
737         --with-readline \
738         --with-smbmount \
739         --with-swatdir=%{_datadir}/swat \
740         --with-syslog \
741         --with-utmp \
742         --with-fhs \
743         %{?with_python:--with-python} \
744         --with-expsam=xml,%{?with_mysql:mysql} \
745         %{?with_ldapsam:--with-ldapsam} \
746         %{!?with_ldap:--without-ldap} \
747         %{?with_krb5:--with-krb5} \
748         %{!?with_krb5:--without-krb5}
749
750 %{__make} proto
751 %{__make} everything pam_smbpass bin/smbget client/mount.cifs
752
753 cd ../examples/VFS
754 %{__autoconf}
755 %configure \
756         CFLAGS="%{rpmcflags} -fPIC"
757 %{__make}
758 mv README{,.vfs}
759
760 cd samba-vscan-%{vscan_version}
761 cp /usr/share/automake/config.sub .
762 %configure
763 %{__make} -j1 oav sophos fprotd trend icap mksd kavp clamav
764
765 %install
766 rm -rf $RPM_BUILD_ROOT
767 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,pam.d,security,sysconfig/rc-inetd} \
768         $RPM_BUILD_ROOT/var/{lock,log,log/archiv,spool}/samba \
769         $RPM_BUILD_ROOT{/sbin,/%{_lib}/security,%{_libdir},%{_vfsdir},%{_includedir},%{_sambahome}}
770
771 cd source
772 %{__make} install \
773         DESTDIR=$RPM_BUILD_ROOT \
774         CONFIGDIR=$RPM_BUILD_ROOT%{_sysconfdir}/samba
775
776 install script/mksmbpasswd.sh $RPM_BUILD_ROOT%{_sbindir}
777 cd ..
778
779 ln -sf %{_bindir}/smbmount $RPM_BUILD_ROOT/sbin/mount.smbfs
780
781 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/smb
782 install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/samba
783 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/swat
784 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/samba
785 install %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/samba
786 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/samba/smb.conf
787 install %{SOURCE9} $RPM_BUILD_ROOT/etc/rc.d/init.d/winbind
788 install %{SOURCE10} $RPM_BUILD_ROOT/etc/sysconfig/winbind
789
790 install source/client/mount.cifs        $RPM_BUILD_ROOT/sbin/mount.cifs
791 install source/nsswitch/libnss_winbind.so $RPM_BUILD_ROOT/%{_lib}/libnss_winbind.so.2
792 ln -s libnss_winbind.so.2               $RPM_BUILD_ROOT/%{_lib}/libnss_winbind.so
793 install source/nsswitch/libnss_wins.so  $RPM_BUILD_ROOT/%{_lib}/libnss_wins.so.2
794 ln -s libnss_wins.so.2                  $RPM_BUILD_ROOT/%{_lib}/libnss_wins.so
795 install source/nsswitch/pam_winbind.so  $RPM_BUILD_ROOT/%{_lib}/security
796 install source/bin/pam_smbpass.so       $RPM_BUILD_ROOT/%{_lib}/security
797 install source/bin/wbinfo               $RPM_BUILD_ROOT%{_bindir}
798 install source/bin/smbget               $RPM_BUILD_ROOT%{_bindir}
799
800 mv $RPM_BUILD_ROOT%{_libdir}/libsmbclient.so $RPM_BUILD_ROOT%{_libdir}/libsmbclient.so.0
801 ln -s libsmbclient.so.0 $RPM_BUILD_ROOT%{_libdir}/libsmbclient.so
802
803 install source/include/libsmbclient.h $RPM_BUILD_ROOT%{_includedir}
804
805 # przyk³adowe modu³y VFS
806 #install examples/VFS/{*.so,block/*.so,recycle/*.so} $RPM_BUILD_ROOT%{_vfsdir}
807 #install examples/VFS/block/samba-block.conf examples/VFS/recycle/recycle.conf $RPM_BUILD_ROOT/%{_sysconfdir}/samba
808
809 # modu³y vscan
810 install examples/VFS/samba-vscan-%{vscan_version}/*.so $RPM_BUILD_ROOT%{_vfsdir}
811 install examples/VFS/samba-vscan-%{vscan_version}/{clamav,fprot,icap,kaspersky,mks,openantivirus,sophos,trend}/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/samba
812
813 touch $RPM_BUILD_ROOT/var/lock/samba/{STATUS..LCK,wins.dat,browse.dat}
814
815 echo 127.0.0.1 localhost > $RPM_BUILD_ROOT%{_sysconfdir}/samba/lmhosts
816
817 %if %{with cups}
818 install -d $RPM_BUILD_ROOT%{cups_serverbin}/backend
819 ln -s %{_bindir}/smbspool $RPM_BUILD_ROOT%{cups_serverbin}/backend/smb
820 %endif
821
822 > $RPM_BUILD_ROOT%{_sysconfdir}/samba/smbusers
823 > $RPM_BUILD_ROOT/etc/security/blacklist.samba
824
825 rm -f docs/faq/*.{sgml,txt}
826 rm -f docs/htmldocs/*.[0-9].html
827
828 # we have this utility in tdb package
829 rm -f $RPM_BUILD_ROOT{%{_bindir}/tdbdump,%{_mandir}/man8/tdbdump.8*}
830
831 %clean
832 rm -rf $RPM_BUILD_ROOT
833
834 %post
835 /sbin/chkconfig --add smb
836 if [ -r /var/lock/subsys/smb ]; then
837         /etc/rc.d/init.d/smb restart >&2
838 else
839         echo "Run \"/etc/rc.d/init.d/smb start\" to start Samba daemons."
840 fi
841
842 %preun
843 if [ "$1" = "0" ]; then
844         if [ -r /var/lock/subsys/smb ]; then
845                 /etc/rc.d/init.d/smb stop >&2
846         fi
847         /sbin/chkconfig --del smb
848 fi
849
850 %post winbind
851 /sbin/chkconfig --add winbind
852 if [ -r /var/lock/subsys/winbind ]; then
853         /etc/rc.d/init.d/winbind restart >&2
854 else
855         echo "Run \"/etc/rc.d/init.d/winbind start\" to start Winbind daemon."
856 fi
857
858 %preun winbind
859 if [ "$1" = "0" ]; then
860         if [ -r /var/lock/subsys/winbind ]; then
861                 /etc/rc.d/init.d/winbind stop >&2
862         fi
863         /sbin/chkconfig --del winbind
864 fi
865
866 %post swat
867 if [ -f /var/lock/subsys/rc-inetd ]; then
868         /etc/rc.d/init.d/rc-inetd reload 1>&2
869 else
870         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
871 fi
872
873 %postun swat
874 if [ -f /var/lock/subsys/rc-inetd ]; then
875         /etc/rc.d/init.d/rc-inetd reload
876 fi
877
878 %triggerpostun -- samba < 1.9.18p7
879 if [ "$1" != "0" ]; then
880         /sbin/chkconfig --add smb
881 fi
882
883 %triggerpostun -- samba < 2.0.5a-3
884 if [ "$1" != "0" ]; then
885         [ ! -d /var/lock/samba ] && mkdir -m 0755 /var/lock/samba
886         [ ! -d /var/spool/samba ] && mkdir -m 1777 /var/spool/samba
887 fi
888
889 %files
890 %defattr(644,root,root,755)
891 %attr(755,root,root) %{_sbindir}/nmbd
892 %attr(755,root,root) %{_sbindir}/smbd
893 #%attr(755,root,root) %{_sbindir}/winbindd
894 %attr(755,root,root) %{_sbindir}/mksmbpasswd.sh
895 %attr(755,root,root) %{_bindir}/smbstatus
896 %attr(755,root,root) %{_bindir}/smbpasswd
897 %attr(755,root,root) %{_bindir}/smbcontrol
898 %attr(755,root,root) %{_bindir}/tdbbackup
899 #%attr(755,root,root) %{_bindir}/tdbdump
900
901 #%attr(755,root,root) /%{_lib}/libnss_*
902 #%attr(755,root,root) /%{_lib}/security/pam_winbind.so
903 #%attr(755,root,root) %{_libdir}/%{name}/pdb/*.so
904 %dir %{_libdir}/%{name}/pdb
905 %dir %{_vfsdir}
906
907 %attr(600,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/samba/smbusers
908 %attr(754,root,root) /etc/rc.d/init.d/smb
909 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/samba
910 %attr(640,root,root) /etc/logrotate.d/samba
911 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/samba
912 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/security/blacklist.samba
913 %{_mandir}/man1/smbstatus.1*
914 %{_mandir}/man1/smbcontrol.1*
915 %{_mandir}/man5/smbpasswd.5*
916 %{_mandir}/man7/samba.7*
917 %{_mandir}/man8/nmbd.8*
918 %{_mandir}/man8/smbd.8*
919 %{_mandir}/man8/smbpasswd.8*
920 %{_mandir}/man8/pdbedit.8*
921 %{_mandir}/man8/winbindd.8*
922 %{_mandir}/man8/tdbbackup.8*
923 #%{_mandir}/man8/tdbdump.8*
924
925 %dir %{_sambahome}
926 %dir /var/lock/samba
927 %ghost /var/lock/samba/*
928
929 %attr(0750,root,root) %dir /var/log/samba
930 %attr(0750,root,root) %dir /var/log/archiv/samba
931 %attr(1777,root,root) %dir /var/spool/samba
932
933 %if %{with mysql}
934 %files pdb-mysql
935 %defattr(644,root,root,755)
936 %attr(755,root,root) %{_libdir}/%{name}/pdb/mysql.so
937 %endif
938
939 %files pdb-xml
940 %defattr(644,root,root,755)
941 %attr(755,root,root) %{_libdir}/%{name}/pdb/xml.so
942
943 %files winbind
944 %defattr(644,root,root,755)
945 %attr(755,root,root) %{_sbindir}/winbindd
946 %attr(755,root,root) %{_bindir}/wbinfo
947 %attr(755,root,root) /%{_lib}/security/pam_winbind*
948 %attr(755,root,root) /%{_lib}/libnss_winbind*
949 %attr(754,root,root) /etc/rc.d/init.d/winbind
950 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/winbind
951 #%attr(-,root,root) %config(noreplace) %{_sysconfdir}/pam.d/system-auth-winbind*
952 %{_mandir}/man8/winbindd*.8*
953 %{_mandir}/man1/wbinfo*.1*
954
955 %files -n nss_wins
956 %defattr(644,root,root,755)
957 %attr(755,root,root) /%{_lib}/libnss_wins*
958
959 %files client
960 %defattr(644,root,root,755)
961 %attr(755,root,root) /sbin/mount.smbfs
962 %attr(755,root,root) /sbin/mount.cifs
963 %attr(755,root,root) %{_bindir}/smbmount
964 %attr(755,root,root) %{_bindir}/smbmnt
965 %attr(755,root,root) %{_bindir}/smbumount
966 %attr(755,root,root) %{_bindir}/net
967 %attr(755,root,root) %{_bindir}/smbtree
968 %{_mandir}/man8/net.8*
969 %{_mandir}/man8/smbmnt.8*
970 %{_mandir}/man8/smbmount.8*
971 %{_mandir}/man8/smbumount.8*
972 %{_mandir}/man8/mount.cifs.8*
973 %attr(755,root,root) %{_bindir}/nmblookup
974 %attr(755,root,root) %{_bindir}/smbclient
975 %attr(755,root,root) %{_bindir}/smbtar
976 %attr(755,root,root) %{_bindir}/smbcacls
977 %{_mandir}/man1/smbtar.1*
978 %{_mandir}/man1/smbtree.1*
979 %{_mandir}/man1/smbclient.1*
980 %{_mandir}/man1/nmblookup.1*
981 %{_mandir}/man1/smbcacls.1*
982 %{_mandir}/man1/smbsh.1*
983 %attr(755,root,root) %{_bindir}/rpcclient
984 %{_mandir}/man1/rpcclient.1*
985 %attr(755,root,root) %{_bindir}/wbinfo
986 %{_mandir}/man1/wbinfo.1*
987 %attr(755,root,root) %{_bindir}/findsmb
988 %{_mandir}/man1/findsmb.1*
989
990 %files common
991 %defattr(644,root,root,755)
992 %doc README Manifest WHATSNEW.txt
993 %doc Roadmap docs/*.pdf docs/registry/*
994 %doc docs/htmldocs/*.* docs/{history,THANKS}
995 %dir %{_libdir}/%{name}
996 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/samba/smb.conf
997 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/samba/lmhosts
998 %{_libdir}/%{name}/*.dat
999 #%attr(755,root,root) %{_bindir}/make_smbcodepage
1000 #%attr(755,root,root) %{_bindir}/make_unicodemap
1001 %attr(755,root,root) %{_bindir}/testparm
1002 %attr(755,root,root) %{_bindir}/testprns
1003 %attr(755,root,root) %{_bindir}/ntlm_auth
1004 %attr(755,root,root) %{_bindir}/smbcquotas
1005 %attr(755,root,root) %{_bindir}/profiles
1006 %attr(755,root,root) %{_bindir}/pdbedit
1007 #%attr(755,root,root) %{_bindir}/make_printerdef
1008 %dir %{_libdir}/%{name}/charset
1009 %attr(755,root,root) %{_libdir}/%{name}/charset/*.so
1010 #%{_mandir}/man1/make_smbcodepage.1*
1011 #%{_mandir}/man1/make_unicodemap.1*
1012 %{_mandir}/man1/editreg.1*
1013 %{_mandir}/man1/testparm.1*
1014 %{_mandir}/man1/testprns.1*
1015 %{_mandir}/man1/ntlm_auth.1*
1016 %{_mandir}/man1/smbcquotas.1*
1017 %{_mandir}/man1/profiles.1*
1018 %{_mandir}/man1/vfstest.1*
1019
1020 %{_mandir}/man1/log2pcap.1*
1021
1022 %{_mandir}/man5/smb.conf.5*
1023 %{_mandir}/man5/lmhosts.5*
1024
1025 %files swat
1026 %defattr(644,root,root,755)
1027 #%doc swat/README* swat/help/*
1028 %doc swat/help/*
1029 %attr(755,root,root) %{_sbindir}/swat
1030 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/rc-inetd/swat
1031 %dir %{_datadir}/swat
1032 %{_datadir}/swat/help
1033 %{_datadir}/swat/images
1034 %{_datadir}/swat/include
1035 %dir %{_datadir}/swat/lang
1036 %lang(ja) %{_datadir}/swat/lang/ja
1037 %lang(tr) %{_datadir}/swat/lang/tr
1038 %{_datadir}/swat/using_samba
1039 %lang(de) %{_libdir}/%{name}/de.msg
1040 %{_libdir}/%{name}/en.msg
1041 %lang(fr) %{_libdir}/%{name}/fr.msg
1042 %lang(it) %{_libdir}/%{name}/it.msg
1043 %lang(ja) %{_libdir}/%{name}/ja.msg
1044 %lang(nl) %{_libdir}/%{name}/nl.msg
1045 %lang(pl) %{_libdir}/%{name}/pl.msg
1046 %lang(tr) %{_libdir}/%{name}/tr.msg
1047 %{_mandir}/man8/swat.8*
1048
1049 %files -n pam-pam_smbpass
1050 %defattr(644,root,root,755)
1051 %doc source/pam_smbpass/{CHAN*,README,TODO} source/pam_smbpass/samples
1052 %attr(755,root,root) /%{_lib}/security/pam_smbpass.so
1053
1054 %files -n libsmbclient
1055 %defattr(644,root,root,755)
1056 %attr(755,root,root) %{_libdir}/libsmbclient.so.*
1057
1058 %files -n libsmbclient-devel
1059 %defattr(644,root,root,755)
1060 %attr(755,root,root) %{_libdir}/libsmbclient.so
1061 %{_includedir}/libsmbclient.h
1062
1063 %files -n libsmbclient-static
1064 %defattr(644,root,root,755)
1065 %{_libdir}/libsmbclient.a
1066
1067 %files -n smbget
1068 %defattr(644,root,root,755)
1069 %attr(755,root,root) %{_bindir}/smbget
1070 %{_mandir}/man1/smbget.1*
1071 %{_mandir}/man5/smbgetrc.5*
1072
1073 %if %{with cups}
1074 %files -n cups-backend-smb
1075 %defattr(644,root,root,755)
1076 %attr(755,root,root) %{_bindir}/smbspool
1077 %attr(755,root,root) %{cups_serverbin}/backend/smb
1078 %{_mandir}/man8/smbspool.8*
1079 %endif
1080
1081 %files vfs-audit
1082 %defattr(644,root,root,755)
1083 %attr(755,root,root) %{_vfsdir}/audit.so
1084 #te ni¿ej chwilowo tutaj
1085
1086 %attr(755,root,root) %{_vfsdir}/[d-n]*.so
1087 %attr(755,root,root) %{_vfsdir}/cap.so
1088 %attr(755,root,root) %{_vfsdir}/readonly.so
1089
1090 %files vfs-shadow-copy
1091 %defattr(644,root,root,755)
1092 %attr(755,root,root) %{_vfsdir}/shadow_copy.so
1093
1094 #%files vfs-block
1095 #%defattr(644,root,root,755)
1096 #%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/samba/samba-block.conf
1097 #%attr(755,root,root) %{_vfsdir}/block.so
1098
1099 %files vfs-recycle
1100 %defattr(644,root,root,755)
1101 #%doc examples/VFS/recycle/README
1102 #%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/samba/recycle.conf
1103 %attr(755,root,root) %{_vfsdir}/recycle.so
1104
1105 %files vfs-vscan-clamav
1106 %defattr(644,root,root,755)
1107 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1108 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/samba/vscan-clamav.conf
1109 %attr(755,root,root) %{_vfsdir}/vscan-clamav.so
1110
1111 %files vfs-vscan-fprot
1112 %defattr(644,root,root,755)
1113 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1114 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/samba/vscan-fprotd.conf
1115 %attr(755,root,root) %{_vfsdir}/vscan-fprotd.so
1116
1117 %files vfs-vscan-openantivirus
1118 %defattr(644,root,root,755)
1119 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1120 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/samba/vscan-oav.conf
1121 %attr(755,root,root) %{_vfsdir}/vscan-oav.so
1122
1123 %files vfs-vscan-sophos
1124 %defattr(644,root,root,755)
1125 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1126 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/samba/vscan-sophos.conf
1127 %attr(755,root,root) %{_vfsdir}/vscan-sophos.so
1128
1129 %files vfs-vscan-symantec
1130 %defattr(644,root,root,755)
1131 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1132 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/samba/vscan-icap.conf
1133 %attr(755,root,root) %{_vfsdir}/vscan-icap.so
1134
1135 %files vfs-vscan-trend
1136 %defattr(644,root,root,755)
1137 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1138 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/samba/vscan-trend.conf
1139 %attr(755,root,root) %{_vfsdir}/vscan-trend.so
1140
1141 %ifarch %{ix86}
1142 %files vfs-vscan-mks
1143 %defattr(644,root,root,755)
1144 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1145 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/samba/vscan-mks32.conf
1146 %attr(755,root,root) %{_vfsdir}/vscan-mksd.so
1147 %endif
1148
1149 %files vfs-vscan-kavp
1150 %defattr(644,root,root,755)
1151 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1152 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/samba/vscan-kavp.conf
1153 %attr(755,root,root) %{_vfsdir}/vscan-kavp.so
This page took 0.152569 seconds and 3 git commands to generate.