[Pkg-voip-commits] r6414 - in /freepbx-core/trunk: ./ debian/rules

odd_bloke-guest at alioth.debian.org odd_bloke-guest at alioth.debian.org
Wed Nov 12 14:19:52 UTC 2008


Author: odd_bloke-guest
Date: Wed Nov 12 14:19:51 2008
New Revision: 6414

URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=6414
Log:
Added debian/rules containing just a get-orig-source.

Added:
    freepbx-core/trunk/debian/rules   (with props)
Modified:
    freepbx-core/trunk/   (props changed)

Propchange: freepbx-core/trunk/
------------------------------------------------------------------------------
--- bzr:file-ids (original)
+++ bzr:file-ids Wed Nov 12 14:19:51 2008
@@ -1,1 +1,1 @@
-debian/changelog	changelog-20081112122426-x7cu69bxibhlakni-1
+debian/rules	rules-20081112122444-139r8yb4axmbuquu-1

Propchange: freepbx-core/trunk/
------------------------------------------------------------------------------
--- bzr:revision-id:v3-trunk1 (original)
+++ bzr:revision-id:v3-trunk1 Wed Nov 12 14:19:51 2008
@@ -1,2 +1,3 @@
 2 daniel at daniel-watkins.co.uk-20081112122419-zyl0378e811hikua
 3 daniel at daniel-watkins.co.uk-20081112122435-z1axzyvm4pq1svkq
+4 daniel at daniel-watkins.co.uk-20081112141939-beobc3zinuhhz8bk

Propchange: freepbx-core/trunk/
------------------------------------------------------------------------------
--- bzr:revision-info (original)
+++ bzr:revision-info Wed Nov 12 14:19:51 2008
@@ -1,4 +1,4 @@
-timestamp: 2008-11-12 12:24:35.471999884 +0000
+timestamp: 2008-11-12 14:19:39.150000095 +0000
 committer: Daniel Watkins <daniel at daniel-watkins.co.uk>
 properties: 
 	branch-nick: freepbx-core

Added: freepbx-core/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-voip/freepbx-core/trunk/debian/rules?rev=6414&op=file
==============================================================================
--- freepbx-core/trunk/debian/rules (added)
+++ freepbx-core/trunk/debian/rules Wed Nov 12 14:19:51 2008
@@ -1,0 +1,25 @@
+#!/usr/bin/make -f
+
+VERSION = $(shell dpkg-parsechangelog | grep "^Version" | cut -d" " -f2)
+UPSTREAM_VERSION = $(shell echo $(VERSION) | cut -d"-" -f1)
+MAJOR_VERSION = $(shell echo $(VERSION) | cut -d"." -f1-2)
+
+XML = "http://mirror.freepbx.org/modules-$(MAJOR_VERSION).xml"
+MODULE_STUB = http://mirror.freepbx.org/modules/
+MODULES = dashboard featurecodeadmin fw_ari fw_fop voicemail core framework
+
+UPSTREAM_DIR=freepbx-core-$(UPSTREAM_VERSION)
+ORIG_TARBALL=freepbx-core_$(UPSTREAM_VERSION)+$(shell date +%Y%m%d).orig.tar.gz
+
+get-orig-source:
+	wget $(XML)
+	mkdir $(UPSTREAM_DIR)
+	for module in $(MODULES); do \
+        location=`./module-location.py modules-2.5.xml $$module`; \
+        tarball=`basename $$location`; \
+        wget $(MODULE_STUB)$$location; \
+        tar zxf $$tarball -C $(UPSTREAM_DIR); \
+        rm $$tarball; \
+    done
+	tar zcf $(ORIG_TARBALL) $(UPSTREAM_DIR)
+	rm -rf $(UPSTREAM_DIR)

Propchange: freepbx-core/trunk/debian/rules
------------------------------------------------------------------------------
    svn:executable = *




More information about the Pkg-voip-commits mailing list