summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorOliver Eikemeier <eik@FreeBSD.org>2004-06-18 08:07:29 +0000
committerOliver Eikemeier <eik@FreeBSD.org>2004-06-18 08:07:29 +0000
commitcfaf552880c1c2a77838f7f013c1cc56dd2c64b5 (patch)
tree75addd4511169b284858177ac798ccc0621c39d0 /security
parentmake BASEURL customizable (diff)
Fetch the database from http://www.FreeBSD.org/ports/ first.
Thanks to: kuriyama
Notes
Notes: svn path=/head/; revision=111708
Diffstat (limited to 'security')
-rw-r--r--security/portaudit/Makefile2
-rw-r--r--security/portaudit/files/portaudit.conf9
-rw-r--r--security/portaudit/files/portaudit.functions4
-rw-r--r--security/portaudit/pkg-install2
4 files changed, 11 insertions, 6 deletions
diff --git a/security/portaudit/Makefile b/security/portaudit/Makefile
index 6cd41e3658d6..d62f20727494 100644
--- a/security/portaudit/Makefile
+++ b/security/portaudit/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= portaudit
-PORTVERSION= 0.3.1
+PORTVERSION= 0.3.2
CATEGORIES= security
DISTFILES=
diff --git a/security/portaudit/files/portaudit.conf b/security/portaudit/files/portaudit.conf
index 5b2f5363cbcf..2e73ffcd9830 100644
--- a/security/portaudit/files/portaudit.conf
+++ b/security/portaudit/files/portaudit.conf
@@ -17,8 +17,9 @@
#FETCH_AFTER_ARGS=
-# specify a local mirror here
-#MASTER_SITES="http://my.mirror.sample/path/portaudit/"
+# specify a local mirror that generates databases with portaudit-db here
+#MASTER_SITE_OVERRIDE="http://my.mirror.sample/path/portaudit/"
+# use the following to disable the override
+#MASTER_SITE_OVERRIDE=" "
-# uncomment to prefer the UK mirror, jp, se, tw and uk are available
-#MASTER_SORT_REGEX="\.uk[.\/]"
+# uncomment to prefer the UK mirror, at, cz, dk, jp, ro, se, tw and uk are available
diff --git a/security/portaudit/files/portaudit.functions b/security/portaudit/files/portaudit.functions
index 9475bfeaf805..be3599913979 100644
--- a/security/portaudit/files/portaudit.functions
+++ b/security/portaudit/files/portaudit.functions
@@ -41,6 +41,7 @@ portaudit_confs()
FETCH_BEFORE_ARGS=${FETCH_BEFORE_ARGS:-"-p"}
FETCH_AFTER_ARGS=${FETCH_AFTER_ARGS:-}
+ MASTER_SITE_OVERRIDE=${MASTER_SITE_OVERRIDE:-"http://www.FreeBSD.org/ports/"}
MASTER_SITES=${MASTER_SITES:-"
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/%SUBDIR%/
ftp://ftp.se.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/%SUBDIR%/
@@ -196,6 +197,9 @@ audit_cwd()
fetch_locations()
{
# site sort order is not overly smart
+ if [ -n "${MASTER_SITE_OVERRIDE}" ]; then
+ echo "${MASTER_SITE_OVERRIDE}"
+ fi
echo ${MASTER_SITES} | /usr/bin/tr -s ' \t' '\n' | /usr/bin/awk "
BEGIN { IGNORECASE=1; srand() }
/^$/ { next }
diff --git a/security/portaudit/pkg-install b/security/portaudit/pkg-install
index 485fe2c991cb..158f0e25ee15 100644
--- a/security/portaudit/pkg-install
+++ b/security/portaudit/pkg-install
@@ -9,7 +9,7 @@ POST-INSTALL)
echo
echo "===> To check your installed ports for known vulnerabilities now do:"
echo
- echo " %%PREFIX%%/bin/portaudit -F -a"
+ echo " %%PREFIX%%/bin/portaudit -Fda"
echo
fi
;;