Author: Robert Goff
Date: 02-08-01 20:31
I recently improved my firewall rules to block ports for all the unused services on my machine (the standard rc.firewall "simple" configuration with the patch recommended in a problem report I can't find again). By default, this blocks the ftp-data port from outside the local network.
FTP clients, including fetch, have a "passive" mode to deal with this. However, if you're simply typing 'make' in a ports directory, the 'make fetch' target will fail because it invokes fetch without passive mode. My first solution was to open the ftp-data port in the firewall rules, but I wanted the 'make fetch' target to use a passive fetch.
The answer was to add 'FETCH_CMD = /usr/bin/fetch -P' to /etc/make.conf. The name, 'FETCH_CMD', is documented in the ports man page, but not where to put it.
|
|