Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Feb 2003 21:41:51 +0900
From:      Makoto Matsushita <matusita@jp.FreeBSD.org>
To:        current@FreeBSD.org
Subject:   Comments welcome: 1-line patch: teach FTP_PASSIVE_MODE to ${CHROOT}/mk
Message-ID:  <20030210214151H.matusita@jp.FreeBSD.org>

next in thread | raw e-mail | index | archive | help

I'd like to commit following patch to src/release/Makefile.  Here's
background:

A user may want to build their own FreeBSD distribution.  During the
release build, pkg_add(1) runs within chroot sandbox to install
mkisofs(8) iff MAKE_ISOS=YES.  Imagine what's happen if the user is
living behind the Internet firewall -- pkg_add(1) try to fetch the
package from outside but it can't since firewall usually doesn't allow
outer-to-inner connections.  According to the pkg_add(1) manpage,
FTP_PASSIVE_MODE environment variable enables passive ftp connections.

You know there are many solutions about this issue.  IIRC, it can be
easily fixed with "passing FTP_PASSIVE_MODE variable to the chroot
sandbox."  Following patch was tested on FreeBSD/i386, and it should
work on other archs since this is arch-independent code.

If there's no problem around, I'll commit it later.  Any comments and/or
suggestions are welcome.

-- -
Makoto `MAR' Matsushita


Index: Makefile
===================================================================
RCS file: /home/ncvs/src/release/Makefile,v
retrieving revision 1.749
diff -u -r1.749 Makefile
--- Makefile	4 Feb 2003 16:07:20 -0000	1.749
+++ Makefile	10 Feb 2003 11:19:41 -0000
@@ -430,6 +430,7 @@
 	DOMINIMALDOCPORTS \
 	EXTRA_SRC \
 	FIXCRYPTO \
+	FTP_PASSIVE_MODE \
 	KERNELS \
 	KERNEL_FLAGS \
 	MAKE_ISOS \

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030210214151H.matusita>