src/debian/README.source -text
src/debian/compat -text
src/debian/dsf-helper/ucf-choices.templates -text
+src/debian/dsf-in/db-postgresql.postrm -text
src/debian/dsf-in/plugin-mailman.postrm -text
src/debian/dsf-in/plugin-mailman.preinst -text
src/debian/dsf-in/plugin-scmbzr.init.d -text
* Generate initial list of countries and codes from the current known
data (from isoquery) at build time (closes: #565240). Thanks to David
Prévot <david@tilapin.org> for the bulk of the patch.
+ * Remove UCF-generated files on purge (closes: #672256).
- -- Roland Mas <lolando@debian.org> Mon, 21 May 2012 15:13:05 +0200
+ -- Roland Mas <lolando@debian.org> Mon, 21 May 2012 15:49:11 +0200
fusionforge (5.1.50+svn15410-1) experimental; urgency=low
ucf --debconf-ok ${pg_hba_dir}/pg_hba.conf.@OLDPACKAGE@-new ${pg_hba_dir}/pg_hba.conf
fi
# register it with ucfr/ucfq so that next time the normal ucf template is used, in case of user changes (or another package's)
- ucfr @OLDPACKAGE@-db-postgresql /etc/postgresql/9.0/main/pg_hba.conf
+ ucfr @OLDPACKAGE@-db-postgresql ${pg_hba_dir}/pg_hba.conf
rm ${pg_hba_dir}/pg_hba.conf.@OLDPACKAGE@-new
# Make sure the database accepts connections from these new users
--- /dev/null
+#! /bin/bash
+# postrm script for @OLDPACKAGE@
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postrm> `remove'
+# * <postrm> `purge'
+# * <old-postrm> `upgrade' <new-version>
+# * <new-postrm> `failed-upgrade' <old-version>
+# * <new-postrm> `abort-install'
+# * <new-postrm> `abort-install' <old-version>
+# * <new-postrm> `abort-upgrade' <old-version>
+# * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ purge)
+ for i in $(ucfq -w @OLDPACKAGE@-db-postgresql|cut -d: -f1|grep pg_hba.conf) ; do
+ ucf --purge $i
+ ucfr --purge @OLDPACKAGE@-db-postgresql $i
+ done
+ ;;
+
+ remove)
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 0
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+exit 0
/usr/share/@OLDPACKAGE@/bin/install-db.sh purge-files
ucf --debconf-ok ${pg_hba_dir}/pg_hba.conf.@OLDPACKAGE@-new ${pg_hba_dir}/pg_hba.conf
rm ${pg_hba_dir}/pg_hba.conf.@OLDPACKAGE@-new
- ucf --purge ${pg_hba_dir}/pg_hba.conf
- ucfr --purge @OLDPACKAGE@-db-postgresql ${pg_hba_dir}/pg_hba.conf
pg_name=postgresql-$pg_version
# Trying "postgresql" init script...