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

Stage support.

This commit is contained in:
Kevin Lo 2014-05-30 15:30:56 +00:00
parent 9acf7ecf00
commit fc7a37641b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355859
2 changed files with 1859 additions and 19 deletions

View File

@ -8,32 +8,21 @@ CATEGORIES= www multimedia
MASTER_SITES= SF/${PORTNAME}/Jinzora%20${PORTVERSION}
MAINTAINER= kevlo@FreeBSD.org
COMMENT= A web based media streaming and management system
COMMENT= Web based media streaming and management system
USE_PHP= mysql session iconv gd pdf
WWWDOCROOT?= www
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
NO_BUILD= yes
SUB_FILES= pkg-message
NO_STAGE= yes
do-install:
${MKDIR} ${WWWDIR}
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR}
@if [ ! -f ${WWWDIR}/settings.php ]; then \
${TOUCH} ${WWWDIR}/settings.php ; fi
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
${CHMOD} 755 ${WWWDIR}/jukebox/settings.php
${CHMOD} -R 755 ${WWWDIR}/temp
${CHMOD} -R 755 ${WWWDIR}/data
post-install:
@${CAT} ${PKGMESSAGE}
@${FIND} -s -d ${WWWDIR} -type f -print | \
${SED} -e "s#${PREFIX}/##g" >> ${TMPPLIST}
@${FIND} -s -d ${WWWDIR} -type d -print | \
${SED} -E -e "s#${PREFIX}/#@dirrm #g" >> ${TMPPLIST}
${MKDIR} ${STAGEDIR}${WWWDIR}
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
@if [ ! -f ${STAGEDIR}${WWWDIR}/settings.php ]; then \
${TOUCH} ${STAGEDIR}${WWWDIR}/settings.php ; fi
${CHMOD} 755 ${STAGEDIR}${WWWDIR}/jukebox/settings.php
${CHMOD} -R 755 ${STAGEDIR}${WWWDIR}/temp
${CHMOD} -R 755 ${STAGEDIR}${WWWDIR}/data
.include <bsd.port.mk>

1851
www/jinzora/pkg-plist Normal file

File diff suppressed because it is too large Load Diff