# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # geronimo-devel # geronimo-devel/CVS # geronimo-devel/CVS/Root # geronimo-devel/CVS/Repository # geronimo-devel/CVS/Entries # geronimo-devel/files # geronimo-devel/files/CVS # geronimo-devel/files/CVS/Root # geronimo-devel/files/CVS/Repository # geronimo-devel/files/CVS/Entries # geronimo-devel/files/geronimo3.sh.in # geronimo-devel/files/pkg-deinstall.in # geronimo-devel/Makefile # geronimo-devel/distinfo # geronimo-devel/pkg-descr # echo c - geronimo-devel mkdir -p geronimo-devel > /dev/null 2>&1 echo c - geronimo-devel/CVS mkdir -p geronimo-devel/CVS > /dev/null 2>&1 echo x - geronimo-devel/CVS/Root sed 's/^X//' >geronimo-devel/CVS/Root << '4e567c417c5ab058e59a67ec819fb814' X/home/pcvs 4e567c417c5ab058e59a67ec819fb814 echo x - geronimo-devel/CVS/Repository sed 's/^X//' >geronimo-devel/CVS/Repository << '9b981ba829a245bd0a85c568a78fc05f' Xports/www/geronimo 9b981ba829a245bd0a85c568a78fc05f echo x - geronimo-devel/CVS/Entries sed 's/^X//' >geronimo-devel/CVS/Entries << '8a25943427769e38115ef956a129d931' XD/files//// X/distinfo/1.9/Wed Feb 9 13:19:53 2011// X/pkg-descr/1.2/Wed Feb 9 13:19:53 2011// X/Makefile/1.15/Wed Aug 24 09:04:37 2011// 8a25943427769e38115ef956a129d931 echo c - geronimo-devel/files mkdir -p geronimo-devel/files > /dev/null 2>&1 echo c - geronimo-devel/files/CVS mkdir -p geronimo-devel/files/CVS > /dev/null 2>&1 echo x - geronimo-devel/files/CVS/Root sed 's/^X//' >geronimo-devel/files/CVS/Root << 'faac512df26d85c63e01505239b2bc52' X/home/pcvs faac512df26d85c63e01505239b2bc52 echo x - geronimo-devel/files/CVS/Repository sed 's/^X//' >geronimo-devel/files/CVS/Repository << '7fd96ef3e30fdaf3195982dc41a9fcfc' Xports/www/geronimo/files 7fd96ef3e30fdaf3195982dc41a9fcfc echo x - geronimo-devel/files/CVS/Entries sed 's/^X//' >geronimo-devel/files/CVS/Entries << '84fb191a55603a80db11613148e892af' X/pkg-deinstall.in/1.2/Wed Aug 24 09:04:37 2011// X/geronimo2.sh.in/1.6/Tue Feb 28 15:00:55 2012// XD 84fb191a55603a80db11613148e892af echo x - geronimo-devel/files/geronimo3.sh.in sed 's/^X//' >geronimo-devel/files/geronimo3.sh.in << '059b15be8e6fa48533e8e76c96be39b4' X#!/bin/sh X# X# $FreeBSD: ports/www/geronimo/files/geronimo2.sh.in,v 1.6 2012/01/14 08:57:13 dougb Exp $ X# X X# PROVIDE: %%APP_SHORTNAME%% X# REQUIRE: NETWORKING SERVERS X# KEYWORD: shutdown X X. /etc/rc.subr X Xname="geronimo%%GERONIMO_VERSION%%" Xrcvar=geronimo%%GERONIMO_VERSION%%_enable Xpidfile="%%PID_FILE%%" X Xexport JAVA_HOME=%%JAVA_HOME%% Xexport JRE_HOME=$JAVA_HOME/jre Xexport EXT_DIRS="$JRE_HOME/lib/ext:${geronimo%%GERONIMO_VERSION%%_home}/lib/ext" Xexport ENDORSED_DIRS="$JRE_HOME/lib/endorsed:${geronimo%%GERONIMO_VERSION%%_home}/lib/endorsed" Xexport GERONIMO_PID=$pidfile X X Xstart_cmd="geronimo%%GERONIMO_VERSION%%_start" Xstop_cmd="geronimo%%GERONIMO_VERSION%%_stop" X Xgeronimo%%GERONIMO_VERSION%%_start() { X %%GERONIMO_HOME%%/bin/geronimo start X} X Xgeronimo%%GERONIMO_VERSION%%_stop() { X rc_pid=$(check_pidfile $pidfile ${JRE_HOME}/bin/java) X echo "Stopping ${name}." X kill ${rc_pid} 2> /dev/null X wait_for_pids ${rc_pid} X rm $pidfile X} X Xload_rc_config "${name}" X Xrun_rc_command "$1" 059b15be8e6fa48533e8e76c96be39b4 echo x - geronimo-devel/files/pkg-deinstall.in sed 's/^X//' >geronimo-devel/files/pkg-deinstall.in << 'd5e951949027d7a2f553fe2b3323f636' X#!/bin/sh X# X# This script does the following. X# X# * Checks if the PID file exists. If it does, it kills the X# process and removes the PID file. X# X# * Checks if the '%%USER%%' user exists. If it does, then it displays X# a message. X# X# $FreeBSD: ports/www/geronimo/files/pkg-deinstall.in,v 1.2 2011/08/12 10:16:09 crees Exp $ X# X XUSER=%%USER%% XPID_FILE=%%PID_FILE%% X X# Make sure we're in the right stage of the process Xif [ "$2" = "DEINSTALL" ]; then X X # Kill the process if it is still running X if [ -s ${PID_FILE} ]; then X PID=`cat ${PID_FILE}` X echo -n ">> Killing Tomcat process (${PID})..." X /bin/kill ${PID} > /dev/null 2> /dev/null X if [ $? -eq 0 ]; then X echo " [ DONE ]" X else X echo " [ FAILED ]" X fi X echo -n ">> Removing PID file (${PID_FILE})..." X rm ${PID_FILE} > /dev/null 2> /dev/null X if [ $? -eq 0 ]; then X echo " [ DONE ]" X else X echo " [ FAILED ]" X fi X fi Xfi X Xexit 0 d5e951949027d7a2f553fe2b3323f636 echo x - geronimo-devel/Makefile sed 's/^X//' >geronimo-devel/Makefile << 'a2f4bf070f4067e8dbe43f51996d2b1d' X# New ports collection makefile for: geronimo X# Date created: 26 Apr 2007 X# Whom: Nemo Liu X# X# $FreeBSD: ports/www/geronimo/Makefile,v 1.15 2011/08/12 10:16:09 crees Exp $ X# X XPORTNAME= geronimo XDISTVERSION= 3.0-beta-1 XCATEGORIES= www devel java XMASTER_SITES= ${MASTER_SITE_APACHE} XMASTER_SITE_SUBDIR= geronimo/${DISTVERSION} XDISTNAME= ${PORTNAME}-${WEBSERVER}-javaee6-${DISTVERSION}-bin X XMAINTAINER= ports@FreeBSD.org XCOMMENT= Open-source Java EE 5 application server X XUSE_JAVA= yes XJAVA_VERSION= 1.5+ XNO_BUILD= YES X XUSE_RC_SUBR= geronimo3.sh XSUB_FILES= pkg-deinstall X XOPTIONS= TOMCAT7 "Use Tomcat instead of default Jetty" off X X.include X X.if defined(WITH_TOMCAT7) XWEBSERVER= tomcat7 X.else XWEBSERVER= jetty8 X.endif X XMAJOR_VER= ${PORTVERSION:C/\..*//} XAPP_HOME?= ${PREFIX}/${PKGBASE}${MAJOR_VER} XLOG_DIR= ${APP_HOME}/var/log XAPP_TITLE= Geronimo XAPP_SHORTNAME= geronimo${MAJOR_VER} X.if defined(GERONIMO_USER) XIGNORE= no longer allows customisation of GERONIMO_USER or GERONIMO_GROUP X.endif XGERONIMO_USER?= www XGERONIMO_GROUP?=www XGERONIMO_OUT= ${LOG_DIR}/geronimo.out XPID_FILE= /var/run/${APP_SHORTNAME}.pid XWRKDIR?= ${WRKDIRPREFIX}${.CURDIR}/work XWRKSRC= ${WRKDIR}/${DISTNAME:S/-bin//} XJAR_FILE= bin/server.jar XLATEST_LINK= ${APP_SHORTNAME} XPLIST_FILES= ${GERONIMO_OUT:S,^${PREFIX}/,,} X XSUB_LIST= GERONIMO_HOME=${APP_HOME} \ X APP_SHORTNAME=${APP_SHORTNAME} \ X APP_TITLE="${APP_TITLE}" \ X GROUP=${GERONIMO_GROUP} \ X HTTP_PORT=${HTTP_PORT} \ X JAR_FILE=${JAR_FILE} \ X PID_FILE=${PID_FILE} \ X GERONIMO_OUT=${GERONIMO_OUT} \ X USER=${GERONIMO_USER} \ X GERONIMO_VERSION=${MAJOR_VER} \ X GERONIMO_OUT=${GERONIMO_OUT} \ X JAVA_HOME=${JAVA_HOME} \ X JAVA_VERSION=${JAVA_VERSION} X Xpre-patch: X @${ECHO_MSG} "Installation settings:" X @${ECHO_MSG} " Destination directory: ${APP_HOME}" X @${ECHO_MSG} " Location of JDK: ${JAVA_HOME}" X @${ECHO_MSG} " Location of Java port: ${JAVA_PORT}" X @${ECHO_MSG} " Running as (user/group): ${GERONIMO_USER}/${GERONIMO_GROUP}" X @${ECHO_MSG} " Logfile: ${GERONIMO_OUT}" X Xpost-patch: X @${ECHO_MSG} -n ">> Removing unneeded files..." X @${RM} -f `${FIND} ${WRKSRC} -name '*.bat'` `${FIND} ${WRKSRC} -name '*.orig'` `${FIND} ${WRKSRC} -name '*.exe'` X @${ECHO_MSG} " [ DONE ]" X @${REINPLACE_CMD} -e '/^activemq.data/s|= |= ${APP_HOME}/|' ${WRKSRC}/var/config/config-substitutions.properties X Xdo-install: X ${MKDIR} ${APP_HOME} && ${CHOWN} ${GERONIMO_USER}:${GERONIMO_GROUP} ${APP_HOME} X @(cd ${WRKSRC} && ${FIND} . |\ X ${CPIO} -pdmu -R ${GERONIMO_USER}:${GERONIMO_GROUP} ${APP_HOME}) X ${INSTALL} -o ${GERONIMO_USER} -g ${GERONIMO_GROUP} -m 0644 /dev/null ${GERONIMO_OUT} Xpost-install: X @${ECHO_MSG} "${APP_TITLE} ${PORTVERSION} has been installed in ${APP_HOME}." X @${FIND} -s ${WRKSRC} -not -type d | \ X ${SED} -ne 's,^${WRKSRC},${APP_HOME:S,${PREFIX}/,,},p' >> ${TMPPLIST} X @${FIND} -s -d ${WRKSRC} -type d | \ X ${SED} -ne 's,^${WRKSRC},@dirrm ${APP_HOME:S,${PREFIX}/,,},p' >> ${TMPPLIST} X X.include a2f4bf070f4067e8dbe43f51996d2b1d echo x - geronimo-devel/distinfo sed 's/^X//' >geronimo-devel/distinfo << '751b19bce82661a3f1157976adc2a601' XSHA256 (geronimo-jetty8-javaee6-3.0-beta-1-bin.tar.gz) = 759e9404f3d8c0462e27b3348a7847d4dd9715d7ef7abd9736a4e98f41b307ca XSIZE (geronimo-jetty8-javaee6-3.0-beta-1-bin.tar.gz) = 88349321 751b19bce82661a3f1157976adc2a601 echo x - geronimo-devel/pkg-descr sed 's/^X//' >geronimo-devel/pkg-descr << '6f66e0ea27e4c725dd6c787537936a83' XGeronimo is a Java EE 5 application server which is developed by the XApache Software Foundation and it is under the Apache Software License 2.0. X XWWW: http://geronimo.apache.org/ 6f66e0ea27e4c725dd6c787537936a83 exit