Subject: pkg/6820: add passive ftp support to www/lynx package
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mcmahill@mtl.mit.edu>
List: netbsd-bugs
Date: 01/16/1999 01:36:13
>Number:         6820
>Category:       pkg
>Synopsis:       add passive ftp support to www/lynx package
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 15 22:50:01 1999
>Last-Modified:
>Originator:     Dan McMahill
>Organization:
	
>Release:        1.3.2<NetBSD-current source date>
>Environment:
	
System: NetBSD cowboy-burt 1.3.2 NetBSD 1.3.2 (GENERIC_SCSI3) #0: Sun May 10 23:24:39 MEST 1998 pk@flambard:/usr/src1/sys/arch/sparc/compile/GENERIC_SCSI3 sparc


>Description:

www/lynx is compiled without passive ftp support.  this isn't
usable in some situations behind a firewall.

	
>How-To-Repeat:
lynx ftp://ftp.netbsd.org/

from behind a firewall
	
>Fix:

apply this patch to pkgsrc/www/lynx/Makefile


--- Makefile.orig       Sat Jan 16 00:37:03 1999
+++ Makefile    Sat Jan 16 01:21:07 1999
@@ -11,10 +11,19 @@
 HOMEPAGE=      http://sol.slcc.edu/lynx/
 
-CONFLICTS=     lynx-2.8rel.2 lynx-2.8
-
 DEPENDS+=      libslang-1.2.2:../../devel/libslang
 
+CONFLICTS=     lynx-2.8rel.2 lynx-2.8
+
 CONFIGURE_ARGS+= --with-screen=slang --with-zlib --libdir="${PREFIX}/etc"
+
+# see if PASSIVE__FETCH is defined in /etc/mk.conf.  If so compile
+# with the ftp code set to passive mode (-DNOPORT)
+.include "../../mk/bsd.prefs.mk"
+
+.if defined(PASSIVE_FETCH)
+CONFIGURE_ENV+=        LIBS="-lm -ltermcap" CPPFLAGS="-Dunix -DNOPORT"
+.else
 CONFIGURE_ENV+=        LIBS="-lm -ltermcap" CPPFLAGS=-Dunix
+.endif
 GNU_CONFIGURE=  YES
 

	
>Audit-Trail:
>Unformatted: