mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
39 lines
924 B
Makefile
39 lines
924 B
Makefile
# Created by: Filipe Rocha <filiperocha@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= dokeos
|
|
PORTVERSION= 1.8.6
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://www.dokeos.com/download/
|
|
|
|
MAINTAINER= filiperocha@gmail.com
|
|
COMMENT= Dokeos is an elearning and course management web application
|
|
|
|
USE_PHP= mysql session gd pcre zlib
|
|
NO_BUILD= yes
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
OPTIONS_DEFINE= LDAP
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MLDAP}
|
|
USE_PHP+= ldap
|
|
.endif
|
|
|
|
do-install:
|
|
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR}
|
|
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
|
|
@${CHMOD} -R 755 ${WWWDIR}
|
|
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' \
|
|
>> ${TMPPLIST}
|
|
@${ECHO_CMD} '@exec ${CHMOD} 755 -R ${WWWDIR}' \
|
|
>> ${TMPPLIST}
|
|
@${CHMOD} 666 ${WWWDIR}/home/*.html
|
|
@${ECHO_CMD} '@exec ${CHMOD} 666 ${WWWDIR}/home/*.html' \
|
|
>> ${TMPPLIST}
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|