1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/www/horde-devel/pkg-deinstall
Ying-Chieh Liao 42d7a469cd upgrade to RC3
PR:		32516
Submitted by:	maintainer
2001-12-12 20:09:16 +00:00

14 lines
420 B
Bash

#!/bin/sh
# Try to restore httpd.conf when deinstalling Horde
if [ x$2 != xDEINSTALL ]; then
exit
fi
if [ -f ${PKG_PREFIX}/etc/apache/httpd.conf.beforeHorde ] ; then
echo "Restoring httpd.conf..."
cp ${PKG_PREFIX}/etc/apache/httpd.conf ${PKG_PREFIX}/etc/apache/httpd.conf.deinstHorde
perl -pi -e "s:Include ${PKG_PREFIX}/etc/horde:# Include ${PKG_PREFIX}/etc/horde:g" \
${PKG_PREFIX}/etc/apache/httpd.conf
fi