1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00

- Update to 1.5

This commit is contained in:
Dirk Meyer 2003-01-27 05:28:50 +00:00
parent 1651319549
commit 52cd1816de
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=74066
3 changed files with 2 additions and 58 deletions

View File

@ -5,7 +5,7 @@
# $FreeBSD$
PORTNAME= lsh
PORTVERSION= 1.4.2
PORTVERSION= 1.5
CATEGORIES= security ipv6
MASTER_SITES= ftp://ftp.lysator.liu.se/pub/security/lsh/%SUBDIR%/
MASTER_SITE_SUBDIR= . old

View File

@ -1 +1 @@
MD5 (lsh-1.4.2.tar.gz) = ed9b090f375830c219141098b7f25555
MD5 (lsh-1.5.tar.gz) = 25f63a243a28b1a1e74b2fa233941fae

View File

@ -1,56 +0,0 @@
--- src/lsh-authorize.orig Tue Mar 26 16:40:49 2002
+++ src/lsh-authorize Wed Dec 18 05:01:48 2002
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/bin/sh
usage () {
echo Usage: $0 key-file
@@ -29,7 +29,7 @@
exit 0
fi
-create_dir () {
+create-dir () {
if mkdir $1 2>/dev/null; then
echo Created $1
chmod $2 $1 || exit 1
@@ -40,23 +40,25 @@
create_dir $HOME/.lsh 0700
create_dir $HOME/.lsh/authorized_keys_sha1 0700
-if type sexp-conv >/dev/null 2>&1 ; then
- SEXP_CONV=sexp-conv
-else
- SEXP_CONV=./sexp-conv
-fi
+PATH=$PATH:`dirname $0`
-if type $SEXP_CONV >/dev/null 2>&1 ; then : ; else
- echo "Can't find the sexp-conv program"
- exit 1
-fi
+SEXP_CONV="sexp-conv"
while [ $# != 0 ]; do
- hash=`$SEXP_CONV < $1 --once --hash sha1 --raw-hash`
- if [ -z $hash ] ; then
- echo $0: File $1 not found.
- else
+ if [ -f $1 ]; then
+ hash=`$SEXP_CONV < $1 --once --hash sha1 --raw-hash`
+ if [ $? = 127 ]; then
+ echo "Can't find the sexp_conv program"
+ exit 1
+ fi
+ if [ -z "$hash" ] ; then
+ echo $0: File $1 not readable
+ else
$SEXP_CONV < $1 -f canonical --once > $HOME/.lsh/authorized_keys_sha1/$hash
+ fi
+ else
+ echo $0: File $1 not found.
fi
shift
done
+