Re: ATutor

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Predrag Punosevac
Subject: Re: ATutor
Date: Thursday, December 17, 2009 - 8:08 am

Kevin Lo <kevlo@kevlo.org> wrote:

Kev,

Thank you so much. I will test in the next day or so. On another note I
have played for the past 10-12 hours with ATutor. The good news is that
actually your Moodle port can be used as template for ATutor. If you 
start with your Makefile for Moodle it would be enough just to replace
port name with ATutor-1.6.3, edit the web-site and remove PostgreSQL 
flavour since ATutor works only with MySQL. Here is the quick and 
dirty Makefile I hope I will have some time this weekend to clean the 
port and actually to send ATutor to ports. Obviously there would be no 
flavors in the final version and php-mysql module has to be add as run 
dependencies. The quick and dirty ATutor makefile is shown below. The 
real "difficulty" with ATutor is to fire up MySQL, PHP module in proper
order and create /var/www/tmp directory so that we can still use Apache
in the chroot. 

Best,
Predrag

penBSD: Makefile,v 1.10 2007/09/15 20:38:22 merdely Exp $

COMMENT=        learning management system

DISTNAME=       ATutor-1.6.3
PKGNAME=        ${DISTNAME}
CATEGORIES=     www education

HOMEPAGE=       http://www.atutor.ca/

MAINTAINER=     Kevin Lo <kevlo@openbsd.org>

# GPL
PERMIT_PACKAGE_CDROM=  Yes
PERMIT_PACKAGE_FTP=    Yes
PERMIT_DISTFILES_CDROM=Yes
PERMIT_DISTFILES_FTP=  Yes



MASTER_SITES=   http://sourceforge.net/projects/atutor/files/ATutor
EXTRACT_SUFX=   .tgz

EXTRACT_ONLY=   
NO_BUILD=       Yes
NO_REGRESS=     Yes
PKG_ARCH=       *

PREFIX=         /var/www
INSTDIR=        ${PREFIX}/atutor
SUBST_VARS=     INSTDIR

RUN_DEPENDS=    :php5-gd-*:www/php5/extensions,-gd \
                :php5-mbstring-*:www/php5/extensions,-mbstring

FLAVORS=        mysql 
FLAVOR?=

.if ${FLAVOR:L:Mmysql}
RUN_DEPENDS+=   :php5-mysql-*:www/php5/extensions,-mysql
.endif


do-install:
        @cd ${PREFIX} && tar zxf ${FULLDISTDIR}/${DISTNAME}${EXTRACT_SUFX}
        @chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/*

.include <bsd.port.mk>







Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ATutor, Predrag Punosevac, (Wed Dec 16, 11:08 am)
Re: ATutor, Fred Crowson, (Wed Dec 16, 1:58 pm)
Re: ATutor, Fred Crowson, (Wed Dec 16, 2:06 pm)
Re: ATutor, Predrag Punosevac, (Wed Dec 16, 2:29 pm)
Re: ATutor, Fred Crowson, (Wed Dec 16, 3:32 pm)
Re: ATutor, Kevin Lo, (Thu Dec 17, 1:57 am)
Re: ATutor, Predrag Punosevac, (Thu Dec 17, 8:08 am)
Re: ATutor, Kevin Lo, (Wed Dec 23, 10:27 pm)