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

Kilian Krause kilian at costa.debian.org
Sun Mar 5 08:30:45 UTC 2006


Author: kilian
Date: 2006-03-05 08:30:45 +0000 (Sun, 05 Mar 2006)
New Revision: 1367

Modified:
   zaptel/trunk/debian/rules
Log:
add preliminary get-orig-source target


Modified: zaptel/trunk/debian/rules
===================================================================
--- zaptel/trunk/debian/rules	2006-03-05 08:24:24 UTC (rev 1366)
+++ zaptel/trunk/debian/rules	2006-03-05 08:30:45 UTC (rev 1367)
@@ -71,7 +71,7 @@
 build: build-indep-stamp build-arch-stamp
 build-arch-stamp: configure-stamp 
 	dh_testdir
-
+	
 	$(MAKE) programs
 	touch $@
 
@@ -83,13 +83,13 @@
 	dh_testdir
 	dh_testroot
 	rm -f build-*-stamp configure-stamp
-
+	
 	# Add here commands to clean up after the build process.
 	rm -rf $(MOD_EXAMPLES_DIR)
 	-$(MAKE) clean
-
+	
 	#rm -f debian/manpage.links  debian/manpage.refs debian/*.8
-
+	
 	dh_clean
 
 install: install-arch install-indep
@@ -119,7 +119,7 @@
 	dh_testroot
 	dh_clean -k -i
 	dh_installdirs -i
-
+	
 	# driver source code
 	mkdir -p $(TARDIR)/debian
 	cp Makefile .version *.c *.h *.rbt $(TARDIR)/
@@ -136,7 +136,7 @@
 	mv $(TARDIR)/debian/zaptel-modules.postinst $(TARDIR)/debian/postinst 
 	cp debian/zaptel-modules.postinst $(TARDIR)/debian/postinst
 	cp debian/zaptel-modules.postrm $(TARDIR)/debian/postrm
-
+	
 	tar cjf debian/$(PREFIX)-source/usr/src/$(PREFIX).tar.bz2 \
 	  -C $(TARPARDIR) modules
 ifeq (1,$(USE_BRISTUFF))
@@ -159,7 +159,7 @@
 binary-indep: build install-indep
 	dh_testdir
 	dh_testroot
-
+	
 	dh_installdocs -i
 	dh_installchangelogs -i ChangeLog
 	dh_installexamples -i $(BRISTUFF_EXAMPLES)
@@ -175,9 +175,9 @@
 binary-arch: build install-arch
 	dh_testdir
 	dh_testroot
-
+	
 	#install -m644 debian/$(PREFIX).modprobe.d debian/$(PREFIX)/etc/modprobe.d/$(PREFIX)
-
+	
 	dh_installdocs -a
 	# TODO: this installs a man page for torisatool, which we don't build
 	dh_installman -a doc/* debian/genzaptelconf.8
@@ -199,5 +199,13 @@
 	dh_md5sums -a
 	dh_builddeb -a
 
+get-orig-source:
+	dh_testdir
+	VERSION=`head -n1 debian/changelog| sed -e 's#^.*(.:\(.*\)-.*).*$$#\1#'`
+	FILENAME=zaptel-$(VERSION).orig.tar.gz
+	URL=http://ftp.digium.com/pub/zaptel/zaptel-$(VERSION).tar.gz
+	[ -f ../tarballs/$(FILENAME) ]||exit 0
+	wget -O ../tarballs/$(FILENAME) $(URL)
+
 binary: binary-indep binary-arch
 .PHONY: build clean binary-indep binary-arch binary install configure patch unpatch




More information about the Pkg-voip-commits mailing list