From owner-freebsd-ports Tue Aug 27 21:30:11 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7AA1E37B400 for ; Tue, 27 Aug 2002 21:30:03 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A2A9943E77 for ; Tue, 27 Aug 2002 21:30:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7S4U2JU067619 for ; Tue, 27 Aug 2002 21:30:02 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7S4U2rW067618; Tue, 27 Aug 2002 21:30:02 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5856537B400; Tue, 27 Aug 2002 21:22:59 -0700 (PDT) Received: from ns5.sony.co.jp (NS5.Sony.CO.JP [146.215.0.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4BEB343E6A; Tue, 27 Aug 2002 21:22:58 -0700 (PDT) (envelope-from mistral@imasy.or.jp) Received: from mail2.sony.co.jp (mail2.sony.co.jp [43.0.1.202]) by ns5.sony.co.jp (R8/Sony) with ESMTP id g7S4MvL10971; Wed, 28 Aug 2002 13:22:57 +0900 (JST) Received: from mail2.sony.co.jp (localhost [127.0.0.1]) by mail2.sony.co.jp (R8/Sony) with ESMTP id g7S4Mux05682; Wed, 28 Aug 2002 13:22:57 +0900 (JST) Received: from mistral.imasy.or.jp ([43.2.7.85]) by mail2.sony.co.jp (R8/Sony) with ESMTP id g7S4Mul05664; Wed, 28 Aug 2002 13:22:56 +0900 (JST) Received: from mistral.imasy.or.jp (localhost [IPv6:::1]) by mistral.imasy.or.jp (8.12.5/8.12.5/mistral) with ESMTP id g7S4Mpsm030818 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Wed, 28 Aug 2002 13:22:51 +0900 (JST) (envelope-from mistral@imasy.or.jp) Received: (from sarumaru@localhost) by mistral.imasy.or.jp (8.12.5/8.12.5/Submit) id g7S4Momj030817; Wed, 28 Aug 2002 13:22:50 +0900 (JST) (envelope-from sarumaru) Message-Id: <200208280422.g7S4Momj030817@mistral.imasy.or.jp> Date: Wed, 28 Aug 2002 13:22:50 +0900 (JST) From: Yoshihiko Sarumaru Reply-To: Yoshihiko Sarumaru To: FreeBSD-gnats-submit@FreeBSD.org Cc: naddy@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/42106: obtain socks5 support to ports/ftp/ncftp2 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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