1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Add staging support

- Switch to PLIST_FILES, PORTDATA
This commit is contained in:
Pawel Pekala 2014-05-17 19:38:44 +00:00
parent ef191c9378
commit ef24ea0594
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=354359
2 changed files with 8 additions and 18 deletions

View File

@ -13,21 +13,14 @@ COMMENT= Hyper NIKKI System, a CGI system for Electric Diary Interchange
USES= perl5
NO_BUILD= yes
NO_STAGE= yes
do-install:
@if [ -d ${DATADIR} ]; then ${RM} -rf ${DATADIR}; fi
${MKDIR} ${DATADIR}
${CP} -pR ${WRKSRC}/ ${DATADIR}
${CHOWN} -R 0:0 ${DATADIR}
${INSTALL_SCRIPT} ${WRKDIR}/hns-setup ${PREFIX}/bin/hns-setup
${INSTALL_SCRIPT} ${WRKSRC}/contrib/todayhns/todayhns ${PREFIX}/bin/todayhns
PLIST_FILES= bin/hns-setup bin/todayhns
PORTDATA= *
post-install:
@cd ${WRKSRC} && ${FIND} . -type f -o -type l | \
${SED} 's,^\.,share/${PORTNAME},' | ${SORT} >> ${TMPPLIST}
@cd ${WRKSRC} && ${FIND} . -type d | \
${SED} 's,^\.,@dirrm share/${PORTNAME},' | ${SORT} -r \
>> ${TMPPLIST}
@${CAT} ${PKGMESSAGE}
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${CP} -pR ${WRKSRC}/ ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKDIR}/hns-setup ${STAGEDIR}${PREFIX}/bin/hns-setup
${INSTALL_SCRIPT} ${WRKSRC}/contrib/todayhns/todayhns \
${STAGEDIR}${PREFIX}/bin/todayhns
.include <bsd.port.mk>

View File

@ -1,3 +0,0 @@
bin/hns-setup
bin/todayhns
@comment an automatically generated list follows: