# 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: # # /usr/ports/www/tomcat6 # /usr/ports/www/tomcat6/files # /usr/ports/www/tomcat6/files/pkg-deinstall.in # /usr/ports/www/tomcat6/files/patch-conf__server.xml # /usr/ports/www/tomcat6/files/pkg-install.in # /usr/ports/www/tomcat6/files/tomcat6.sh.in # /usr/ports/www/tomcat6/Makefile # /usr/ports/www/tomcat6/distinfo # /usr/ports/www/tomcat6/pkg-descr # /usr/ports/www/tomcat6/pkg-plist # echo c - /usr/ports/www/tomcat6 mkdir -p /usr/ports/www/tomcat6 > /dev/null 2>&1 echo c - /usr/ports/www/tomcat6/files mkdir -p /usr/ports/www/tomcat6/files > /dev/null 2>&1 echo x - /usr/ports/www/tomcat6/files/pkg-deinstall.in sed 's/^X//' >/usr/ports/www/tomcat6/files/pkg-deinstall.in << 'END-of-/usr/ports/www/tomcat6/files/pkg-deinstall.in' 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/tomcat55/files/pkg-deinstall.in,v 1.1 2006/02/07 08:50:09 lawrance 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 Xif [ "$2" = "POST-DEINSTALL" ]; then X # If the user exists, then display a message X if pw usershow "${USER}" 2>/dev/null 1>&2; then X echo "To delete the ${USER} user permanently, use 'pw userdel ${USER}'" X fi Xfi X Xexit 0 END-of-/usr/ports/www/tomcat6/files/pkg-deinstall.in echo x - /usr/ports/www/tomcat6/files/patch-conf__server.xml sed 's/^X//' >/usr/ports/www/tomcat6/files/patch-conf__server.xml << 'END-of-/usr/ports/www/tomcat6/files/patch-conf__server.xml' X--- ./conf/server.xml.orig Wed Feb 14 18:01:28 2007 X+++ ./conf/server.xml Wed Feb 14 18:01:20 2007 X@@ -2,7 +2,7 @@ X define subcomponents such as "Valves" at this level. X Documentation at /docs/config/server.html X --> X- X+ X X X X@@ -40,7 +40,7 @@ X APR (HTTP/AJP) Connector: /docs/apr.html X Define a non-SSL HTTP/1.1 Connector on port 8080 X --> X- X X@@ -55,7 +55,7 @@ X --> X X X- X+ X X X