Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Aug 2002 13:22:50 +0900 (JST)
From:      Yoshihiko Sarumaru <mistral@imasy.or.jp>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        naddy@FreeBSD.org
Subject:   ports/42106: obtain socks5 support to ports/ftp/ncftp2
Message-ID:  <200208280422.g7S4Momj030817@mistral.imasy.or.jp>

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

>Number:         42106
>Category:       ports
>Synopsis:       obtain socks5 support to ports/ftp/ncftp2
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 27 21:30:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Yoshihiko Sarumaru
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
Internet Mutual Aid Society Yokohama
>Environment:
System: FreeBSD mistral.imasy.or.jp 4.6-STABLE FreeBSD 4.6-STABLE #0: Tue Aug 27 20:05:30 JST 2002 sarumaru@mistral.imasy.or.jp:/usr/obj/usr/src/sys/Z505VRK i386


	
>Description:
	This is a revised PR for ports/32651 which I sent last year.
	Sorry, I have missed that original configure script is broken for
	SOCKS5support. This PR includes patch for configure script itself
	(both autoconf/autoconf213 couldn't generate runnable configure).

	My previous description is here:
        Ncftp2 has its own SOCKS5 support code in source code and user can
        enable the code by adding --enable-socks5 option to configure.
        In other ported softwares seems have a manner to use WITH_SOCKS to
        specify SOCKS5 support (ports/net/licq, ports/irc/xchat, and others).
        This patch let ncftp2 to use this manner to use SOCKS5.
	
>How-To-Repeat:
	
>Fix:
diff -ur --new-file ncftp2.bak/Makefile ncftp2/Makefile
--- ncftp2.bak/Makefile	Sun Jun 16 23:00:45 2002
+++ ncftp2/Makefile	Wed Aug 28 11:57:49 2002
@@ -16,6 +16,11 @@
 CONFIGURE_ENV=	ac_cv_func_getmaxyx=yes ac_cv_lib_readline=yes
 MAN1=		ncftp2.1
 
+.if defined(WITH_SOCKS)
+BUILD_DEPENDS=	${LOCALBASE}/lib/libsocks5.a:${PORTSDIR}/net/socks5
+CONFIGURE_ARGS+=   --enable-socks5
+.endif
+
 do-install:
 	$(INSTALL_PROGRAM) $(WRKSRC)/ncftp $(PREFIX)/bin/ncftp2
 	$(INSTALL_MAN) $(WRKSRC)/ncftp.1 $(PREFIX)/man/man1/ncftp2.1
diff -ur --new-file ncftp2.bak/files/patch-aa ncftp2/files/patch-aa
--- ncftp2.bak/files/patch-aa	Fri Oct 18 00:00:00 1996
+++ ncftp2/files/patch-aa	Wed Aug 28 11:29:33 2002
@@ -13,7 +13,7 @@
   VPATH=@srcdir@
   CPPFLAGS=-I. -I@srcdir@ @CPPFLAGS@
   
-! LIBS= -lreadline -lncurses -lmytinfo
+! LIBS=@LIBS@ -lmytinfo
   SHARED_LDFLAGS=@LDFLAGS@
   STATIC_LDFLAGS=@LDFLAGS@ @SLDFLAGS@
   
diff -ur --new-file ncftp2.bak/files/patch-ac ncftp2/files/patch-ac
--- ncftp2.bak/files/patch-ac	Thu Jan  1 09:00:00 1970
+++ ncftp2/files/patch-ac	Wed Aug 28 11:40:36 2002
@@ -0,0 +1,11 @@
+--- configure.bak	Sun Jun  8 14:25:04 1997
++++ configure	Wed Aug 28 11:40:19 2002
+@@ -1766,7 +1766,7 @@
+   echo "$ac_t""no" 1>&6
+ fi
+ 
+-      if test "$ac_cv_lib_socks5" = yes ; then
++      if test "$ac_cv_lib_socks5_SOCKSinit" = yes ; then
+               nc_cv_socks=no
+       else
+               LIBS="$savelibs"
>Release-Note:
>Audit-Trail:
>Unformatted:

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




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