From dd64b460ee4b97c05ea096a83aaa962204e6aefe Mon Sep 17 00:00:00 2001 From: mandree Date: Sun, 6 Oct 2013 22:06:43 +0000 Subject: Support staging; cleanup !NOPORTDOCS -> PORT_OPTIONS:MDOCS --- ftp/ftpcopy/Makefile | 15 +++++++-------- ftp/ftpcopy/pkg-plist | 3 +++ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/ftp/ftpcopy/Makefile b/ftp/ftpcopy/Makefile index f4a34b652b52..64fdc18f6233 100644 --- a/ftp/ftpcopy/Makefile +++ b/ftp/ftpcopy/Makefile @@ -14,9 +14,8 @@ USE_PERL5= build WRKSRC= ${WRKDIR}/web/${DISTNAME} -MAN1= ftpcopy.1 ftpcp.1 ftpls.1 +.include -NO_STAGE= yes pre-build: ${ECHO} "${CC}" >${WRKSRC}/src/conf-cc ${ECHO} "${CPPFLAGS} ${CFLAGS}" >${WRKSRC}/src/conf-cflags @@ -24,14 +23,14 @@ pre-build: do-install: cd ${WRKSRC}/compile && \ - ${INSTALL_PROGRAM} ftpcopy ftpls ${PREFIX}/bin && \ - ${INSTALL_MAN} ${MAN1} ${PREFIX}/man/man1 && \ - ${INSTALL_SCRIPT} ftpcp ${PREFIX}/bin -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} && \ + ${INSTALL_PROGRAM} ftpcopy ftpls ${STAGEDIR}${PREFIX}/bin && \ + ${INSTALL_MAN} *.1 ${STAGEDIR}${PREFIX}/man/man1 && \ + ${INSTALL_SCRIPT} ftpcp ${STAGEDIR}${PREFIX}/bin +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${STAGEDIR}${DOCSDIR} && \ cd ${WRKSRC}/compile && \ ${INSTALL_DATA} ChangeLog NEWS \ - README THANKS ftpcopy.html ftpls.html ${DOCSDIR} + README THANKS ftpcopy.html ftpls.html ${STAGEDIR}${DOCSDIR} .endif .include diff --git a/ftp/ftpcopy/pkg-plist b/ftp/ftpcopy/pkg-plist index 61be29ec3775..3399dd9500ff 100644 --- a/ftp/ftpcopy/pkg-plist +++ b/ftp/ftpcopy/pkg-plist @@ -1,6 +1,9 @@ bin/ftpcp bin/ftpcopy bin/ftpls +man/man1/ftpcopy.1.gz +man/man1/ftpcp.1.gz +man/man1/ftpls.1.gz %%PORTDOCS%%%%DOCSDIR%%/ChangeLog %%PORTDOCS%%%%DOCSDIR%%/NEWS %%PORTDOCS%%%%DOCSDIR%%/README -- cgit