head	1.21;
access;
symbols
	RELEASE_8_3_0:1.20
	RELEASE_9_0_0:1.19
	RELEASE_7_4_0:1.17
	RELEASE_8_2_0:1.17
	RELEASE_6_EOL:1.17
	RELEASE_8_1_0:1.17
	RELEASE_7_3_0:1.17
	RELEASE_8_0_0:1.17
	RELEASE_7_2_0:1.17
	RELEASE_7_1_0:1.17
	RELEASE_6_4_0:1.17
	RELEASE_5_EOL:1.16
	RELEASE_7_0_0:1.16
	RELEASE_6_3_0:1.16
	PRE_XORG_7:1.15
	RELEASE_4_EOL:1.14
	RELEASE_6_2_0:1.13
	RELEASE_6_1_0:1.11
	RELEASE_5_5_0:1.11
	RELEASE_6_0_0:1.8
	RELEASE_5_4_0:1.7
	RELEASE_4_11_0:1.4
	RELEASE_5_3_0:1.4
	RELEASE_4_10_0:1.3
	RELEASE_5_2_1:1.2
	RELEASE_5_2_0:1.2;
locks; strict;
comment	@# @;


1.21
date	2012.04.10.19.24.12;	author jgh;	state dead;
branches;
next	1.20;

1.20
date	2012.03.10.06.11.32;	author jgh;	state Exp;
branches;
next	1.19;

1.19
date	2011.09.23.22.26.04;	author amdmi3;	state Exp;
branches;
next	1.18;

1.18
date	2011.07.21.05.03.01;	author linimon;	state Exp;
branches;
next	1.17;

1.17
date	2008.06.06.14.07.10;	author edwin;	state Exp;
branches;
next	1.16;

1.16
date	2007.05.19.20.25.25;	author flz;	state Exp;
branches;
next	1.15;

1.15
date	2007.04.12.14.19.34;	author miwi;	state Exp;
branches;
next	1.14;

1.14
date	2006.12.16.02.14.26;	author rafan;	state Exp;
branches;
next	1.13;

1.13
date	2006.10.07.11.25.58;	author miwi;	state Exp;
branches;
next	1.12;

1.12
date	2006.04.04.16.20.46;	author lawrance;	state Exp;
branches;
next	1.11;

1.11
date	2006.03.02.23.25.48;	author kris;	state Exp;
branches;
next	1.10;

1.10
date	2005.12.21.20.55.50;	author hq;	state Exp;
branches;
next	1.9;

1.9
date	2005.12.04.00.18.14;	author clement;	state Exp;
branches;
next	1.8;

1.8
date	2005.04.15.00.30.47;	author hq;	state Exp;
branches;
next	1.7;

1.7
date	2005.03.27.02.06.39;	author kris;	state Exp;
branches;
next	1.6;

1.6
date	2005.03.19.18.44.28;	author krion;	state Exp;
branches;
next	1.5;

1.5
date	2005.02.24.22.27.52;	author hq;	state Exp;
branches;
next	1.4;

1.4
date	2004.07.02.22.10.15;	author glewis;	state Exp;
branches;
next	1.3;

1.3
date	2004.03.16.06.59.28;	author daichi;	state Exp;
branches;
next	1.2;

1.2
date	2003.11.20.21.25.09;	author glewis;	state Exp;
branches;
next	1.1;

1.1
date	2003.10.01.11.20.42;	author znerd;	state Exp;
branches;
next	;


desc
@@


1.21
log
@- port has expired, and is no longer supported upstream

2012-04-10  unsupported upstream, consider www/resin3

PR: ports/165867
Approved by:	maintainer, boris@@tagnet.ru
@
text
@# New ports collection makefile for:   resin2
# Whom:                                Jean-Baptiste Quenot <jb.quenot@@caraldi.com>
# Date Created:                        2002-07-15 15:00:43
#
# $FreeBSD: ports/www/resin2/Makefile,v 1.20 2012/03/10 06:11:32 jgh Exp $
#

PORTNAME=		resin
PORTVERSION=		2.1.17
PORTREVISION=	4
CATEGORIES=		www java
MASTER_SITES=		http://www.caucho.com/download/

MAINTAINER=		boris@@tagnet.ru
COMMENT=		Resin, a Java-based Application Server, 2.x branch

USE_JAVA=		yes
JAVA_VERSION=		1.5+
HAS_CONFIGURE=		yes
USE_PYTHON=		yes
USE_OPENSSL=		yes

DEPRECATED=	unsupported upstream, consider www/resin3
EXPIRATION_DATE=	2012-04-10

# Customizable settings
RUNASUSER?=		www
RUNASUID?=		80
GROUP?=			${RUNASUSER}
GID?=			${RUNASUID}
PORT?=			8080
# Do not use PKGNAMESUFFIX here because version info is already in PORTVERSION
# If we used PKGNAMESUFFIX, the package name would be resin2-2.1.11
APP_NAME_SUFFIX=	${PORTVERSION:C/\..*$//}
APP_NAME?=		${PORTNAME}${APP_NAME_SUFFIX}
LATEST_LINK=		${APP_NAME}
APP_HOME?=		${PREFIX}/${APP_NAME}
WITH_APACHE?=		NO
WITH_APACHE2?=		NO
PID_FILE?=		${APP_HOME}/${APP_NAME}.pid
LOG_FILE?=		${APP_HOME}/${APP_NAME}.log

# Other settings
APXS?=			${LOCALBASE}/sbin/apxs
PKGINSTALL=		${WRKDIR}/pkg-install
PKGDEINSTALL=		${WRKDIR}/pkg-deinstall
PKGMESSAGE=		${WRKDIR}/pkg-message
REINPLACE_FILES=	${WRKSRC}/src/c/plugin/apache/Makefile.in \
			${WRKSRC}/src/c/plugin/apache2/Makefile.in
REPLACE_FILES=		${FILESDIR}/pkg-install \
			${FILESDIR}/pkg-deinstall \
			${FILESDIR}/install.sh \
			${FILESDIR}/pkg-message.in \
			${FILESDIR}/pkg-message-advanced.in \
			${WRKSRC}/conf/resin.conf \
			${FILESDIR}/resinctl \
			${FILESDIR}/resin.sh.in
COPYDIRS=		doc lib libexec xsl

.include <bsd.port.pre.mk>

# Pass JAVA_HOME as determined by bsd.java.mk
CONFIGURE_ARGS+=	--with-java-home=${JAVA_HOME} \
			--with-openssl-lib=${OPENSSLLIB} \
			--with-openssl-include=${OPENSSLINC}
LDFLAGS+=		-L${OPENSSLLIB} -lcrypto -lssl
# We need to link with cc instead of ld for the FreeBSD specific options used
# by threading libraries
CONFIGURE_ENV=		LD=${CC} PTHREAD_LIBS=${PTHREAD_LIBS}

# Install the Apache plugin if needed
.if defined(WITH_APACHE) && (${WITH_APACHE} == yes || ${WITH_APACHE} == YES)
#
# Apache 1.3
#
BUILD_DEPENDS+=		${APXS}:${PORTSDIR}/www/apache13
CONFIGURE_ARGS+=	--with-apxs=${APXS}
PLIST_SUB+=		MOD_DIR=libexec/apache
# Allow apxs invocations
PLIST_SUB+=		APACHE=""
.elif defined(WITH_APACHE2) && (${WITH_APACHE2} == yes || ${WITH_APACHE2} == YES)
#
# Apache 2
#
BUILD_DEPENDS+=		${APXS}:${PORTSDIR}/www/apache20
CONFIGURE_ARGS+=	--with-apxs=${APXS}
PLIST_SUB+=		MOD_DIR=libexec/apache2
# Allow apxs invocations
PLIST_SUB+=		APACHE=""
.else
PLIST_SUB+=		MOD_DIR="@@comment "
# Prevent apxs invocations
PLIST_SUB+=		APACHE="@@comment "
.endif

PLIST_SUB+=		APP_NAME=${APP_NAME}
PLIST_SUB+=		APXS=${APXS}

SUBSTITUTIONS=		-e "s|%%APP_HOME%%|${APP_HOME}|g" \
			-e "s|%%APP_NAME%%|${APP_NAME}|g" \
			-e "s|%%APXS%%|${APXS}|g" \
			-e "s|%%COPYDIRS%%|${COPYDIRS}|g" \
			-e "s|%%FILESDIR%%|${FILESDIR}|g" \
			-e "s|%%GID%%|${GID}|g" \
			-e "s|%%GROUP%%|${GROUP}|g" \
			-e "s|%%JAVA%%|${JAVA}|g" \
			-e "s|%%JAVA_HOME%%|${JAVA_HOME}|g" \
			-e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
			-e "s|%%LOG_FILE%%|${LOG_FILE}|g" \
			-e "s|%%PID_FILE%%|${PID_FILE}|g" \
			-e "s|%%PORT%%|${PORT}|g" \
			-e "s|%%PORTNAME%%|${PORTNAME}|g" \
			-e "s|%%PREFIX%%|${PREFIX}|g" \
			-e "s|%%PYTHON_CMD%%|${PYTHON_CMD}|g" \
			-e "s|%%RUNASUID%%|${RUNASUID}|g" \
			-e "s|%%RUNASUSER%%|${RUNASUSER}|g" \
			-e "s|%%WRKDIR%%|${WRKDIR}|g" \
			-e "s|%%WRKSRC%%|${WRKSRC}|g"

# Avoid build error on 64-bit architectures
.if (${ARCH} == "amd64") || (${ARCH} == "ia64") || (${ARCH} == "sparc64")
CFLAGS+=        -fPIC
.endif

post-patch:
	@@${REINPLACE_CMD} ${SUBSTITUTIONS} ${REINPLACE_FILES}
	@@for FILE in ${REPLACE_FILES} ; do \
	    ${SED} ${SUBSTITUTIONS} $${FILE} > ${WRKDIR}/`basename $${FILE}` ; \
	    done
	@@${FMT} -w 80 < ${WRKDIR}/pkg-message.in > ${PKGMESSAGE}
	@@${CAT} < ${WRKDIR}/pkg-message-advanced.in >> ${PKGMESSAGE}
.if (defined(WITH_APACHE2) && (${WITH_APACHE2} == yes || ${WITH_APACHE2} == YES) || \
defined(WITH_APACHE) && (${WITH_APACHE} == yes || ${WITH_APACHE} == YES))
	@@${ECHO_CMD} >> ${PKGMESSAGE}
	@@${ECHO_CMD} The Resin Apache module mod_caucho has been activated \
	    in the Apache configuration file, where you should also \
	    add a line to specify the location of the Resin configuration \
	    file, for example: | ${FMT} -w 80 >> ${PKGMESSAGE}
	@@${ECHO_CMD} >> ${PKGMESSAGE}
	@@${ECHO_CMD} "<IfModule mod_caucho.c>" >> ${PKGMESSAGE}
	@@${ECHO_CMD} "    CauchoConfigFile ${PREFIX}/etc/${APP_NAME}.xml" >> ${PKGMESSAGE}
	@@${ECHO_CMD} "</IfModule>" >> ${PKGMESSAGE}
.endif

post-build:
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} install

# Resin does not handle installation, so proceed now
do-install:
	@@${SETENV} RUNASUSER=${RUNASUSER} GROUP=${GROUP} ${SH} ${WRKDIR}/install.sh
.if (defined(WITH_APACHE2) && (${WITH_APACHE2} == yes || ${WITH_APACHE2} == YES))
	${APXS} -i -n caucho -a ${WRKSRC}/src/c/plugin/apache2/mod_caucho.so
.endif
.if (defined(WITH_APACHE) && (${WITH_APACHE} == yes || ${WITH_APACHE} == YES))
	${APXS} -i -n caucho -a ${WRKSRC}/src/c/plugin/apache/mod_caucho.so
.endif
	@@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
	@@${ECHO_MSG}
	@@${ECHO_MSG} "********************************************************************************"
	@@${CAT} ${PKGMESSAGE}
	@@${ECHO_MSG} "********************************************************************************"
	@@${ECHO_MSG}

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


1.20
log
@- Mark DEPRECATED, unsupported upstream
- consider upgrading to www/resin3

PR:	ports/165867
Submitted by:	jgh@@
Approved by:	maintainer, boris@@tagnet.ru
Feature safe:	yes
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.19
log
@- Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
@
text
@d23 3
@


1.18
log
@Now that the Java 1.3 and Java 1.4 ports are deprecated and will expire soon,
remove support for them from bsd.java.mk.  As Jikes is not available in Java 1.5
or higher, remove it from bsd.java.mk too (suggested by hq@@) and from the ports
which used it (only occurences were USE_JIKES=no).  Support for the Blackdown VM
is also removed, as it is not available in Java 1.5 and higher.

Also remove the mapping from Java 1.1-1.4 to Java 1.5+ in bsd.java.mk to detect
old, broken ports; therefore bump the minimal value of JAVA_VERSION to 1.5.
While here, replace static values of JAVA_VERSION in files/*.in by
%%JAVA_VERSION%% .

PR:		ports/158969
Submitted by:	rene
Tested on:	pointyhat-west -exp
@
text
@d66 1
a66 1
CONFIGURE_ENV=		LD=${CC} PTHREAD_LIBS=${PTHREAD_LIBS} LDFLAGS="${LDFLAGS}"
@


1.17
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
@d18 1
a18 1
JAVA_VERSION=		1.2+
@


1.16
log
@- Welcome X.org 7.2 \o/.
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}.
- Bump PORTREVISION for ports intalling files in ${X11BASE}.
@
text
@d10 1
a10 1
PORTREVISION=		3
@


1.15
log
@- Switch maintainership to submitter

PR:		111497
Submitted by:	Boris Kovalenko <boris@@tagnet.ru>
Approved by:	Jean-Baptiste Quenot <jbq@@caraldi.com> (old maintainer)
@
text
@d10 1
a10 1
PORTREVISION=		2
@


1.14
log
@- Fix build on 64-bit arch

Keep sync with www/resin3:

- A new option can be set in rc.conf to specify Java version to be used:
  resin2_java_version
- Set REQUIRE and KEYWORD in rc.d script
- Fix faststart in rc.d script
- Update maintainer's email

PR:		ports/106793
Submitted by:	Jean-Baptiste Quenot <jb.quenot at caraldi.com> (maintainer)
@
text
@d14 1
a14 1
MAINTAINER=		jbq@@caraldi.com
@


1.13
log
@- Fix a flag for WITH_APACHE=YES

PR:		ports/103423
Submitted by:	Sergey Al. Safonov <spoof@@spoofa.info>
Approved by:	Jean-Baptiste Quenot <jbq@@caraldi.com> (maintainer)
Sponsored by:   FreeBSD Bug-a-thon #1
@
text
@d10 1
a10 1
PORTREVISION=		1
d14 1
a14 1
MAINTAINER=		jb.quenot@@caraldi.com
d51 1
d105 1
d117 5
d128 1
@


1.12
log
@Unbreak (no longer hard codes -lc_r).
Some nonfunctional tidying.
Bump PORTREVISION, since the package may have been installed prior to
being marked BROKEN.

PR:		ports/93289
Submitted by:	Jean-Baptiste Quenot <jb.quenot@@caraldi.com> (maintainer), vd
@
text
@d144 1
a144 1
	${APXS} -i -n caucho -a ${WRKSRC}/src/c/plugin/apache1/mod_caucho.so
@


1.11
log
@BROKEN: hard-codes libc_r linkage

Approved by:	portmgr (implicit)
@
text
@d10 1
a20 1
USE_REINPLACE=		yes
a22 2
BROKEN=			Hard-codes libc_r linkage

d63 3
d100 1
d102 1
a102 1
			-e "s|%%GID%%|${GID}|g" \
a103 1
			-e "s|%%JAVA%%|${JAVA}|g" \
a104 1
			-e "s|%%PYTHON_CMD%%|${PYTHON_CMD}|g" \
d109 1
@


1.10
log
@- Update to 2.1.17
- Add support for OpenSSL
- Handle resin2_flags to pass JVM options in rc(8)
- Fix the port so that it may be built (and cleaned) correctly as a user

PR:		90489
Submitted by:	maintainer
@
text
@d23 2
@


1.9
log
@- prepare removal of www/apache2 in favor of www/apache20 for naming
  consistency
- add entries in UPDATING (for apache22 too)

PR:		ports/78119
Repocopied by:	marcus
@
text
@d9 1
a9 1
PORTVERSION=		2.1.16
d21 1
d59 4
a62 1
CONFIGURE_ARGS+=	--with-java-home=${JAVA_HOME}
d124 1
a124 1
	    file, for example: | fmt -w 80 >> ${PKGMESSAGE}
d131 3
d135 1
a135 1
post-install:
d137 6
@


1.8
log
@- Unbreak: variable evaluation (WRKSRC) could not postponed due to some .for
  loops. The loops are now either unrolled or implemented as shell loops. [1]
- ECHO_CMD -> ECHO_MSG when displaying information to the user
- Improve resinctl [2]

PR:		79707
Submitted by:	Boris Kovalenko <boris@@tagnet.ru> [1], maintainer [2]
Approved by:	maintainer
@
text
@d74 1
a74 1
BUILD_DEPENDS+=		${APXS}:${PORTSDIR}/www/apache2
@


1.7
log
@BROKEN: Does not build

Approved by:    portmgr (self)
@
text
@a15 2
BROKEN=			Does not build

a43 2
# We need WRKSRC and WRKDIR right now so define them "manually"
WRKSRC=			${WRKDIR}/${PORTNAME}-${PORTVERSION}
d109 4
a112 6
.for FILE in ${REINPLACE_FILES}
	@@${REINPLACE_CMD} ${SUBSTITUTIONS} ${FILE}
.endfor
.for FILE in ${REPLACE_FILES}
	@@${SED} ${SUBSTITUTIONS} ${FILE} > ${WRKDIR}/`basename ${FILE}`
.endfor
d131 2
a132 2
	@@${ECHO_CMD}
	@@${ECHO_CMD} "********************************************************************************"
d134 2
a135 2
	@@${ECHO_CMD} "********************************************************************************"
	@@${ECHO_CMD}
@


1.6
log
@Remove hardcoded WRKDIRPREFIX.

Proposed by:	des
@
text
@d16 2
@


1.5
log
@- Update to 2.1.16 [1]
- Replace perl wrapper with a new python control script and an RCng startup
  script [1]
- Use standard tab length [1]
- Update to bsd.java.mk 2.0
- Add $FreeBSD$ tags

PR:		77988 [1]
Submitted by:	maintainer [1]
@
text
@a45 1
WRKDIR?=		${WRKDIRPREFIX}${.CURDIR}/work
@


1.4
log
@. Update to 2.1.14.

PR:		68604
Submitted by:	Jean-Baptiste Quenot <jb.quenot@@caraldi.com> (maintainer)
@
text
@a4 2
# ex:ts=20:sw=20
#
d8 13
a20 12
PORTNAME=	resin
PORTVERSION=	2.1.14
CATEGORIES=	www java
MASTER_SITES=	http://www.caucho.com/download/

MAINTAINER=	jb.quenot@@caraldi.com
COMMENT=	Resin, a Java-based Application Server, 2.x branch

USE_JAVA=	1.2+
HAS_CONFIGURE=	yes
USE_PERL5=	yes
USE_REINPLACE=	yes
d23 5
a27 5
RUNASUSER?=	www
RUNASUID?=	80
GROUP?=	${RUNASUSER}
GID?=	${RUNASUID}
PORT?=	8080
d31 7
a37 6
APP_NAME?=	${PORTNAME}${APP_NAME_SUFFIX}
LATEST_LINK=	${APP_NAME}
APP_HOME?=	${PREFIX}/${APP_NAME}
WITH_APACHE?=	NO
WITH_APACHE2?=	NO
PID_FILE?=	/var/run/${APP_NAME}.pid
d40 4
a43 5
APXS?=	${LOCALBASE}/sbin/apxs
MOD_DIR?=	`${APXS} -q LIBEXECDIR`
PKGINSTALL=	${WRKDIR}/pkg-install
PKGDEINSTALL=	${WRKDIR}/pkg-deinstall
PKGMESSAGE=	${WRKDIR}/pkg-message
d45 2
a46 2
WRKSRC=	${WRKDIR}/${PORTNAME}-${PORTVERSION}
WRKDIR?=	${WRKDIRPREFIX}${.CURDIR}/work
d48 11
a58 9
	${WRKSRC}/src/c/plugin/apache2/Makefile.in
REPLACE_FILES=	${FILESDIR}/pkg-install \
	${FILESDIR}/pkg-deinstall \
	${FILESDIR}/install.sh \
	${FILESDIR}/pkg-message.in \
	${WRKSRC}/conf/resin.conf \
	${WRKSRC}/bin/wrapper.pl.in \
	${FILESDIR}/resin.sh.in
COPYDIRS=	doc lib libexec xsl
d68 1
a68 1
BUILD_DEPENDS+=	${APXS}:${PORTSDIR}/www/apache13
d70 1
a70 1
PLIST_SUB+=	MOD_DIR=libexec/apache
d72 1
a72 1
PLIST_SUB+=	APACHE=""
d77 1
a77 1
BUILD_DEPENDS+=	${APXS}:${PORTSDIR}/www/apache2
d79 1
a79 1
PLIST_SUB+=	MOD_DIR=libexec/apache2
d81 1
a81 1
PLIST_SUB+=	APACHE=""
d83 1
a83 1
PLIST_SUB+=	MOD_DIR="@@comment "
d85 1
a85 1
PLIST_SUB+=	APACHE="@@comment "
d88 2
a89 2
PLIST_SUB+=	APP_NAME=${APP_NAME}
PLIST_SUB+=	APXS=${APXS}
d91 19
a109 19
SUBSTITUTIONS=	-e "s|%%APP_HOME%%|${APP_HOME}|g" \
	-e "s|%%APP_NAME%%|${APP_NAME}|g" \
	-e "s|%%APXS%%|${APXS}|g" \
	-e "s|%%COPYDIRS%%|${COPYDIRS}|g" \
	-e "s|%%FILESDIR%%|${FILESDIR}|g" \
	-e "s|%%GROUP%%|${GROUP}|g" \
	-e "s|%%GID%%|${GID}|g" \
	-e "s|%%JAVA_HOME%%|${JAVA_HOME}|g" \
	-e "s|%%PERL%%|${PERL}|g" \
	-e "s|%%PID_FILE%%|${PID_FILE}|g" \
	-e "s|%%PORT%%|${PORT}|g" \
	-e "s|%%PORTNAME%%|${PORTNAME}|g" \
	-e "s|%%PREFIX%%|${PREFIX}|g" \
	-e "s|%%RUNASUID%%|${RUNASUID}|g" \
	-e "s|%%RUNASUSER%%|${RUNASUSER}|g" \
	-e "s|%%WRKDIR%%|${WRKDIR}|g" \
	-e "s|%%WRKSRC%%|${WRKSRC}|g"

.include <bsd.port.pre.mk>
d118 1
a118 1
	@@fmt -w 80 < ${WRKDIR}/pkg-message.in > ${PKGMESSAGE}
a130 1
	@@${MV} ${WRKDIR}/wrapper.pl.in ${WRKSRC}/bin/wrapper.pl.in
d134 1
a134 1
	@@${SH} ${WRKDIR}/install.sh
@


1.3
log
@Update to 2.1.12
Set LATEST_LINK
Add libresin.so to packing list
Add license information to pkg-descr
USE_REINPLACE and REINPLACE_CMD instead of sed -i

PR:		ports/64255
Submitted by:	Jean-Baptiste Quenot <jb.quenot@@caraldi.com> (maintainer)
@
text
@d11 1
a11 1
PORTVERSION=	2.1.12
d125 4
a128 1
	@@${ECHO_CMD} CauchoConfigFile ${PREFIX}/etc/${APP_NAME}.xml >> ${PKGMESSAGE}
@


1.2
log
@. Avoid conflict between resin2 and resin3
. Fix resin{2,3}ctl first line (perl path)
. Pid file is no more created in the Makefile
. New resin.sh startup script, manages pid file
. pkg-[de]install and pkg-message are now generated
. Do not write anything after including bsd.port.post.mk
. Packages are now supported (reported by Arcadius Ahouansou)
. Integration with apxs for [de]activating mod_caucho

PR:		57566
Submitted by:	Jean-Baptiste Quenot <jbq@@caraldi.com> (maintainer)
@
text
@d11 1
a11 2
PORTVERSION=	2.1.11
PORTREVISION=	1
d21 1
d33 1
d57 1
d93 1
d112 1
a112 1
	@@${SED} -i bak ${SUBSTITUTIONS} ${FILE}
d122 3
a124 3
	in the Apache configuration file, where you should also \
	add a line to specify the location of the Resin configuration \
	file, for example: | fmt -w 80 >> ${PKGMESSAGE}
@


1.1
log
@New port: Resin 2.

Submitted by:	Jean-Baptiste Quenot <jb.quenot@@caraldi.com>
@
text
@d5 2
d12 1
d29 5
a33 1
APP_HOME?=	${PREFIX}/${PKGNAMEPREFIX}${PORTNAME}
d36 1
d41 15
d61 1
a61 1
.if defined(WITH_APACHE) && ($(WITH_APACHE) == yes || $(WITH_APACHE) == YES)
d68 3
a70 1
.elif defined(WITH_APACHE2) && ($(WITH_APACHE2) == yes || $(WITH_APACHE2) == YES)
d77 2
d81 2
d85 20
d107 19
a126 7
pre-install:
	$(SED) -i -e "s|%%PREFIX%%|$(PREFIX)|g" $(WRKSRC)/src/c/plugin/apache/install.sh
	$(SED) -i -e "s|%%PREFIX%%|$(PREFIX)|g" $(WRKSRC)/src/c/plugin/apache2/install.sh

# Do not change the PID file location unless you also change it in pkg-deinstall script
PID_FILE=	/var/run/resin.pid

d128 7
a134 15
	${TOUCH} ${PID_FILE}
	${CHOWN} ${RUNASUID}:${GID} ${PID_FILE}
	${MKDIR} ${APP_HOME}
	@@PREFIX=${PREFIX} \
	PKGNAMEPREFIX=${PKGNAMEPREFIX} \
	PORTNAME=${PORTNAME} \
	WRKSRC=${WRKSRC} \
	RUNASUSER=${RUNASUSER} \
	RUNASUID=${RUNASUID} \
	GROUP=${GROUP} \
	GID=${GID} \
	PORT=${PORT} \
	APP_HOME=${APP_HOME} \
	JAVA_HOME=${JAVA_HOME} \
	${SH} pkg-install ${PKGNAME} POST-INSTALL
a136 2

# ex:ts=18
@

