r12155 - in /tools/gnome-pkg-tools: 1/rules/ubuntu-get-source.mk debian/changelog

lool at users.alioth.debian.org lool at users.alioth.debian.org
Tue Jul 31 12:40:57 UTC 2007


Author: lool
Date: Tue Jul 31 12:40:57 2007
New Revision: 12155

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=12155
Log:
* New ubuntu-get-source Makefile snippet implementing the get-orig-source
  target from the Ubuntu archive.

Added:
    tools/gnome-pkg-tools/1/rules/ubuntu-get-source.mk
Modified:
    tools/gnome-pkg-tools/debian/changelog

Added: tools/gnome-pkg-tools/1/rules/ubuntu-get-source.mk
URL: http://svn.debian.org/wsvn/pkg-gnome/tools/gnome-pkg-tools/1/rules/ubuntu-get-source.mk?rev=12155&op=file
==============================================================================
--- tools/gnome-pkg-tools/1/rules/ubuntu-get-source.mk (added)
+++ tools/gnome-pkg-tools/1/rules/ubuntu-get-source.mk Tue Jul 31 12:40:57 2007
@@ -1,0 +1,26 @@
+# copied from CDBS' buildvars
+DEB_SOURCE_PACKAGE ?= $(strip $(shell egrep '^Source: ' debian/control | cut -f 2 -d ':'))
+DEB_VERSION ?= $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
+DEB_NOEPOCH_VERSION ?= $(shell echo $(DEB_VERSION) | cut -d: -f2-)
+DEB_UPSTREAM_VERSION ?= $(shell echo $(DEB_NOEPOCH_VERSION) | sed 's/-[^-]*$$//')
+
+DEB_SOURCE_PACKAGE_INITIAL ?= $(shell echo $(DEB_SOURCE_PACKAGE) | cut -c 1)
+
+# where to store the resulting .orig tarball
+DEB_TARBALL_DOWNLOAD_DIR ?= ../tarballs
+
+UBUNTU_COMPONENT ?= main
+UBUNTU_DOWNLOAD_URL ?= http://archive.ubuntu.com/ubuntu/pool/$(UBUNTU_COMPONENT)/$(DEB_SOURCE_PACKAGE_INITIAL)/$(DEB_SOURCE_PACKAGE)/$(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.tar.gz
+
+UBUNTU_DOWNLOAD_COMMAND ?= wget -N -nv -T10 -t1 -O $(DEB_TARBALL_DOWNLOAD_DIR)/$(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.tar.gz $(UBUNTU_DOWNLOAD_URL)
+
+get-orig-source:
+	dh_testdir
+	@@echo 'Source package:                      $(DEB_SOURCE_PACKAGE)'
+	@@echo 'Source package:                      $(DEB_VERSION)'
+	@@echo 'Source version without epoch:        $(DEB_NOEPOCH_VERSION)'
+	@@echo 'Upstream version (for orig tarball): $(DEB_UPSTREAM_VERSION)'
+	mkdir -p $(DEB_TARBALL_DOWNLOAD_DIR)
+	$(UBUNTU_DOWNLOAD_COMMAND)
+
+.PHONY: get-orig-source

Modified: tools/gnome-pkg-tools/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/tools/gnome-pkg-tools/debian/changelog?rev=12155&op=diff
==============================================================================
--- tools/gnome-pkg-tools/debian/changelog (original)
+++ tools/gnome-pkg-tools/debian/changelog Tue Jul 31 12:40:57 2007
@@ -1,11 +1,16 @@
 gnome-pkg-tools (0.12.2) UNRELEASED; urgency=low
 
+  [ Kilian Krause ]
   * NOT RELEASED YET
   * Add bz2 and zip downloads with repacking to 1/rules/gnome-get-source.mk.
   * Add svn downloads from svn.gnome.org.
   * Relax svn revision syntax restrictions.
 
- -- Kilian Krause <kilian at debian.org>  Sat, 21 Jul 2007 18:33:48 +0200
+  [ Loic Minier ]
+  * New ubuntu-get-source Makefile snippet implementing the get-orig-source
+    target from the Ubuntu archive.
+
+ -- Loic Minier <lool at dooz.org>  Tue, 31 Jul 2007 14:40:28 +0200
 
 gnome-pkg-tools (0.12.1) unstable; urgency=low
 




More information about the pkg-gnome-commits mailing list