summaryrefslogtreecommitdiff
path: root/www/apache/pkg/DEINSTALL
diff options
context:
space:
mode:
authorjlam <jlam>2000-09-06 06:17:55 +0000
committerjlam <jlam>2000-09-06 06:17:55 +0000
commitcccd8e401b05e724290db04da0a1763fb07c08b5 (patch)
treeb6efcdc2a6feefb92f15aeeba13c208f41a5ee48 /www/apache/pkg/DEINSTALL
parentafb7c29cc6b89b5b2e34d6a6ce7245e7454a1188 (diff)
downloadpkgsrc-cccd8e401b05e724290db04da0a1763fb07c08b5.tar.gz
* 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.
Diffstat (limited to 'www/apache/pkg/DEINSTALL')
-rw-r--r--www/apache/pkg/DEINSTALL42
1 files changed, 42 insertions, 0 deletions
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