summaryrefslogtreecommitdiff
path: root/debian/backports/sarge
diff options
context:
space:
mode:
Diffstat (limited to 'debian/backports/sarge')
-rwxr-xr-xdebian/backports/sarge13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/backports/sarge b/debian/backports/sarge
new file mode 100755
index 0000000..c71a971
--- /dev/null
+++ b/debian/backports/sarge
@@ -0,0 +1,13 @@
+#!/bin/bash
+#
+# Hook for automatic backports at buildserver.net
+#
+# Target dist: Debian Sarge
+
+# Downgrade to debhelper 4 compat
+sed -i -e 's#^\(.*DH_COMPAT\)=.*$#\1=4#' debian/rules
+sed -i -e 's#^\(Build-Depends:.*\)debhelper[^,$]*[\ ,$]\+\(.*\)$#\1debhelper (>= 4.2.32), \2#' debian/control
+
+echo 4 >debian/compat
+
+exit 0