summaryrefslogtreecommitdiff
path: root/net-mgmt/portmon
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2014-02-24 12:43:24 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2014-02-24 12:43:24 +0000
commit584bcf0de0cf18846d7e8e7b44a9ed9d6ca19ef5 (patch)
tree4d433483ab5c175b7951c9a448558e626ae3870b /net-mgmt/portmon
parentSupport staging (diff)
Support staging
Notes
Notes: svn path=/head/; revision=345823
Diffstat (limited to 'net-mgmt/portmon')
-rw-r--r--net-mgmt/portmon/Makefile25
1 files changed, 8 insertions, 17 deletions
diff --git a/net-mgmt/portmon/Makefile b/net-mgmt/portmon/Makefile
index 8fb44e079ce8..7ee0293c14b1 100644
--- a/net-mgmt/portmon/Makefile
+++ b/net-mgmt/portmon/Makefile
@@ -13,34 +13,25 @@ COMMENT= Daemon that monitor network services
GNU_CONFIGURE= yes
-MAN8= portmon.8
-
PORTDOCS= README
-PLIST_FILES= bin/portmon etc/portmon.hosts.sample
+PLIST_FILES= bin/portmon etc/portmon.hosts.sample man/man8/portmon.8.gz
+
+OPTIONS_DEFINE= DOCS
-NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|g' \
${WRKSRC}/extras/${PORTNAME}.8
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} \
- ${PREFIX}/bin
+ ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/extras/portmon.8 \
- ${PREFIX}/man/man8
+ ${STAGEDIR}${PREFIX}/man/man8
${INSTALL_DATA} ${WRKSRC}/extras/portmon.hosts.sample \
- ${PREFIX}/etc
- @${ECHO} "------------------------------------------------------------"
- @${ECHO} "Sample of configuration file placed at"
- @${ECHO} "${PREFIX}/etc/portmon.hosts.sample"
- @${ECHO} "------------------------------------------------------------"
-
-post-install:
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
+ ${STAGEDIR}${PREFIX}/etc
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in README
- ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
-.endif
.include <bsd.port.mk>