#!/bin/sh # Check a PGP signed certification # (C) 1996 Iñaky Pérez González # Lobotomy by Torsten Martinsen # $Id: cert,v 1.3 1996/04/19 09:49:25 torsten Exp $ if ! find `echo $PATH | sed 's/:/ /g'` -name pgp | grep "pgp$" > /dev/null then echo echo "*** WARNING!!!" echo " Could not find PGP!!" echo " I won't be able to certify that this package hasn't been" echo " modified by someone." echo "--- Please, get PGP from the Internet and install it. It is the" echo " best way to ensure your privacy and protect the software from" echo " tampering." echo exit 0 fi CERTF="./PGP.certification.asc" PUBKF="./PGP.public-key" USER="$LOGNAME" TEMP=/tmp ! [ -f "$CERTF" ] && echo "error: $CERTF: is not a regular file" && exit 1 ! [ -r "$CERTF" ] && echo "error: $CERTF: haven't got permission to read" && exit 1 ! cat `cat filelist` "$PUBKF.asc" "$PUBKF.pgp" > "$TEMP/pgp-certif.$$" \ && echo "error: Couldn't create temporary file" \ && exit 1 cat < /dev/null then cat <