Add optional SOCKS5 support.

PR:		42106
Submitted by:	Yoshihiko Sarumaru <mistral@imasy.or.jp>
This commit is contained in:
Christian Weisgerber 2002-08-29 20:10:31 +00:00
parent e2e5438927
commit c9e13cbce8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=65244
3 changed files with 17 additions and 1 deletions

View File

@ -16,6 +16,11 @@ GNU_CONFIGURE= yes
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

View File

@ -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@

11
ftp/ncftp2/files/patch-ac Normal file
View File

@ -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"