41 lines
1.1 KiB
Bash
41 lines
1.1 KiB
Bash
#!/bin/sh
|
|
#
|
|
# $OpenBSD: DEINSTALL,v 1.2 2003/02/23 22:36:37 danh Exp $
|
|
#
|
|
# mod_frontpage de-installation
|
|
|
|
set -e
|
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
|
PREFIX=${PKG_PREFIX:-/usr/local}
|
|
CONF=`apxs -q SYSCONFDIR`/httpd.conf
|
|
MODULE=/usr/lib/apache/modules/mod_frontpage.so
|
|
|
|
rm -f ${MODULE}
|
|
apxs -e -A -n 'frontpage' mod_frontpage.so 2> /dev/null
|
|
|
|
echo
|
|
echo "+---------------"
|
|
echo "| To completely deinstall the $1 package you"
|
|
echo "| need to perform these steps as root:"
|
|
echo "|"
|
|
echo "| * edit ${CONF}"
|
|
echo "|"
|
|
echo "| * remove, or leave commented out, the LoadModule directive"
|
|
echo "| that refers to this module"
|
|
echo "|"
|
|
echo "| * remove, or comment out, the following directives:"
|
|
echo "| FrontpageEnable, FrontpageDisable,"
|
|
echo "| FrontpageAdminEnable, FrontpageAdminDisable"
|
|
if [ -d ${PREFIX}/frontpage ]; then
|
|
echo "|"
|
|
echo "| Optionally, you may also delete the Microsoft FrontPage Server"
|
|
echo "| Extensions located in ${PREFIX}/frontpage."
|
|
fi
|
|
echo "|"
|
|
echo "| Do not do this if you plan on re-installing $1"
|
|
echo "| package at some future time."
|
|
echo "+---------------"
|
|
echo
|
|
|
|
exit 0
|