]>
Commit | Line | Data |
---|---|---|
735db578 | 1 | Summary: OPIE suite of programs |
8af0fc1e | 2 | Summary(pl.UTF-8): Zestaw programów do OPIE |
735db578 | 3 | Name: opie |
ddc66c79 | 4 | Version: 2.4 |
25114a6d | 5 | Release: 15 |
7d01d478 | 6 | Epoch: 1 |
9e688454 | 7 | License: NRL/TIN |
6bd1f0b4 | 8 | Group: Applications/System |
36f18eeb | 9 | Source0: http://inner.net/pub/opie/%{name}-%{version}.tar.gz |
9165d96c | 10 | # Source0-md5: d46e0ff8cc721a287892192dc4e7b7e1 |
ddc66c79 | 11 | Patch0: %{name}-makefile.patch |
0a316adf | 12 | Patch1: %{name}-ttyname.patch |
af04afec JB |
13 | Patch2: %{name}-bison.patch |
14 | Patch3: %{name}-acfix.patch | |
5d797f4c | 15 | Patch4: %{name}-errno.patch |
90044137 AM |
16 | Patch5: %{name}-suse.patch |
17 | Patch6: %{name}-uint4.patch | |
6c56f7d6 | 18 | Patch7: %{name}-getline.patch |
a31d8df6 | 19 | Patch8: format-security.patch |
a5e38bd6 | 20 | URL: http://inner.net/opie |
af04afec | 21 | BuildRequires: autoconf >= 2.52 |
7d01d478 | 22 | BuildRequires: bison |
9eab2e6e | 23 | Requires: %{name}-libs = %{epoch}:%{version} |
735db578 JR |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | The OPIE suite of programs. | |
28 | ||
cdbc748f | 29 | OPIE is an implementation of the One-Time Password (OTP) System that |
30 | is being considered for the Internet standards-track. OPIE provides a | |
31 | one-time password system. The system should be secure against the | |
32 | passive attacks now commonplace on the Internet (see RFC 1704 for more | |
33 | details). The system is vulnerable to active dictionary attacks, | |
34 | though these are not widespread at present and can be detected through | |
35 | proper use of system audit software. | |
735db578 | 36 | |
8d44f1f7 JR |
37 | %description -l pl.UTF-8 |
38 | Zestaw programów do OPIE. | |
ddc66c79 | 39 | |
8d44f1f7 JR |
40 | OPIE jest implementacją One-Time Password (OTP) System - systemu haseł |
41 | jednorazowych. Powinien on być odporny na popularne w Internecie ataki | |
42 | pasywne (zobacz RFC 1704). Jest on podatny na ataki słownikowe, które | |
43 | nie są aktualnie szeroko rozpowszechnione. | |
ddc66c79 | 44 | |
6bd1f0b4 JB |
45 | %package libs |
46 | Summary: OPIE shared libraries | |
8af0fc1e | 47 | Summary(pl.UTF-8): Biblioteki współdzielone OPIE |
6bd1f0b4 JB |
48 | Group: Libraries |
49 | Conflicts: %{name} < 2.4-2 | |
50 | ||
51 | %description libs | |
52 | OPIE (One-Time Password System) shared libraries. | |
53 | ||
8d44f1f7 JR |
54 | %description libs -l pl.UTF-8 |
55 | Biblioteki współdzielone OPIE (systemu haseł jednorazowych). | |
6bd1f0b4 | 56 | |
735db578 | 57 | %package devel |
6bd1f0b4 | 58 | Summary: Headers for developing OPIE enabled programs |
8af0fc1e | 59 | Summary(pl.UTF-8): Nagłówki do tworzenia programów z obsługą OPIE |
735db578 | 60 | Group: Development/Libraries |
9eab2e6e | 61 | Requires: %{name}-libs = %{epoch}:%{version} |
0bbe0198 | 62 | Requires: filesystem >= 3.0-11 |
735db578 JR |
63 | |
64 | %description devel | |
6bd1f0b4 | 65 | Headers for developing OPIE enabled programs. |
735db578 | 66 | |
8d44f1f7 JR |
67 | %description devel -l pl.UTF-8 |
68 | Pliki nagłówkowe potrzebne do tworzenia programów z obsługą OPIE. | |
ddc66c79 | 69 | |
d04a9396 | 70 | %package static |
ddc66c79 | 71 | Summary: OPIE static libraries |
8af0fc1e | 72 | Summary(pl.UTF-8): Statyczne biblioteki OPIE |
d04a9396 | 73 | Group: Development/Libraries |
9eab2e6e | 74 | Requires: %{name}-devel = %{epoch}:%{version} |
d04a9396 | 75 | |
76 | %description static | |
77 | OPIE staic libraries. | |
78 | ||
8d44f1f7 | 79 | %description static -l pl.UTF-8 |
ddc66c79 PG |
80 | Statyczne biblioteki OPIE. |
81 | ||
735db578 JR |
82 | %prep |
83 | %setup -q | |
84 | %patch0 -p1 | |
0a316adf | 85 | %patch1 -p0 |
af04afec JB |
86 | %patch2 -p1 |
87 | %patch3 -p1 | |
5d797f4c | 88 | %patch4 -p1 |
90044137 AM |
89 | %patch5 -p1 |
90 | %patch6 -p0 | |
6c56f7d6 | 91 | %patch7 -p1 |
a31d8df6 | 92 | %patch8 -p1 |
735db578 JR |
93 | |
94 | %build | |
af04afec JB |
95 | %{__autoconf} |
96 | %configure \ | |
d04a9396 | 97 | --enable-access-file=%{_sysconfdir}/opie/access \ |
a5e38bd6 | 98 | --enable-user-locking=/var/lib/opie \ |
99 | --enable-insecure-override | |
735db578 | 100 | |
0640e926 | 101 | %{__make} DEBUG="%{rpmcflags} " \ |
f80da9bf | 102 | KEY_FILE=%{_sysconfdir}/opie/keys |
735db578 JR |
103 | |
104 | %install | |
105 | rm -rf $RPM_BUILD_ROOT | |
d04a9396 | 106 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/opie,%{_sbindir},%{_libdir},%{_includedir}/security,/var/lib} |
735db578 | 107 | |
f80da9bf | 108 | %{__make} install \ |
109 | DESTDIR=$RPM_BUILD_ROOT \ | |
110 | KEY_FILE=%{_sysconfdir}/opie/keys | |
735db578 JR |
111 | |
112 | install opie.h $RPM_BUILD_ROOT%{_includedir}/security | |
a31d8df6 | 113 | ln -sf libopie.so.2.4 $RPM_BUILD_ROOT%{_libdir}/libopie.so.2 |
735db578 | 114 | |
735db578 JR |
115 | %clean |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
6bd1f0b4 JB |
118 | %post libs -p /sbin/ldconfig |
119 | %postun libs -p /sbin/ldconfig | |
7d01d478 | 120 | |
735db578 | 121 | %files |
d04a9396 | 122 | %defattr(644,root,root,755) |
36f18eeb ER |
123 | %attr(755,root,root) %{_bindir}/opieinfo |
124 | %attr(755,root,root) %{_bindir}/opiekey | |
b7513779 JB |
125 | %attr(755,root,root) %{_bindir}/otp-md4 |
126 | %attr(755,root,root) %{_bindir}/otp-md5 | |
d04a9396 | 127 | %attr(4755,root,root) %{_bindir}/opiepasswd |
128 | %attr(4755,root,root) %{_sbindir}/opiesu | |
129 | %attr(4755,root,root) %{_sbindir}/opielogin | |
36f18eeb | 130 | %attr(750,root,root) %{_sbindir}/opieftpd |
d04a9396 | 131 | %dir %attr(700,root,root) /var/lib/opie |
b7513779 JB |
132 | %{_mandir}/man1/opiegen.1* |
133 | %{_mandir}/man1/opieinfo.1* | |
134 | %{_mandir}/man1/opiekey.1* | |
135 | %{_mandir}/man1/opielogin.1* | |
136 | %{_mandir}/man1/opiepasswd.1* | |
137 | %{_mandir}/man1/opieserv.1* | |
138 | %{_mandir}/man1/opiesu.1* | |
139 | %{_mandir}/man1/otp-md4.1* | |
140 | %{_mandir}/man1/otp-md5.1* | |
141 | %{_mandir}/man4/opie.4* | |
142 | %{_mandir}/man5/opieaccess.5* | |
143 | %{_mandir}/man8/opieftpd.8* | |
735db578 | 144 | |
6bd1f0b4 JB |
145 | %files libs |
146 | %defattr(644,root,root,755) | |
e5d530df | 147 | %doc BUG-REPORT README COPYRIGHT.NRL License.TIN |
b7513779 JB |
148 | %attr(755,root,root) %{_libdir}/libopie.so.*.* |
149 | %attr(755,root,root) %ghost %{_libdir}/libopie.so.2 | |
6bd1f0b4 | 150 | %dir %{_sysconfdir}/opie |
2d427728 | 151 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opie/keys |
b7513779 | 152 | %{_mandir}/man5/opiekeys.5* |
6bd1f0b4 | 153 | |
735db578 | 154 | %files devel |
d04a9396 | 155 | %defattr(644,root,root,755) |
b7513779 | 156 | %attr(755,root,root) %{_libdir}/libopie.so |
6bd1f0b4 | 157 | %{_includedir}/security/opie.h |
d04a9396 | 158 | |
159 | %files static | |
160 | %defattr(644,root,root,755) | |
b7513779 | 161 | %{_libdir}/libopie.a |