diff options
author | Oliver Eikemeier <eik@FreeBSD.org> | 2004-06-18 08:07:29 +0000 |
---|---|---|
committer | Oliver Eikemeier <eik@FreeBSD.org> | 2004-06-18 08:07:29 +0000 |
commit | cfaf552880c1c2a77838f7f013c1cc56dd2c64b5 (patch) | |
tree | 75addd4511169b284858177ac798ccc0621c39d0 /security/portaudit/files/portaudit.functions | |
parent | make 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/portaudit/files/portaudit.functions')
-rw-r--r-- | security/portaudit/files/portaudit.functions | 4 |
1 files changed, 4 insertions, 0 deletions
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 } |