head	1.33;
access;
symbols
	RELEASE_8_3_0:1.29
	RELEASE_9_0_0:1.29
	RELEASE_7_4_0:1.26
	RELEASE_8_2_0:1.26
	RELEASE_6_EOL:1.26
	RELEASE_8_1_0:1.25
	RELEASE_7_3_0:1.25
	RELEASE_8_0_0:1.24
	RELEASE_7_2_0:1.24
	RELEASE_7_1_0:1.22
	RELEASE_6_4_0:1.22
	RELEASE_5_EOL:1.20
	RELEASE_7_0_0:1.14
	RELEASE_6_3_0:1.14
	PRE_XORG_7:1.10
	RELEASE_4_EOL:1.5
	RELEASE_6_2_0:1.5
	RELEASE_6_1_0:1.4
	RELEASE_5_5_0:1.4
	RELEASE_6_0_0:1.1;
locks; strict;
comment	@# @;


1.33
date	2013.02.05.13.07.59;	author svnexp;	state Exp;
branches;
next	1.32;

1.32
date	2012.11.17.06.02.44;	author svnexp;	state Exp;
branches;
next	1.31;

1.31
date	2012.10.07.13.34.06;	author eadler;	state Exp;
branches;
next	1.30;

1.30
date	2012.10.02.16.40.40;	author az;	state Exp;
branches;
next	1.29;

1.29
date	2011.08.09.15.41.29;	author mm;	state Exp;
branches;
next	1.28;

1.28
date	2011.08.09.15.23.13;	author mm;	state Exp;
branches;
next	1.27;

1.27
date	2011.03.23.15.53.22;	author mm;	state Exp;
branches;
next	1.26;

1.26
date	2010.09.18.21.41.17;	author mm;	state Exp;
branches;
next	1.25;

1.25
date	2009.11.20.10.04.09;	author mm;	state Exp;
branches;
next	1.24;

1.24
date	2009.02.03.09.20.54;	author mm;	state Exp;
branches;
next	1.23;

1.23
date	2008.10.30.23.01.37;	author mm;	state Exp;
branches;
next	1.22;

1.22
date	2008.07.24.08.40.00;	author mm;	state Exp;
branches;
next	1.21;

1.21
date	2008.06.06.14.07.04;	author edwin;	state Exp;
branches;
next	1.20;

1.20
date	2008.05.20.12.04.15;	author flz;	state Exp;
branches;
next	1.19;

1.19
date	2008.05.15.13.43.02;	author mm;	state Exp;
branches;
next	1.18;

1.18
date	2008.04.14.15.33.52;	author mm;	state Exp;
branches;
next	1.17;

1.17
date	2008.04.14.15.16.01;	author mm;	state Exp;
branches;
next	1.16;

1.16
date	2008.04.08.10.07.22;	author mm;	state Exp;
branches;
next	1.15;

1.15
date	2008.04.03.12.17.25;	author mm;	state Exp;
branches;
next	1.14;

1.14
date	2007.09.29.13.40.14;	author pav;	state Exp;
branches;
next	1.13;

1.13
date	2007.09.20.10.00.07;	author mm;	state Exp;
branches;
next	1.12;

1.12
date	2007.08.04.11.41.27;	author gabor;	state Exp;
branches;
next	1.11;

1.11
date	2007.08.02.13.10.48;	author mm;	state Exp;
branches;
next	1.10;

1.10
date	2007.04.30.14.27.32;	author mm;	state Exp;
branches;
next	1.9;

1.9
date	2007.04.20.11.21.55;	author mm;	state Exp;
branches;
next	1.8;

1.8
date	2007.04.05.13.19.07;	author mm;	state Exp;
branches;
next	1.7;

1.7
date	2007.02.26.14.11.23;	author miwi;	state Exp;
branches;
next	1.6;

1.6
date	2007.02.09.04.05.44;	author alepulver;	state Exp;
branches;
next	1.5;

1.5
date	2006.05.13.04.41.17;	author edwin;	state Exp;
branches;
next	1.4;

1.4
date	2005.10.08.12.53.26;	author pav;	state Exp;
branches;
next	1.3;

1.3
date	2005.10.02.20.36.38;	author pav;	state Exp;
branches;
next	1.2;

1.2
date	2005.09.09.04.44.38;	author lawrance;	state Exp;
branches;
next	1.1;

1.1
date	2005.08.01.13.16.47;	author lawrance;	state Exp;
branches;
next	;


desc
@@


1.33
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/311711
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Aldert Nooitgedagt <aldert@@nooitgedagt.net>
# $FreeBSD: head/www/openacs/Makefile 311711 2013-02-05 12:52:45Z gahr $

PORTNAME?=	openacs
DISTVERSION?=	5.7.0
CATEGORIES=	www
MASTER_SITES?=	http://openacs.org/projects/openacs/download/download/
EXTRACT_SUFX=	.tgz?revision_id=${DIST_REV_ID}

MAINTAINER?=	ports@@FreeBSD.org
COMMENT?=	A modular web application platform for communities

LICENSE=	GPLv2

DIST_REV_ID?=	3646409

AOLSERVERBASE?=	${LOCALBASE}/aolserver
RUN_DEPENDS+=	${AOLSERVERBASE}/bin/nsopenssl.so:${PORTSDIR}/security/aolserver-nsopenssl \
		${AOLSERVERBASE}/bin/nssha1.so:${PORTSDIR}/security/aolserver-nssha1 \
		${AOLSERVERBASE}/bin/nspostgres.so:${PORTSDIR}/databases/aolserver-nspostgres \
		${AOLSERVERBASE}/modules/tcl/xotcl.tcl:${PORTSDIR}/www/aolserver-xotcl \
		dtplite:${PORTSDIR}/devel/tcllib \
		${LOCALBASE}/lib/tdomConfig.sh:${PORTSDIR}/www/tdom

USE_RC_SUBR?=	${PORTNAME}
NO_BUILD=	yes

OPENACS_USER?=	${PORTNAME}
OPENACS_GROUP?=	${PORTNAME}
PGUSER?=	pgsql
OPENACS_DB?=	${PORTNAME}
OPENACSBASE?=	${PREFIX}/openacs
OPENACSNAME?=	OpenACS
SU?=		/usr/bin/su
PGREP?=		/usr/bin/pgrep
PW?=		/usr/sbin/pw

BASE_INSTALL?=	bin content-repository-content-files log packages tcl www
PLIST=		${WRKDIR}/plist.tmp

SUB_FILES+=	pkg-install pkg-deinstall pkg-message ${PORTNAME} \
		create_sampledb.sh adjust_pgsql_conf.sh
PKGINSTALL=	${WRKDIR}/pkg-install
PKGMESSAGE=	${WRKDIR}/pkg-message
PKGDEINSTALL=	${WRKDIR}/pkg-deinstall

PORTDOCS=	*

OPTIONS_DEFINE=	DOCS TCLTHREAD TCLWEBTEST
OPTIONS_DEFAULT=TCLTHREAD TCLWEBTEST
TCLTHREAD_DESC=	Depend on tclthread
TCLWEBTEST_DESC=Depend on tclwebtest

.include <bsd.port.options.mk>

# Parse ${PORTSDIR}/UIDs and GIDs for the defaults
USER!=	${GREP} -E '^${OPENACS_USER}:' ${PORTSDIR}/UIDs | \
		${SED} -Ee 's/^([^:]*):([^:]*):([^:]*):([^:]*)::0:0:([^:]*):([^:]*):([^:]*)$$/USER="\1" UID="\3" GECOS="\5" HOME="\6" SHELL="\7"/'
GROUP!=	${GREP} -E '^${OPENACS_GROUP}:' ${PORTSDIR}/GIDs | \
		${SED} -Ee 's/^([^:]*):([^:]*):([^:]*):$$/GROUP="\1" GID="\3"/'

# Apply the defaults where necessary
OPENACS_USER?=	${USER:MUSER*:C/^[^=]*=\"([^\"]*)\"$/\1/}
OPENACS_UID?=	${USER:MUID*:C/^[^=]*=\"([^\"]*)\"$/\1/}
OPENACS_GECOS?=	${USER:MGECOS*:C/^[^=]*=\"([^\"]*)\"$/\1/}
OPENACS_HOME?=	${USER:MHOME*:C/^[^=]*=\"([^\"]*)\"$/\1/}
OPENACS_SHELL?=	${USER:MSHELL*:C/^[^=]*=\"([^\"]*)\"$/\1/}
OPENACS_GROUP?=	${GROUP:MGROUP*:C/^[^=]*=\"([^\"]*)\"$/\1/}
OPENACS_GID?=	${GROUP:MGID*:C/^[^=]*=\"([^\"]*)\"$/\1/}

SUB_LIST+=	OPENACS_USER=${OPENACS_USER} OPENACS_UID=${OPENACS_UID} \
		OPENACS_GECOS="${OPENACS_GECOS}" \
		OPENACS_HOME="${OPENACS_HOME}" \
		OPENACS_SHELL="${OPENACS_SHELL}" \
		OPENACS_GROUP=${OPENACS_GROUP} \
		OPENACS_GID=${OPENACS_GID} \
		OPENACSBASE=${OPENACSBASE} OPENACS_DB=${OPENACS_DB} \
		PGUSER=${PGUSER} AOLSERVERBASE=${AOLSERVERBASE} \
		PORTNAME=${PORTNAME} OPENACSNAME=${OPENACSNAME} \
		SU=${SU} PGREP=${PGREP} AWK=${AWK} CP=${CP} GREP=${GREP} \
		PW=${PW} CHOWN=${CHOWN} CHMOD=${CHMOD}

.if ${PORT_OPTIONS:MTCLTHREAD}
TCLTHREAD_VER?=	2.7.0
RUN_DEPENDS+=	${LOCALBASE}/lib/thread${TCLTHREAD_VER}/libthread.so.1:${PORTSDIR}/devel/tclthread
.endif

.if ${PORT_OPTIONS:MTCLWEBTEST}
RUN_DEPENDS+=	${LOCALBASE}/bin/tclwebtest:${PORTSDIR}/www/tclwebtest
.endif

post-patch:
	@@${SED} -e 's|service0|${OPENACS_USER}|' \
		-e 's|/var/www/$${server}|${OPENACSBASE}|' \
		-e 's|/usr/lib/aolserver4|${AOLSERVERBASE}|' \
		-e 's|127.0.0.1|0.0.0.0|' \
		${WRKSRC}/etc/config.tcl > ${WRKDIR}/${PORTNAME}-config.tcl
pre-install:
	@@ ${ECHO} "Generating plist"
	@@ ${FIND} ${WRKSRC} ! -type d ! -path '${WRKSRC}/etc*' \
		! -path '${WRKSRC}/readme.txt' ! -path '${WRKSRC}/license.txt' \
		! -path '${WRKSRC}/ChangeLog' | \
		${SED} 's|${WRKSRC}|${OPENACSBASE:S/${PREFIX}\///}|' > ${PLIST}
	@@ ${ECHO} @@unexec if cmp -hsz %D/%%EXAMPLESDIR%%/config.tcl %D/${OPENACSBASE:S/${PREFIX}\///}/etc/${PORTNAME}-config.tcl \; then ${RM} %D/${OPENACSBASE:S/${PREFIX}\///}/etc/${PORTNAME}-config.tcl \; fi >> ${PLIST}
	@@ ${FIND} ${WRKSRC}/etc ! -type d | \
		${SED} 's|${WRKSRC}/etc|%%EXAMPLESDIR%%|' >> ${PLIST}
	@@ ${ECHO} @@exec if ! [ -f ${OPENACSBASE:S/%D\///}/etc/${PORTNAME}-config.tcl ] \; then ${MKDIR} %D/${OPENACSBASE:S/${PREFIX}\///}/etc \; ${CP} %D/%%EXAMPLESDIR%%/config.tcl %D/${OPENACSBASE:S/${PREFIX}\///}/etc/${PORTNAME}-config.tcl \; fi >> ${PLIST}
	@@ ${ECHO} @@dirrmtry ${OPENACSBASE:S/${PREFIX}\///}/etc >> ${PLIST}
	@@ ${FIND} ${WRKSRC} -type d ! -path '${WRKSRC}/etc*' | \
		${SORT} -r | \
		${SED} 's|${WRKSRC}|@@dirrmtry ${OPENACSBASE:S/${PREFIX}\///}|' >> ${PLIST}
	@@ ${FIND} ${WRKSRC}/etc -type d | \
		${SED} 's|${WRKSRC}/etc|@@dirrm %%EXAMPLESDIR%%|' | \
		${SORT} -r >> ${PLIST}

do-install:
	@@ ${ECHO} "Installing base files"
	@@ ${MKDIR} ${OPENACSBASE}/etc
	@@ ${TAR} -c -C ${WRKSRC} -f - ${BASE_INSTALL} | \
		${TAR} -x -C ${OPENACSBASE} -f -
	@@ ${ECHO} "Installing examples"
	@@ ${MKDIR} ${EXAMPLESDIR}
	@@ ${TAR} -c -C ${WRKSRC}/etc -f - . | ${TAR} -x -C ${EXAMPLESDIR} -f -
	@@ ${ECHO} "Installing sample configuration file"
	@@ ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-config.tcl ${EXAMPLESDIR}/config.tcl
	@@ if ! [ -f ${OPENACSBASE}/etc/${PORTNAME}-config.tcl ]; then \
		${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-config.tcl ${OPENACSBASE}/etc/${PORTNAME}-config.tcl ; \
	  fi
.if ${PORT_OPTIONS:MDOCS}
	@@ ${ECHO} "Installing docs"
	@@ ${MKDIR} ${DOCSDIR}
.for FILE in ChangeLog readme.txt license.txt
	@@ ${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
.for FILE in create_sampledb.sh adjust_pgsql_conf.sh
	@@ ${INSTALL_SCRIPT} ${WRKDIR}/${FILE} ${DOCSDIR}
.endfor
.endif
	@@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
@


1.32
log
@Switch exporter over
@
text
@d2 1
a2 1
# $FreeBSD: head/www/openacs/Makefile 305476 2012-10-07 13:34:06Z eadler $
d84 1
a84 1
TCLTHREAD_VER?=	2.6.7
@


1.31
log
@SVN rev 305476 on 2012-10-07 13:34:06Z by eadler

Convert to OptionsNG
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.30
log
@SVN rev 305166 on 2012-10-02 16:40:40Z by az

- Fix typos (LICENSE is correct form inside bsd.licenses.mk).
- Removed LICENSE_FILE where is no need in this.

Spotted by:	zont@@
Approved by:	portmgr (bapt@@)
@
text
@d1 1
a1 4
# New ports collection makefile for:    openACS
# Date created:         July 2005
# Whom:                 Aldert Nooitgedagt <aldert@@nooitgedagt.net>
#
a2 1
#
d49 4
a52 2
OPTIONS=	TCLTHREAD "Depend on tclthread" on \
		TCLWEBTEST "Depend on tclwebteset" on
d54 1
a54 1
.include <bsd.port.pre.mk>
d83 1
a83 1
.if !defined(WITHOUT_TCLTHREAD)
d88 1
a88 1
.if !defined(WITHOUT_TCLWEBTEST)
d129 1
a129 1
.if !defined(NOPORTDOCS)
d142 1
a142 1
.include <bsd.port.post.mk>
@


1.29
log
@Transfer maintainer back to ports@@FreeBSD.org

Approved by:	maintainer (myself)
@
text
@d17 1
a17 2
LICENCE=	GPLv2
LICENCE_FILE=	${WRKDIR}/license.txt
@


1.28
log
@Update to 5.7.0
Fix tclthread dependency
@
text
@d14 1
a14 1
MAINTAINER?=	mm@@FreeBSD.org
@


1.27
log
@- Add LICENSE knob(s)
@
text
@d9 1
a9 1
DISTVERSION?=	5.5.1
d20 1
a20 1
DIST_REV_ID?=	2967507
d87 1
a87 1
TCLTHREAD_VER?=	2.6.6
@


1.26
log
@- Update tclthread to 2.6.6
@
text
@d17 3
@


1.25
log
@- Update to 5.5.1
@
text
@d84 2
a85 2
TCLTHREAD_VER?=	2.6.5
RUN_DEPENDS+=	${LOCALBASE}/lib/thread${TCLTHREAD_VER}/libthread${TCLTHREAD_VER}.so:${PORTSDIR}/devel/tclthread
@


1.24
log
@- www/aolserver now includes fully compatible ns_cache
- Remove www/aolserver-nscache dependency
- Bump PORTREVISION
@
text
@d9 1
a9 2
DISTVERSION?=	5.4.3
PORTREVISION?=	1
d17 1
a17 1
DIST_REV_ID?=	2089636
@


1.23
log
@- Update to 5.4.3
@
text
@d10 1
d21 1
a21 2
RUN_DEPENDS+=	${AOLSERVERBASE}/bin/nscache.so:${PORTSDIR}/www/aolserver-nscache \
		${AOLSERVERBASE}/bin/nsopenssl.so:${PORTSDIR}/security/aolserver-nsopenssl \
@


1.22
log
@- Update to 5.4.2
@
text
@d9 1
a9 1
DISTVERSION?=	5.4.2
d17 1
a17 1
DIST_REV_ID?=	1570341
@


1.21
log
@Bump portrevision due to upgrade of devel/gettext.

The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).

PR:             ports/124340
Submitted by:   edwin@@
Approved by:    portmgr (pav)
@
text
@d9 1
a9 2
DISTVERSION?=	5.4.2b1
PORTREVISION=	1
d17 1
a17 1
DIST_REV_ID?=	1515804
@


1.20
log
@Switch UIDs to master.passwd compatible format.
Also fix the two ports that are already using it.

Suggested by:	timur
Approved by:	portmgr (self)
@
text
@d10 1
@


1.19
log
@- Update to 5.4.2b1
@
text
@d59 1
a59 1
		${SED} -Ee 's/^([^:]*):([^:]*):([^:]*):([^:]*):([^:]*):([^:]*):([^:]*)$$/USER="\1" UID="\3" GECOS="\5" HOME="\6" SHELL="\7"/'
@


1.18
log
@- Add missing line in last commit
@
text
@d9 1
a9 2
DISTVERSION?=	5.4.1
PORTREVISION?=	1
d17 1
a17 1
DIST_REV_ID?=	1487744
@


1.17
log
@- Fix installation of default configuration file
- Fix script for sample database creation
- Bump PORTREVISION
@
text
@d109 1
a109 1
	@@ ${ECHO} @@exec if ! [ -f ${OPENACSBASE:S/%D\///}/etc/${PORTNAME}-config.tcl ] \; then ${CP} %D/%%EXAMPLESDIR%%/config.tcl %D/${OPENACSBASE:S/${PREFIX}\///}/etc/${PORTNAME}-config.tcl \; fi >> ${PLIST}
@


1.16
log
@- Update to 5.4.1 final
@
text
@d10 1
d53 1
a53 2
OPTIONS=	EXAMPLES "Install various example files" on \
		TCLTHREAD "Depend on tclthread" on \
d106 3
a109 1
	@@ ${ECHO} @@unexec if cmp -hsz %D/%%EXAMPLESDIR%%/config.tcl %D/${OPENACSBASE:S/${PREFIX}\///}/etc/${PORTNAME}-config.tcl \; then ${RM} %D/${OPENACSBASE:S/${PREFIX}\///}/etc/${PORTNAME}-config.tcl \; fi >> ${PLIST}
a113 3
.if defined(WITH_EXAMPLES)
	@@ ${FIND} ${WRKSRC}/etc ! -type d | \
		${SED} 's|${WRKSRC}/etc|%%EXAMPLESDIR%%|' >> ${PLIST}
a116 1
.endif
a122 1
.if defined(WITH_EXAMPLES)
a125 1
.endif
@


1.15
log
@- Update to 5.4.1b1
- Use own uid and gid
- Fix sample config install and install messages
@
text
@d9 1
a9 1
DISTVERSION?=	5.4.1b1
d17 1
a17 1
DIST_REV_ID?=	1474805
@


1.14
log
@Fix tcllib dependency
@
text
@d9 1
a9 1
DISTVERSION?=	5-3-2
d12 1
a12 1
EXTRACT_SUFX?=	.tgz?revision_id=1098887
d17 2
d32 2
a34 2
OPENACS_GROUP?=	www
PGUSER?=	pgsql
d58 21
a78 1
SUB_LIST+=	OPENACS_USER=${OPENACS_USER} OPENACS_GROUP=${OPENACS_GROUP} \
d96 4
a99 3
		-e 's|/var/lib/aolserver/$${server}|${OPENACSBASE}|' \
		-e 's|/usr/local/aolserver|${AOLSERVERBASE}|' \
		${WRKSRC}/etc/config.tcl > ${WRKDIR}/openacs-config.tcl
d106 3
a108 2
	@@ ${ECHO} ${OPENACSBASE:S/${PREFIX}\///}/etc/${PORTNAME}-config.tcl >> ${PLIST}
	@@ ${ECHO} @@dirrm ${OPENACSBASE:S/${PREFIX}\///}/etc >> ${PLIST}
d131 4
a134 1
	@@ ${INSTALL_DATA} ${WRKDIR}/openacs-config.tcl ${OPENACSBASE}/etc/${PORTNAME}-config.tcl
@


1.13
log
@- Fix tcllib dependency
- Reduce size of COMMENT
@
text
@a17 1
TCLLIB_VER?=	1.10
d23 1
a23 1
		${LOCALBASE}/lib/tcllib${TCLLIB_VER}/pkgIndex.tcl:${PORTSDIR}/devel/tcllib \
@


1.12
log
@- Remove the DESTDIR modifications from individual ports as we have a new,
  fully chrooted DESTDIR, which does not need such any more.

Sponsored by:	Google Summer of Code 2007
Approved by:	portmgr (pav)
@
text
@d15 1
a15 1
COMMENT?=	A modular web application platform for high traffic communities
d18 1
a18 1
TCLLIB_VER?=	1.9
@


1.11
log
@- Update openacs to 5.3.2
- Depend on devel/tcllib and devel/tcllthread
- Add script for adjusting postgresql.conf
- Improve installation documentation
- Bump dotlrn portrevision
- Other small fixes and improvements

Approved by:	garga (mentor, implicit)
@
text
@d34 1
a34 1
OPENACSBASE?=	${TARGETDIR}/openacs
d83 3
a85 3
		${SED} 's|${WRKSRC}|${OPENACSBASE:S/${TARGETDIR}\///}|' > ${PLIST}
	@@ ${ECHO} ${OPENACSBASE:S/${TARGETDIR}\///}/etc/${PORTNAME}-config.tcl >> ${PLIST}
	@@ ${ECHO} @@dirrm ${OPENACSBASE:S/${TARGETDIR}\///}/etc >> ${PLIST}
d88 1
a88 1
		${SED} 's|${WRKSRC}|@@dirrmtry ${OPENACSBASE:S/${TARGETDIR}\///}|' >> ${PLIST}
@


1.10
log
@- updated to 5.3.1

Approved by:	garga (mentor)
@
text
@d9 1
a9 1
PORTVERSION?=	5.3.1
d12 1
a12 1
EXTRACT_SUFX?=	.tgz?revision_id=976463
d18 2
a19 1
RUN_DEPENDS=	${AOLSERVERBASE}/bin/nscache.so:${PORTSDIR}/www/aolserver-nscache \
d24 1
d36 3
a41 4
SUB_LIST+=	OPENACS_USER=${OPENACS_USER} OPENACS_GROUP=${OPENACS_GROUP} \
		OPENACSBASE=${OPENACSBASE} OPENACS_DB=${OPENACS_DB} \
		PGUSER=${PGUSER} AOLSERVERBASE=${AOLSERVERBASE} \
		PORTNAME=${PORTNAME} OPENACSNAME=${OPENACSNAME}
d43 2
a44 1
SUB_FILES+=	pkg-install pkg-deinstall pkg-message openacs dotlrn create_sampledb.sh
d49 2
a50 3
.if !defined(NOPORTDOCS)
PORTDOCS=	ChangeLog readme.txt license.txt
.endif
d52 2
a53 1
		TCLWEBTEST "Require tclwebteset" on
d57 12
a91 1
	@@ ${ECHO} %%EXAMPLESDIR%%/create_sampledb.sh >> ${PLIST}
a105 1
	@@ ${INSTALL_SCRIPT} ${WRKDIR}/create_sampledb.sh ${EXAMPLESDIR}
d112 1
a112 1
.for FILE in ${PORTDOCS}
d115 3
@


1.9
log
@- added dependency on AOLserver XOTcl module
- added optional dependency on tclwebtest

Approved by:	garga (mentor)
@
text
@d9 1
a9 2
PORTVERSION?=	5.3.0
PORTREVISION?=	2
d12 1
a12 1
EXTRACT_SUFX?=	.tgz?revision_id=583060
@


1.8
log
@- updated maintainer e-mail address

Approved by:	garga (mentor)
@
text
@d10 1
a10 1
PORTREVISION?=	1
d23 1
d51 2
d54 1
a54 1
OPTIONS=	EXAMPLES "Install various example files" on
d56 3
a58 1
.include <bsd.port.pre.mk>
@


1.7
log
@- Fix typo and added more information
- Fix xowiki URL

PR:             109225
Submitted by:   Martin Matuska <martin@@matuska.org> (maintainer)
@
text
@d15 1
a15 1
MAINTAINER?=	martin@@matuska.org
@


1.6
log
@- Update openacs to 5.3.0 and dotlrn to 2.2.1.
- Make compatible with the new aolserver 4.5 port infrastructure.
- Take maintainership.

PR:		ports/108737
Submitted by:	Martin Matuska <martin@@matuska.org>
Approved by:	"Aldert nooitgedagt - net" <aldert@@nooitgedagt.net> (maintainer)
@
text
@d10 1
d28 1
a28 1
OPENACS_USER?=  ${PORTNAME}
d30 1
a30 1
OPENACS_GROUP?= www
d48 1
a48 1
PORTDOCS=       ChangeLog readme.txt license.txt
@


1.5
log
@Remove USE_REINPLACE from categories starting with W
@
text
@d9 1
a9 2
PORTVERSION?=	5.1.5
PORTREVISION?=	2
d12 1
d14 1
a14 1
MAINTAINER?=	aldert@@nooitgedagt.net
d17 23
a39 11
OPENACS_USER?=	service0
OPENACS_GROUP=	web
PG_USER=	pgsql

DATADIR=	${PREFIX}/share/${OPENACS_USER}
EXAMPLESDIR=	${PREFIX}/share/examples/${OPENACS_USER}
OPENACSBASE=	${PREFIX}/share
VIRTUALBASE=	/var/lib
AOLSERVERBASE=	${LOCALBASE}/aolserver
DTSERVICEBASE=	/var/service
RCCONF=		/etc/rc.conf
d41 1
a41 3
IP_ADDRESS=	0.0.0.0

USE_RC_SUBR=	YES
a44 9
.if defined(WITH_POSTCONFIG)
POSTCONFIG=	true
PKGNAMESUFFIX=	-withconfig
.endif

.if defined(WITH_DT)
DT=		true
RUN_DEPENDS+=	${LOCALBASE}/bin/supervise:${PORTSDIR}/sysutils/daemontools
.endif
d46 2
a47 21
SUB_FILES=	pkg-install pkg-message pkg-deinstall post-config
SUB_LIST+=	RCCONF=${RCCONF} POSTCONFIG=${POSTCONFIG} \
		OPENACSBASE=${OPENACSBASE} OPENACS_GROUP=${OPENACS_GROUP} \
		OPENACS_USER=${OPENACS_USER} DB=${DB} PGDATA=${PGDATA} \
		PG_USER=${PG_USER} PGBASE=${PGBASE} \
		DTSERVICEBASE=${DTSERVICEBASE} DT=${DT} \
		AOLSERVERBASE=${AOLSERVERBASE} VIRTUALBASE=${VIRTUALBASE}

RUN_DEPENDS+=	${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash \
		${LOCALBASE}/lib/libtcl84.so.1:${PORTSDIR}/lang/tcl84-thread \
		${LOCALBASE}/lib/libreadline.so:${PORTSDIR}/devel/readline \

.if defined(WITH_ORACLE)
BROKEN=		"Oracle not supported yet"
DB=		ORA
.else
DB=		PG
PGBASE=		${LOCALBASE}
PGDATA=		${LOCALBASE}/pgsql/data
RUN_DEPENDS+=	${LOCALBASE}/lib/libpq.so:${PORTSDIR}/databases/postgresql74-server \
		${LOCALBASE}/aolserver/bin/nsd:${PORTSDIR}/www/aolserver-openacs-pg
d50 1
a50 6
RUN_DEPENDS+=	${LOCALBASE}/lib/tdom0.8.0/libtdom0.8.0.so:${PORTSDIR}/www/tdom \
		${LOCALBASE}/tclwebtest-1.0/tclwebtest:${PORTSDIR}/www/tclwebtest

USE_LINUX=	YES

NO_BUILD=	YES
d52 1
a52 8
REINPLACE_ARGS=	-i "" -e

PLIST_FILES=	${EXAMPLESDIR:S,^${PREFIX}/,,}/svscan.sh \
		${EXAMPLESDIR:S,^${PREFIX}/,,}/restart-aolserver \
		${EXAMPLESDIR:S,^${PREFIX}/,,}/svgroup \
		${EXAMPLESDIR:S,^${PREFIX}/,,}/nsd-postgres \
		${EXAMPLESDIR:S,^${PREFIX}/,,}/nsd-oracle \
		${EXAMPLESDIR:S,^${PREFIX}/,,}/post-config.sh
d54 5
d60 18
a77 1
	@@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
d80 19
a98 51
	@@${MKDIR} ${EXAMPLESDIR}
	@@${MKDIR} ${OPENACSBASE}
	@@${MKDIR} ${VIRTUALBASE}

	@@${ECHO_CMD} "Installing files"
	@@${CP} -R ${WRKSRC} ${OPENACSBASE}/${OPENACS_USER}

	@@${TEST} -e ${VIRTUALBASE}/aolserver || ${LN} -s ${OPENACSBASE} ${VIRTUALBASE}/aolserver
	@@${TEST} -L ${VIRTUALBASE}/aolserver || ${ECHO_MSG} "${VIRTUALBASE}/aolserver is no symbolic link"

	@@${INSTALL_SCRIPT} ${OPENACSBASE}/${OPENACS_USER}/packages/acs-core-docs/www/files/nsd-postgres.txt ${EXAMPLESDIR}/nsd-postgres
	@@${INSTALL_SCRIPT} ${OPENACSBASE}/${OPENACS_USER}/packages/acs-core-docs/www/files/nsd-oracle.txt ${EXAMPLESDIR}/nsd-oracle
	@@${INSTALL_SCRIPT} ${OPENACSBASE}/${OPENACS_USER}/packages/acs-core-docs/www/files/restart-aolserver.txt ${EXAMPLESDIR}/restart-aolserver
	@@${INSTALL_SCRIPT} ${FILESDIR}/svscan.sh ${EXAMPLESDIR}/svscan.sh
	@@${INSTALL_SCRIPT} ${OPENACSBASE}/${OPENACS_USER}/packages/acs-core-docs/www/files/svgroup.txt ${EXAMPLESDIR}/svgroup
	@@${INSTALL_SCRIPT} ${WRKDIR}/post-config ${EXAMPLESDIR}/post-config.sh

post-install:
	@@${REINPLACE_CMD} "\
		s|/usr/local/aolserver|${AOLSERVERBASE}|g; \
		s|/bin/bash|/bin/sh|g; \
		" ${EXAMPLESDIR}/nsd-postgres ${EXAMPLESDIR}/nsd-oracle
	@@${REINPLACE_CMD} "\
		s|service0|${OPENACS_USER}|g; \
		s|\[ns_info address\]|${IP_ADDRESS}|g; \
		s|/var/lib/aolserver|${OPENACSBASE}|g; \
		s|/usr/local/aolserver|${AOLSERVERBASE}|g; \
		" ${OPENACSBASE}/${OPENACS_USER}/etc/config.tcl
	@@${REINPLACE_CMD} "\
		s|service0|${OPENACS_USER}|g; \
		s|/usr/local/aolserver/bin|${EXAMPLESDIR}|g; \
		" ${OPENACSBASE}/${OPENACS_USER}/etc/daemontools/run

	@@${ECHO_CMD} "@@unexec rm -f ${DATADIR}/log/${OPENACS_USER}* 2>&1 > /dev/null || true" >> ${TMPPLIST}
	@@${ECHO_CMD} "@@unexec rm -f ${DATADIR}/log/error.log* 2>&1 > /dev/null || true" >> ${TMPPLIST}
	@@${ECHO_CMD} "@@unexec rm -Rf ${DATADIR}/apm-workspace 2>&1 > /dev/null || true" >> ${TMPPLIST}
	@@${ECHO_CMD} "@@unexec rm -Rf ${DATADIR}/etc/daemontools/supervise 2>&1 > /dev/null || true" >> ${TMPPLIST}
	@@${FIND} -s ${WRKSRC} -not -type d \
		| ${SED} -ne 's,^${WRKSRC},${DATADIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
	@@${FIND} -s -d ${WRKSRC} -type d \
		| ${SED} -ne 's,^${WRKSRC},@@dirrm ${DATADIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
	@@${ECHO_CMD} "@@dirrm ${EXAMPLESDIR:S,^${PREFIX}/,,}" >> ${TMPPLIST}

	@@if [ ${DT} ] ; then \
		${MKDIR} ${DTSERVICEBASE} ; \
		${TEST} -L ${DTSERVICEBASE}/${OPENACS_USER} || ${LN} -s ${OPENACSBASE}/${OPENACS_USER}/etc/daemontools ${DTSERVICEBASE}/${OPENACS_USER} ; \
		${ECHO_CMD} "@@cd ${DTSERVICEBASE}" >> ${TMPPLIST} ; \
		${ECHO_CMD} "${OPENACS_USER}" >> ${TMPPLIST} ; \
		${ECHO_CMD} "@@unexec rmdir ${DTSERVICEBASE} 2>&1 > /dev/null || true" >> ${TMPPLIST} ; \
	fi

d102 1
a102 1
.include <bsd.port.mk>
@


1.4
log
@- Remove home directory of service0 user
- Don't automatically add entries to rc.conf

PR:		ports/87089
Submitted by:	A. Nooitgedagt <aldert@@nooitgedagt.net> (maintainer)
@
text
@a74 1
USE_REINPLACE=	YES
@


1.3
log
@- Make daemontools dependency optional so package can be made
- Fix multiple error.log in plist

PR:		ports/86659
Submitted by:	Aldert Nooitgedagt <root@@therapie.sportmedisch.net> (maintainer)
@
text
@d10 1
a10 1
PORTREVISION?=	1
d132 6
a137 6
	if [ ${DT} ] ; then \
	@@${MKDIR} ${DTSERVICEBASE} ; \
	@@${TEST} -L ${DTSERVICEBASE}/${OPENACS_USER} || ${LN} -s ${OPENACSBASE}/${OPENACS_USER}/etc/daemontools ${DTSERVICEBASE}/${OPENACS_USER} ; \
	@@${ECHO_CMD} "@@cd ${DTSERVICEBASE}" >> ${TMPPLIST} ; \
	@@${ECHO_CMD} "${OPENACS_USER}" >> ${TMPPLIST} ; \
	@@${ECHO_CMD} "@@unexec rmdir ${DTSERVICEBASE} 2>&1 > /dev/null || true" >> ${TMPPLIST} ; \
@


1.2
log
@- Fix post-install configuration so the port and package have the same
behaviour.  This change only affects a non-default option, so bumping
portrevision would have no effect.
- Change some wording in pkg-message.

PR:		ports/84595
Submitted by:	Aldert Nooitgedagt <aldert@@nooitgedagt.net> (maintainer)
@
text
@d10 1
d37 6
a42 1
PKGNAMESUFFIX= -withconfig
d50 1
a50 1
		DTSERVICEBASE=${DTSERVICEBASE} \
d69 2
a70 2
		${LOCALBASE}/tclwebtest-1.0/tclwebtest:${PORTSDIR}/www/tclwebtest \
		${LOCALBASE}/bin/supervise:${PORTSDIR}/sysutils/daemontools
a91 1
	@@${MKDIR} ${DTSERVICEBASE}
a97 1
	@@${TEST} -L ${DTSERVICEBASE}/${OPENACS_USER} || ${LN} -s ${OPENACSBASE}/${OPENACS_USER}/etc/daemontools ${DTSERVICEBASE}/${OPENACS_USER}
d123 1
a123 1
	@@${ECHO_CMD} "@@unexec rm -f ${DATADIR}/log/error.log 2>&1 > /dev/null || true" >> ${TMPPLIST}
d131 8
a138 3
	@@${ECHO_CMD} "@@cd ${DTSERVICEBASE}" >> ${TMPPLIST}
	@@${ECHO_CMD} "${OPENACS_USER}" >> ${TMPPLIST}
	@@${ECHO_CMD} "@@unexec rmdir ${DTSERVICEBASE} 2>&1 > /dev/null || true" >> ${TMPPLIST}
@


1.1
log
@Add openacs:

OpenACS (Open Architecture Community System) is a web application platform
designed for high traffic community websites. It is built on a free and
open source foundation. OpenACS is the foundation for many products
and websites including the .LRN e-learning platform (www.dotlrn.org).

PR:		ports/84146
Submitted by:	Aldert Nooitgedagt <aldert@@nooitgedagt.net>
@
text
@d35 2
a36 1
POSTCONFIG=	${WRKDIR}/post-config
d40 1
a40 1
SUB_LIST+=	RCCONF=${RCCONF} \
d86 1
a86 1
	@@ ${MKDIR} ${DTSERVICEBASE}
d89 1
a89 5
	@@if [ ! -d ${OPENACSBASE}/${OPENACS_USER} ] ; then \
	   ${CP} -R ${WRKSRC} ${OPENACSBASE}/${OPENACS_USER}; else \
	   ${RM} -Rf ${OPENACSBASE}/${OPENACS_USER}.old && \
	   ${MV} ${OPENACSBASE}/${OPENACS_USER} ${OPENACSBASE}/${OPENACS_USER}.old && \
	   ${CP} -R ${WRKSRC} ${OPENACSBASE}/${OPENACS_USER}; fi
a131 3
.if defined(WITH_POSTCONFIG)
	@@${SH} ${POSTCONFIG} ${PKGNAME} POST-INSTALL
.endif
@

