From 5672760ddd5a371792a2453b4d97835eb56af24e Mon Sep 17 00:00:00 2001 From: hubertf Date: Fri, 15 Sep 2000 22:25:57 +0000 Subject: Allow setting ftp_proxy and http_proxy in build.conf or $environment --- mk/bulk/build | 12 +++++++++++- mk/bulk/build.conf-example | 6 +++++- 2 files changed, 16 insertions(+), 2 deletions(-) (limited to 'mk') 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 !!! ########################################################################### -- cgit v1.2.3