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