]> git.pld-linux.org Git - packages/srp.git/blame - srp.spec
- added format patch (fixes build with -Werror=format-security)
[packages/srp.git] / srp.spec
CommitLineData
6773290e
AM
1# TODO:
2# - init scripts
3# - configuration files
4# - pam configs
729479b6 5Summary: Secure Remote Password protocol
36d10121 6Summary(pl.UTF-8): Protokół SRP (bezpieczny system autoryzacji)
729479b6 7Name: srp
a1e2336f 8Version: 2.1.2
c410b21d 9Release: 4
729479b6
AM
10License: SRP Open Source
11Group: Applications/Networking
2a09dafe 12Source0: http://srp.stanford.edu/source/%{name}-%{version}.tar.gz
a1e2336f 13# Source0-md5: 39d150d2fcfcea1646c405172b748119
d58382e4 14Patch0: %{name}-shared.patch
9c9bc85e 15Patch1: %{name}-paths.patch
f93ee5fe 16Patch2: %{name}-cflags.patch
8ebc87a6 17Patch3: %{name}-getline.patch
4029f1f1
JB
18Patch4: %{name}-format.patch
19Patch5: %{name}-bison.patch
7d8bb0e6 20URL: http://srp.stanford.edu/
82bd4f3f
JB
21BuildRequires: autoconf
22BuildRequires: automake
4029f1f1 23BuildRequires: bison
82bd4f3f 24BuildRequires: libtool
6c4c5f7a 25BuildRequires: ncurses-devel
d58382e4 26BuildRequires: openssl-devel >= 0.9.7
2a09dafe 27BuildRequires: pam-devel
d58382e4
JB
28BuildRequires: zlib-devel
29Requires: %{name}-libs = %{version}-%{release}
03e5f848 30Requires: pam >= 0.77.3
ec3bdff1 31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
729479b6
AM
32
33%description
82bd4f3f
JB
34SRP stands for the Secure Remote Password protocol, and it represents
35a new mechanism for performing password-based authentication and key
36exchange over potentially insecure networks. SRP offers both security
37and convenience improvements over authentication techniques currently
38in use.
729479b6 39
b1672a77
JR
40%description -l pl.UTF-8
41SRP oznacza protokół Secure Remote Password i reprezentuje nowy
42mechanizm autentyfikacji bazującej na hasłach oraz wymianę kluczy
43przez potencjalnie niebezpieczne sieci. SRP oferuje zarówno
44bezpieczeństwo i ulepszenia w stosunku do innych aktualnie dostępnych
82bd4f3f 45technik autentyfikacji.
729479b6 46
d58382e4
JB
47%package libs
48Summary: Shared SRP libraries
36d10121 49Summary(pl.UTF-8): Współdzielone biblioteki SRP
82bd4f3f 50Group: Libraries
729479b6 51
d58382e4
JB
52%description libs
53Shared SRP libraries.
729479b6 54
b1672a77
JR
55%description libs -l pl.UTF-8
56Współdzielone biblioteki SRP.
729479b6
AM
57
58%package devel
d58382e4 59Summary: Headers files for SRP libraries
36d10121 60Summary(pl.UTF-8): Pliki nagłówkowe bibliotek SRP
82bd4f3f 61Group: Development/Libraries
d58382e4
JB
62Requires: %{name}-libs = %{version}-%{release}
63Requires: openssl-devel
729479b6
AM
64
65%description devel
d58382e4 66Headers files for SRP libraries.
729479b6 67
b1672a77
JR
68%description devel -l pl.UTF-8
69Pliki nagłówkowe bibliotek SRP.
729479b6
AM
70
71%package static
d58382e4 72Summary: Static SRP libraries
36d10121 73Summary(pl.UTF-8): Statyczne biblioteki SRP
82bd4f3f 74Group: Development/Libraries
fb5903a7 75Requires: %{name}-devel = %{version}-%{release}
729479b6
AM
76
77%description static
d58382e4 78Static SRP libraries.
729479b6 79
b1672a77 80%description static -l pl.UTF-8
d58382e4 81Statyczne biblioteki SRP.
729479b6
AM
82
83%package telnet
71f35d9c 84Summary: Telnet client with SRP and IPv6 support
36d10121 85Summary(pl.UTF-8): Klient protokołu telnet ze wsparciem dla SRP i IPv6
729479b6 86Group: Applications/Networking
fb5903a7 87Requires: %{name} = %{version}-%{release}
729479b6
AM
88
89%description telnet
90Telnet client with Secure Remote Password protocol and IPv6 support.
91
b1672a77
JR
92%description telnet -l pl.UTF-8
93Klient protokołu telnet ze wsparciem dla protokołu Secure Remote
d58382e4 94Password i IPv6.
729479b6
AM
95
96%package telnetd
71f35d9c 97Summary: Telnet server with SRP and IPv6 support
36d10121 98Summary(pl.UTF-8): Serwer protokołu telnet ze wsparciem dla SRP i IPv6
729479b6 99Group: Networking/Daemons
fb5903a7 100Requires: %{name} = %{version}-%{release}
729479b6
AM
101
102%description telnetd
103Telnet server with Secure Remote Password protocol and IPv6 support.
104
b1672a77
JR
105%description telnetd -l pl.UTF-8
106Serwer protokołu telnet ze wsparciem dla protokołu Secure Remote
d58382e4 107Password i IPv6.
729479b6
AM
108
109%package ftp
71f35d9c 110Summary: FTP client with SRP support
36d10121 111Summary(pl.UTF-8): Klient FTP ze wsparciem dla SRP
729479b6 112Group: Networking/Daemons
fb5903a7 113Requires: %{name} = %{version}-%{release}
729479b6
AM
114
115%description ftp
116FTP client with Secure Remote Password protocol support.
117
b1672a77
JR
118%description ftp -l pl.UTF-8
119Klient FTP ze wsparciem dla protokołu Secure Remote Password.
729479b6
AM
120
121%package ftpd
82bd4f3f 122Summary: FTP server with SRP support
36d10121 123Summary(pl.UTF-8): Serwer FTP ze wsparciem dla SRP
729479b6 124Group: Networking/Daemons
fb5903a7 125Requires: %{name} = %{version}-%{release}
729479b6
AM
126
127%description ftpd
128FTP server with Secure Remote Password protocol support.
129
b1672a77
JR
130%description ftpd -l pl.UTF-8
131Serwer 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
143cd libsrp
144%{__libtoolize}
145%{__aclocal}
146%{__autoconf}
147%{__autoheader}
148%{__automake}
149cd ../libkrypto
150%{__libtoolize}
151%{__aclocal}
152%{__autoconf}
153%{__autoheader}
154%{__automake}
155cd ../telnet
156%{__libtoolize}
157%{__aclocal}
158%{__autoconf}
159%{__autoheader}
160%{__automake}
161cd ../ftp
cdcdfaea
JB
162# workaround: install-sh missing here, AUX_DIR not defined explicitly
163touch install-sh
d58382e4
JB
164%{__libtoolize}
165%{__aclocal}
166%{__autoconf}
167%{__autoheader}
cdcdfaea 168%{__automake}
d58382e4 169cd ../base
cdcdfaea
JB
170# see above
171touch install-sh
d58382e4
JB
172%{__libtoolize}
173%{__aclocal}
174%{__autoconf}
175%{__autoheader}
cdcdfaea 176%{__automake}
d58382e4
JB
177cd ..
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
205rm -rf $RPM_BUILD_ROOT
2e311731 206install -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 209touch $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
218install base/src/su $RPM_BUILD_ROOT/bin/su
219install base/src/passwd $RPM_BUILD_ROOT%{_bindir}/passwd
2a09dafe 220
82bd4f3f 221mv -f $RPM_BUILD_ROOT/bin/su $RPM_BUILD_ROOT/bin/su.srp
2e311731
JB
222mv -f $RPM_BUILD_ROOT%{_bindir}/login $RPM_BUILD_ROOT/bin/login.srp
223mv -f $RPM_BUILD_ROOT%{_bindir}/passwd $RPM_BUILD_ROOT%{_bindir}/passwd.srp
224mv -f $RPM_BUILD_ROOT%{_bindir}/tconf $RPM_BUILD_ROOT%{_sbindir}/tconf
729479b6 225
82bd4f3f
JB
226mv -f $RPM_BUILD_ROOT%{_bindir}/ftp $RPM_BUILD_ROOT%{_bindir}/ftp.srp
227mv -f $RPM_BUILD_ROOT%{_bindir}/telnet $RPM_BUILD_ROOT%{_bindir}/telnet.srp
729479b6 228
82bd4f3f
JB
229mv -f $RPM_BUILD_ROOT%{_sbindir}/ftpd $RPM_BUILD_ROOT%{_sbindir}/ftpd.srp
230mv -f $RPM_BUILD_ROOT%{_sbindir}/telnetd $RPM_BUILD_ROOT%{_sbindir}/telnetd.srp
729479b6 231
729479b6
AM
232%clean
233rm -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
This page took 0.206761 seconds and 4 git commands to generate.