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