aboutsummaryrefslogtreecommitdiff
path: root/www/eventum/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-08-05 08:37:36 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-08-05 08:37:36 +0000
commit67475a5aee1bcd0b639384827e0bef454395a109 (patch)
tree4f9a849ec74394269292722492d15f61c68a0899 /www/eventum/Makefile
parent849dbd144df9ec534f0632aafcfd7620a4e17ce7 (diff)
downloadports-67475a5aee1bcd0b639384827e0bef454395a109.tar.gz
ports-67475a5aee1bcd0b639384827e0bef454395a109.zip
Notes
Diffstat (limited to 'www/eventum/Makefile')
-rw-r--r--www/eventum/Makefile43
1 files changed, 7 insertions, 36 deletions
diff --git a/www/eventum/Makefile b/www/eventum/Makefile
index 71d6453be195..d9b846536c7e 100644
--- a/www/eventum/Makefile
+++ b/www/eventum/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= eventum
-PORTVERSION= 1.7.1
-PORTREVISION= 3
+PORTVERSION= 2.0.1
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_MYSQL}
MASTER_SITE_SUBDIR= eventum
@@ -16,46 +15,18 @@ MAINTAINER= farrokhi@FreeBSD.org
COMMENT= Eventum issue tracking system
NO_BUILD= YES
-USE_PHP= pcre session mysql gd
+USE_PHP= pcre session mysql gd gettext
WANT_PHP_WEB= YES
-EVENTUM?= www/eventum
-PLIST_SUB+= EVENTUM=${EVENTUM}
-SUB_LIST+= EVENTUM=${EVENTUM}
-SUB_FILES= pkg-message
-
-.if ${EVENTUM:M/*}
-EVENTUM_DIST=${EVENTUM}
-.else
-EVENTUM_DIST=${PREFIX}/${EVENTUM}
-.endif
-
-pre-everything::
- @${ECHO_MSG} ""
- @${ECHO_MSG} "This port has the following tunables"
- @${ECHO_MSG} "EVENTUM path where Eventum will be installed"
- @${ECHO_MSG} " either absolute or relative to the PREFIX"
- @${ECHO_MSG} "WWWOWN eventum files owner"
- @${ECHO_MSG} "WWWGRP eventum files group"
- @${ECHO_MSG} ""
- @${ECHO_MSG} "Current state is"
- @${ECHO_MSG} "EVENTUM " ${EVENTUM}
- @${ECHO_MSG} "WWWOWN " ${WWWOWN}
- @${ECHO_MSG} "WWWGRP " ${WWWGRP}
- @${ECHO_MSG} ""
-
pre-configure:
@${RM} ${WRKSRC}/misc/monitor.php.orig
-pre-install:
- @${MV} ${WRKSRC}/setup.conf.php ${WRKSRC}/setup.conf.php-dist
- @${MV} ${WRKSRC}/config.inc.php ${WRKSRC}/config.inc.php-dist
-
do-install:
- @${MKDIR} ${EVENTUM_DIST}
- @${CP} -R ${WRKSRC}/ ${EVENTUM_DIST}
- @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${EVENTUM_DIST}
- @${CHMOD} -R 755 ${EVENTUM_DIST}
+ @${MKDIR} ${WWWDIR}
+ @ cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR}
+ @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
+ ${FIND} ${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
+ ${FIND} ${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>