3 # Original wrapper by Paul Bijnens
5 # worked by Stefan G. Weichinger
6 # to enable gpg-encrypted dumps via aespipe
7 # also worked by Matthieu Lochegnies for server-side encryption
10 exec_prefix=@exec_prefix@
12 AMANDA_HOME=~@CLIENT_LOGIN@
14 AM_AESPIPE=@sbindir@/amaespipe
15 AM_PASSPHRASE=$AMANDA_HOME/.am_passphrase
16 PATH=/usr/bin:/usr/local/bin:/sbin:/usr/sbin
19 AESPIPE=`which aespipe`
21 if [ $? -ne 0 ] ; then
22 echo "amcrypt: aespipe not found in $PATH" >&2
26 if [ ! -x $AESPIPE ] ; then
27 echo "amcrypt: aespipe it's not executable" >&2
31 if [ ! -x $AM_AESPIPE ] ; then
32 echo "amcrypt: $AM_AESPIPE not found or it's not executable" >&2
36 $AM_AESPIPE "$@" 3< $AM_PASSPHRASE