]> git.pld-linux.org Git - packages/samba.git/blob - samba.spec
upgraded to 2.0.5a
[packages/samba.git] / samba.spec
1 Summary:        SMB client and server
2 Summary(pl):    Klient i serwer SMB
3 Name:           samba
4 Version:        2.0.5a
5 Release:        1
6 Copyright:      GPL
7 Group:          Networking/Daemons
8 Group(pl):      Sieciowe/Serwery
9 Source0:        ftp://samba.anu.edu.au/pub/samba/%{name}-%{version}.tar.gz
10 Source1:        samba.PLD.tar.bz2
11 Source2:        samba.pamd
12 #Patch0:                samba-glibc2.1.patch
13 Patch1:         samba-config.patch
14 Patch2:         samba-cap.patch
15 Prereq:         /sbin/chkconfig 
16 Requires:       pam >= 0.66 
17 BuildRequires:  ncurses-devel
18 BuildRequires:  readline-devel
19 BuildRequires:  pam-devel
20 BuildRoot:      /tmp/%{name}-%{version}-root
21
22 %description
23 Samba provides an SMB server which can be used to provide
24 network services to SMB (sometimes called "Lan Manager")
25 clients, including various versions of MS Windows, OS/2,
26 and other Linux machines. Samba also provides some SMB
27 clients, which complement the built-in SMB filesystem
28 in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols
29 and does NOT need NetBEUI (Microsoft Raw NetBIOS frame)
30 protocol.
31
32 This release is known as the "Locking Update" and has full
33 support for Opportunistic File Locking. In addition this update
34 includes native support for Microsoft encrypted passwords,
35 improved browse list and WINS database management.
36
37 Please refer to the WHATSNEW.txt document for fixup information.
38 This binary release includes encrypted password support.
39 Please read the smb.conf file and ENCRYPTION.txt in the
40 docs directory for implementation details.
41
42 %description -l pl
43 Samba udostêpnia serwer SMB, który mo¿e byæ u¿yty w celu dostarczenia
44 us³ug sieciowych (potocznie zwanych "Lan Manager"), dla klientów takich
45 jak MS Windows, OS/2 a tak¿e maszyn linuxowych.  W pakiecie znajduje siê
46 równie¿ oprogramowanie klienckie. Samba u¿ywa protoko³u NetBIOS po TCP/IP
47 (NetBT) i nie wymaga protoko³u NetBEUI. Ta wersja ma pe³ne wsparcie dla
48 blokowania plików, a tak¿e wsparcie dla kodowania hase³ w standardzie
49 MS i zarzadzania baz± WINS.
50
51 UWAGA: w przeciwieñstwie do wersji 2.0.2 aktualnie samba pozbawiona jest
52 mozliwo¶ci kontrolowania domeny NT.
53
54 %package -n swat
55 Summary:        Samba Web Administration Tool
56 Summary(pl):    Narzêdzie administracyjne serwisu Samba
57 Group:          Networking/Admin
58 Group(pl):      Sieciowe/Administracja
59 Requires:       %{name}
60
61 %description -n swat
62 swat allows a Samba administrator to configure the complex smb.conf
63 file via a Web browser. In addition, a swat configuration page has
64 help links to all the configurable options in the smb.conf file
65 allowing an administrator to easily look up the effects of any change.
66
67 swat is run from inetd
68
69 %description -n swat -l pl
70 swat pozwala na kompleksow± konfiguracjê smb.conf przy pomocy przegl±darki
71 internetowej.
72
73 %prep
74 %setup -q -a1
75 #%patch0 -p1
76 %patch1 -p1
77 %patch2 -p1
78
79 %build
80 cd source
81 autoconf
82 LDFLAGS="-s" export LDFLAGS \
83 %configure \
84         --prefix=/usr \
85         --sysconfdir=/etc/samba \
86         --sbindir=%{_sbindir} \
87         --bindir=%{_bindir} \
88         --with-privatedir=/etc/samba \
89         --libdir=/etc/samba \
90         --localstatedir=/var/log/samba \
91         --with-lockdir=/var/lock/samba \
92         --with-swatdir=%{_datadir}/swat \
93         --with-smbmount \
94         --with-smbwrapper \
95         --with-quotas \
96         --with-syslog \
97         --with-automount
98         
99 make all smbwrapper bin/smbrun bin/debug2html
100
101 %install
102 rm -rf $RPM_BUILD_ROOT
103
104 install -d $RPM_BUILD_ROOT/etc/samba/codepages/src \
105         $RPM_BUILD_ROOT/etc/{logrotate.d,pam.d,sysconfig} \
106         $RPM_BUILD_ROOT/etc/rc.d/init.d \
107         $RPM_BUILD_ROOT/home/samba \
108         $RPM_BUILD_ROOT/lib/security \
109         $RPM_BUILD_ROOT/usr/{bin,man/man{1,5,7,8},sbin} \
110         $RPM_BUILD_ROOT/var/{lock,log,spool}/samba \
111         $RPM_BUILD_ROOT%{_datadir}/swat/{include,images,help}
112
113 ( cd source;
114 make install \
115         prefix=$RPM_BUILD_ROOT/usr \
116         BASEDIR=$RPM_BUILD_ROOT/usr \
117         MANDIR=$RPM_BUILD_ROOT%{_mandir} \
118         BINDIR=$RPM_BUILD_ROOT%{_bindir} \
119         SBINDIR=$RPM_BUILD_ROOT%{_sbindir} \
120         LIBDIR=$RPM_BUILD_ROOT/etc/samba \
121         PRIVATEDIR=$RPM_BUILD_ROOT/etc/samba \
122         SWATDIR=$RPM_BUILD_ROOT%{_datadir}/swat \
123         VARDIR=$RPM_BUILD_ROOT/var
124 )
125
126 install  source/codepages/codepage_def.* \
127         $RPM_BUILD_ROOT/etc/samba/codepages/src
128
129 install  packaging/PLD/smb.conf         $RPM_BUILD_ROOT/etc/samba
130 install  packaging/PLD/smbusers         $RPM_BUILD_ROOT/etc/samba
131 install  packaging/PLD/smbprint         $RPM_BUILD_ROOT%{_bindir}
132 install  packaging/PLD/smbadduser       $RPM_BUILD_ROOT%{_bindir}
133 install  packaging/PLD/findsmb          $RPM_BUILD_ROOT%{_bindir}
134 install  packaging/PLD/smb.init         $RPM_BUILD_ROOT/etc/rc.d/init.d/smb
135 install  packaging/PLD/samba.log        $RPM_BUILD_ROOT/etc/logrotate.d/samba
136 install  %{SOURCE2}                     $RPM_BUILD_ROOT/etc/pam.d/samba
137
138 install -s source/bin/*.so      $RPM_BUILD_ROOT/lib/security
139 install -s source/bin/{smbsh,smbrun,debug2html} $RPM_BUILD_ROOT%{_bindir}
140
141 strip --strip-unneeded $RPM_BUILD_ROOT/{%{_bindir},%{_sbindir},/lib/security}/* || :
142
143 touch $RPM_BUILD_ROOT/var/lock/samba/{STATUS..LCK,wins.dat,browse.dat}
144
145 echo 127.0.0.1 localhost > $RPM_BUILD_ROOT/etc/samba/lmhosts
146
147 echo "NICELEVEL=+5" > $RPM_BUILD_ROOT/etc/sysconfig/samba
148
149 for i in 437 737 850 852 861 866 932 949 950 936; do
150 $RPM_BUILD_ROOT%{_bindir}/make_smbcodepage c $i \
151 $RPM_BUILD_ROOT/etc/samba/codepages/src/codepage_def.$i \
152 $RPM_BUILD_ROOT/etc/samba/codepages/codepage.$i; done
153
154 gzip -9fn $RPM_BUILD_ROOT%{_mandir}/man{1,5,7,8}/* \
155         README Manifest WHATSNEW.txt Roadmap docs/*.reg swat/README
156
157 %post
158 /sbin/chkconfig --add smb
159 if test -r /var/run/smb.pid; then
160         /etc/rc.d/init.d/smb stop >&2
161         /etc/rc.d/init.d/smb start >&2
162 else
163         echo "Run \"/etc/rc.d/init.d/smb start\" to start samba daemons."
164 fi
165
166 %preun
167 if [ "$1" = "0" ]; then
168         /etc/rc.d/init.d/smb stop >&2
169         /sbin/chkconfig --del smb
170 fi
171
172 %clean
173 rm -rf $RPM_BUILD_ROOT
174
175 %files
176 %defattr(644,root,root,755)
177 %doc README.gz Manifest.gz WHATSNEW.txt.gz
178 %doc Roadmap.gz docs/faq/*.html docs/*.reg.gz 
179
180 %attr(755,root,root) %{_bindir}/*
181 %attr(755,root,root) %{_sbindir}/nmbd
182 %attr(755,root,root) %{_sbindir}/smbd
183
184 %dir /etc/samba
185 %config(noreplace) %verify(not size mtime md5) /etc/samba/smb.conf
186 %attr(600,root,root) %config(noreplace) %verify(not size mtime md5) /etc/samba/smbusers
187 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/samba/lmhosts
188
189 %attr(750,root,root) /etc/rc.d/init.d/smb
190 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/samba
191 %attr(640,root,root) /etc/logrotate.d/samba
192 %attr(640,root,root) /etc/pam.d/samba
193
194 %attr(755,root,root) /lib/security/*.so
195
196 %{_mandir}/man[157]/*
197 %{_mandir}/man8/nmbd.8.gz
198 %{_mandir}/man8/smbd.8.gz
199 %{_mandir}/man8/smbmnt.8.gz
200 %{_mandir}/man8/smbmount.8.gz
201 %{_mandir}/man8/smbpasswd.8.gz
202 %{_mandir}/man8/smbumount.8.gz
203
204 %dir /home/samba
205 /etc/samba/codepages
206
207 %dir /var/lock/samba
208 %ghost /var/lock/samba/*
209
210 %attr(0750,root,root) %dir /var/log/samba
211 %attr(1777,root,root) %dir /var/spool/samba
212
213 %files -n swat
214 %defattr(644,root,root,755)
215 %doc swat/README.gz
216 %attr(755,root,root) %{_sbindir}/swat
217 %{_datadir}/swat
218 %{_mandir}/man8/swat.8.gz
This page took 0.037632 seconds and 4 git commands to generate.