]> git.pld-linux.org Git - packages/samba.git/blob - samba.spec
- Group: synced with PLD groups
[packages/samba.git] / samba.spec
1 Summary:        SMB client and server
2 Summary(pl):    Klient i serwer SMB
3 Summary(cs):    Klient a server SMB
4 Summary(da):    SMB klient og server
5 Summary(de):    SMB-Client und -Server
6 Summary(fi):    SMB-asiakasohjelma ja palvelin
7 Summary(fr):    Client et serveur SMB
8 Summary(it):    Client e server SMB
9 Summary(tr):    SMB istemci ve sunucusu
10 Name:           samba
11 Version:        2.0.6
12 Release:        10
13 License:        GPL
14 Group:          Networking/Daemons
15 Group(pl):      Sieciowe/Serwery
16 Source0:        ftp://samba.anu.edu.au/pub/samba/%{name}-%{version}.tar.gz
17 Source1:        smb.init
18 Source2:        samba.pamd
19 Source3:        swat.inetd
20 Source4:        samba.sysconfig
21 Source5:        samba.logrotate
22 Source6:        smb.conf
23 Patch1:         samba-config.patch
24 Patch2:         samba-cap.patch
25 Patch3:         samba-DESTDIR.patch
26 Patch4:         samba-fix_link_libs.patch
27 Patch5:         samba-glibc21.patch
28 Patch6:         samba-manpages_PLD_fixes.patch
29 Patch7:         samba-smbprint.patch
30 Patch8:         samba-nsl.patch
31 Prereq:         /sbin/chkconfig
32 Requires:       pam >= 0.66
33 Requires:       logrotate
34 BuildRequires:  ncurses-devel >= 5.0
35 BuildRequires:  readline-devel >= 4.1
36 BuildRequires:  pam-devel > 0.66
37 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39 %define         _sysconfdir     /etc/samba
40 %define         _libdir         %{_sysconfdir}
41 %define         _localstatedir  /var/log/samba
42
43 %description
44 Samba provides an SMB server which can be used to provide network services
45 to SMB (sometimes called "Lan Manager") clients, including various versions
46 of MS Windows, OS/2, and other Linux machines. Samba also provides some SMB
47 clients, which complement the built-in SMB filesystem in Linux. Samba uses
48 NetBIOS over TCP/IP (NetBT) protocols and does NOT need NetBEUI (Microsoft
49 Raw NetBIOS frame) protocol.
50
51 This release is known as the "Locking Update" and has full support for
52 Opportunistic File Locking. In addition this update includes native support
53 for Microsoft encrypted passwords, improved browse list and WINS database
54 management.
55
56 Please refer to the WHATSNEW.txt document for fixup information. This binary
57 release includes encrypted password support. Please read the smb.conf file
58 and ENCRYPTION.txt in the docs directory for implementation details.
59
60 %description -l cs
61 Samba poskytuje server SMB, který lze pou¾ít pro poskytování sí»ových slu¾eb
62 klientùm SMB (nìkdy nazývaných klienti "LAN mana¾er") vèetnì klientù rùzných
63 verzí MS Windows, OS/2 a dal¹ích linuxových strojù. Samba té¾ poskytuje
64 nìkteré klienty SMB, kteøí komplementují vestavìný souborový systém SMB v
65 Linuxu. Samba pou¾ívá protokoly NetBIOS pøes TCP/IP (NetBT) a NEpotøebuje
66 protokol NetBEUI (neformátovaný rámec NetBIOS od spoleènosti Microsoft.
67
68 %description -l da
69 Samba tilbyder en SMB server som kan bruges til at tilbyde netværk services
70 til SMB (også kaldet "Lan Manager") klienter, incl. forskellige versioner af
71 MS Windows, OS/2, og andre Linux maskiner. Samba tilbyder også SMB klienter,
72 som udbygger det indbyggede SMB filsystem i Linux. Samba benytter NetBIOS
73 over TCP/IP (NetBT) protocolen og kræver ikke NetBEUI (Microsoft Raw NetBIOS
74 frame) protokollen.
75
76 %description -l de
77 Samba stellt einen SMB-Server zum Anbieten von Netzwerkdiensten für
78 SMB-Clients (auch "Lan Manager" genannt) zur Verfügung, darunter
79 verschiedenen Versionen von MS Windows-, OS/2- und anderen Linux-Rechnern.
80 Samba enthält außerdem einige SMB-Clients, die das in Linux integrierte
81 SMB-Dateisystem ergänzen. Samba benutzt NetBIOS-über-TCP/IP
82 (NetBT)-Protokolle und benötigt KEIN NetBEUI (Microsoft Raw NetBIOS
83 frame)-Protokoll.
84
85 %description -l fi
86 Samba on SMB-palvelin, jota voidaan käyttää SMB-asiakasohjelmien
87 verkkopalvelujen tarjoajana. SMB-protokollaa kutsutaan joskus "Lan Manager"
88 protokollaksi ja asiakasohjelmat toimivat dosissa, Windowseissa, OS/2:ssa ja
89 toisissa Linux-koneissa. Samban mukana on myös joitakin SMB-asiakasohjelmia,
90 jotka täydentävät Linuxin kernelissä olevaa SMB-tiedostojärjestelmän tukea.
91 Samba vaatii NetBIOS over TCP/IP (NetBT) protokollaa eikä tarvitse tai pysty
92 käyttämään NetBEUI-protokollaa.
93
94 %description -l it
95 Samba fornisce un server SMB che puo` essere usato per fornire servizi di
96 rete ai client SMB, incluse le versioni MS Windows, OS/2 e per altre
97 macchine Linux. Samba fornisce anche i client SMB. Samba usa NetBIOS sopra
98 TCP/IP e non ha bisogno del protocollo NetBEUI.
99
100 %description -l pl
101 Samba udostêpnia serwer SMB, który mo¿e byæ u¿yty w celu dostarczenia us³ug
102 sieciowych (potocznie zwanych "Lan Manager"), dla klientów takich jak MS
103 Windows, OS/2 a tak¿e maszyn linuxowych.  W pakiecie znajduje siê równie¿
104 oprogramowanie klienckie. Samba u¿ywa protoko³u NetBIOS po TCP/IP (NetBT) i
105 nie wymaga protoko³u NetBEUI. Ta wersja ma pe³ne wsparcie dla blokowania
106 plików, a tak¿e wsparcie dla kodowania hase³ w standardzie MS i zarzadzania
107 baz± WINS.
108
109 %package -n swat
110 Summary:        Samba Web Administration Tool
111 Summary(pl):    Narzêdzie administracyjne serwisu Samba
112 Group:          Networking/Admin
113 Group(pl):      Sieciowe/Administracyjne
114 Requires:       %{name}
115 Requires:       rc-inetd
116 Requires:       inetdaemon
117
118 %description -n swat
119 swat allows a Samba administrator to configure the complex smb.conf file via
120 a Web browser. In addition, a swat configuration page has help links to all
121 the configurable options in the smb.conf file allowing an administrator to
122 easily look up the effects of any change.
123
124 swat is run from inet server.
125
126 %description -n swat -l pl
127 swat pozwala na kompleksow± konfiguracjê smb.conf przy pomocy przegl±darki
128 www.
129
130 %prep
131 %setup -q
132 %patch1 -p1
133 %patch2 -p1
134 %patch3 -p1
135 %patch4 -p1
136 %patch5 -p1
137 %patch6 -p1
138 %patch7 -p1
139 %patch8 -p1
140
141 %build
142 cd source
143 autoconf
144 LDFLAGS="-s"; export LDFLAGS
145 %configure \
146         --with-privatedir=%{_sysconfdir} \
147         --with-lockdir=/var/lock/samba \
148         --with-swatdir=%{_datadir}/swat \
149         --with-smbmount \
150         --without-smbwrapper \
151         --with-quotas \
152         --with-syslog \
153         --with-mmap \
154         --with-pam \
155         --with-automount
156         
157 make all 
158
159 %install
160 rm -rf $RPM_BUILD_ROOT
161 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,pam.d,security,sysconfig/rc-inetd} \
162         $RPM_BUILD_ROOT/{var/{lock,log,log/archiv,spool},home}/samba \
163         $RPM_BUILD_ROOT/sbin 
164
165 (cd source; make install DESTDIR=$RPM_BUILD_ROOT)
166
167 ln -sf %{_bindir}/smbmount $RPM_BUILD_ROOT/sbin/mount.smbfs 
168
169 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/smb
170 install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/samba
171 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/swat
172 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/samba
173 install %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/samba
174 install %{SOURCE6} $RPM_BUILD_ROOT/etc/samba/smb.conf
175
176 touch $RPM_BUILD_ROOT/var/lock/samba/{STATUS..LCK,wins.dat,browse.dat}
177
178 echo 127.0.0.1 localhost > $RPM_BUILD_ROOT%{_sysconfdir}/lmhosts
179
180 > $RPM_BUILD_ROOT%{_sysconfdir}/smbusers
181 > $RPM_BUILD_ROOT/etc/security/blacklist.samba
182
183 strip $RPM_BUILD_ROOT/{%{_bindir},%{_sbindir}}/* || :
184
185 gzip -9fn $RPM_BUILD_ROOT%{_mandir}/man?/* \
186         README Manifest WHATSNEW.txt Roadmap docs/*.reg swat/README \
187         docs/textdocs/* docs/*.txt docs/{history,announce,THANKS}
188
189 rm -f docs/faq/*.{sgml,txt}
190
191 %post
192 /sbin/chkconfig --add smb
193 if test -r ; then
194         /etc/rc.d/init.d/smb restart >&2
195 else
196         echo "Run \"/etc/rc.d/init.d/smb start\" to start samba daemons."
197 fi
198
199 %preun
200 if [ "$1" = "0" ]; then
201         /etc/rc.d/init.d/smb stop >&2
202         /sbin/chkconfig --del smb
203 fi
204
205 %post -n swat
206 if [ -f /var/lock/subsys/rc-inetd ]; then
207         /etc/rc.d/init.d/rc-inetd restart 1>&2
208 else
209         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet sever" 1>&2
210 fi
211
212 %postun -n swat
213 if [ -f /var/lock/subsys/rc-inetd ]; then
214         /etc/rc.d/init.d/rc-inetd stop
215 fi
216
217 %triggerpostun -- samba < 1.9.18p7
218 if [ $1 != 0 ]; then
219         /sbin/chkconfig --add smb
220 fi
221
222 %triggerpostun -- samba < 2.0.5a-3
223 if [ "$1" != "0" ]; then
224         [ ! -d /var/lock/samba ] && mkdir -m 0755 /var/lock/samba
225         [ ! -d /var/spool/samba ] && mkdir -m 1777 /var/spool/samba
226 fi
227
228 %clean
229 rm -rf $RPM_BUILD_ROOT
230
231 %files
232 %defattr(644,root,root,755)
233 %doc README.gz Manifest.gz WHATSNEW.txt.gz
234 %doc Roadmap.gz docs/faq docs/*.reg.gz
235 %doc docs/textdocs docs/*.txt.gz docs/{history,announce,THANKS}.gz
236
237 %attr(755,root,root) /sbin/mount.smbfs
238 %attr(755,root,root) %{_bindir}/*
239 %attr(755,root,root) %{_sbindir}/nmbd
240 %attr(755,root,root) %{_sbindir}/smbd
241
242 %dir %{_sysconfdir}
243 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/smb.conf
244 %attr(600,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/smbusers
245 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/lmhosts
246
247 %attr(754,root,root) /etc/rc.d/init.d/smb
248 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/samba
249 %attr(640,root,root) /etc/logrotate.d/samba
250 %attr(640,root,root) %config %verify(not size mtime md5) /etc/pam.d/samba
251 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/security/blacklist.samba
252
253 %{_mandir}/man[157]/*
254 %{_mandir}/man8/nmbd.8*
255 %{_mandir}/man8/smbd.8*
256 %{_mandir}/man8/smbmnt.8*
257 %{_mandir}/man8/smbmount.8*
258 %{_mandir}/man8/smbpasswd.8*
259 %{_mandir}/man8/smbumount.8*
260
261 %dir /home/samba
262 %{_sysconfdir}/codepages
263
264 %dir /var/lock/samba
265 %ghost /var/lock/samba/*
266
267 %attr(0750,root,root) %dir /var/log/samba
268 %attr(0750,root,root) %dir /var/log/archiv/samba
269
270 %attr(1777,root,root) %dir /var/spool/samba
271
272 %files -n swat
273 %defattr(644,root,root,755)
274 %doc swat/README*
275 %attr(755,root,root) %{_sbindir}/swat
276 %{_datadir}/swat
277 %{_mandir}/man8/swat.8*
278
279 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/rc-inetd/swat
This page took 0.06865 seconds and 4 git commands to generate.