- Switch to options helpers

- Fix config file installation

Approved by:	portmgr blanket
This commit is contained in:
Dmitry Marakasov 2015-08-26 19:05:46 +00:00
parent b92eb0deda
commit 02210b49ce
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=395391

View file

@ -26,8 +26,6 @@ USE_GCC= any
SUB_FILES= pkg-message
.include <bsd.port.options.mk>
post-patch:
@${SED} -e "s:/path/to:${PREFIX}/sbin:" ${WRKSRC}/sample.conf > \
${WRKSRC}/ezb.conf.default
@ -35,14 +33,14 @@ post-patch:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ezbounce ${STAGEDIR}${PREFIX}/sbin
${INSTALL_SCRIPT} ${WRKSRC}/ezb.conf.default ${STAGEDIR}${PREFIX}/etc
${INSTALL_DATA} ${WRKSRC}/ezb.conf.default ${STAGEDIR}${PREFIX}/etc
${INSTALL_MAN} ${WRKSRC}/docs/ezbounce.1 ${STAGEDIR}${PREFIX}/man/man1
.if ${PORT_OPTIONS:MDOCS}
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/CHANGES ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/TODO ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/worklog ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>