@extraaaaaaaaaaaaaaaaa ...

ok dhartmei@ jolan@ brad@ for their respective port;
This commit is contained in:
xsa 2004-04-15 07:34:11 +00:00
parent 979f30e751
commit 575015faec
6 changed files with 70 additions and 53 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.1 2004/01/07 14:57:34 dhartmei Exp $
# $OpenBSD: DEINSTALL,v 1.2 2004/04/15 07:34:11 xsa Exp $
#
# milter-regex de-installation
@ -8,15 +8,17 @@ DIR=/var/spool/milter-regex
USER=_milter-regex
GROUP=_milter-regex
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need to perform"
echo "| these steps as root:"
echo "|"
echo "| userdel $USER"
echo "| groupdel $GROUP"
echo "| rm -rf $DIR"
echo "+---------------"
echo
if [ ${PKG_DELETE_EXTRA} != Yes -a -d $DIR ]; then
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need to perform"
echo "| these steps as root:"
echo "|"
echo "| userdel $USER"
echo "| groupdel $GROUP"
echo "| rm -rf $DIR"
echo "+---------------"
echo
fi
exit 0

View File

@ -1,3 +1,6 @@
@comment $OpenBSD: PLIST,v 1.1 2003/10/19 17:54:06 dhartmei Exp $
@comment $OpenBSD: PLIST,v 1.2 2004/04/15 07:34:11 xsa Exp $
libexec/milter-regex
man/man8/milter-regex.8
@extraunexec rm -rf /var/spool/milter-regex
@extraunexec userdel _milter-regex
@extraunexec groupdel _milter-regex

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.2 2003/08/08 04:27:09 jolan Exp $
# $OpenBSD: DEINSTALL,v 1.3 2004/04/15 07:34:11 xsa Exp $
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
SYSCONFDIR=${SYSCONFDIR:-/etc}
@ -8,27 +8,27 @@ FFPROXYDIR=/var/ffproxy
FFPROXYUSER=_ffproxy
FFPROXYGROUP=_ffproxy
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need to perform"
echo "| these steps as root:"
echo "|"
if userinfo -e $FFPROXYUSER; then
echo "| userdel $FFPROXYUSER"
if [ ${PKG_DELETE_EXTRA} != Yes -a -f $CONFIG_FILE ]; then
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need to perform"
echo "| these steps as root:"
echo "|"
if userinfo -e $FFPROXYUSER; then
echo "| userdel $FFPROXYUSER"
fi
if groupinfo -e $FFPROXYGROUP; then
echo "| groupdel $FFPROXYGROUP"
fi
echo "| rm -f $CONFIG_FILE"
if [ -d $FFPROXYDIR ]; then
echo "| rm -rf $FFPROXYDIR"
fi
echo "|"
echo "| Do not do this if you plan on re-installing $1"
echo "| at some future time."
echo "+---------------"
echo
fi
if groupinfo -e $FFPROXYGROUP; then
echo "| groupdel $FFPROXYGROUP"
fi
if [ -f $CONFIG_FILE ]; then
echo "| rm $CONFIG_FILE"
fi
if [ -d $FFPROXYDIR ]; then
echo "| rm -rf $FFPROXYDIR"
fi
echo "|"
echo "| Do not do this if you plan on re-installing $1"
echo "| at some future time."
echo "+---------------"
echo
exit 0

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.2 2003/08/15 14:44:05 jolan Exp $
@comment $OpenBSD: PLIST,v 1.3 2004/04/15 07:34:11 xsa Exp $
bin/ffproxy
man/man5/ffproxy.conf.5
man/man7/ffproxy.quick.7
@ -26,3 +26,8 @@ share/examples/ffproxy/html/resolve
@dirrm share/examples/ffproxy/db
@dirrm share/examples/ffproxy
@dirrm share/doc/ffproxy
@cwd ${SYSCONFDIR}
@extra ffproxy.conf
@extraunexec rm -rf /var/ffproxy
@extraunexec userdel _ffproxy
@extraunexec groupdel _ffproxy

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.8 2003/07/08 20:43:21 brad Exp $
# $OpenBSD: DEINSTALL,v 1.9 2004/04/15 07:34:11 xsa Exp $
#
# Squid de-installation
@ -10,21 +10,21 @@ SQUIDDIR=${SQUIDDIR}
SQUIDUSER=_squid
SQUIDGROUP=_squid
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need to perform"
echo "| these steps as root:"
echo "|"
echo "| userdel $SQUIDUSER"
echo "| groupdel $SQUIDGROUP"
echo "| rm -rf $CONFIG_DIR"
echo "| rm -rf $PREFIX/share/squid"
echo "| rm -rf $SQUIDDIR"
echo "| rm -f /var/run/squid.pid"
echo "|"
echo "| Do not do this if you plan on re-installing $1"
echo "| at some future time."
echo "+---------------"
echo
if [ ${PKG_DELETE_EXTRA} != Yes -a -d $CONFIG_DIR ]; then
echo "+---------------"
echo "| To completely deinstall the $1 package you need to perform"
echo "| these steps as root:"
echo "|"
echo "| userdel $SQUIDUSER"
echo "| groupdel $SQUIDGROUP"
echo "| rm -rf $CONFIG_DIR"
echo "| rm -rf $PREFIX/share/squid"
echo "| rm -rf $SQUIDDIR"
echo "| rm -f /var/run/squid.pid"
echo "|"
echo "| Do not do this if you plan on re-installing $1"
echo "| at some future time."
echo "+---------------"
fi
exit 0

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.13 2004/03/03 01:20:42 brad Exp $
@comment $OpenBSD: PLIST,v 1.14 2004/04/15 07:34:11 xsa Exp $
bin/RunAccel
bin/RunCache
bin/squidclient
@ -882,3 +882,10 @@ share/examples/squid/squid.conf
@dirrm share/examples/squid/errors/Bulgarian
@dirrm share/examples/squid/errors
@dirrm share/examples/squid
@extraunexec rm -rf ${SYSCONFDIR}/squid
@extraunexec rm -rf ${PREFIX}/share/squid
@extraunexec rm -rf /var/squid
@cwd /var/run
@extra squid.pid
@extraunexec userdel _squid
@extraunexec groupdel _squid