aboutsummaryrefslogtreecommitdiff
path: root/www/sakai/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/sakai/Makefile')
-rw-r--r--www/sakai/Makefile22
1 files changed, 12 insertions, 10 deletions
diff --git a/www/sakai/Makefile b/www/sakai/Makefile
index eb8f93093844..005dd33c5229 100644
--- a/www/sakai/Makefile
+++ b/www/sakai/Makefile
@@ -3,37 +3,39 @@
PORTNAME= sakai
PORTVERSION= 2.7.1
+PORTREVISION= 1
CATEGORIES= www java
MASTER_SITES= http://source.sakaiproject.org/release/${PORTVERSION}/artifacts/
DISTFILES= ${PORTNAME}-bin-${PORTVERSION}.tgz
MAINTAINER= wen@FreeBSD.org
-COMMENT= Sakai is an online Collaboration and Learning Environment
+COMMENT= Online Collaboration and Learning Environment
-RUN_DEPENDS= ${LOCALBASE}/${TOMCAT}:${PORTSDIR}/www/tomcat55
+RUN_DEPENDS= ${LOCALBASE}/apache-tomcat-6.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
USE_JAVA= yes
JAVA_VERSION= 1.6+
NO_BUILD= yes
WRKSRC= ${WRKDIR}
-TOMCAT= tomcat5.5
-TOMCATOWN= www
-TOMCATGRP= www
SYSTEM_DIR= common components licenses server shared webapps
-TOMCAT_DIR= ${PREFIX}/tomcat5.5
-PLIST_SUB+= SAKAI_VER="${PORTVERSION}"
+TOMCAT_DIR= ${PREFIX}/apache-tomcat-6.0
+PLIST_SUB+= TOMCAT_DIR=${TOMCAT_DIR:S|^${PREFIX}/||} \
+ SAKAI_VER="${PORTVERSION}"
-do-install:
+post-extract:
+ @cd ${WRKSRC}/webapps && `${LS} -1 |${SED} 's/.war//' >> ${WRKSRC}/list`
+ @cd ${WRKSRC}/webapps && ${MKDIR} `${CAT} ${WRKSRC}/list`
+ @cd ${WRKSRC}/webapps && for i in `${CAT} ${WRKSRC}/list` ; do ${TAR} xf $$i.war -C $$i ; done
+ @${RM} ${WRKSRC}/webapps/*.war
+do-install:
.for i in ${SYSTEM_DIR}
cd ${WRKSRC}/${i} && ${FIND} . -type d \
-exec ${INSTALL} -d ${TOMCAT_DIR}/${i}/{} \;
cd ${WRKSRC}/${i} && ${FIND} . -type f \
-exec ${INSTALL} -m 644 {} ${TOMCAT_DIR}/${i}/{} \;
.endfor
-
-post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>