diff options
author | hq <hq@FreeBSD.org> | 2005-02-24 22:27:53 +0000 |
---|---|---|
committer | hq <hq@FreeBSD.org> | 2005-02-24 22:27:53 +0000 |
commit | 9e6f6cf4c186a85f356821860afb577acf8b8a7d (patch) | |
tree | 0fac4ac4d4aa7fee754f73ddccf82ff5dc58a908 /www/resin2/Makefile | |
parent | e5bc6ef80c11e4a806b9c3b6ea50a94fe2da96c6 (diff) | |
download | FreeBSD-ports-9e6f6cf4c186a85f356821860afb577acf8b8a7d.zip FreeBSD-ports-9e6f6cf4c186a85f356821860afb577acf8b8a7d.tar.gz |
- 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]
Diffstat (limited to 'www/resin2/Makefile')
-rw-r--r-- | www/resin2/Makefile | 142 |
1 files changed, 71 insertions, 71 deletions
diff --git a/www/resin2/Makefile b/www/resin2/Makefile index 321e550..95c6296 100644 --- a/www/resin2/Makefile +++ b/www/resin2/Makefile @@ -2,59 +2,60 @@ # Whom: Jean-Baptiste Quenot <jb.quenot@caraldi.com> # Date Created: 2002-07-15 15:00:43 # -# ex:ts=20:sw=20 -# # $FreeBSD$ # -PORTNAME= resin -PORTVERSION= 2.1.14 -CATEGORIES= www java -MASTER_SITES= http://www.caucho.com/download/ +PORTNAME= resin +PORTVERSION= 2.1.16 +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 +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 +USE_JAVA= yes +JAVA_VERSION= 1.2+ +HAS_CONFIGURE= yes +USE_PYTHON= yes +USE_REINPLACE= yes # Customizable settings -RUNASUSER?= www -RUNASUID?= 80 -GROUP?= ${RUNASUSER} -GID?= ${RUNASUID} -PORT?= 8080 +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?= /var/run/${APP_NAME}.pid +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 -MOD_DIR?= `${APXS} -q LIBEXECDIR` -PKGINSTALL= ${WRKDIR}/pkg-install -PKGDEINSTALL= ${WRKDIR}/pkg-deinstall -PKGMESSAGE= ${WRKDIR}/pkg-message +APXS?= ${LOCALBASE}/sbin/apxs +PKGINSTALL= ${WRKDIR}/pkg-install +PKGDEINSTALL= ${WRKDIR}/pkg-deinstall +PKGMESSAGE= ${WRKDIR}/pkg-message # We need WRKSRC and WRKDIR right now so define them "manually" -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} -WRKDIR?= ${WRKDIRPREFIX}${.CURDIR}/work +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +WRKDIR?= ${WRKDIRPREFIX}${.CURDIR}/work 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 \ - ${WRKSRC}/conf/resin.conf \ - ${WRKSRC}/bin/wrapper.pl.in \ - ${FILESDIR}/resin.sh.in -COPYDIRS= doc lib libexec xsl + ${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 \ + ${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} @@ -64,48 +65,48 @@ CONFIGURE_ARGS+= --with-java-home=${JAVA_HOME} # # Apache 1.3 # -BUILD_DEPENDS+= ${APXS}:${PORTSDIR}/www/apache13 +BUILD_DEPENDS+= ${APXS}:${PORTSDIR}/www/apache13 CONFIGURE_ARGS+= --with-apxs=${APXS} -PLIST_SUB+= MOD_DIR=libexec/apache +PLIST_SUB+= MOD_DIR=libexec/apache # Allow apxs invocations -PLIST_SUB+= APACHE="" +PLIST_SUB+= APACHE="" .elif defined(WITH_APACHE2) && (${WITH_APACHE2} == yes || ${WITH_APACHE2} == YES) # # Apache 2 # -BUILD_DEPENDS+= ${APXS}:${PORTSDIR}/www/apache2 +BUILD_DEPENDS+= ${APXS}:${PORTSDIR}/www/apache2 CONFIGURE_ARGS+= --with-apxs=${APXS} -PLIST_SUB+= MOD_DIR=libexec/apache2 +PLIST_SUB+= MOD_DIR=libexec/apache2 # Allow apxs invocations -PLIST_SUB+= APACHE="" +PLIST_SUB+= APACHE="" .else -PLIST_SUB+= MOD_DIR="@comment " +PLIST_SUB+= MOD_DIR="@comment " # Prevent apxs invocations -PLIST_SUB+= APACHE="@comment " +PLIST_SUB+= APACHE="@comment " .endif -PLIST_SUB+= APP_NAME=${APP_NAME} -PLIST_SUB+= APXS=${APXS} +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|%%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> +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|%%JAVA%%|${JAVA}|g" \ + -e "s|%%LOG_FILE%%|${LOG_FILE}|g" \ + -e "s|%%PYTHON_CMD%%|${PYTHON_CMD}|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" post-patch: .for FILE in ${REINPLACE_FILES} @@ -114,7 +115,7 @@ post-patch: .for FILE in ${REPLACE_FILES} @${SED} ${SUBSTITUTIONS} ${FILE} > ${WRKDIR}/`basename ${FILE}` .endfor - @fmt -w 80 < ${WRKDIR}/pkg-message.in > ${PKGMESSAGE} + @${FMT} -w 80 < ${WRKDIR}/pkg-message.in > ${PKGMESSAGE} .if (defined(WITH_APACHE2) && (${WITH_APACHE2} == yes || ${WITH_APACHE2} == YES) || \ defined(WITH_APACHE) && (${WITH_APACHE} == yes || ${WITH_APACHE} == YES)) @${ECHO_CMD} >> ${PKGMESSAGE} @@ -127,11 +128,10 @@ defined(WITH_APACHE) && (${WITH_APACHE} == yes || ${WITH_APACHE} == YES)) @${ECHO_CMD} " CauchoConfigFile ${PREFIX}/etc/${APP_NAME}.xml" >> ${PKGMESSAGE} @${ECHO_CMD} "</IfModule>" >> ${PKGMESSAGE} .endif - @${MV} ${WRKDIR}/wrapper.pl.in ${WRKSRC}/bin/wrapper.pl.in # Resin does not handle installation, so proceed now post-install: - @${SH} ${WRKDIR}/install.sh + @${SETENV} RUNASUSER=${RUNASUSER} GROUP=${GROUP} ${SH} ${WRKDIR}/install.sh @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL @${ECHO_CMD} @${ECHO_CMD} "********************************************************************************" |