mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
35 lines
1.1 KiB
Makefile
35 lines
1.1 KiB
Makefile
# Created by: Martin Wilke <miwi@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= typolight
|
|
PORTVERSION= 2.8.4
|
|
CATEGORIES= www
|
|
MASTER_SITES= SF/${PORTNAME}/TYPOlight/${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= miwi@FreeBSD.org
|
|
COMMENT= Powerful web content management system
|
|
|
|
NO_BUILD= yes
|
|
USE_PHP= xsl mysql iconv gd
|
|
USE_MYSQL= yes
|
|
SUB_FILES= pkg-message
|
|
WWWDIR?= ${PREFIX}/www/${PORTNAME}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${WWWDIR}
|
|
${CP} -R ${WRKSRC}/ ${STAGEDIR}${WWWDIR}
|
|
${TOUCH} ${STAGEDIR}${WWWDIR}/system/config/localconfig.php
|
|
@${CHOWN} ${WWWOWN} ${STAGEDIR}${WWWDIR}/system/config/localconfig.php
|
|
|
|
create-plist:
|
|
@${FIND} -s ${WRKSRC}/${file} -not -type d \
|
|
| ${SED} -e 's,^${WRKSRC},%%WWWDIR%%,' > ${PLIST}
|
|
@${ECHO_CMD} '@exec touch %D/%%WWWDIR%%/system/config/localconfig.php;chown ${WWWOWN} %D/%%WWWDIR%%/system/config/localconfig.php' >> ${PLIST}
|
|
@${ECHO_CMD} '@unexec if [ ! -s %D/%%WWWDIR%%/system/config/localconfig.php ];then rm -f %D/%%WWWDIR%%/system/config/localconfig.php;fi' >> ${PLIST}
|
|
@${FIND} -ds ${WRKSRC}/${file} -type d \
|
|
| ${SED} -e 's,^${WRKSRC},@dirrm %%WWWDIR%%,' >> ${PLIST}
|
|
|
|
.include <bsd.port.post.mk>
|