mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
Add optional SOCKS5 support.
PR: 42106 Submitted by: Yoshihiko Sarumaru <mistral@imasy.or.jp>
This commit is contained in:
parent
e2e5438927
commit
c9e13cbce8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=65244
@ -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
|
||||
|
@ -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
11
ftp/ncftp2/files/patch-ac
Normal 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"
|
Loading…
Reference in New Issue
Block a user