[Pkg-voip-commits] r2209 - ari/trunk/debian
Kilian Krause
kilian at costa.debian.org
Wed Aug 9 18:29:58 UTC 2006
Author: kilian
Date: 2006-08-09 18:29:57 +0000 (Wed, 09 Aug 2006)
New Revision: 2209
Modified:
ari/trunk/debian/changelog
ari/trunk/debian/rules
Log:
add get-orig-source target
Modified: ari/trunk/debian/changelog
===================================================================
--- ari/trunk/debian/changelog 2006-08-09 17:55:12 UTC (rev 2208)
+++ ari/trunk/debian/changelog 2006-08-09 18:29:57 UTC (rev 2209)
@@ -1,8 +1,11 @@
ari (00.10.02-1) UNRELEASED; urgency=low
* NOT RELEASED YET
-
- [ Diego Iastrubni ]
- * First release
-
- -- Diego Iastrubni <diego.iastrubni at xorcom.com> Thu, 8 Aug 2006 12:00:00 +0200
+
+ [ Diego Iastrubni ]
+ * Initial release
+
+ [ Kilian Krause ]
+ * Add get-orig-source target
+
+ -- Kilian Krause <kilian at debian.org> Wed, 9 Aug 2006 20:29:15 +0200
Modified: ari/trunk/debian/rules
===================================================================
--- ari/trunk/debian/rules 2006-08-09 17:55:12 UTC (rev 2208)
+++ ari/trunk/debian/rules 2006-08-09 18:29:57 UTC (rev 2209)
@@ -11,6 +11,14 @@
-include /usr/share/dpatch/dpatch.make
+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$$//')
+
+FILENAME := ari_$(UPVERSION).orig.tar.gz
+URL := http://www.littlejohnconsulting.com/files/ari_$(UPVERSION).tar.gz
+# http://www.littlejohnconsulting.com/files/ari_00.10.02.tar.gz
+
CFLAGS = -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
@@ -84,5 +92,15 @@
dh_builddeb
binary: binary-indep binary-arch
+
+print-version:
+ @@echo "Debian version: $(DEBVERSION)"
+ @@echo "Upstream version: $(UPVERSION)"
+
+get-orig-source:
+ @@dh_testdir
+ @@[ -d ../tarballs/. ]||mkdir -p ../tarballs
+ @@echo Downloading $(FILENAME) from $(URL) ...
+ @@wget -N -nv -T10 -t3 -O ../tarballs/$(FILENAME) $(URL)
.PHONY: build clean binary-indep binary-arch binary install configure patch unpatch
More information about the Pkg-voip-commits
mailing list