- Add LICENSE
- Switch to options helpers
This commit is contained in:
parent
869dbe89dc
commit
53eecf2176
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=408381
1 changed files with 9 additions and 4 deletions
|
@ -11,6 +11,9 @@ MASTER_SITES= http://www.infobot.org/src/ \
|
|||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Bot written in Perl with a rabid AI
|
||||
|
||||
LICENSE= ART10 GPLv1
|
||||
LICENSE_COMB= dual
|
||||
|
||||
USES= perl5 shebangfix
|
||||
SHEBANG_FILES= ${PORTNAME} scripts/*
|
||||
USE_PERL5= run
|
||||
|
@ -29,14 +32,16 @@ do-install:
|
|||
@${MKDIR} ${STAGEDIR}${DATADIR}
|
||||
${CP} -r ${WRKSRC}/src ${WRKSRC}/extras ${WRKSRC}/files \
|
||||
${WRKSRC}/scripts ${STAGEDIR}${DATADIR}/
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/LICENSE ${WRKSRC}/README ${WRKSRC}/REVISIONS ${STAGEDIR}${DOCSDIR}
|
||||
@${MKDIR} ${STAGEDIR}${ETCDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/conf/* ${STAGEDIR}${ETCDIR}
|
||||
${SED} -e 's,$$param{\(.\)basedir\(.\)} = .*,$$param{\1basedir\2} = "${DATADIR}";,' \
|
||||
-e 's,$$param{\(.\)confdir\(.\)} = .*,$$param{\1confdir\2} = "${ETCDIR}";,' \
|
||||
-e 's,$$param{\(.\)confdir\(.\)} = .*,$$param{\1confdir\2} = "${ETCDIR}";,' \
|
||||
${WRKSRC}/infobot > ${WRKDIR}/infobot
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/infobot ${STAGEDIR}${PREFIX}/bin
|
||||
|
||||
do-install-DOCS-on:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/LICENSE ${WRKSRC}/README ${WRKSRC}/REVISIONS ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
Loading…
Reference in a new issue