diff options
author | jlam <jlam@pkgsrc.org> | 2003-08-30 18:40:06 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2003-08-30 18:40:06 +0000 |
commit | 80f85d8b31c9ab88a09990bc40cbe9345ed64dd6 (patch) | |
tree | 3c75c2447e63daf0817fd7b353d6624caf2356ab /comms/efax/DEINSTALL | |
parent | 00d8bda72f945075f39d7c813dbdb1fbab47084f (diff) | |
download | pkgsrc-80f85d8b31c9ab88a09990bc40cbe9345ed64dd6.tar.gz |
Convert to use bsd.pkg.install.mk.
Diffstat (limited to 'comms/efax/DEINSTALL')
-rw-r--r-- | comms/efax/DEINSTALL | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/comms/efax/DEINSTALL b/comms/efax/DEINSTALL index 948e9e1e29d..41c1de7a977 100644 --- a/comms/efax/DEINSTALL +++ b/comms/efax/DEINSTALL @@ -1,17 +1,22 @@ #!/bin/sh # -if [ -d /var/spool/efax ]; then - filecount="`find /var/spool/efax -type f 2>/dev/null | wc -l`" - if [ $filecount -eq 0 ]; then - echo "Removing empty efax spool directories..." - rm -r /var/spool/efax - fi -fi +# $NetBSD: DEINSTALL,v 1.2 2003/08/30 18:40:06 jlam Exp $ -if [ -d /var/log/efax ]; then - filecount="`find /var/log/efax -type f 2>/dev/null | wc -l`" - if [ $filecount -eq 0 ]; then - echo "Removing empty efax log directories..." - rm -r /var/log/efax +case "$1" in +DEINSTALL) + if [ -d /var/spool/efax ]; then + filecount=`${FIND} /var/spool/efax -type f 2>/dev/null | wc -l` + if [ $filecount -eq 0 ]; then + ${ECHO} "Removing empty efax spool directories..." + ${RM} -r /var/spool/efax + fi + fi + if [ -d /var/log/efax ]; then + filecount=`${FIND} /var/log/efax -type f 2>/dev/null | wc -l` + if [ $filecount -eq 0 ]; then + ${ECHO} "Removing empty efax log directories..." + ${RM} -r /var/log/efax + fi fi -fi + ;; +esac |