1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/www/sakai/Makefile
2014-10-30 16:20:23 +00:00

45 lines
1.3 KiB
Makefile

# Created by: wenheping@gmail.com
# $FreeBSD$
PORTNAME= sakai
PORTVERSION= 10.2
CATEGORIES= www java
MASTER_SITES= http://source.sakaiproject.org/release/${PORTVERSION}/artifacts/
DISTNAME= ${PORTNAME}-bin-${PORTVERSION}
MAINTAINER= wen@FreeBSD.org
COMMENT= Online Collaboration and Learning Environment
LICENSE= ECLv2
LICENSE_NAME= Educational Community License version 2
LICENSE_FILE= ${WRKDIR}/LICENSE
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
RUN_DEPENDS= ${LOCALBASE}/apache-tomcat-7.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat7
USE_JAVA= yes
JAVA_VERSION= 1.6+
NO_BUILD= yes
WRKSRC= ${WRKDIR}
SYSTEM_DIR= common components licenses shared webapps
TOMCAT_DIR= ${PREFIX}/apache-tomcat-7.0
PLIST_SUB+= TOMCAT_DIR=${TOMCAT_DIR:S|^${PREFIX}/||} \
SAKAI_VER="${PORTVERSION}"
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 ${STAGEDIR}${TOMCAT_DIR}/${i}/{} \;
cd ${WRKSRC}/${i} && ${FIND} . -type f \
-exec ${INSTALL} -m 644 {} ${STAGEDIR}${TOMCAT_DIR}/${i}/{} \;
.endfor
.include <bsd.port.mk>