aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authornemoliu <nemoliu@FreeBSD.org>2008-05-22 20:26:08 +0800
committernemoliu <nemoliu@FreeBSD.org>2008-05-22 20:26:08 +0800
commit4d4c82f972d83e09d1254400814f5c6732ae1677 (patch)
treeca43c16c082c4d7dd39cd6bed70ca98265609ac4 /www
parent28ec3daa04a1ecb622d1d93ab54e8daf1672921a (diff)
downloadfreebsd-ports-gnome-4d4c82f972d83e09d1254400814f5c6732ae1677.tar.gz
freebsd-ports-gnome-4d4c82f972d83e09d1254400814f5c6732ae1677.tar.zst
freebsd-ports-gnome-4d4c82f972d83e09d1254400814f5c6732ae1677.zip
- Update to 2.1.1
PR: ports/121187 Submitted by: Jonathan Chen <jonc@chen.org.nz> Approved by: Tong Liu (maintainer) delphij (mentor,implicit)
Diffstat (limited to 'www')
-rw-r--r--www/geronimo/Makefile72
-rw-r--r--www/geronimo/distinfo6
-rw-r--r--www/geronimo/files/geronimo2.sh.in2
3 files changed, 19 insertions, 61 deletions
diff --git a/www/geronimo/Makefile b/www/geronimo/Makefile
index ef0533e7e47c..0bc97d1ee5ef 100644
--- a/www/geronimo/Makefile
+++ b/www/geronimo/Makefile
@@ -6,11 +6,11 @@
#
PORTNAME= geronimo
-PORTVERSION= 2.0.2
+PORTVERSION= 2.1.1
CATEGORIES= www devel java
MASTER_SITES= ${MASTER_SITE_APACHE}
MASTER_SITE_SUBDIR= geronimo/${PORTVERSION}
-DISTNAME= ${PORTNAME}-${WEBSERVER}-jee5-${PORTVERSION}-bin
+DISTNAME= ${PORTNAME}-${WEBSERVER}-javaee5-${PORTVERSION}-bin
MAINTAINER= nemoliu@FreeBSD.org
COMMENT= Open-source Java EE 5 application server
@@ -40,43 +40,20 @@ WEBSERVER= jetty6
WEBSERVER= tomcat6
.endif
-MAJOR_VER= ${PORTVERSION:S/.0.2//}
-APP_HOME?= ${PREFIX}/${PKGBASE}${PORTVERSION:S/.0.2//}
+MAJOR_VER= ${PORTVERSION:C/\..*//}
+APP_HOME?= ${PREFIX}/${PKGBASE}${MAJOR_VER}
LOG_DIR= ${APP_HOME}/var/log
APP_TITLE= Geronimo
-APP_SHORTNAME= geronimo${MAJOR_VER:S/.0.2//}
+APP_SHORTNAME= geronimo${MAJOR_VER}
GERONIMO_USER?= www
GERONIMO_GROUP?=www
GERONIMO_OUT= ${LOG_DIR}/geronimo.out
PID_FILE= /var/run/${APP_SHORTNAME}.pid
WRKDIR?= ${WRKDIRPREFIX}${.CURDIR}/work
-WRKSRC= ${WRKDIR}/${PORTNAME}-${WEBSERVER}-jee5-${PORTVERSION}
+WRKSRC= ${WRKDIR}/${DISTNAME:S/-bin//}
JAR_FILE= bin/server.jar
-WEBPATHV= ${WEBSERVER}
-WEBPATHNV= jetty
-TCOMMENT= "@comment "
-JCOMMENT= "@comment "
-.if ${WEBSERVER} != "jetty6"
-WEBPATHV= tomcat
-WEBPATHNV= tomcat
-TCOMMENT=
-.else
-WEBPATHNV= jetty
-JCOMMENT=
-.endif
-PLIST_SUB+= T=${APP_HOME:S/^${PREFIX}\///} \
- WWWOWN=${TOMCAT_USER} \
- WWWGRP=${TOMCAT_GROUP} \
- PVER=${PORTVERSION} \
- WEBPATHV=${WEBPATHV} \
- WEBPATHNV=${WEBPATHNV} \
- WEBPATHV=${WEBPATHV} \
- WEBPATHNV=${WEBPATHNV} \
- TCOMMENT=${TCOMMENT} \
- JCOMMENT=${JCOMMENT} \
- JCOMMENTD=${JCOMMENTD} \
- TCOMMENTD=${TCOMMENTD}
LATEST_LINK= ${APP_SHORTNAME}
+PLIST_FILES= ${GERONIMO_OUT:S,^${PREFIX}/,,}
SUB_LIST= GERONIMO_HOME=${APP_HOME} \
APP_SHORTNAME=${APP_SHORTNAME} \
@@ -108,34 +85,15 @@ pre-install:
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
do-install:
- @${ECHO_MSG} -n ">> Creating destination directory..."
- @${MKDIR} ${APP_HOME}
- @${MKDIR} ${LOG_DIR}
- @${MKDIR} ${APP_HOME}/deploy
- @${ECHO_MSG} " [ DONE ]"
-
- @${ECHO_MSG} ">> Copying files to destination directory..."
- @${CP} -R ${WRKSRC}/* ${APP_HOME}
- @${ECHO_MSG} " [ DONE ]"
-
- @${ECHO_MSG} -n ">> Creating log files..."
- @${INSTALL} -m 664 -o ${GERONIMO_USER} -g ${GERONIMO_GROUP} /dev/null ${GERONIMO_OUT}
- @${ECHO_MSG} " [ DONE ]"
-
- @${ECHO_MSG} -n ">> Creating symlink to tools.jar..."
- @${LN} -sf ${JAVA_HOME}/lib/tools.jar ${APP_HOME}/lib/tools.jar
- @${ECHO_MSG} " [ DONE ]"
-
- @${ECHO_MSG} -n ">> Fixing ownership settings..."
- @${CHOWN} -R ${GERONIMO_USER}:${GERONIMO_GROUP} ${APP_HOME}/lib ${APP_HOME}/var \
- ${APP_HOME}/schema ${APP_HOME}/lib ${APP_HOME}/repository
- @${ECHO_MSG} " [ DONE ]"
-
- @${ECHO_MSG} -n ">> Fixing permissions..."
- @${CHMOD} 755 `${FIND} ${APP_HOME} -type d`
- @${ECHO_MSG} " [ DONE ]"
-
+ ${MKDIR} ${APP_HOME} && ${CHOWN} ${GERONIMO_USER}:${GERONIMO_GROUP} ${APP_HOME}
+ @(cd ${WRKSRC} && ${FIND} . |\
+ ${CPIO} -pdmu -R ${GERONIMO_USER}:${GERONIMO_GROUP} ${APP_HOME})
+ ${INSTALL} -o ${GERONIMO_USER} -g ${GERONIMO_GROUP} -m 0644 /dev/null ${GERONIMO_OUT}
post-install:
@${ECHO_MSG} "${APP_TITLE} ${PORTVERSION} has been installed in ${APP_HOME}."
+ @${FIND} -s ${WRKSRC} -not -type d | \
+ ${SED} -ne 's,^${WRKSRC},${APP_HOME:S,${PREFIX}/,,},p' >> ${TMPPLIST}
+ @${FIND} -s -d ${WRKSRC} -type d | \
+ ${SED} -ne 's,^${WRKSRC},@dirrm ${APP_HOME:S,${PREFIX}/,,},p' >> ${TMPPLIST}
.include <bsd.port.post.mk>
diff --git a/www/geronimo/distinfo b/www/geronimo/distinfo
index 40082f9607e0..5ae15f095dce 100644
--- a/www/geronimo/distinfo
+++ b/www/geronimo/distinfo
@@ -1,3 +1,3 @@
-MD5 (geronimo-jetty6-jee5-2.0.2-bin.tar.gz) = 0f572792ba8895534a1aaeea0ddf8c14
-SHA256 (geronimo-jetty6-jee5-2.0.2-bin.tar.gz) = 17cd6b1e441dd642a922d20ce0c585e8d4601792f1e843661a903f4b503c6de6
-SIZE (geronimo-jetty6-jee5-2.0.2-bin.tar.gz) = 56071302
+MD5 (geronimo-tomcat6-javaee5-2.1.1-bin.tar.gz) = 0f9ff4ebff8463b272eee2088cd462b9
+SHA256 (geronimo-tomcat6-javaee5-2.1.1-bin.tar.gz) = 4cfb4e587e7696534c715c44b0e8f6e93ff9a09f2c6ecfe8776b2fd6f61334c2
+SIZE (geronimo-tomcat6-javaee5-2.1.1-bin.tar.gz) = 75859221
diff --git a/www/geronimo/files/geronimo2.sh.in b/www/geronimo/files/geronimo2.sh.in
index 56483d98c6f5..4de7fa330ff5 100644
--- a/www/geronimo/files/geronimo2.sh.in
+++ b/www/geronimo/files/geronimo2.sh.in
@@ -104,7 +104,7 @@ java_command="$java_cmd \
-Dorg.apache.geronimo.base.dir=${geronimo%%GERONIMO_VERSION%%_base} \
-Djava.endorsed.dirs=$ENDORSED_DIRS \
-Djava.ext.dirs=$EXT_DIRS \
- -Djava.io.tmpdir=${geronimo%%GERONIMO_VERSION%%_tmpdir}"
+ -Djava.io.tmpdir=${geronimo%%GERONIMO_VERSION%%_tmpdir}"
java_start_command="${java_command} \
-jar ${geronimo%%GERONIMO_VERSION%%_home}/bin/server.jar $LONG_OPT"