2013-03-16 15:24:04 +01:00
|
|
|
# Created by: Bartlomiej Rutkowski <r@robakdesign.com>
|
2006-11-19 00:01:34 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ilias
|
2013-03-16 15:24:04 +01:00
|
|
|
PORTVERSION= 4.3.2
|
2006-11-19 00:01:34 +01:00
|
|
|
CATEGORIES= www
|
2013-03-16 15:24:04 +01:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/1.%20ILIAS%204.3/ILIAS%20${PORTVERSION}
|
2006-11-19 00:01:34 +01:00
|
|
|
|
2009-10-28 12:29:12 +01:00
|
|
|
MAINTAINER= wen@FreeBSD.org
|
2012-08-03 17:54:35 +02:00
|
|
|
COMMENT= Powerful, dynamic, PHP and MySQL based e-learning platform
|
2006-11-19 00:01:34 +01:00
|
|
|
|
|
|
|
RUN_DEPENDS= convert:${PORTSDIR}/graphics/ImageMagick \
|
|
|
|
zip:${PORTSDIR}/archivers/zip \
|
|
|
|
${UNZIP_CMD}:${PORTSDIR}/archivers/unzip \
|
|
|
|
${LOCALBASE}/share/pear/PEAR.php:${PORTSDIR}/devel/pear \
|
|
|
|
${LOCALBASE}/share/pear/Auth/Auth.php:${PORTSDIR}/security/pear-Auth \
|
2008-10-05 15:30:04 +02:00
|
|
|
${LOCALBASE}/share/pear/MDB2.php:${PORTSDIR}/databases/pear-MDB2 \
|
2006-11-19 00:01:34 +01:00
|
|
|
${LOCALBASE}/share/pear/HTML/Template/IT.php:${PORTSDIR}/devel/pear-HTML_Template_IT
|
2010-02-05 12:46:55 +01:00
|
|
|
LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg \
|
2012-06-01 07:26:28 +02:00
|
|
|
png15:${PORTSDIR}/graphics/png
|
2006-11-19 00:01:34 +01:00
|
|
|
|
2009-10-28 12:29:12 +01:00
|
|
|
CONFLICTS= ilias-3.[0-9].*
|
|
|
|
|
2006-11-19 00:01:34 +01:00
|
|
|
NO_BUILD= yes
|
2009-10-28 12:29:12 +01:00
|
|
|
PLIST= ${WRKDIR}/plist
|
2006-11-19 00:01:34 +01:00
|
|
|
SUB_FILES= pkg-message
|
2008-04-20 11:08:52 +02:00
|
|
|
USE_PHP= mysql session zlib gd pdf dom xsl pcre
|
2009-10-28 12:29:12 +01:00
|
|
|
WRKSRC= ${WRKDIR}/ilias
|
|
|
|
ILIASDIR= www/ilias
|
2008-04-20 11:08:52 +02:00
|
|
|
ILIASDATADIR= www/iliasdata
|
|
|
|
PORTDOCS=*
|
|
|
|
PLIST_SUB= ILIASDATADIR=${ILIASDATADIR}
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
SUB_LIST= ILIASDATADIR=${ILIASDATADIR}
|
2006-11-19 00:01:34 +01:00
|
|
|
|
2012-08-03 15:02:45 +02:00
|
|
|
OPTIONS_DEFINE= SCORM2004 Checker Mail Docs
|
2006-11-19 00:01:34 +01:00
|
|
|
|
2013-09-21 01:36:50 +02:00
|
|
|
NO_STAGE= yes
|
2012-08-03 15:02:45 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2006-11-19 00:01:34 +01:00
|
|
|
|
2012-08-03 15:02:45 +02:00
|
|
|
.if ${PORT_OPTIONS:MSCORM2004}
|
2008-04-20 11:08:52 +02:00
|
|
|
USE_PHP+= json
|
2006-11-19 00:01:34 +01:00
|
|
|
.endif
|
|
|
|
|
2012-08-03 15:02:45 +02:00
|
|
|
.if ${PORT_OPTIONS:MChecker}
|
2008-09-06 23:12:36 +02:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/share/pear/HTTP/Request.php:${PORTSDIR}/www/pear-HTTP_Request
|
2006-11-19 00:01:34 +01:00
|
|
|
.endif
|
|
|
|
|
2012-08-03 15:02:45 +02:00
|
|
|
.if ${PORT_OPTIONS:MMail}
|
2008-04-20 11:08:52 +02:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/share/pear/Mail.php:${PORTSDIR}/mail/pear-Mail
|
|
|
|
.endif
|
2006-11-19 00:01:34 +01:00
|
|
|
|
2009-10-28 12:29:12 +01:00
|
|
|
pre-install:
|
|
|
|
@${FIND} -s -d ${WRKSRC} -type f | ${SED} "s?${WRKSRC}?${ILIASDIR}?g" >${PLIST}
|
|
|
|
@${FIND} -s -d ${WRKSRC} -type d | ${SED} "s?${WRKSRC}?@dirrm ${ILIASDIR}?g" >> ${PLIST}
|
|
|
|
@${ECHO} @dirrm ${ILIASDATADIR} >> ${PLIST}
|
|
|
|
|
2008-04-20 11:08:52 +02:00
|
|
|
post-extract:
|
|
|
|
@cd ${WRKSRC} && ${MV} docs ${WRKDIR}
|
2006-11-19 00:01:34 +01:00
|
|
|
|
|
|
|
do-install:
|
2008-04-20 11:08:52 +02:00
|
|
|
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR}
|
|
|
|
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
|
|
|
|
@${CHMOD} -R 755 ${WWWDIR}
|
|
|
|
@${INSTALL} -d ${PREFIX}/${ILIASDATADIR}
|
|
|
|
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${ILIASDATADIR}
|
|
|
|
@${CHMOD} -R 755 ${PREFIX}/${ILIASDATADIR}
|
|
|
|
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' \
|
|
|
|
>> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} '@exec ${CHMOD} -R 755 ${WWWDIR}' >>${TMPPLIST}
|
|
|
|
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${ILIASDATADIR}' \
|
|
|
|
>> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} '@exec ${CHMOD} -R 755 ${PREFIX}/${ILIASDATADIR}' >>${TMPPLIST}
|
|
|
|
|
2012-08-03 15:02:45 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2008-04-20 11:08:52 +02:00
|
|
|
@cd ${WRKDIR}/docs && ${COPYTREE_SHARE} . ${DOCSDIR}
|
|
|
|
.endif
|
2006-11-19 00:01:34 +01:00
|
|
|
|
2008-04-20 11:08:52 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2006-11-19 00:01:34 +01:00
|
|
|
|
2012-08-03 15:02:45 +02:00
|
|
|
.include <bsd.port.mk>
|