aboutsummaryrefslogtreecommitdiff
path: root/www/sakai/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2008-05-19 06:06:50 +0000
committerMartin Wilke <miwi@FreeBSD.org>2008-05-19 06:06:50 +0000
commit300d99a955ffb023b5b19f2690e76207daa22bbc (patch)
tree7e1480951423bce1a13c20d4774a01cc003d095f /www/sakai/Makefile
parent4273c62fcdba68c55cd5dde12083862e133c52ca (diff)
downloadports-300d99a955ffb023b5b19f2690e76207daa22bbc.tar.gz
ports-300d99a955ffb023b5b19f2690e76207daa22bbc.zip
Notes
Diffstat (limited to 'www/sakai/Makefile')
-rw-r--r--www/sakai/Makefile49
1 files changed, 49 insertions, 0 deletions
diff --git a/www/sakai/Makefile b/www/sakai/Makefile
new file mode 100644
index 000000000000..c97f24208f6e
--- /dev/null
+++ b/www/sakai/Makefile
@@ -0,0 +1,49 @@
+# New ports collection makefile for: sakai
+# Date created: 11 March 2008
+# Whom: wenheping@gmail.com
+#
+# $FreeBSD$
+#
+
+PORTNAME= sakai
+PORTVERSION= 2.4.1
+CATEGORIES= www java
+MASTER_SITES= http://source.sakaiproject.org/release/2.4.1/sakai_2-4-1/
+DISTNAME= ${PORTNAME}-bin_2-4-1
+
+MAINTAINER= wenheping@gmail.com
+COMMENT= Sakai is an online Collaboration and Learning Environment
+
+RUN_DEPENDS= ${TOMCAT}:${PORTSDIR}/www/tomcat55
+
+USE_JAVA= yes
+JAVA_VERSION= 1.5
+
+NO_BUILD= yes
+WRKSRC= ${WRKDIR}
+TOMCAT= ${PREFIX}/tomcat5.5
+TOMCATOWN= www
+TOMCATGRP= www
+WEBAPPDIR= ${PREFIX}/tomcat5.5/webapps
+SYSTEM_DIR= common components licenses server shared
+TOMCAT_DIR= ${PREFIX}/tomcat5.5
+LIC_DOC= ECLv1.txt
+
+do-install:
+ cd ${WRKSRC}/webapps && ${FIND} . -type d -exec ${INSTALL} -d \
+ -g ${TOMCATGRP} -o ${TOMCATOWN} -m 755 ${WEBAPPDIR}/{} \;
+ cd ${WRKSRC}/webapps && ${FIND} . -type f -exec ${INSTALL} -g \
+ ${TOMCATGRP} -o ${TOMCATOWN} -m 444 {} ${WEBAPPDIR}/{} \;
+
+.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
+ ${INSTALL_DATA} ${WRKSRC}/${LIC_DOC} ${TOMCAT_DIR}
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>