2008-12-28 17:07:58 +00:00
|
|
|
# New ports collection makefile for: www/chems
|
|
|
|
# Date created: 2008-12-28
|
|
|
|
# Whom: Martin Wilke <miwi@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= chems
|
2009-04-11 09:45:39 +00:00
|
|
|
DISTVERSION= 0x04
|
2008-12-28 17:07:58 +00:00
|
|
|
CATEGORIES= www
|
2009-08-22 00:38:34 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/0x04
|
2008-12-28 17:07:58 +00:00
|
|
|
|
|
|
|
MAINTAINER= miwi@FreeBSD.org
|
|
|
|
COMMENT= The geekest content helper management system
|
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
USE_ZIP= yes
|
|
|
|
USE_PHP= xml iconv gd
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
WWWDIR?= ${PREFIX}/www/${PORTNAME}
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${WWWDIR}
|
|
|
|
${CP} -R ${WRKSRC}/ ${WWWDIR}
|
|
|
|
${TOUCH} ${WWWDIR}/usr/config.php
|
|
|
|
@${CHOWN} ${WWWOWN} ${WWWDIR}/usr/config.php
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
create-plist:
|
|
|
|
@${FIND} -s ${WRKSRC}/${file} -not -type d \
|
|
|
|
| ${SED} -e 's,^${WRKSRC},%%WWWDIR%%,' > ${PLIST}
|
|
|
|
@${ECHO_CMD} '@exec touch %D/%%WWWDIR%%/usr/config.php;chown ${WWWOWN} %D/%%WWWDIR%%/usr/config.php' >> ${PLIST}
|
|
|
|
@${ECHO_CMD} '@unexec if [ ! -s %D/%%WWWDIR%%/usr/config.php ];then rm -f %D/%%WWWDIR%%/usr/config.php;fi' >> ${PLIST}
|
|
|
|
@${FIND} -ds ${WRKSRC}/${file} -type d \
|
|
|
|
| ${SED} -e 's,^${WRKSRC},@dirrm %%WWWDIR%%,' >> ${PLIST}
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|