[Pkg-voip-commits] r2689 - zaptel/trunk/debian

Tzafrir Cohen tzafrir-guest at alioth.debian.org
Sun Nov 12 01:57:47 CET 2006


Author: tzafrir-guest
Date: 2006-11-12 01:57:47 +0100 (Sun, 12 Nov 2006)
New Revision: 2689

Modified:
   zaptel/trunk/debian/rules
Log:
Several zaptel-1.4 compatibility changes:
 * Different package naming for beta versions.
 * torisa.h is now obsolete
 * Need to run ./configure before make.


Modified: zaptel/trunk/debian/rules
===================================================================
--- zaptel/trunk/debian/rules	2006-11-12 00:40:11 UTC (rev 2688)
+++ zaptel/trunk/debian/rules	2006-11-12 00:57:47 UTC (rev 2689)
@@ -30,10 +30,11 @@
 
 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$$//')
+DEBTARVERSION:=$(shell echo $(DEBVERSION) | sed -e 's/^.*://' -e 's/-[0-9.]*$$//')
+UPVERSION:=$(shell echo $(DEBTARVERSION) | sed -e 's/~beta/.0-beta/' -e 's/.dfsg$$//')
 
 UPFILENAME := zaptel_$(UPVERSION).orig.tar.gz
-FILENAME := zaptel_$(UPVERSION).dfsg.orig.tar.gz
+FILENAME := zaptel_$(DEBTARVERSION).orig.tar.gz
 URL := http://ftp2.digium.com/pub/zaptel/releases/zaptel-$(UPVERSION).tar.gz
 
 MOD_EXAMPLES_DIR:=modexamples
@@ -49,6 +50,7 @@
 	dh_testdir
 	dh_testroot
 	dh_clean -k
+	if [ -x ./configure ]; then ./configure; fi
 	make modules KERNEL_SOURCES=$(KSRC) MODVERSIONS=detect KERNEL=linux-$(KVERS)
 	make install-modules KERNELRELEASE=$(KVERS) INSTALL_PREFIX=$(CURDIR)/debian/$(PKGNAME)
 ifeq (2.6,$(shell echo $(KVERS) | cut -d. -f1-2))
@@ -76,6 +78,7 @@
 build-arch-stamp: configure-stamp 
 	dh_testdir
 	
+	if [ -x ./configure ]; then ./configure; fi
 	$(MAKE) programs
 	$(MAKE) -C xpp/utils
 	touch $@
@@ -133,7 +136,10 @@
 	for dir in build_tools include cwain qozap vzaphfc oct612x wct4xxp xpp zaphfc ztgsm; do \
 	  if [ -d $$dir ]; then cp -r $$dir $(TARDIR); fi; \
 	done
-	dh_install -i zaptel.h torisa.h usr/include/linux/
+	dh_install -i zaptel.h usr/include/linux/
+	if [ -f torisa.h ]; then \
+	  dh_install -i torisa.h usr/include/linux/ ; \
+	fi
 	
 	# Packaging infrastructure
 	cp -r debian/*-modules.* debian/rules debian/changelog debian/copyright\




More information about the Pkg-voip-commits mailing list