# The MIT License
#
# Copyright (c) 2011,2012 by Michael Prokop <mika@debian.org>
-# Copyright (c) 2012-2014 by Christoph Berg <myon@debian.org>
+# Copyright (c) 2012-2015 by Christoph Berg <myon@debian.org>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
perl -000 -ne 'if (/^(Package: lib.*)/m) { print "$1 "; print "$1\n" if /^(Section: .*)/m; }' \
debian/control
;;
+esac
+
+# tweaks to get packages in older dists working
+case $PACKAGE in
+ postgresql-9.5)
+ case ${distribution:-} in
+ wheezy|squeeze|precise)
+ sed -i -e '/sepgsql\|selinux/d' debian/control debian/rules debian/postgresql-contrib-9.5.install
+ REVERTS="$REVERTS debian/postgresql-contrib-9.5.install"
+ ;;
postgresql-common)
case ${distribution:-} in