head	1.2;
access;
symbols
	RELEASE_8_3_0:1.1
	RELEASE_9_0_0:1.1
	RELEASE_7_4_0:1.1
	RELEASE_8_2_0:1.1
	RELEASE_6_EOL:1.1
	RELEASE_8_1_0:1.1
	RELEASE_7_3_0:1.1
	RELEASE_8_0_0:1.1
	RELEASE_7_2_0:1.1
	RELEASE_7_1_0:1.1
	RELEASE_6_4_0:1.1
	RELEASE_5_EOL:1.1
	RELEASE_7_0_0:1.1
	RELEASE_6_3_0:1.1
	PRE_XORG_7:1.1
	RELEASE_4_EOL:1.1
	RELEASE_6_2_0:1.1
	RELEASE_6_1_0:1.1
	RELEASE_5_5_0:1.1
	RELEASE_6_0_0:1.1
	RELEASE_5_4_0:1.1
	RELEASE_4_11_0:1.1
	RELEASE_5_3_0:1.1
	RELEASE_4_10_0:1.1
	RELEASE_5_2_1:1.1
	RELEASE_5_2_0:1.1;
locks; strict;
comment	@# @;


1.2
date	2012.04.10.19.24.12;	author jgh;	state dead;
branches;
next	1.1;

1.1
date	2003.11.20.21.25.09;	author glewis;	state Exp;
branches;
next	;


desc
@@


1.2
log
@- port has expired, and is no longer supported upstream

2012-04-10  unsupported upstream, consider www/resin3

PR: ports/165867
Approved by:	maintainer, boris@@tagnet.ru
@
text
@#!/bin/sh
#
# This script does the following.
#
# * Checks if the PID file exists. If it does, it kills the
#   process and removes the PID file.
#
# * Checks if the 'www' user exists. If it does, then it displays
#   a message.
#
# $FreeBSD: ports/www/resin2/files/pkg-deinstall,v 1.1 2003/11/20 21:25:09 glewis Exp $
#
# Borrowed from the jakarta-tomcat port
#

set -e

PID_FILE=%%PID_FILE%%
RUNASUSER=%%RUNASUSER%%

# Make sure we're in the right stage of the process
if [ "$2" = "DEINSTALL" ]; then

    # Kill the process if it is still running
    if [ -s ${PID_FILE} ]; then
        PID=`cat ${PID_FILE}`
        echo -n ">> Killing %%APP_NAME%% process (${PID})..."

        if /bin/kill ${PID} > /dev/null 2> /dev/null ; then
            echo " [ DONE ]"
        else
            echo " [ FAILED ]"
        fi

        echo -n ">> Removing PID file (${PID_FILE})..."

        if rm ${PID_FILE} > /dev/null 2> /dev/null ; then
            echo " [ DONE ]"
        else
            echo " [ FAILED ]"
        fi
    fi
fi

if [ "$2" = "POST-DEINSTALL" ]; then
    # If the user exists, then display a message
    if pw usershow "$RUNASUSER" 2>/dev/null 1>&2; then
        echo "To delete the $RUNASUSER user permanently, use 'pw userdel $RUNASUSER'"
    fi
fi

exit 0
@


1.1
log
@. Avoid conflict between resin2 and resin3
. Fix resin{2,3}ctl first line (perl path)
. Pid file is no more created in the Makefile
. New resin.sh startup script, manages pid file
. pkg-[de]install and pkg-message are now generated
. Do not write anything after including bsd.port.post.mk
. Packages are now supported (reported by Arcadius Ahouansou)
. Integration with apxs for [de]activating mod_caucho

PR:		57566
Submitted by:	Jean-Baptiste Quenot <jbq@@caraldi.com> (maintainer)
@
text
@d11 1
a11 1
# $FreeBSD: ports/www/jakarta-tomcat5/pkg-deinstall,v 1.1 2003/08/13 11:39:38 znerd Exp $
@

