f2dca007fb
Vendor's Announcement: This patch fixes a LDAP security issue. Only systems who have PHP configured with register_globals = On are vulnerable for this security hole. You can check this in your php.ini script or using the phpinfo() script. It is advised however to patch your system using this patch even when register_globals is set to Off. Install file is included in the patch. PR: ports/98498 Submitted by: Filipe Rocha <filiperocha@gmail.com> Reviewed by: aaron Approved by: tobez (implicit) Security: This patch fixes a LDAP security issue. Only systems who have PHP configured with register_globals = On are vulnerable for this security hole. You can check this in your php.ini script or using the phpinfo() script. It is advised however to patch your system using this patch even when register_globals is set to Off. Install file is included in the patch.
63 lines
1.6 KiB
Makefile
63 lines
1.6 KiB
Makefile
# New ports collection makefile for: dokeos
|
|
# Date created: 21 January 2006
|
|
# Whom: Filipe Rocha <filiperocha@gmail.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= dokeos
|
|
PORTVERSION= 1.6.4
|
|
PORTREVISION= 1
|
|
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
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
NO_BUILD= yes
|
|
|
|
WANT_PHP_WEB= YES
|
|
|
|
DOKEOSDIR?= www/dokeos
|
|
|
|
OPTIONS= LDAP "Use LDAP" off
|
|
|
|
PORT_DBDIR?= /var/db/ports
|
|
LATEST_LINK= ${PORTNAME}${PKGNAMESUFFIX}
|
|
OPTIONSFILE?= ${PORT_DBDIR}/${LATEST_LINK}/options
|
|
|
|
.if exists(${OPTIONSFILE})
|
|
.include "${OPTIONSFILE}"
|
|
.endif
|
|
|
|
ALL_OPTIONS= LDAP
|
|
|
|
SEL_OPTIONS= yes
|
|
.for opt in ${ALL_OPTIONS}
|
|
. if defined(WITH_${opt}) && !defined(WITHOUT_${opt})
|
|
SEL_OPTIONS+=${opt:L}
|
|
. endif
|
|
.endfor
|
|
|
|
USE_PHP+= ${SEL_OPTIONS}
|
|
|
|
do-install:
|
|
@${INSTALL_DATA} -d ${PREFIX}/${DOKEOSDIR}
|
|
@${CP} -Rn ${WRKSRC}/* ${PREFIX}/${DOKEOSDIR}
|
|
@${FIND} ${PREFIX}/${DOKEOSDIR} -type d -exec ${CHMOD} +x {} \;
|
|
@${FIND} ${PREFIX}/${DOKEOSDIR}/claroline/inc/conf -type d -exec ${CHMOD} -R +rwx {} \;
|
|
@${FIND} ${PREFIX}/${DOKEOSDIR}/claroline/garbage -type d -exec ${CHMOD} -R +rwx {} \;
|
|
@${FIND} ${PREFIX}/${DOKEOSDIR}/claroline/upload -type d -exec ${CHMOD} -R +rwx {} \;
|
|
@${FIND} ${PREFIX}/${DOKEOSDIR}/archive -type d -exec ${CHMOD} -R +rwx {} \;
|
|
@${FIND} ${PREFIX}/${DOKEOSDIR}/courses -type d -exec ${CHMOD} -R +rwx {} \;
|
|
@${FIND} ${PREFIX}/${DOKEOSDIR}/home -type d -exec ${CHMOD} -R +rwx {} \;
|
|
|
|
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${DOKEOSDIR}
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|