aboutsummaryrefslogtreecommitdiff
path: root/ftp
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2002-08-29 20:10:31 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2002-08-29 20:10:31 +0000
commitc9e13cbce864508f141142890c3ee6dea0740ae0 (patch)
treec81cc6da0c848b84720b08392f304896c90112a4 /ftp
parente2e5438927b3a02e006b7975c46f8a046789054f (diff)
downloadports-c9e13cbce864508f141142890c3ee6dea0740ae0.tar.gz
ports-c9e13cbce864508f141142890c3ee6dea0740ae0.zip
Add optional SOCKS5 support.
PR: 42106 Submitted by: Yoshihiko Sarumaru <mistral@imasy.or.jp>
Notes
Notes: svn path=/head/; revision=65244
Diffstat (limited to 'ftp')
-rw-r--r--ftp/ncftp2/Makefile5
-rw-r--r--ftp/ncftp2/files/patch-aa2
-rw-r--r--ftp/ncftp2/files/patch-ac11
3 files changed, 17 insertions, 1 deletions
diff --git a/ftp/ncftp2/Makefile b/ftp/ncftp2/Makefile
index 6d685cca6416..cf4ef12c2e96 100644
--- a/ftp/ncftp2/Makefile
+++ b/ftp/ncftp2/Makefile
@@ -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
diff --git a/ftp/ncftp2/files/patch-aa b/ftp/ncftp2/files/patch-aa
index c5dfa7bceac2..76e0986df2c7 100644
--- a/ftp/ncftp2/files/patch-aa
+++ b/ftp/ncftp2/files/patch-aa
@@ -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 --git a/ftp/ncftp2/files/patch-ac b/ftp/ncftp2/files/patch-ac
new file mode 100644
index 000000000000..81ead5f4ae12
--- /dev/null
+++ b/ftp/ncftp2/files/patch-ac
@@ -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"