From cccd8e401b05e724290db04da0a1763fb07c08b5 Mon Sep 17 00:00:00 2001 From: jlam Date: Wed, 6 Sep 2000 06:17:55 +0000 Subject: * This package left cruft after deinstalling. Add DEINSTALL script to remind package admin where the cruft is that may need to be manually removed. * Factor out the making of extra directories and the copying of config files into a separate INSTALL script. * Rearrange the Makefile a bit to handle changes in the PLIST. * Remove erroneous information from pkg/DESCR. --- www/apache/pkg/DEINSTALL | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 www/apache/pkg/DEINSTALL (limited to 'www/apache/pkg/DEINSTALL') diff --git a/www/apache/pkg/DEINSTALL b/www/apache/pkg/DEINSTALL new file mode 100644 index 00000000000..383f52fcc35 --- /dev/null +++ b/www/apache/pkg/DEINSTALL @@ -0,0 +1,42 @@ +#!/bin/sh +# +# $NetBSD: DEINSTALL,v 1.1 2000/09/06 06:17:56 jlam Exp $ + +PKGNAME=$1 +STAGE=$2 + +case ${STAGE} in +DEINSTALL) + ;; +POST-DEINSTALL) + SERVERROOT=${PKG_PREFIX}/etc/httpd + LOGDIR=/var/log/httpd + SPOOLDIR=/var/spool/httpd + + rmdir ${SPOOLDIR}/proxy 2>/dev/null || true + rmdir ${SPOOLDIR} 2>/dev/null || true + rmdir ${LOGDIR} 2>/dev/null || true + rmdir ${SERVERROOT}/ssl.prm 2>/dev/null || true + rmdir ${SERVERROOT}/ssl.key 2>/dev/null || true + rmdir ${SERVERROOT}/ssl.csr 2>/dev/null || true + rmdir ${SERVERROOT}/ssl.crt 2>/dev/null || true + rmdir ${SERVERROOT}/ssl.crl 2>/dev/null || true + rmdir ${SERVERROOT} 2>/dev/null || true + + cat << EOF +=========================================================================== +If you won't be using ${PKGNAME} any longer, you may want to remove the +following directories: + + ${SERVERROOT} + ${LOGDIR} + ${SPOOLDIR} +=========================================================================== +EOF + ;; +*) + echo "Unexpected argument: ${STAGE}" + exit 1 + ;; +esac +exit 0 -- cgit v1.2.3