diff -Nru icinga-web-1.7.1/debian/changelog icinga-web-1.7.1/debian/changelog
--- icinga-web-1.7.1/debian/changelog	2012-08-01 20:40:40.000000000 +0200
+++ icinga-web-1.7.1/debian/changelog	2012-08-02 18:18:38.000000000 +0200
@@ -1,3 +1,10 @@
+icinga-web (1.7.1-4) unstable; urgency=low
+
+  * [3b184da] fixed postrm to avoid breaking on
+              non installed ucf dependency Closes: #683650
+
+ -- Markus Frosch <markus@lazyfrosch.de>  Thu, 02 Aug 2012 17:55:02 +0200
+
 icinga-web (1.7.1-3) unstable; urgency=low
 
   [ language updates by the languages teams ]
diff -Nru icinga-web-1.7.1/debian/icinga-web.postrm icinga-web-1.7.1/debian/icinga-web.postrm
--- icinga-web-1.7.1/debian/icinga-web.postrm	2012-06-29 21:36:19.000000000 +0200
+++ icinga-web-1.7.1/debian/icinga-web.postrm	2012-08-02 18:18:04.000000000 +0200
@@ -31,9 +31,11 @@
 ###
 if [ "$1" = "purge" ]; then
     rm -f /etc/icinga-web/conf.d/database-web.xml
-    ucf --purge /etc/icinga-web/conf.d/database-web.xml
     rm -f /etc/icinga-web/conf.d/database-ido.xml
-    ucf --purge /etc/icinga-web/conf.d/database-ido.xml
+    if which ucf >/dev/null; then
+        ucf --purge /etc/icinga-web/conf.d/database-web.xml
+        ucf --purge /etc/icinga-web/conf.d/database-ido.xml
+    fi
 	rm -rf /var/cache/icinga-web
 	rm -rf /var/log/icinga-web
     db_purge
