;;
esac
case $PACKAGE in
- postgresql-8.?|postgresql-9.?|prometheus-sql-exporter)
+ postgresql-8.?|postgresql-9.?)
case $distribution in buster)
echo >> debian/rules
echo "# dh_dwz is broken in buster for manual debug packages (#939164)" >> debian/rules
esac
;;
+ prometheus-sql-exporter)
+ case ${distribution:-} in
+ bookworm|noble|mantic|jammy)
+ sed -i -e '/fix-missing-new-collector/d' debian/patches/series
+ TWEAK+=("Disable fix-missing-new-collector.")
+ ;;
+ esac
+ ;;
+
repmgr)
# Add libedit-dev to support building with postgres < 13
sed -i -e 's/libreadline-dev,/libreadline-dev,\n libedit-dev,/' debian/control*