diff options
author | danilo <danilo@FreeBSD.org> | 2014-02-08 22:16:21 +0800 |
---|---|---|
committer | danilo <danilo@FreeBSD.org> | 2014-02-08 22:16:21 +0800 |
commit | 1f98bbe2b4be91d053b18a45d7de920170f3e2f1 (patch) | |
tree | aea1099121b21ec09a005908e5184697a09d2207 /ftp/ncftpd | |
parent | bc935f3c49a51343b74d69a02cd89c932eba02a4 (diff) | |
download | freebsd-ports-gnome-1f98bbe2b4be91d053b18a45d7de920170f3e2f1.tar.gz freebsd-ports-gnome-1f98bbe2b4be91d053b18a45d7de920170f3e2f1.tar.zst freebsd-ports-gnome-1f98bbe2b4be91d053b18a45d7de920170f3e2f1.zip |
- Add DOCS option
- Add stage support
Diffstat (limited to 'ftp/ncftpd')
-rw-r--r-- | ftp/ncftpd/Makefile | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/ftp/ncftpd/Makefile b/ftp/ncftpd/Makefile index 19aae4547c8e..f0ce84b79d98 100644 --- a/ftp/ncftpd/Makefile +++ b/ftp/ncftpd/Makefile @@ -21,9 +21,10 @@ RESTRICTED= 30 day evaluation license USE_RC_SUBR= ncftpd SUB_FILES= pkg-message +OPTIONS_DEFINE= DOCS + PORTDOCS= install.html README README.freebsd LICENSE -NO_STAGE= yes .include <bsd.port.pre.mk> .if ${OSVERSION} >= 900000 @@ -42,21 +43,17 @@ DIST_ARCH= i386 .endif do-install: - ${MKDIR} ${PREFIX}/etc/ncftpd - ${INSTALL_PROGRAM} ${WRKSRC}/ncftpd ${PREFIX}/sbin - ${INSTALL_PROGRAM} ${WRKSRC}/ncftpd_edquota ${PREFIX}/bin - ${INSTALL_PROGRAM} ${WRKSRC}/ncftpd_passwd ${PREFIX}/bin - ${INSTALL_PROGRAM} ${WRKSRC}/ncftpd_repquota ${PREFIX}/bin - ${INSTALL_PROGRAM} ${WRKSRC}/ncftpd_spy ${PREFIX}/bin - ${INSTALL_DATA} ${WRKSRC}/conf/general.cf-dist ${PREFIX}/etc/ncftpd - ${INSTALL_DATA} ${WRKSRC}/conf/domain.cf-dist ${PREFIX}/etc/ncftpd + @${MKDIR} ${STAGEDIR}${PREFIX}/etc/ncftpd + ${INSTALL_PROGRAM} ${WRKSRC}/ncftpd ${STAGEDIR}${PREFIX}/sbin + ${INSTALL_PROGRAM} ${WRKSRC}/ncftpd_edquota ${STAGEDIR}${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/ncftpd_passwd ${STAGEDIR}${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/ncftpd_repquota ${STAGEDIR}${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/ncftpd_spy ${STAGEDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/conf/general.cf-dist ${STAGEDIR}${PREFIX}/etc/ncftpd + ${INSTALL_DATA} ${WRKSRC}/conf/domain.cf-dist ${STAGEDIR}${PREFIX}/etc/ncftpd post-install: -.if !defined(NOPORTDOCS) - @${INSTALL} -d ${DOCSDIR} - @ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} -.endif - - @${CAT} ${PKGMESSAGE} + @${INSTALL} -d ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}) .include <bsd.port.post.mk> |