From owner-svn-ports-all@FreeBSD.ORG Thu Aug 1 19:03:42 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 29BABFFC; Thu, 1 Aug 2013 19:03:42 +0000 (UTC) (envelope-from remko@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id F1C8A2507; Thu, 1 Aug 2013 19:03:41 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r71J3fv4005983; Thu, 1 Aug 2013 19:03:41 GMT (envelope-from remko@svn.freebsd.org) Received: (from remko@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r71J3f7d005981; Thu, 1 Aug 2013 19:03:41 GMT (envelope-from remko@svn.freebsd.org) Message-Id: <201308011903.r71J3f7d005981@svn.freebsd.org> From: Remko Lodder Date: Thu, 1 Aug 2013 19:03:41 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r324119 - head/ports-mgmt/portaudit/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Aug 2013 19:03:42 -0000 Author: remko (src,doc committer) Date: Thu Aug 1 19:03:40 2013 New Revision: 324119 URL: http://svnweb.freebsd.org/changeset/ports/324119 Log: Add support for an alternative openssl location, for example when installed via the Ports Collection. PR: 166561 Submitted by: Eugene Grosbein Modified: head/ports-mgmt/portaudit/files/portaudit-cmd.sh head/ports-mgmt/portaudit/files/portaudit.conf Modified: head/ports-mgmt/portaudit/files/portaudit-cmd.sh ============================================================================== --- head/ports-mgmt/portaudit/files/portaudit-cmd.sh Thu Aug 1 18:47:43 2013 (r324118) +++ head/ports-mgmt/portaudit/files/portaudit-cmd.sh Thu Aug 1 19:03:40 2013 (r324119) @@ -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 Modified: head/ports-mgmt/portaudit/files/portaudit.conf ============================================================================== --- head/ports-mgmt/portaudit/files/portaudit.conf Thu Aug 1 18:47:43 2013 (r324118) +++ head/ports-mgmt/portaudit/files/portaudit.conf Thu Aug 1 19:03:40 2013 (r324119) @@ -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"