[Pkg-voip-commits] r2140 - openser/trunk/debian

Julien Blache jblache at costa.debian.org
Sun Jul 30 13:14:11 UTC 2006


Author: jblache
Date: 2006-07-30 13:14:11 +0000 (Sun, 30 Jul 2006)
New Revision: 2140

Modified:
   openser/trunk/debian/changelog
   openser/trunk/debian/rules
Log:
Emulate debhelper v5 behaviour when building with DH_COMPAT 4 to ease Sarge backports.


Modified: openser/trunk/debian/changelog
===================================================================
--- openser/trunk/debian/changelog	2006-07-30 12:28:55 UTC (rev 2139)
+++ openser/trunk/debian/changelog	2006-07-30 13:14:11 UTC (rev 2140)
@@ -11,11 +11,13 @@
   * debian/rules:
     + Detect TLS/non-TLS sources, and enable TLS build accordingly.
     + get-orig-source will fetch the non-TLS version for the official builds.
+    + Emulate debhelper v5 behaviour for debug symbols when build with
+      DH_COMPAT 4 to ease Sarge backports.
   * debian/control:
     + Drop build-dependency on libssl-dev for official Debian builds.
     + Simplify dependencies/conflicts.
 
- -- Julien BLACHE <jblache at debian.org>  Sun, 30 Jul 2006 12:34:59 +0200
+ -- Julien BLACHE <jblache at debian.org>  Sun, 30 Jul 2006 15:13:07 +0200
 
 openser (1.1.0-1) unstable; urgency=low
 

Modified: openser/trunk/debian/rules
===================================================================
--- openser/trunk/debian/rules	2006-07-30 12:28:55 UTC (rev 2139)
+++ openser/trunk/debian/rules	2006-07-30 13:14:11 UTC (rev 2140)
@@ -2,6 +2,11 @@
 # Sample debian/rules that uses debhelper.
 # GNU copyright 1997 to 1999 by Joey Hess.
 
+COMPAT_LVL = $(shell cat debian/compat)
+ALL_PACKAGES = openser openser-mysql-module openser-postgres-module \
+	openser-jabber-module openser-cpl-module openser-radius-modules \
+	openser-unixodbc-module
+
 DEBVERSION:=$(shell head -n 1 debian/changelog \
                     | sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
 UPVERSION:=$(shell echo $(DEBVERSION) | sed -e 's/^.*://' -e 's/-[0-9.]*$$//' -e 's/.dfsg$$//')
@@ -13,9 +18,6 @@
 # Uncomment this to turn on verbose mode.
 # export DH_VERBOSE=1
 
-# This is the debhelper compatibility version to use.
-# export DH_COMPAT=4
-
 # Include dpatch rules
 include /usr/share/dpatch/dpatch.make
 
@@ -193,7 +195,17 @@
 	dh_installinfo
 	dh_installchangelogs
 	dh_link
+# Emulate debhelper v5 behaviour for Sarge backports with debhelper v4
+ifeq ($(COMPAT_LVL),4)
+	dh_strip --keep-debug
+	mkdir -p $(CURDIR)/debian/openser-dbg/usr/lib/debug
+	for p in $(ALL_PACKAGES); do \
+		tar cf - -C $(CURDIR)/debian/$$p/usr/lib/debug . | tar xf - -C $(CURDIR)/debian/openser-dbg/usr/lib/debug \
+		&& rm -rf $(CURDIR)/debian/$$p/usr/lib/debug; \
+	done
+else
 	dh_strip --dbg-package=openser-dbg
+endif
 	dh_compress 
 	dh_fixperms
 	dh_installdeb




More information about the Pkg-voip-commits mailing list