2005-07-19 20:44:31 +00:00
|
|
|
# New ports collection makefile for: eventum
|
|
|
|
# Date created: 2005-07-18
|
|
|
|
# Whom: Babak Farrokhi <babak@farrokhi.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= eventum
|
2008-01-11 00:07:02 +00:00
|
|
|
PORTVERSION= 2.1.1
|
2008-06-06 14:17:21 +00:00
|
|
|
PORTREVISION= 1
|
2005-07-19 20:44:31 +00:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= ${MASTER_SITE_MYSQL}
|
|
|
|
MASTER_SITE_SUBDIR= eventum
|
|
|
|
|
2006-11-08 09:28:33 +00:00
|
|
|
MAINTAINER= farrokhi@FreeBSD.org
|
2005-07-19 20:44:31 +00:00
|
|
|
COMMENT= Eventum issue tracking system
|
|
|
|
|
|
|
|
NO_BUILD= YES
|
2007-08-05 08:37:36 +00:00
|
|
|
USE_PHP= pcre session mysql gd gettext
|
2005-07-19 20:44:31 +00:00
|
|
|
WANT_PHP_WEB= YES
|
|
|
|
|
2008-01-07 23:27:35 +00:00
|
|
|
pre-install:
|
|
|
|
@${MV} ${WRKSRC}/setup/config.php ${WRKSRC}/setup/config.php-dist
|
|
|
|
|
2008-01-07 23:13:38 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|%%WWWOWN%%|${WWWOWN}|g' ${WRKSRC}/misc/monitor.php
|
|
|
|
@${REINPLACE_CMD} -e 's|%%WWWGRP%%|${WWWGRP}|g' ${WRKSRC}/misc/monitor.php
|
|
|
|
@${RM} ${WRKSRC}/misc/monitor.php.*
|
2006-06-17 13:00:56 +00:00
|
|
|
|
2005-07-19 20:44:31 +00:00
|
|
|
do-install:
|
2008-01-07 23:13:38 +00:00
|
|
|
-${MKDIR} ${WWWDIR}
|
|
|
|
@cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${WWWDIR}
|
2007-08-05 08:37:36 +00:00
|
|
|
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
|
2008-01-07 23:13:38 +00:00
|
|
|
@${FIND} ${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
|
|
|
|
@${FIND} ${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
|
|
|
|
@if [ ! -f ${WWWDIR}/setup/config.php ]; then \
|
|
|
|
${CP} -p ${WWWDIR}/setup/config.php-dist ${WWWDIR}/setup/config.php ; \
|
|
|
|
fi
|
2005-07-19 20:44:31 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|