summaryrefslogtreecommitdiff
path: root/autoscripts
diff options
context:
space:
mode:
Diffstat (limited to 'autoscripts')
-rw-r--r--autoscripts/postinst-ucf4
-rw-r--r--autoscripts/postrm-ucf12
2 files changed, 16 insertions, 0 deletions
diff --git a/autoscripts/postinst-ucf b/autoscripts/postinst-ucf
new file mode 100644
index 00000000..633d3ff3
--- /dev/null
+++ b/autoscripts/postinst-ucf
@@ -0,0 +1,4 @@
+if [ "$1" = "configure" ]; then
+ ucf #UCFSRC# #UCFDEST#
+ ucfr #PACKAGE# #UCFDEST#
+fi
diff --git a/autoscripts/postrm-ucf b/autoscripts/postrm-ucf
new file mode 100644
index 00000000..47237a41
--- /dev/null
+++ b/autoscripts/postrm-ucf
@@ -0,0 +1,12 @@
+if [ "$1" = "purge" ]; then
+ for ext in .ucf-new .ucf-old .ucf-dist ""; do
+ rm -f #UCFDEST#$ext
+ done
+
+ if [ -x `which ucf 2>/dev/null`]; then
+ ucf --purge #UCFDEST#
+ fi
+ if [ -x `which ucfr 2>/dev/null`]; then
+ ucfr --purge #PACKAGE# #UCFDEST#
+ fi
+fi