1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

Support staging

This commit is contained in:
Emanuel Haupt 2014-02-18 12:04:14 +00:00
parent 36b97242e7
commit 7a68a48d34
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=344872

View File

@ -12,25 +12,22 @@ DISTNAME= ${PORTNAME}${PORTVERSION}
MAINTAINER= douglas@t2web.com.br
COMMENT= A simple IRC relay proxy with support for virtual hosting
GNU_CONFIGURE= YES
GNU_CONFIGURE= yes
DOCS= COPYING Changelog README example.conf
BINS= bnc mkpasswd
SCRIPTS= bncchk bncsetup
NO_STAGE= yes
.include <bsd.port.pre.mk>
OPTIONS_DEFINE= DOCS
post-patch:
${SED} -e 's,@PREFIX@,${PREFIX},g' ${WRKSRC}/bncsetup
do-install:
@${INSTALL_PROGRAM} ${BINS:S,^,${WRKSRC}/,} ${PREFIX}/bin
@${INSTALL_SCRIPT} ${SCRIPTS:S,^,${WRKSRC}/,} ${PREFIX}/bin
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
.endif
@${INSTALL_DATA} ${WRKSRC}/example.conf ${PREFIX}/etc/bnc.conf.sample
${INSTALL_PROGRAM} ${BINS:S,^,${WRKSRC}/,} ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${SCRIPTS:S,^,${WRKSRC}/,} ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
${INSTALL_DATA} ${WRKSRC}/example.conf ${STAGEDIR}${PREFIX}/etc/bnc.conf.sample
.include <bsd.port.post.mk>
.include <bsd.port.mk>