openbsd-ports/www/moodle/Makefile
sthen 7c7a28bac6 security update to moodle 1.9.16, way too many fixes in the last
nine releases to mention here.

1.9.x is pretty much end-of-line, so if anyone is actually using
this port, please consider updating it to a release which upstream are
actually supporting.
2012-01-20 22:18:27 +00:00

39 lines
944 B
Makefile

# $OpenBSD: Makefile,v 1.20 2012/01/20 22:18:27 sthen Exp $
COMMENT= learning management system
DISTNAME= moodle-1.9.16
CATEGORIES= www education
HOMEPAGE= http://www.moodle.org/
# GPLv2+ (note if updating Moodle 2.x is GPLv3+)
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM=Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://download.moodle.org/download.php/direct/stable19/
EXTRACT_SUFX= .tgz
EXTRACT_ONLY=
NO_BUILD= Yes
NO_REGRESS= Yes
PKG_ARCH= *
PREFIX= /var/www
INSTDIR= ${PREFIX}/moodle
SUBST_VARS= INSTDIR
MODULES= lang/php
RUN_DEPENDS= lang/php/${MODPHP_VERSION},-curl \
lang/php/${MODPHP_VERSION},-gd \
lang/php/${MODPHP_VERSION},-xmlrpc
RUN_DEPENDS+= php-mysql-${MODPHP_VSPEC}|php-pgsql-${MODPHP_VSPEC}:lang/php/${MODPHP_VERSION},-mysql
do-install:
@cd ${PREFIX} && tar zxf ${FULLDISTDIR}/${DISTNAME}${EXTRACT_SUFX}
@chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/*
.include <bsd.port.mk>