[Pkg-voip-commits] r7703 - /mumble/trunk/debian/backports/lenny

slicer-guest at alioth.debian.org slicer-guest at alioth.debian.org
Tue Oct 20 16:09:52 UTC 2009


Author: slicer-guest
Date: Tue Oct 20 16:09:51 2009
New Revision: 7703

URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=7703
Log:
Updated lenny backport script

Modified:
    mumble/trunk/debian/backports/lenny

Modified: mumble/trunk/debian/backports/lenny
URL: http://svn.debian.org/wsvn/pkg-voip/mumble/trunk/debian/backports/lenny?rev=7703&op=diff
==============================================================================
--- mumble/trunk/debian/backports/lenny (original)
+++ mumble/trunk/debian/backports/lenny Tue Oct 20 16:09:51 2009
@@ -1,7 +1,55 @@
-#! /bin/bash
+#! /usr/bin/perl
 #
 # Hook for automatic backports.
 #
 # Target dist: Debian Lenny
 
-sed -i -e 's#^\(Build-Depends:.*\)libboost-dev ([^)]*)\(.*\)$#\1libboost-dev\2#' debian/control
+use warnings;
+use strict;
+use Carp;
+
+open(F, "debian/control") or croak;
+my $first = 1;
+my $file;
+my $field = '';
+while(<F>) {
+  chomp();
+  if (/^(\S+):/) {
+    $field = $1;
+  }
+  if ($first) {
+    $file .= $_;
+    $first = 0;
+  } elsif (/^$/) {
+    $file .= "\n";
+  } elsif ($field eq 'Description' || /^[^ ]/ || /^$/) {
+    $file .= "\n" . $_;
+  } else {
+    $file .= $_;
+  }
+}
+close(F);
+
+$file .= "\n";
+
+$file =~ s/\nBuild-Depends: [^\n]+/\nBuild-Depends: debhelper (>= 5.0.51~), po-debconf, libboost-dev, libqt4-dev, libssl-dev, libzeroc-ice32-dev, ice32-translators, protobuf-compiler, libprotobuf-dev, libcap-dev/g;
+$file =~ s/Package: mumble(-11x|)\nArchitecture: any/Package: mumble$1\nArchitecture: none/g;
+
+open(F, ">debian/control") or croak;
+print F $file;
+close(F);
+
+$file = '';
+open(F, "debian/rules") or croak;
+while (<F>) {
+  $file .= $_;
+}
+close(F);
+
+$file =~ s/CONFIG.=no-bundled-speex/CONFIG*=no-client/;
+$file =~ s/\nifeq \(.+?\nendif/\n/smg;
+
+open(F, ">debian/rules") or croak;
+print F $file;
+close(F);
+




More information about the Pkg-voip-commits mailing list