3463251978
Quagga is a routing software suite, providing implementations of OSPFv2, OSPFv3, RIP v1 and v2, RIPv3 and BGPv4 for Unix platforms, particularly FreeBSD and Linux and also NetBSD, to mention a few. Quagga is a fork of GNU Zebra which was developed by Kunihiro Ishiguro. The Quagga tree aims to build a more involved community around Quagga than the current centralized model of GNU Zebra. WWW: http://www.quagga.net/
36 lines
860 B
Bash
36 lines
860 B
Bash
#!/bin/sh
|
|
# $OpenBSD: DEINSTALL,v 1.1.1.1 2003/12/11 19:00:59 david Exp $
|
|
#
|
|
# Quagga de-installation
|
|
|
|
# exit on errors, use a sane path and prefix
|
|
#
|
|
set -e
|
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
|
PREFIX=${PKG_PREFIX:-/usr/local}
|
|
CONFIG_DIR=${CONFDIR}
|
|
STATE_DIR=${STATEDIR}
|
|
QUAGGAUSER=_quagga
|
|
QUAGGAGROUP=_quagga
|
|
|
|
echo
|
|
echo "+---------------"
|
|
echo "| To completely deinstall the $1 package you need"
|
|
echo "| to perform these steps as root:"
|
|
echo "|"
|
|
echo "| userdel $QUAGGAUSER"
|
|
echo "| groupdel $QUAGGAGROUP"
|
|
if [ "$PKG_DELETE_EXTRA" != Yes -a -d $CONFIG_DIR ]; then
|
|
echo "| rm -rf $CONFIG_DIR"
|
|
fi
|
|
if [ "$PKG_DELETE_EXTRA" != Yes -a -d $STATE_DIR ]; then
|
|
echo "| rm -rf $STATE_DIR"
|
|
fi
|
|
echo "|"
|
|
echo "| Do not do this if you plan on re-installing $1"
|
|
echo "| at some future time."
|
|
echo "+---------------"
|
|
echo
|
|
|
|
exit 0
|