Subject: pkg/6821: add passive ftp support to www/lynx package
To: None <>
From: None <>
List: netbsd-bugs
Date: 01/16/1999 01:40:16
>Number:         6821
>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:02 1999
>Originator:     Dan McMahill
>Release:        1.3.2<NetBSD-current source date>
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


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


from behind a firewall

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 @@
-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/"
+.if defined(PASSIVE_FETCH)
+CONFIGURE_ENV+=        LIBS="-lm -ltermcap" CPPFLAGS="-Dunix -DNOPORT"
 CONFIGURE_ENV+=        LIBS="-lm -ltermcap" CPPFLAGS=-Dunix