Support staging

This commit is contained in:
Emanuel Haupt 2014-02-26 09:01:06 +00:00
parent 02abbf0c5b
commit 3858ad32fd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=346153
2 changed files with 11 additions and 10 deletions

View File

@ -13,19 +13,19 @@ LICENSE= GPLv2
RUN_DEPENDS= p5-DBI>=0:${PORTSDIR}/databases/p5-DBI
USES= perl5
USES= perl5 shebangfix
NO_BUILD= yes
MAN1= ${PORTNAME}.1
SHEBANG_FILES= vlogger
OPTIONS_DEFINE= EXAMPLES
NO_STAGE= yes
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
post-install:
${MKDIR} ${EXAMPLESDIR} ${DATADIR}
@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-dbi.conf ${EXAMPLESDIR}/${PORTNAME}-dbi.conf
@${INSTALL_DATA} ${WRKSRC}/mysql_create.sql ${DATADIR}/mysql_create.sql
@${INSTALL_MAN} ${WRKSRC}/${MAN1} ${PREFIX}/man/man1/${MAN1}
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-dbi.conf \
${STAGEDIR}${EXAMPLESDIR}/${PORTNAME}-dbi.conf
${INSTALL_DATA} ${WRKSRC}/mysql_create.sql ${STAGEDIR}${DATADIR}
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1
.include <bsd.port.mk>

View File

@ -1,5 +1,6 @@
bin/vlogger
share/examples/vlogger/vlogger-dbi.conf
share/vlogger/mysql_create.sql
man/man1/vlogger.1.gz
@dirrmtry share/examples/vlogger
@dirrmtry share/vlogger