Commit 6ff2dcb6 authored by Niels Möller's avatar Niels Möller
Browse files

* contrib/lsh.spec.in: Update by Thayne.

Rev: contrib/lsh.spec.in:1.7
parent 67d331ac
Summary: lsh - secure connections
Summary: lsh - secure connections with secsh2 protocol
Name: @PACKAGE@
Version: @VERSION@
Release: 1
......@@ -10,10 +10,11 @@ Prefix: /usr
Packager: Thayne Harbaugh <thayne@plug.org>
URL: http://www.net.lut.ac.uk/psst/
Requires: chkconfig
Requires: info
%description
lsh impliments the secsh2 protocol
lsh implements the secsh2 protocol
%prep
......@@ -24,10 +25,8 @@ lsh impliments the secsh2 protocol
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix
if [ "$SMP" != "" ]; then
(make "MAKE=gmake -k -j $SMP"; exit 0)
gmake
else
gmake
fi
gmake
%install
......@@ -35,26 +34,19 @@ rm -rf $RPM_BUILD_ROOT
gmake prefix=$RPM_BUILD_ROOT%{prefix} install
( for man in doc/*.[0-9]
do
MAN_NUM=`echo $man | sed 's/.*\.//'`
install -d -m 0755 $RPM_BUILD_ROOT%{prefix}/man/man$MAN_NUM
install -m 0644 $man $RPM_BUILD_ROOT%{prefix}/man/man$MAN_NUM
rm -f $man
done )
install -d -m 0755 $RPM_BUILD_ROOT/etc/rc.d/init.d
install -m 0755 contrib/lshd.rhlinux.init \
$RPM_BUILD_ROOT/etc/rc.d/init.d/lshd
strip $RPM_BUILD_ROOT%{prefix}/bin/lsh
strip $RPM_BUILD_ROOT%{prefix}/bin/lsh_keygen
strip $RPM_BUILD_ROOT%{prefix}/bin/lsh_writekey
# strip $RPM_BUILD_ROOT%{prefix}/lib/*
# ugly, but it's also ugly to list all files in bin
# make install should strip - not here
strip $RPM_BUILD_ROOT%{prefix}/bin/* || true
strip $RPM_BUILD_ROOT%{prefix}/sbin/*
rm -rf doc/Makefile*
gzip $RPM_BUILD_ROOT%{prefix}/man/*/*
rm -f doc/Makefile*
%clean
......@@ -68,12 +60,14 @@ then
rm -f /etc/lsh_host_key*
/usr/bin/lsh_keygen -l 8 | /usr/bin/lsh_writekey -o /etc/lsh_host_key
fi
/sbin/install-info --info-dir=%{prefix}/info %{prefix}/info/lsh.info
%preun
if [ "$1" -eq 0 ]
then
chkconfig --del lshd || exit 0
/sbin/install-info --delete --info-dir=%{prefix}/info %{prefix}/info/lsh.info
fi
......@@ -86,11 +80,18 @@ fi
%config/etc/rc.d/init.d/lshd
%{prefix}/bin/*
%{prefix}/man/*/*
%{prefix}/info/lsh*
%{prefix}/sbin/*
%changelog
* Wed Jun 28 2000 Thayne Harbaugh <thayne@plug.org>
- ripped out man install - make install now does it
- there is now an lsh.info that is handled
- various simplifications
- spelling error
* Thu Jan 06 2000 Thayne Harbaugh <thayne@northsky.com>
- lshd.rhlinux.init is now in contrib dir - removed Source1
- fixed preun $1 comparision - was [ "$1" -eq 1 ]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment