summaryrefslogtreecommitdiffstats
path: root/deskutils/horde4-nag/files
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2006-01-06 00:38:13 +0000
committerthierry <thierry@FreeBSD.org>2006-01-06 00:38:13 +0000
commit922106489a63564790d516923e03c8fa28346fa9 (patch)
tree20dad146d367f92c711d016c12e8e3340824db6b /deskutils/horde4-nag/files
parent65a0f264588bfc3e5c26e6b14ba972c45fca49a3 (diff)
downloadFreeBSD-ports-922106489a63564790d516923e03c8fa28346fa9.zip
FreeBSD-ports-922106489a63564790d516923e03c8fa28346fa9.tar.gz
- Replace WITH_APACHE2 by USE_APACHE, rename httpd.conf.xxx to
httpd-xxx.conf and fix configuration if APACHE_VERSION > 20. - Don't use the MCAL back-end by default for Kronolith, it is deprecated. - Deinstall bug reported by John Nielsen <john (at) jnielsen.net>: respect LHORDEDIR. - Fix horde-passwd installation / deinstallation. - Don't bump PORTREVISION, because running installations are not concerned.
Diffstat (limited to 'deskutils/horde4-nag/files')
-rw-r--r--deskutils/horde4-nag/files/pkg-deinstall.in27
1 files changed, 27 insertions, 0 deletions
diff --git a/deskutils/horde4-nag/files/pkg-deinstall.in b/deskutils/horde4-nag/files/pkg-deinstall.in
new file mode 100644
index 0000000..8f85e54
--- /dev/null
+++ b/deskutils/horde4-nag/files/pkg-deinstall.in
@@ -0,0 +1,27 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# Backup Nag config files, if needed.
+
+if [ x$2 != xDEINSTALL ]; then
+ exit
+fi
+
+if [ -z "${PACKAGE_BUILDING}" ]; then
+ for cf in `ls %%NAGDIR%%/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
OpenPOWER on IntegriCloud