freebsd-ports/www/horde/pkg-deinstall
Thierry Thomas de68a058bf Upgrade to 3.0.
Horde Version 3 differs from the 2.x releases in many ways, including
the following:
	* Full support for groups and arbitrary permissions.
	* Completely rewritten, fully RFC-compliant MIME system with many
	  new MIME viewers.
	* Many i18n improvements, including full charset support for the whole
	  framework.
	* User customizable portal page.
	* Theme support.
	* Global personal categories and category colors.
	* Access (shortcut) keys.
	* Dynamically updating tree menu for applications, including Mozilla
	  sidebar support.
	* XML-based application configuration through a graphical user interface.
	* Forms creation and validation API.
	* Template engine.
	* Crypt API with support for PGP/GPG and S/MIME.
	* XML-RPC and SOAP server and client, experimental SyncML support.
	* Improved notification system.
	* Many new APIs like Compress, Image, PDF, History, iCalendar, SyncML,
	  CLI, Version control, NLS, Timer, and SVG.
	* and many more...

This is a resurrection of the previous www/horde, upgraded from www/horde2.

PR:		ports/75434
Submitted by:	/me
2004-12-26 10:22:58 +00:00

43 lines
1.1 KiB
Bash

#!/bin/sh
#
# $FreeBSD$
#
# Try to restore httpd.conf when deinstalling Horde
if [ x$2 != xDEINSTALL ]; then
exit
fi
if [ -d ${PKG_PREFIX}/etc/apache ] ; then
APACHEDIR=${PKG_PREFIX}/etc/apache
elif [ -d ${PKG_PREFIX}/etc/apache2 ] ; then
APACHEDIR=${PKG_PREFIX}/etc/apache2
fi
if [ -f ${APACHEDIR}/httpd.conf.beforeHorde ] ; then
echo "Restoring httpd.conf..."
cp ${APACHEDIR}/httpd.conf ${APACHEDIR}/httpd.conf.deinstHorde
sed -i.tmp -e "s:Include ${PKG_PREFIX}/etc/horde:# Include ${PKG_PREFIX}/etc/horde:g" \
${APACHEDIR}/httpd.conf
rm ${APACHEDIR}/httpd.conf.tmp
fi
# Backup Horde config files, if needed.
if [ -z "${PACKAGE_BUILDING}" ]; then
for cf in `ls ${PKG_PREFIX}/www/horde/config/*php`; do
diff -bBqw $cf $cf.dist >/dev/null 2>&1
case $? in
0) # original config file, will be deleted by pkg-plist
;;
1) # config file has been updated, must be backuped
cp -p $cf $cf.previous
echo "===> Backing-up..."
echo "---> $cf has been saved ***"
echo "---> as $cf.previous ***"
;;
*) # not found?
;;
esac
done
fi