1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00
freebsd-ports/www/eventum/Makefile
Baptiste Daroussin 5c7b4a79f2 Convert to USES=php
While here convert some ports to optiosn helpers
2017-10-04 11:29:14 +00:00

37 lines
1.0 KiB
Makefile

# Created by: Babak Farrokhi <babak@farrokhi.net>
# $FreeBSD$
PORTNAME= eventum
PORTVERSION= 2.2
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= MYSQL/eventum
MAINTAINER= ports@FreeBSD.org
COMMENT= Eventum issue tracking system
USES= cpe php:web
CPE_VENDOR= mysql
NO_BUILD= yes
USE_PHP= pcre session mysql gd gettext
PLIST_SUB= WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
pre-install:
@${MV} ${WRKSRC}/setup/config.php ${WRKSRC}/setup/config.php-dist
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.*
do-install:
-${MKDIR} ${STAGEDIR}${WWWDIR}
@cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}${WWWDIR}
@${FIND} ${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
@${FIND} ${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
@if [ ! -f ${STAGEDIR}${WWWDIR}/setup/config.php ]; then \
${CP} -p ${STAGEDIR}${WWWDIR}/setup/config.php-dist ${STAGEDIR}${WWWDIR}/setup/config.php ; \
fi
.include <bsd.port.mk>