aboutsummaryrefslogtreecommitdiff
path: root/www/pivot-weblog/files/pkg-deinstall.in
diff options
context:
space:
mode:
Diffstat (limited to 'www/pivot-weblog/files/pkg-deinstall.in')
-rw-r--r--www/pivot-weblog/files/pkg-deinstall.in31
1 files changed, 31 insertions, 0 deletions
diff --git a/www/pivot-weblog/files/pkg-deinstall.in b/www/pivot-weblog/files/pkg-deinstall.in
new file mode 100644
index 000000000000..21a6c362a430
--- /dev/null
+++ b/www/pivot-weblog/files/pkg-deinstall.in
@@ -0,0 +1,31 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+case $2 in
+DEINSTALL)
+ ;;
+POST-DEINSTALL)
+ if cmp -s %%PREFIX%%/%%BLOGDIR%%/pivot/pv_cfg_settings.php.default %%PREFIX%%/%%BLOGDIR%%/pivot/pv_cfg_settings.php;
+ then
+ for OBJECT in db templates pv_cfg_settings.php pv_cfg_weblogs.php
+ do
+ rm -rf %%PREFIX%%/%%BLOGDIR%%/pivot/${OBJECT}
+ done
+ rm -f %%PREFIX%%/%%BLOGDIR%%/pivot/pv_cfg_settings.php.default
+ for DIR in images archives
+ do
+ rmdir %%PREFIX%%/%%BLOGDIR%%/${DIR}
+ done
+ rmdir %%PREFIX%%/%%BLOGDIR%%/pivot
+ rmdir %%PREFIX%%/%%BLOGDIR%%/
+ else
+ echo ""
+ echo "Pivot configuration, templates or database is changed and hence not"
+ echo "deleted automatically. If you will *NOT* use this package anymore,"
+ echo "please remove %%PREFIX%%/%%BLOGDIR%% and its contents manually."
+ echo ""
+ fi
+ ;;
+esac