#!/bin/sh # $OpenBSD: DEINSTALL,v 1.4 2003/09/01 05:13:17 fgsch Exp $ # # De-installation setup of gnats PATH=/bin:/usr/bin:/sbin:/usr/sbin PREFIX=${PKG_PREFIX:-/usr/local} # Function: remove gnats user account. # do_accts() { echo "" echo "+---------------" echo "| Delete the '_gnats' user account for a full de-installation." echo "| To do this: execute 'user del _gnats' as root." echo "| You can also remove any crontab entries for '_gnats' by" echo "| executing 'crontab -u _gnats -r' as root." echo "+---------------" echo "" } do_configs() { echo "" echo "+---------------" echo "| The existing ${SYSCONFDIR}/gnats-db.conf configuration file" echo "| has NOT been deleted. To do this: execute" echo "| 'rm ${SYSCONFDIR}/gnats-db.conf' as root." echo "+---------------" echo "" } # verify proper execution # if [ $# -ne 2 ]; then echo "usage: $0 distname { DEINSTALL }" >&2 exit 1 fi # Verify/process the command # case $2 in DEINSTALL) do_accts do_configs ;; *) echo "Usage: `basename $0` distname DEINSTALL" >&2 exit 1 ;; esac exit 0