]>
Commit | Line | Data |
---|---|---|
6773290e AM |
1 | # TODO: |
2 | # - init scripts | |
3 | # - configuration files | |
4 | # - pam configs | |
729479b6 | 5 | Summary: Secure Remote Password protocol |
36d10121 | 6 | Summary(pl.UTF-8): Protokół SRP (bezpieczny system autoryzacji) |
729479b6 | 7 | Name: srp |
a1e2336f | 8 | Version: 2.1.2 |
c410b21d | 9 | Release: 4 |
729479b6 AM |
10 | License: SRP Open Source |
11 | Group: Applications/Networking | |
2a09dafe | 12 | Source0: http://srp.stanford.edu/source/%{name}-%{version}.tar.gz |
a1e2336f | 13 | # Source0-md5: 39d150d2fcfcea1646c405172b748119 |
d58382e4 | 14 | Patch0: %{name}-shared.patch |
9c9bc85e | 15 | Patch1: %{name}-paths.patch |
f93ee5fe | 16 | Patch2: %{name}-cflags.patch |
8ebc87a6 | 17 | Patch3: %{name}-getline.patch |
4029f1f1 JB |
18 | Patch4: %{name}-format.patch |
19 | Patch5: %{name}-bison.patch | |
7d8bb0e6 | 20 | URL: http://srp.stanford.edu/ |
82bd4f3f JB |
21 | BuildRequires: autoconf |
22 | BuildRequires: automake | |
4029f1f1 | 23 | BuildRequires: bison |
82bd4f3f | 24 | BuildRequires: libtool |
6c4c5f7a | 25 | BuildRequires: ncurses-devel |
d58382e4 | 26 | BuildRequires: openssl-devel >= 0.9.7 |
2a09dafe | 27 | BuildRequires: pam-devel |
d58382e4 JB |
28 | BuildRequires: zlib-devel |
29 | Requires: %{name}-libs = %{version}-%{release} | |
03e5f848 | 30 | Requires: pam >= 0.77.3 |
ec3bdff1 | 31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
729479b6 AM |
32 | |
33 | %description | |
82bd4f3f JB |
34 | SRP stands for the Secure Remote Password protocol, and it represents |
35 | a new mechanism for performing password-based authentication and key | |
36 | exchange over potentially insecure networks. SRP offers both security | |
37 | and convenience improvements over authentication techniques currently | |
38 | in use. | |
729479b6 | 39 | |
b1672a77 JR |
40 | %description -l pl.UTF-8 |
41 | SRP oznacza protokół Secure Remote Password i reprezentuje nowy | |
42 | mechanizm autentyfikacji bazującej na hasłach oraz wymianę kluczy | |
43 | przez potencjalnie niebezpieczne sieci. SRP oferuje zarówno | |
44 | bezpieczeństwo i ulepszenia w stosunku do innych aktualnie dostępnych | |
82bd4f3f | 45 | technik autentyfikacji. |
729479b6 | 46 | |
d58382e4 JB |
47 | %package libs |
48 | Summary: Shared SRP libraries | |
36d10121 | 49 | Summary(pl.UTF-8): Współdzielone biblioteki SRP |
82bd4f3f | 50 | Group: Libraries |
729479b6 | 51 | |
d58382e4 JB |
52 | %description libs |
53 | Shared SRP libraries. | |
729479b6 | 54 | |
b1672a77 JR |
55 | %description libs -l pl.UTF-8 |
56 | Współdzielone biblioteki SRP. | |
729479b6 AM |
57 | |
58 | %package devel | |
d58382e4 | 59 | Summary: Headers files for SRP libraries |
36d10121 | 60 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek SRP |
82bd4f3f | 61 | Group: Development/Libraries |
d58382e4 JB |
62 | Requires: %{name}-libs = %{version}-%{release} |
63 | Requires: openssl-devel | |
729479b6 AM |
64 | |
65 | %description devel | |
d58382e4 | 66 | Headers files for SRP libraries. |
729479b6 | 67 | |
b1672a77 JR |
68 | %description devel -l pl.UTF-8 |
69 | Pliki nagłówkowe bibliotek SRP. | |
729479b6 AM |
70 | |
71 | %package static | |
d58382e4 | 72 | Summary: Static SRP libraries |
36d10121 | 73 | Summary(pl.UTF-8): Statyczne biblioteki SRP |
82bd4f3f | 74 | Group: Development/Libraries |
fb5903a7 | 75 | Requires: %{name}-devel = %{version}-%{release} |
729479b6 AM |
76 | |
77 | %description static | |
d58382e4 | 78 | Static SRP libraries. |
729479b6 | 79 | |
b1672a77 | 80 | %description static -l pl.UTF-8 |
d58382e4 | 81 | Statyczne biblioteki SRP. |
729479b6 AM |
82 | |
83 | %package telnet | |
71f35d9c | 84 | Summary: Telnet client with SRP and IPv6 support |
36d10121 | 85 | Summary(pl.UTF-8): Klient protokołu telnet ze wsparciem dla SRP i IPv6 |
729479b6 | 86 | Group: Applications/Networking |
fb5903a7 | 87 | Requires: %{name} = %{version}-%{release} |
729479b6 AM |
88 | |
89 | %description telnet | |
90 | Telnet client with Secure Remote Password protocol and IPv6 support. | |
91 | ||
b1672a77 JR |
92 | %description telnet -l pl.UTF-8 |
93 | Klient protokołu telnet ze wsparciem dla protokołu Secure Remote | |
d58382e4 | 94 | Password i IPv6. |
729479b6 AM |
95 | |
96 | %package telnetd | |
71f35d9c | 97 | Summary: Telnet server with SRP and IPv6 support |
36d10121 | 98 | Summary(pl.UTF-8): Serwer protokołu telnet ze wsparciem dla SRP i IPv6 |
729479b6 | 99 | Group: Networking/Daemons |
fb5903a7 | 100 | Requires: %{name} = %{version}-%{release} |
729479b6 AM |
101 | |
102 | %description telnetd | |
103 | Telnet server with Secure Remote Password protocol and IPv6 support. | |
104 | ||
b1672a77 JR |
105 | %description telnetd -l pl.UTF-8 |
106 | Serwer protokołu telnet ze wsparciem dla protokołu Secure Remote | |
d58382e4 | 107 | Password i IPv6. |
729479b6 AM |
108 | |
109 | %package ftp | |
71f35d9c | 110 | Summary: FTP client with SRP support |
36d10121 | 111 | Summary(pl.UTF-8): Klient FTP ze wsparciem dla SRP |
729479b6 | 112 | Group: Networking/Daemons |
fb5903a7 | 113 | Requires: %{name} = %{version}-%{release} |
729479b6 AM |
114 | |
115 | %description ftp | |
116 | FTP client with Secure Remote Password protocol support. | |
117 | ||
b1672a77 JR |
118 | %description ftp -l pl.UTF-8 |
119 | Klient FTP ze wsparciem dla protokołu Secure Remote Password. | |
729479b6 AM |
120 | |
121 | %package ftpd | |
82bd4f3f | 122 | Summary: FTP server with SRP support |
36d10121 | 123 | Summary(pl.UTF-8): Serwer FTP ze wsparciem dla SRP |
729479b6 | 124 | Group: Networking/Daemons |
fb5903a7 | 125 | Requires: %{name} = %{version}-%{release} |
729479b6 AM |
126 | |
127 | %description ftpd | |
128 | FTP server with Secure Remote Password protocol support. | |
129 | ||
b1672a77 JR |
130 | %description ftpd -l pl.UTF-8 |
131 | Serwer FTP ze wsparciem dla protokołu Secure Remote Password. | |
729479b6 AM |
132 | |
133 | %prep | |
134 | %setup -q | |
d58382e4 | 135 | %patch0 -p1 |
9c9bc85e | 136 | %patch1 -p1 |
f93ee5fe | 137 | %patch2 -p1 |
8ebc87a6 | 138 | %patch3 -p1 |
4029f1f1 JB |
139 | %patch4 -p1 |
140 | %patch5 -p1 | |
729479b6 AM |
141 | |
142 | %build | |
d58382e4 JB |
143 | cd libsrp |
144 | %{__libtoolize} | |
145 | %{__aclocal} | |
146 | %{__autoconf} | |
147 | %{__autoheader} | |
148 | %{__automake} | |
149 | cd ../libkrypto | |
150 | %{__libtoolize} | |
151 | %{__aclocal} | |
152 | %{__autoconf} | |
153 | %{__autoheader} | |
154 | %{__automake} | |
155 | cd ../telnet | |
156 | %{__libtoolize} | |
157 | %{__aclocal} | |
158 | %{__autoconf} | |
159 | %{__autoheader} | |
160 | %{__automake} | |
161 | cd ../ftp | |
cdcdfaea JB |
162 | # workaround: install-sh missing here, AUX_DIR not defined explicitly |
163 | touch install-sh | |
d58382e4 JB |
164 | %{__libtoolize} |
165 | %{__aclocal} | |
166 | %{__autoconf} | |
167 | %{__autoheader} | |
cdcdfaea | 168 | %{__automake} |
d58382e4 | 169 | cd ../base |
cdcdfaea JB |
170 | # see above |
171 | touch install-sh | |
d58382e4 JB |
172 | %{__libtoolize} |
173 | %{__aclocal} | |
174 | %{__autoconf} | |
175 | %{__autoheader} | |
cdcdfaea | 176 | %{__automake} |
d58382e4 JB |
177 | cd .. |
178 | %{__aclocal} | |
179 | %{__autoconf} | |
180 | %{__automake} | |
181 | %configure \ | |
182 | LIBTERM="-ltinfo" \ | |
9c9bc85e JB |
183 | MAILSPOOL=/var/mail \ |
184 | MAILFILE=Mail \ | |
185 | UTMPDIR=/var/run \ | |
186 | WTMPDIR=/var/log \ | |
187 | FAILLOGDIR=/var/log \ | |
188 | LASTLOGDIR=/var/log \ | |
d58382e4 | 189 | --enable-shadowgrp \ |
729479b6 | 190 | --with-cast \ |
d58382e4 | 191 | --with-engine \ |
2e311731 | 192 | --with-libcrack \ |
d58382e4 JB |
193 | --with-openssl \ |
194 | --with-pam \ | |
195 | --with-srp \ | |
196 | --with-zlib | |
197 | ||
2e311731 | 198 | # --with-inet6 - requires non-existing "support.h" in telnet/telnet/commands.c |
d58382e4 | 199 | # ??? [needs check] PAM support in passwd.srp is broken (it probably |
729479b6 | 200 | # doesn't use pass specified by user. |
d58382e4 | 201 | # --with-spx - SPX requires kerberos ;-( |
9bf2afd8 | 202 | %{__make} |
729479b6 AM |
203 | |
204 | %install | |
205 | rm -rf $RPM_BUILD_ROOT | |
2e311731 | 206 | install -d $RPM_BUILD_ROOT{/etc/{pam.d,rc.d/init.d,sysconfig},/bin,/sbin} |
2a09dafe | 207 | |
2e311731 | 208 | #install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/passwd.srp |
82bd4f3f | 209 | touch $RPM_BUILD_ROOT%{_sysconfdir}/tpasswd |
2a09dafe JB |
210 | |
211 | %{__make} install \ | |
2e311731 | 212 | DESTDIR=$RPM_BUILD_ROOT \ |
d58382e4 | 213 | SECUREDIR=/%{_lib}/security \ |
2e311731 JB |
214 | FAKEROOT=$RPM_BUILD_ROOT \ |
215 | suidbins= \ | |
216 | suidubins= | |
217 | ||
218 | install base/src/su $RPM_BUILD_ROOT/bin/su | |
219 | install base/src/passwd $RPM_BUILD_ROOT%{_bindir}/passwd | |
2a09dafe | 220 | |
82bd4f3f | 221 | mv -f $RPM_BUILD_ROOT/bin/su $RPM_BUILD_ROOT/bin/su.srp |
2e311731 JB |
222 | mv -f $RPM_BUILD_ROOT%{_bindir}/login $RPM_BUILD_ROOT/bin/login.srp |
223 | mv -f $RPM_BUILD_ROOT%{_bindir}/passwd $RPM_BUILD_ROOT%{_bindir}/passwd.srp | |
224 | mv -f $RPM_BUILD_ROOT%{_bindir}/tconf $RPM_BUILD_ROOT%{_sbindir}/tconf | |
729479b6 | 225 | |
82bd4f3f JB |
226 | mv -f $RPM_BUILD_ROOT%{_bindir}/ftp $RPM_BUILD_ROOT%{_bindir}/ftp.srp |
227 | mv -f $RPM_BUILD_ROOT%{_bindir}/telnet $RPM_BUILD_ROOT%{_bindir}/telnet.srp | |
729479b6 | 228 | |
82bd4f3f JB |
229 | mv -f $RPM_BUILD_ROOT%{_sbindir}/ftpd $RPM_BUILD_ROOT%{_sbindir}/ftpd.srp |
230 | mv -f $RPM_BUILD_ROOT%{_sbindir}/telnetd $RPM_BUILD_ROOT%{_sbindir}/telnetd.srp | |
729479b6 | 231 | |
729479b6 AM |
232 | %clean |
233 | rm -rf $RPM_BUILD_ROOT | |
234 | ||
d58382e4 JB |
235 | %post libs -p /sbin/ldconfig |
236 | %postun libs -p /sbin/ldconfig | |
729479b6 AM |
237 | |
238 | %files | |
239 | %defattr(644,root,root,755) | |
e8e2b64e | 240 | %doc docs/* inst/INSTALL* |
8e5df114 | 241 | %attr(755,root,root) /bin/login.srp |
729479b6 | 242 | %attr(4755,root,root) /bin/su.srp |
743cfd39 | 243 | %attr(755,root,root) %{_sbindir}/tconf |
729479b6 | 244 | %attr(4755,root,root) %{_bindir}/passwd.srp |
1056a1f2 | 245 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tpasswd |
2e311731 | 246 | #%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/* |
729479b6 | 247 | # Pam modules are required by main srp package so we don't split them |
2e311731 JB |
248 | %attr(4755,root,root) /sbin/eps_chkpwd |
249 | %attr(755,root,root) /%{_lib}/security/pam_eps_*.so | |
729479b6 | 250 | |
d58382e4 JB |
251 | %files libs |
252 | %defattr(644,root,root,755) | |
cdcdfaea JB |
253 | %attr(755,root,root) %{_libdir}/libkrypto.so.*.*.* |
254 | %attr(755,root,root) %ghost %{_libdir}/libkrypto.so.0 | |
255 | %attr(755,root,root) %{_libdir}/libsrp.so.*.*.* | |
256 | %attr(755,root,root) %ghost %{_libdir}/libsrp.so.0 | |
729479b6 AM |
257 | |
258 | %files devel | |
259 | %defattr(644,root,root,755) | |
cdcdfaea JB |
260 | %attr(755,root,root) %{_libdir}/libkrypto.so |
261 | %attr(755,root,root) %{_libdir}/libsrp.so | |
262 | %{_libdir}/libkrypto.la | |
263 | %{_libdir}/libsrp.la | |
264 | %{_includedir}/cstr.h | |
265 | %{_includedir}/krypto.h | |
266 | %{_includedir}/srp*.h | |
267 | %{_includedir}/t_*.h | |
729479b6 | 268 | |
d58382e4 JB |
269 | %files static |
270 | %defattr(644,root,root,755) | |
cdcdfaea JB |
271 | %{_libdir}/libkrypto.a |
272 | %{_libdir}/libsrp.a | |
729479b6 AM |
273 | |
274 | %files telnet | |
275 | %defattr(644,root,root,755) | |
276 | %attr(755,root,root) %{_bindir}/telnet.srp | |
277 | ||
278 | %files telnetd | |
279 | %defattr(644,root,root,755) | |
280 | %attr(755,root,root) %{_sbindir}/telnetd.srp | |
281 | ||
282 | %files ftp | |
283 | %defattr(644,root,root,755) | |
284 | %attr(755,root,root) %{_bindir}/ftp.srp | |
285 | ||
286 | %files ftpd | |
287 | %defattr(644,root,root,755) | |
288 | %attr(755,root,root) %{_sbindir}/ftpd.srp |