summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.mk
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1998-05-29 09:21:43 +0000
committeragc <agc@pkgsrc.org>1998-05-29 09:21:43 +0000
commitf9adca14644f7436185c1f6c891593353695679c (patch)
tree2acf44b515a1e2856b873127d99d5cc6fcfdc3fa /mk/bsd.pkg.mk
parent905e28799e087238bd88c260a0041ff15e55379c (diff)
downloadpkgsrc-f9adca14644f7436185c1f6c891593353695679c.tar.gz
Implement a new PASSIVE_FETCH definition, which can be set in the
environment, or /etc/mk.conf, and is used to specify -p to ftp(1) when fetching distfiles from behind a filtering firewall. Document PASSIVE_FETCH in mk.conf.example. Suggested by Bill Coldwell.
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r--mk/bsd.pkg.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index b4bddf82787..43f2aaefac2 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,7 +1,7 @@
#-*- mode: Fundamental; tab-width: 4; -*-
# ex:ts=4
#
-# $NetBSD: bsd.pkg.mk,v 1.86 1998/05/25 00:04:30 hubertf Exp $
+# $NetBSD: bsd.pkg.mk,v 1.87 1998/05/29 09:21:43 agc Exp $
#
# This file is derived from bsd.port.mk - 940820 Jordan K. Hubbard.
# This file is in the public domain.
@@ -145,6 +145,7 @@ NetBSD_MAINTAINER= agc@netbsd.org
# NOCLEANDEPENDS - Don't clean dependent packages
# BROKEN - Port is broken. Set this string to the reason why.
# RESTRICTED - Port is restricted. Set this string to the reason why.
+# PASSIVE_FETCH - Uses passive ftp(1) to retrieve distribution files
# USE_GMAKE - Says that the port uses gmake.
# USE_PERL5 - Says that the port uses perl5 for building and running.
# USE_IMAKE - Says that the port uses imake.
@@ -684,6 +685,11 @@ INSTALL_TARGET?= install
INSTALL_TARGET+= install.man
.endif
+# If this host is behind a filtering firewall, use passive ftp(1)
+.if defined(PASSIVE_FETCH)
+FETCH_BEFORE_ARGS += -p
+.endif
+
# Popular master sites
MASTER_SITE_XCONTRIB+= \
ftp://crl.dec.com/pub/X11/contrib/%SUBDIR%/ \