mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
Support staging
This commit is contained in:
parent
4e2ae489e7
commit
584bcf0de0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=345823
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user