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 15 echo "======> attempt to verify an unsigned file" 16 /usr/bin/netpgp --verify a 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 "======> version information" 35 /usr/bin/netpgp --version 36 rm -f a a.gpg b b.gpg c c.gpg d d.gpg e 37