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