head	1.8;
access;
symbols
	RELEASE_8_3_0:1.6
	RELEASE_9_0_0:1.6
	RELEASE_7_4_0:1.6
	RELEASE_8_2_0:1.6
	RELEASE_6_EOL:1.6
	RELEASE_8_1_0:1.6
	RELEASE_7_3_0:1.6
	RELEASE_8_0_0:1.6
	RELEASE_7_2_0:1.6
	RELEASE_7_1_0:1.6
	RELEASE_6_4_0:1.6
	RELEASE_5_EOL:1.5
	RELEASE_7_0_0:1.4
	RELEASE_6_3_0:1.4
	PRE_XORG_7:1.4
	RELEASE_4_EOL:1.3
	RELEASE_6_2_0:1.3;
locks; strict;
comment	@# @;


1.8
date	2012.11.17.06.02.44;	author svnexp;	state Exp;
branches;
next	1.7;

1.7
date	2012.03.28.21.02.50;	author jgh;	state Exp;
branches;
next	1.6;

1.6
date	2008.07.25.18.59.16;	author glarkin;	state Exp;
branches;
next	1.5;

1.5
date	2008.03.31.18.57.07;	author beech;	state Exp;
branches;
next	1.4;

1.4
date	2007.03.06.06.51.50;	author linimon;	state Exp;
branches;
next	1.3;

1.3
date	2006.08.15.16.55.24;	author itetcu;	state Exp;
branches;
next	1.2;

1.2
date	2006.07.25.21.25.33;	author miwi;	state Exp;
branches;
next	1.1;

1.1
date	2006.07.09.23.44.43;	author itetcu;	state Exp;
branches;
next	;


desc
@@


1.8
log
@Switch exporter over
@
text
@# New ports collection makefile for:	ojs
# Date created:				4 March 2006
# Whom:					Filipe Rocha <filiperocha@@gmail.com>
#
# $FreeBSD: head/www/ojs2/Makefile 300897 2012-07-14 14:29:18Z beat $
#

PORTNAME=	ojs2
PORTVERSION=	2.2.1
PORTREVISION=	1
CATEGORIES=	www
MASTER_SITES=	http://pkp.sfu.ca/ojs/download/ \
		http://socpvs.org/pkp/ \
		LOCAL/glarkin
DISTNAME=	ojs-2.2.1

MAINTAINER=	filiperocha@@gmail.com
COMMENT=	A journal management and publishing system

DIST_SUBDIR=	${PORTNAME}

NO_BUILD=	yes
USE_PHP=	mbstring session
DEFAULT_PHP_VER=5
WANT_PHP_WEB=	yes

OPTIONS=	MYSQL "Use a MySQL database" on \
		PGSQL "Use a PostgreSQL database" off \
		LDAP  "Use LDAP authentication" off \
		CURL  "Use cURL" on \
		MEMCACHE "Use memcached cache system" off\

pre-install::
	@@${ECHO_MSG} "======================================================================"
	@@${ECHO_MSG} "If you are upgrading please refer to docs/UPGRADE or browse to"
	@@${ECHO_MSG} "http://pkp.sfu.ca/ojs/UPGRADE"
	@@${ECHO_MSG} ""
	@@${ECHO_MSG} "You need to backup your config.inc.php and your ojs2 directory"
	@@${ECHO_MSG} "Hit Control-C now"
	@@${ECHO_MSG} "======================================================================"

.include <bsd.port.pre.mk>

.if defined(WITHOUT_MYSQL) && !defined(WITH_PGSQL)
IGNORE=		needs at least least one DB backend; please rerun 'make config'
.endif

.ifndef(WITHOUT_MYSQL)
USE_PHP+=	mysql
.endif

.ifdef(WITH_PGSQL)
USE_PHP+=	pgsql
.endif

.ifdef(WITH_LDAP)
USE_PHP+=	ldap
.endif

.ifdef(WITH_CURL)
USE_PHP+=	curl
.endif

.ifdef(WITH_MEMCACHE)
USE_PHP+=	memcache
.endif

NONDOCS=	cache/fc-locale-list.php classes config.inc.php \
		dbscripts help includes index.php js lib locale pages \
		plugins public registry rt styles templates tools
.if !defined(NOPORTDOCS)
DOCS=		docs
.endif

PLIST_SUB+=	ECHO_MSG=${ECHO_MSG}
SUB_FILES=	pkg-deinstall

do-install:
	@@cd ${WRKSRC} && ${COPYTREE_SHARE} "${NONDOCS}" ${WWWDIR}
	@@cd ${WRKSRC} && ${CP} config.inc.php ${WWWDIR}/config.inc.php.sample
	@@${INSTALL} -d ${WWWDIR}/cache/_db
	@@${INSTALL} -d ${WWWDIR}/cache/t_cache
	@@${INSTALL} -d ${WWWDIR}/cache/t_compile
	@@${INSTALL} -d ${WWWDIR}/cache/t_config
	@@${INSTALL} -d ${WWWDIR}/locale/en_US/images
	@@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
	@@${ECHO_CMD} '@@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \
		${WWWDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST}
	@@${FIND} ${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
	@@${ECHO_CMD} '@@exec ${FIND} ${WWWDIR} -type f -print0 | \
		${XARGS} -0 ${CHMOD} 644' >> ${TMPPLIST}
	@@${FIND} ${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
	@@${ECHO_CMD} '@@exec ${FIND} ${WWWDIR} -type d -print0 | \
		${XARGS} -0 ${CHMOD} 755' >> ${TMPPLIST}
.if !defined(NOPORTDOCS)
	@@cd ${WRKSRC}/${DOCS} && ${COPYTREE_SHARE} . ${DOCSDIR}
.endif

post-install:
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
@


1.7
log
@- drop invalid post-deinstall target
- add de-install script

PR:	ports/166097
Submitted by:	jgh
Approved by:	maintainer timeout ( 14 days )
Feature safe:	yes
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.6
log
@Updated to 2.2.1

PR:		ports/125835
Submitted by:	Filipe Rocha <filiperocha@@gmail.com> (maintainer)
Approved by:	beech (mentor)
@
text
@d10 1
d76 1
a101 3
post-deinstall:
	@@${RM} -rf ${WWWDIR}/cache

@


1.5
log
@- Update to 2.2.0

PR:		ports/122238
Submitted by:	Filipe Rocha <filiperocha@@gmail.com> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	2.2
d11 4
a14 2
MASTER_SITES=	http://pkp.sfu.ca/ojs/download/
DISTNAME=	ojs-2.2
d17 1
a17 1
COMMENT=	Open Journal Systems
d22 2
a23 1
USE_PHP=	mbstring
d26 10
a35 10
OJSDIR?=	www/ojs2

OPTIONS=	MYSQL "Use a MYSQL Database" on \
		PGSQL "Use a PostgreSQL Database" off \
		LDAP  "Use LDAP Authentication" off

pre-everything::
	@@${ECHO_MSG} "=============================================================================================="
	@@${ECHO_MSG} ""
	@@${ECHO_MSG} "If you are upgrading please refer to docs/UPGRADE or browse to http://pkp.sfu.ca/ojs/UPGRADE"
d37 3
a39 1
	@@${ECHO_MSG} "=============================================================================================="
d44 1
a44 1
IGNORE=		needs at least least one DB backend; please run 'make config'
d59 17
d77 19
a95 10
	@@${INSTALL_DATA} -d ${PREFIX}/${OJSDIR}
	@@${CP} -Rn ${WRKSRC}/* ${PREFIX}/${OJSDIR}
	@@${FIND} ${PREFIX}/${OJSDIR} -type d -exec ${CHMOD} a+x {} \;
	@@${FIND} ${PREFIX}/${OJSDIR}/cache/t_cache/ -type d -exec ${CHMOD} -R +rw {} \;
	@@${FIND} ${PREFIX}/${OJSDIR}/cache/t_compile/ -type d -exec ${CHMOD} -R +rw {} \;
	@@${FIND} ${PREFIX}/${OJSDIR}/cache/t_config/ -type d -exec ${CHMOD} -R +rw {} \;
	@@${FIND} ${PREFIX}/${OJSDIR}/cache/_db/ -type d -exec ${CHMOD} -R +rw {} \;
	@@${FIND} ${PREFIX}/${OJSDIR}/config.inc.php -type d -exec ${CHMOD} -R +rw {} \;
	@@${FIND} ${PREFIX}/${OJSDIR}/public/ -type d -exec ${CHMOD} -R +rw {} \;
	@@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${OJSDIR}
d100 3
@


1.4
log
@Use the new facility of bsd.port.mk to be able to simplify the interaction
of USE_PHP and OPTIONS.

PR:		ports/106557
Submitted by:	ale
Hat:		portmgr
@
text
@d9 1
a9 1
PORTVERSION=	2.1.1
d12 1
a12 1
DISTNAME=	ojs-2.1.1
d26 9
a34 1
		PGSQL "Use a PostgreSQL Database" off
d50 4
@


1.3
log
@Fix typo.

PR:		www/102101
Submitted by:	Filipe Rocha (maintainer)
@
text
@a41 2
.include "${PORTSDIR}/Mk/bsd.php.mk"

@


1.2
log
@- Update to 2.1.1

PR:		ports/100779
Submitted by:	Filipe Rocha <filiperocha(at)gmail.com>
Approved by:	krion (mentor)
@
text
@d26 1
a26 1
		PGSQL "Use a PosgreSQL Database" off
@


1.1
log
@Open Journal Systems (OJS) has been developed by the Public Knowledge Project.
For general information about OJS and other open research systems, visit the PKP

WWW: http://pkp.sfu.ca/

PR:		ports/92197
Submitted by:	Filipe Rocha <filiperocha at gmail.com>
@
text
@d9 1
a9 1
PORTVERSION=	2.1.0
d12 1
a12 1
DISTNAME=	ojs-2.1.0-1
d20 1
a20 1
USE_PHP=
@

