diff options
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 } |