summaryrefslogtreecommitdiff
path: root/mail/sq-squirrelspell/pkg/DEINSTALL
diff options
context:
space:
mode:
authorzuntum <zuntum>2001-11-01 00:57:41 +0000
committerzuntum <zuntum>2001-11-01 00:57:41 +0000
commit0b6b506536c1ff50f1531d26be2fccfe86c74335 (patch)
tree93b6296152ccfbaa88b43de043b2d69ce6e63fc5 /mail/sq-squirrelspell/pkg/DEINSTALL
parent1b9f41a39161bad144fdeb94a0e51fa8ba7c309a (diff)
downloadpkgsrc-0b6b506536c1ff50f1531d26be2fccfe86c74335.tar.gz
Move pkg/ files into package's toplevel directory
Diffstat (limited to 'mail/sq-squirrelspell/pkg/DEINSTALL')
-rw-r--r--mail/sq-squirrelspell/pkg/DEINSTALL94
1 files changed, 0 insertions, 94 deletions
diff --git a/mail/sq-squirrelspell/pkg/DEINSTALL b/mail/sq-squirrelspell/pkg/DEINSTALL
deleted file mode 100644
index f030fa455d4..00000000000
--- a/mail/sq-squirrelspell/pkg/DEINSTALL
+++ /dev/null
@@ -1,94 +0,0 @@
-#!/bin/sh
-#
-# $NetBSD: DEINSTALL,v 1.2 2001/07/13 07:09:19 jlam Exp $
-
-PKGNAME=$1
-STAGE=$2
-
-CAT="@CAT@"
-CMP="@CMP@"
-RM="@RM@"
-RMDIR="@RMDIR@"
-TRUE="@TRUE@"
-
-SMDIR=${PKG_PREFIX}/@SMDIR@
-CONFDIR=${SMDIR}/plugins/squirrelspell
-SAMPLECONFDIR=${CONFDIR}
-
-case ${STAGE} in
-DEINSTALL)
- # Remove configuration files if they don't differ from the default
- # config file.
- #
- FILE=${CONFDIR}/sqspell_config.php
- SAMPLEFILE=${CONFDIR}/sqspell_config.dist
- if ${CMP} -s ${FILE} ${SAMPLEFILE}
- then
- ${RM} -f ${FILE}
- fi
- ;;
-
-POST-DEINSTALL)
- modified_files=''
- for FILE in \
- ${CONFDIR}/sqspell_config.php
- do
- if [ -f ${FILE} ]
- then
- modified_files="${modified_files} ${FILE}"
- fi
- done
-
- ${RMDIR} ${CONFDIR} 2>/dev/null || ${TRUE}
-
- existing_dirs=''
- for dir in ${CONFDIR}
- do
- if [ -d ${dir} ]
- then
- existing_dirs="${existing_dirs} ${dir}"
- fi
- done
-
- if [ -n "${modified_files}" -o -n "${existing_dirs}" ]
- then
- ${CAT} << EOF
-===========================================================================
-If you won't be using ${PKGNAME} any longer, you may want to remove:
-EOF
- if [ -n "${modified_files}" ]
- then
- ${CAT} << EOF
-
- * the following files:
-
-EOF
- for file in ${modified_files}
- do
- echo " ${file}"
- done
- fi
- if [ -n "${existing_dirs}" ]
- then
- ${CAT} << EOF
-
- * the following directories:
-
-EOF
- for dir in ${existing_dirs}
- do
- echo " ${dir}"
- done
- fi
- ${CAT} << EOF
-===========================================================================
-EOF
- fi
- ;;
-
-*)
- echo "Unexpected argument: ${STAGE}"
- exit 1
- ;;
-esac
-exit 0