blob: 45385842b9d9134f3051fa98a525ae936549c83c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# 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
BROKEN_powerpc64= Does not build
USES= cpe
CPE_VENDOR= mysql
NO_BUILD= yes
USE_PHP= pcre session mysql gd gettext
WANT_PHP_WEB= yes
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>
|