diff options
author | hubertf <hubertf@pkgsrc.org> | 2000-09-15 22:25:57 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 2000-09-15 22:25:57 +0000 |
commit | 325db75d6d394e13f571667d370f05649240a876 (patch) | |
tree | 0032c8b6f158596d6bb6a02e7b52b5df000ba23c /mk | |
parent | 0e7843f045abaeb7f5b7978a900e8e74f06a3cf6 (diff) | |
download | pkgsrc-325db75d6d394e13f571667d370f05649240a876.tar.gz |
Allow setting ftp_proxy and http_proxy in build.conf or $environment
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bulk/build | 12 | ||||
-rw-r--r-- | mk/bulk/build.conf-example | 6 |
2 files changed, 16 insertions, 2 deletions
diff --git a/mk/bulk/build b/mk/bulk/build index d28f9e90b49..362961ce051 100644 --- a/mk/bulk/build +++ b/mk/bulk/build @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: build,v 1.1 2000/09/15 22:05:47 hubertf Exp $ +# $NetBSD: build,v 1.2 2000/09/15 22:25:57 hubertf Exp $ # # Do builk build # @@ -9,6 +9,16 @@ echo Bulk build started: `date` echo "" +if [ "$http_proxy" != "" ]; then + echo "Using HTTP proxy $http_proxy" + export http_proxy +fi +if [ "$ftp_proxy" != "" ]; then + echo "Using FTP proxy $ftp_proxy" + export ftp_proxy +fi +echo "" + # Pull in ADMIN: if [ -f "$BULK_BUILD_CONF" ]; then . $BULK_BUILD_CONF diff --git a/mk/bulk/build.conf-example b/mk/bulk/build.conf-example index a4780eb5bd5..5eff0a3de4a 100644 --- a/mk/bulk/build.conf-example +++ b/mk/bulk/build.conf-example @@ -1,5 +1,5 @@ # build.conf -# $Id: build.conf-example,v 1.1 2000/09/15 22:05:47 hubertf Exp $ +# $Id: build.conf-example,v 1.2 2000/09/15 22:25:57 hubertf Exp $ # # config file in /bin/sh syntax for {,pre,post}-build # @@ -26,6 +26,10 @@ USR_PKGSRC="/usr/pkgsrc" # As which user to run "cvs updates" CVS_USER="yourlogin" +# Proxies (optional): +#ftp_proxy=http://proxy.machi.ne:3128/ +#http_proxy=http://proxy.machi.ne:3128/ + ########################################################################### ### No changes should be needed below this line !!! ########################################################################### |