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