diff options
-rw-r--r-- | ports-mgmt/portaudit/files/portaudit-cmd.sh | 5 | ||||
-rw-r--r-- | ports-mgmt/portaudit/files/portaudit.conf | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/ports-mgmt/portaudit/files/portaudit-cmd.sh b/ports-mgmt/portaudit/files/portaudit-cmd.sh index 586b46319759..d99550e8efdb 100644 --- a/ports-mgmt/portaudit/files/portaudit-cmd.sh +++ b/ports-mgmt/portaudit/files/portaudit-cmd.sh @@ -52,6 +52,7 @@ portaudit_confs() : ${portaudit_pubkey:="%%PREFIX%%/etc/portaudit.pubkey"} : ${portaudit_fixed=""} + : ${portaudit_openssl:="/usr/bin/openssl"} } extract_auditfile_raw() @@ -78,10 +79,10 @@ checksignature_auditfile() local TMPFILE=`mktemp -t portaudit` extract_auditfile_raw | egrep "^#SIGNATURE: " | sed "s/^#SIGNATURE: //g" \ - | openssl enc -d -a >$TMPFILE + | $portaudit_openssl enc -d -a >$TMPFILE signatureresult=`extract_auditfile_raw | egrep -v "^#SIGNATURE: " \ | egrep -v "^#CHECKSUM: " \ - | openssl dgst -sha256 -verify ${portaudit_pubkey} -signature $TMPFILE` + | $portaudit_openssl dgst -sha256 -verify ${portaudit_pubkey} -signature $TMPFILE` if [ -n "$TMPFILE" ]; then rm "$TMPFILE" fi diff --git a/ports-mgmt/portaudit/files/portaudit.conf b/ports-mgmt/portaudit/files/portaudit.conf index 6a12aa8f1093..9233ef45e253 100644 --- a/ports-mgmt/portaudit/files/portaudit.conf +++ b/ports-mgmt/portaudit/files/portaudit.conf @@ -17,3 +17,6 @@ # this vulnerability has been fixed in your FreeBSD version #portaudit_fixed="d2102505-f03d-11d8-81b0-000347a4fa7d" + +# Alternative location for openssl +#portaudit_openssl="/usr/bin/openssl" |