aboutsummaryrefslogtreecommitdiff
path: root/ftp/ncftp2
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2004-04-19 11:42:54 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2004-04-19 11:42:54 +0000
commit6427a0487521b48d7971d29dcedd62814e21d618 (patch)
tree950a3cf46c61a2fe6f6b6f37fd8632993bc50aec /ftp/ncftp2
parent8ca72281dc73381549e862067a3390757fa411ed (diff)
downloadports-6427a0487521b48d7971d29dcedd62814e21d618.tar.gz
ports-6427a0487521b48d7971d29dcedd62814e21d618.zip
Make 'pkg_add -r ncftp' now refer to ncftp3. The ncftp3 binary is now
installed as `bin/ncftp'. This behavior can be changed by building with INSTALL_AS_NCFTP3 for ncftp3; and INSTALL_AS_NCFTP for ncftp & ncftp2.
Notes
Notes: svn path=/head/; revision=107573
Diffstat (limited to 'ftp/ncftp2')
-rw-r--r--ftp/ncftp2/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/ftp/ncftp2/Makefile b/ftp/ncftp2/Makefile
index f2e59f07b00d..88fa13aaaee0 100644
--- a/ftp/ncftp2/Makefile
+++ b/ftp/ncftp2/Makefile
@@ -13,18 +13,28 @@ MASTER_SITES= ftp://ftp.ncftp.com/ncftp/
MAINTAINER= ports@FreeBSD.org
COMMENT= FTP replacement with advanced user interface
+.if defined(INSTALL_AS_NCFTP)
+LATEST_LINK= ncftp
+.else
+LATEST_LINK= ncftp2
+.endif
+PLIST_FILES= bin/${LATEST_LINK}
GNU_CONFIGURE= yes
CONFIGURE_ENV= ac_cv_func_getmaxyx=yes ac_cv_lib_readline=yes
MAN1= ncftp2.1
-PLIST_FILES= bin/ncftp2
.if defined(WITH_SOCKS)
BUILD_DEPENDS= ${LOCALBASE}/lib/libsocks5.a:${PORTSDIR}/net/socks5
CONFIGURE_ARGS+=--enable-socks5
.endif
+pre-fetch:
+ @${ECHO} ""
+ @${ECHO} "Use INSTALL_AS_NCFTP=yes to install ncftp1 as ${PREFIX}/bin/ncftp"
+ @${ECHO} ""
+
do-install:
- $(INSTALL_PROGRAM) $(WRKSRC)/ncftp $(PREFIX)/bin/ncftp2
+ $(INSTALL_PROGRAM) $(WRKSRC)/ncftp $(PREFIX)/bin/${LATEST_LINK}
$(INSTALL_MAN) $(WRKSRC)/ncftp.1 $(PREFIX)/man/man1/ncftp2.1
.include <bsd.port.mk>