summaryrefslogtreecommitdiff
path: root/www/resin3/Makefile
diff options
context:
space:
mode:
authorErnst de Haan <znerd@FreeBSD.org>2003-09-29 12:57:59 +0000
committerErnst de Haan <znerd@FreeBSD.org>2003-09-29 12:57:59 +0000
commit2cbb10ab13bf5caf1abb09cef702c9493a3e7509 (patch)
treef34382b61cb65efda02e78b94a4395621d7c1172 /www/resin3/Makefile
parentupdate to sysutils/socket: NetBSD IPv6 patches imported (diff)
New port: resin3.
PR: 54853 Submitted by: Jean-Baptiste Quenot <jb.quenot@caraldi.com> See: http://caraldi.com/jbq/resin/
Notes
Notes: svn path=/head/; revision=89803
Diffstat (limited to 'www/resin3/Makefile')
-rw-r--r--www/resin3/Makefile80
1 files changed, 80 insertions, 0 deletions
diff --git a/www/resin3/Makefile b/www/resin3/Makefile
new file mode 100644
index 000000000000..0460d76011b3
--- /dev/null
+++ b/www/resin3/Makefile
@@ -0,0 +1,80 @@
+# New ports collection makefile for: resin3
+# Whom: Jean-Baptiste Quenot <jb.quenot@caraldi.com>
+# Date Created: 2003-09-29 14:17:14
+#
+# $FreeBSD$
+#
+
+PORTNAME= resin
+PORTVERSION= 3.0.3
+CATEGORIES= www java
+MASTER_SITES= http://www.caucho.com/download/
+
+MAINTAINER= jb.quenot@caraldi.com
+COMMENT= Resin, a Java-based Application Server, 3.x branch
+
+USE_JAVA= 1.2+
+HAS_CONFIGURE= yes
+USE_PERL5= yes
+
+# Customizable settings
+RUNASUSER?= www
+RUNASUID?= 80
+GROUP?= ${RUNASUSER}
+GID?= ${RUNASUID}
+PORT?= 8080
+APP_HOME?= ${PREFIX}/${PKGNAMEPREFIX}${PORTNAME}
+WITH_APACHE?= NO
+WITH_APACHE2?= NO
+
+# Other settings
+APXS?= ${LOCALBASE}/sbin/apxs
+MOD_DIR?= `${APXS} -q LIBEXECDIR`
+
+# Pass JAVA_HOME as determined by bsd.java.mk
+CONFIGURE_ARGS+= --with-java-home=${JAVA_HOME}
+
+# 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
+.elif defined(WITH_APACHE2) && ($(WITH_APACHE2) == yes || $(WITH_APACHE2) == YES)
+#
+# Apache 2
+#
+BUILD_DEPENDS+= ${APXS}:${PORTSDIR}/www/apache2
+CONFIGURE_ARGS+= --with-apxs=${APXS}
+PLIST_SUB+= MOD_DIR=libexec/apache2
+.else
+PLIST_SUB+= MOD_DIR="@comment "
+.endif
+
+.include <bsd.port.pre.mk>
+
+# Do not change the PID file location unless you also change it in pkg-deinstall script
+PID_FILE= /var/run/resin.pid
+
+post-install:
+ ${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
+
+.include <bsd.port.post.mk>
+
+# ex:ts=18