summaryrefslogtreecommitdiff
path: root/mk/bulk
diff options
context:
space:
mode:
authorhubertf <hubertf>2000-09-15 22:25:57 +0000
committerhubertf <hubertf>2000-09-15 22:25:57 +0000
commitdd34ca6f2d4d0670b0f24cf78683e12e35e4f499 (patch)
tree0032c8b6f158596d6bb6a02e7b52b5df000ba23c /mk/bulk
parentdb0f5817e27350d958f29b207fd140519ff4c004 (diff)
downloadpkgsrc-dd34ca6f2d4d0670b0f24cf78683e12e35e4f499.tar.gz
Allow setting ftp_proxy and http_proxy in build.conf or $environment
Diffstat (limited to 'mk/bulk')
-rw-r--r--mk/bulk/build12
-rw-r--r--mk/bulk/build.conf-example6
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 !!!
###########################################################################