Rerevert the postgresql-9.5 tweak
authorChristoph Berg <myon@debian.org>
Tue, 30 Jun 2015 20:42:08 +0000 (22:42 +0200)
committerChristoph Berg <myon@debian.org>
Tue, 30 Jun 2015 20:42:08 +0000 (22:42 +0200)
We removed all sepgsql hacks from debian/rules and fully rely on this
tweak.

jenkins/generate-pgdg-source

index 6a7ff7ec486167e6f19689a4e45212a72b37ae21..672a86d5d61dd2d16c81fd80a78864f45ec04fd8 100755 (executable)
@@ -3,7 +3,7 @@
 # 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
@@ -160,6 +160,16 @@ case $PACKAGE in
     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