1 #! /bin/sh 2 3 env USETOOLS=no MAKEOBJDIRPREFIX=/usr/obj/i386 sh -c 'cd ../lib && \ 4 make cleandir ; \ 5 make ; \ 6 su root -c "make install"' 7 env USETOOLS=no MAKEOBJDIRPREFIX=/usr/obj/i386 sh -c 'cd ../bin && \ 8 make cleandir ; \ 9 make ; \ 10 su root -c "make install"' 11 echo "======> sign/verify 180938 file" 12 cp configure a 13 /usr/bin/netpgp --sign a 14 /usr/bin/netpgp --verify a.gpg && echo "[Verified OK]" 15 echo "======> attempt to verify an unsigned file" 16 /usr/bin/netpgp --verify a && echo "[Verified OK]" 17 echo "======> encrypt/decrypt 10809 file" 18 cp src/bin/netpgp.1 b 19 /usr/bin/netpgp --encrypt b 20 /usr/bin/netpgp --decrypt b.gpg 21 diff src/bin/netpgp.1 b && echo "[No differences found]" 22 echo "======> encrypt/decrypt 180938 file" 23 cp configure c 24 /usr/bin/netpgp --encrypt c 25 /usr/bin/netpgp --decrypt c.gpg 26 diff configure c && echo "[No differences found]" 27 echo "======> encrypt/decrypt bigass file" 28 cat configure configure configure configure configure configure > d 29 ls -l d 30 cp d e 31 /usr/bin/netpgp --encrypt d 32 /usr/bin/netpgp --decrypt d.gpg 33 diff e d && echo "[No differences found]" 34 echo "======> sign/verify detached signature file" 35 cat configure configure configure configure configure configure > f 36 /usr/bin/netpgp --sign --detached f 37 ls -l f f.sig 38 /usr/bin/netpgp --verify f.sig && echo "[Verified OK]" 39 echo "======> cat signature - verified cat command" 40 /usr/bin/netpgp --cat a.gpg > a2 41 diff a a2 && echo "[No differences found]" 42 echo "======> another cat signature - verified cat command" 43 /usr/bin/netpgp --cat --output=a3 a.gpg 44 diff a a3 && echo "[No differences found]" 45 echo "======> version information" 46 /usr/bin/netpgp --version 47 rm -f a a.gpg b b.gpg c c.gpg d d.gpg e f f.sig a2 a3 48