5a745305bf
- mkdir -> ${INSTALL_DATA_DIR} - install docs in share/doc/zebra and the examples in share/examples/zebra - ${FOO} -> $FOO in DEINSTALL/INSTALL - better INSTALL script, don't pointlessly install the samples in share/examples/zebra and then into /etc/zebra as well. tell the end user that they're installed in share/examples/zebra and let them deal with it.
27 lines
589 B
Bash
27 lines
589 B
Bash
#!/bin/sh
|
|
# $OpenBSD: DEINSTALL,v 1.2 2000/08/25 01:18:21 brad Exp $
|
|
#
|
|
# zebra deinstallation
|
|
|
|
# exit on errors, use a sane path and prefix
|
|
#
|
|
set -e
|
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
|
CONFIG_DIR=${SYSCONFDIR}
|
|
|
|
if [ -d $CONFIG_DIR ]; then
|
|
echo
|
|
echo "+---------------"
|
|
echo "| To completely deinstall the $1 package you need to perform"
|
|
echo "| this step as root:"
|
|
echo "|"
|
|
echo "| rm -rf $CONFIG_DIR"
|
|
echo "|"
|
|
echo "| Do not do this if you plan on re-installing $1"
|
|
echo "| at some future time."
|
|
echo "+---------------"
|
|
echo
|
|
fi
|
|
|
|
exit 0
|