svn commit: r351560 - head/ftp/ncftp1
Adam Weinberger
adamw at FreeBSD.org
Fri Apr 18 19:21:05 UTC 2014
Author: adamw
Date: Fri Apr 18 19:21:04 2014
New Revision: 351560
URL: http://svnweb.freebsd.org/changeset/ports/351560
QAT: https://qat.redports.org/buildarchive/r351560/
Log:
STAGE support, and turn "INSTALL_AS_NCFTP" into an OPTION. Note
that the port still doesn't build.
Modified:
head/ftp/ncftp1/Makefile
Modified: head/ftp/ncftp1/Makefile
==============================================================================
--- head/ftp/ncftp1/Makefile Fri Apr 18 19:00:31 2014 (r351559)
+++ head/ftp/ncftp1/Makefile Fri Apr 18 19:21:04 2014 (r351560)
@@ -5,23 +5,25 @@ PORTNAME= ncftp
PORTVERSION= 1.9.5
CATEGORIES= ftp
MASTER_SITES= ftp://ftp.ncftp.com/ncftp/
-DISTNAME= ncftp-${PORTVERSION}
PKGNAMESUFFIX= 1
MAINTAINER= obrien at FreeBSD.org
COMMENT= FTP replacement with advanced user interface
-PLIST_FILES= bin/${LATEST_LINK}
-MAN1= ncftp.1
+OPTIONS_DEFINE= AS_NCFTP
+AS_NCFTP_DESC= Install binary as ncftp instead of ncftp1
-NO_STAGE= yes
-pre-fetch:
- @${ECHO} ""
- @${ECHO} "Use INSTALL_AS_NCFTP=yes to install ncftp1 as ${PREFIX}/bin/ncftp"
- @${ECHO} ""
+.include <bsd.port.options.mk>
+
+NCFTP= ${PORTNAME}
+.if empty(PORT_OPTIONS:MAS_NCFTP)
+NCFTP:= ${NCFTP}${PKGNAMESUFFIX}
+.endif
+
+PLIST_FILES= bin/${NCFTP} man/man1/${NCFTP}.1.gz
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/ncftp ${PREFIX}/bin/${LATEST_LINK}
- cd ${WRKSRC}; ${INSTALL_MAN} ncftp.1 ${PREFIX}/man/man1
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${NCFTP}
+ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1/${NCFTP}.1.gz
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list