]>
Commit | Line | Data |
---|---|---|
d05bfda9 JB |
1 | # |
2 | # Conditional build: | |
5ac42c56 | 3 | %bcond_without kerberos5 # without kerberos V support |
d05bfda9 | 4 | # |
6084600a | 5 | Summary: GNU implementation of the Secure Shell protocols |
ea71a295 | 6 | Summary(pl.UTF-8): Implementacja GNU bezpiecznego shella |
9b96e28c | 7 | Name: lsh |
0851af46 | 8 | Version: 2.1 |
a0ddadad | 9 | Release: 9 |
0851af46 | 10 | License: GPL v2+ |
9b96e28c | 11 | Group: Networking/Daemons |
0851af46 JB |
12 | Source0: http://www.lysator.liu.se/~nisse/archive/%{name}-%{version}.tar.gz |
13 | # Source0-md5: cde8e1306b1c544909e1e9ecb86e6402 | |
16e078ce | 14 | Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2 |
c47f35de | 15 | # Source1-md5: 164cdde8060577b54954c3f9f067927e |
84e4a3fe | 16 | Patch0: %{name}-info.patch |
6c3a63ad JR |
17 | Patch1: skip-argp.patch |
18 | Patch2: nettle3.patch | |
4f1b5a1d JR |
19 | Patch3: nettle35.patch |
20 | Patch4: guile.patch | |
6084600a | 21 | URL: http://www.lysator.liu.se/~nisse/lsh/ |
0851af46 | 22 | BuildRequires: autoconf >= 2.52 |
86de0c45 | 23 | BuildRequires: automake |
0851af46 JB |
24 | BuildRequires: gmp-devel >= 3.1 |
25 | BuildRequires: groff | |
7b3e50a7 | 26 | %{?with_kerberos5:BuildRequires: heimdal-devel} |
19ab0cf4 | 27 | BuildRequires: liboop-devel |
0851af46 JB |
28 | BuildRequires: libwrap-devel |
29 | BuildRequires: m4 | |
1c25d88f | 30 | BuildRequires: nettle-devel >= 1.14 |
d6049506 | 31 | BuildRequires: pam-devel |
d6049506 | 32 | BuildRequires: texinfo |
0851af46 | 33 | BuildRequires: xorg-lib-libXau-devel |
d6049506 | 34 | BuildRequires: zlib-devel |
0851af46 JB |
35 | # only for maintainer mode |
36 | #BuildRequires: guile | |
37 | #BuildRequires: slib | |
1c25d88f | 38 | Requires: nettle >= 1.14 |
ada132fd | 39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
9b96e28c | 40 | |
6084600a | 41 | %define _sysconfdir /etc/%{name} |
3991fc17 | 42 | |
9b96e28c | 43 | %description |
6084600a JB |
44 | LSH is the GNU implementation of the secure shell protocols (secsh2). |
45 | LSH includes a client, a server, and a few scripts and utility | |
46 | programs. | |
9b96e28c | 47 | |
84e4a3fe JB |
48 | Note: it doesn't support SSH1 protocol, but the server can fallback to |
49 | /usr/sbin/sshd - if you need SSH1 support in server, please install | |
50 | appropriate daemon (openssh-server, SSH.COM 1.2.x) as /usr/sbin/sshd. | |
51 | ||
ec3877f4 JR |
52 | %description -l pl.UTF-8 |
53 | LSH jest implementacją GNU protokołów bezpiecznego shella (secsh2). | |
54 | Zawiera klienta, serwer, kilka skryptów i narzędzi. | |
6084600a | 55 | |
ec3877f4 JR |
56 | Uwaga: ta implementacja nie obsługuje protokołu SSH1, ale serwer może |
57 | wywołać /usr/sbin/sshd. Jeśli obsługa SSH1 jest potrzebna w serwerze, | |
58 | należy zainstalować odpowiedniego demona (openssh-server lub SSH.COM | |
84e4a3fe | 59 | 1.2.x) jako /usr/sbin/sshd. |
9b96e28c AF |
60 | |
61 | %prep | |
6084600a | 62 | %setup -q |
f0c17a8f | 63 | %patch0 -p1 |
6c3a63ad JR |
64 | %patch1 -p1 |
65 | %patch2 -p1 | |
4f1b5a1d JR |
66 | %patch3 -p1 |
67 | %patch4 -p1 | |
9b96e28c AF |
68 | |
69 | %build | |
84e4a3fe JB |
70 | cd src/spki |
71 | %{__aclocal} | |
72 | %{__autoconf} | |
73 | %{__automake} | |
74 | cd ../.. | |
5e4d1a52 | 75 | %{__aclocal} |
6fc242f0 | 76 | %{__autoconf} |
77 | %{__automake} | |
9b96e28c | 78 | %configure \ |
0851af46 | 79 | XAUTH_PROGRAM=/usr/bin/xauth \ |
5ac42c56 | 80 | %{!?with_kerberos5:--disable-kerberos} \ |
19ab0cf4 | 81 | --with-sshd1=%{_sbindir}/sshd \ |
0851af46 | 82 | --with-tcpwrappers \ |
19ab0cf4 | 83 | --with-zlib |
9b96e28c | 84 | |
0fe66f1b | 85 | %{__make} |
9b96e28c AF |
86 | |
87 | %install | |
88 | rm -rf $RPM_BUILD_ROOT | |
19ab0cf4 | 89 | install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig,logrotate.d},/var/spool/lsh} |
9b96e28c | 90 | |
e496505b | 91 | %{__make} install \ |
9b96e28c AF |
92 | DESTDIR=$RPM_BUILD_ROOT |
93 | ||
84e4a3fe | 94 | install -d $RPM_BUILD_ROOT%{_mandir} |
16e078ce | 95 | bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} |
0851af46 | 96 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/{README.lsh-man-pages,diff.*} |
16e078ce | 97 | |
6084600a JB |
98 | %clean |
99 | rm -rf $RPM_BUILD_ROOT | |
9b96e28c | 100 | |
0851af46 | 101 | %post -p /sbin/postshell |
0f8b541a | 102 | -/usr/sbin/fix-info-dir -c %{_infodir} |
9b96e28c | 103 | |
0851af46 | 104 | %postun -p /sbin/postshell |
0f8b541a | 105 | -/usr/sbin/fix-info-dir -c %{_infodir} |
1abd7b7e | 106 | |
9b96e28c | 107 | %files |
e377e7b0 | 108 | %defattr(644,root,root,755) |
0851af46 | 109 | %doc ANNOUNCE AUTHORS ChangeLog* FAQ NEWS README doc/{HACKING,NOTES,PORTS,TASKLIST,TODO,*.txt} |
6084600a JB |
110 | #%attr(754,root,root) /etc/rc.d/init.d/* |
111 | #%attr(640,root,root) /etc/sysconfig/* | |
37b957a0 | 112 | #%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/* |
0851af46 JB |
113 | %attr(6750,root,root) %dir /var/spool/lsh |
114 | %attr(755,root,root) %{_bindir}/lcp | |
115 | %attr(755,root,root) %{_bindir}/lsftp | |
116 | %attr(755,root,root) %{_bindir}/lsh | |
117 | %attr(755,root,root) %{_bindir}/lsh-authorize | |
118 | %attr(755,root,root) %{_bindir}/lsh-decode-key | |
119 | %attr(755,root,root) %{_bindir}/lsh-decrypt-key | |
120 | %attr(755,root,root) %{_bindir}/lsh-export-key | |
121 | %attr(755,root,root) %{_bindir}/lsh-keygen | |
122 | %attr(755,root,root) %{_bindir}/lsh-make-seed | |
123 | %attr(755,root,root) %{_bindir}/lsh-upgrade | |
124 | %attr(755,root,root) %{_bindir}/lsh-upgrade-key | |
125 | %attr(755,root,root) %{_bindir}/lsh-writekey | |
126 | %attr(755,root,root) %{_bindir}/lshg | |
127 | %attr(755,root,root) %{_bindir}/srp-gen | |
128 | %attr(755,root,root) %{_bindir}/ssh-conv | |
129 | %attr(755,root,root) %{_sbindir}/lsh-execuv | |
130 | %{?with_kerberos5:%attr(755,root,root) %{_sbindir}/lsh-krb-checkpw} | |
131 | %attr(755,root,root) %{_sbindir}/lsh-pam-checkpw | |
132 | %attr(755,root,root) %{_sbindir}/lshd | |
133 | %attr(755,root,root) %{_sbindir}/sftp-server | |
d6049506 | 134 | %{_infodir}/lsh.info* |
0851af46 JB |
135 | %{_mandir}/man1/lsftp.1* |
136 | %{_mandir}/man1/lsh.1* | |
137 | %{_mandir}/man1/lsh-authorize.1* | |
138 | %{_mandir}/man1/lsh-decode-key.1* | |
139 | %{_mandir}/man1/lsh-decrypt-key.1* | |
140 | %{_mandir}/man1/lsh-export-key.1* | |
141 | %{_mandir}/man1/lsh-keygen.1* | |
142 | %{_mandir}/man1/lsh-make-seed.1* | |
143 | %{_mandir}/man1/lsh-upgrade.1* | |
144 | %{_mandir}/man1/lsh-upgrade-key.1* | |
145 | %{_mandir}/man1/lsh-writekey.1* | |
146 | %{_mandir}/man1/lshg.1* | |
147 | %{_mandir}/man1/sexp-conv.1* | |
148 | %{_mandir}/man1/srp-gen.1* | |
149 | %{_mandir}/man1/ssh-conv.1* | |
150 | %{_mandir}/man5/DSA.5* | |
151 | %{_mandir}/man5/SHA.5* | |
152 | %{_mandir}/man5/SPKI.5* | |
153 | %{_mandir}/man5/secsh.5* | |
154 | %{_mandir}/man8/lshd.8* | |
155 | %{_mandir}/man8/sftp-server.8* |