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