2012-10-23 10:11:04 +02:00
|
|
|
# Created by: Wen Heping <wenheping@gmail.com>
|
2009-05-31 12:10:44 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= e107
|
2012-10-23 10:11:04 +02:00
|
|
|
PORTVERSION= 1.0.2
|
2009-05-31 12:10:44 +02:00
|
|
|
CATEGORIES= www
|
2009-08-22 02:38:34 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}%20v${PORTVERSION}
|
2010-04-20 17:17:33 +02:00
|
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}_full
|
2009-05-31 12:10:44 +02:00
|
|
|
|
2010-09-21 03:14:03 +02:00
|
|
|
MAINTAINER= wen@FreeBSD.org
|
2009-05-31 12:10:44 +02:00
|
|
|
COMMENT= A content management system written in PHP
|
|
|
|
|
|
|
|
USE_PHP= mysql xml
|
|
|
|
WRKSRC= ${WRKDIR}/e107
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
PLIST= ${WRKDIR}/plist
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
SUB_LIST= E107DIR=${E107DIR}
|
|
|
|
E107DIR= www/e107
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@cd ${WRKDIR} && ${MKDIR} ${WRKSRC}
|
|
|
|
@cd ${WRKDIR} && ${MV} *.php ${WRKSRC}
|
|
|
|
@cd ${WRKDIR} && ${MV} e107_* ${WRKSRC}
|
|
|
|
@cd ${WRKDIR} && ${MV} e107.htaccess ${WRKSRC}
|
|
|
|
@cd ${WRKDIR} && ${MV} favicon.ico ${WRKSRC}
|
2010-04-20 17:17:33 +02:00
|
|
|
@cd ${WRKDIR} && ${MV} e107.robots.txt ${WRKSRC}
|
2009-05-31 12:10:44 +02:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@${FIND} -s -d ${WRKSRC} -type f | ${SED} "s#${WRKSRC}#${E107DIR}#g" >${PLIST}
|
|
|
|
@${FIND} -s -d ${WRKSRC} -type d | ${SED} "s#${WRKSRC}#@dirrm ${E107DIR}#g" >> ${PLIST}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR}
|
|
|
|
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
|
|
|
|
@${CHMOD} -R 755 ${WWWDIR}
|
|
|
|
|
|
|
|
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' \
|
|
|
|
>> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} '@exec ${CHMOD} -R 755 ${WWWDIR}' \
|
|
|
|
>> ${TMPPLIST}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|