[Pkg-mysql-commits] r1015 - branches/sid-5.0/debian

Norbert Tretkowski nobse at alioth.debian.org
Tue Nov 20 08:41:19 UTC 2007


Author: nobse
Date: 2007-11-20 08:41:19 +0000 (Tue, 20 Nov 2007)
New Revision: 1015

Modified:
   branches/sid-5.0/debian/changelog
   branches/sid-5.0/debian/rules
Log:
Add get-orig-source target, and prepare for re-adding manpages (which are now under GPL) with the next upstream release.

Modified: branches/sid-5.0/debian/changelog
===================================================================
--- branches/sid-5.0/debian/changelog	2007-11-19 21:12:55 UTC (rev 1014)
+++ branches/sid-5.0/debian/changelog	2007-11-20 08:41:19 UTC (rev 1015)
@@ -5,8 +5,10 @@
   * Remove old optimizations for MySQL 3.23.x, they are no longer required.
     (closes: #436552)
   * New Finnish debconf translation from Esko Arajärvi. (closes: #448776)
+  * Add get-orig-source target, and prepare for re-adding manpages (which are
+    now under GPL) with the next upstream release.
 
- -- Norbert Tretkowski <nobse at debian.org>  Mon, 19 Nov 2007 22:10:50 +0100
+ -- Norbert Tretkowski <nobse at debian.org>  Tue, 20 Nov 2007 09:39:47 +0100
 
 mysql-dfsg-5.0 (5.0.45-3) unstable; urgency=high
 

Modified: branches/sid-5.0/debian/rules
===================================================================
--- branches/sid-5.0/debian/rules	2007-11-19 21:12:55 UTC (rev 1014)
+++ branches/sid-5.0/debian/rules	2007-11-20 08:41:19 UTC (rev 1015)
@@ -15,6 +15,13 @@
 DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEBVERSION = $(shell dpkg-parsechangelog | awk '/^Version: / { print $$2 }' | sed 's/^.*-//' )
 
+# FOO
+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_UPSTREAM_VERSION_MAJOR_MINOR := $(shell echo $(DEB_UPSTREAM_VERSION) | sed -r -n 's/^([0-9]+\.[0-9]+).*/\1/p')
+
 MAKE_J = -j$(shell grep -c processor.* /proc/cpuinfo)
 ifeq (${MAKE_J}, -j0)
   MAKE_J = -j1
@@ -307,6 +314,26 @@
 	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
 
 binary:	binary-indep binary-arch
+
+get-orig-source:
+	@wget -nv -T10 -t3 \
+	  -O /tmp/mysql-$(DEB_UPSTREAM_VERSION).tar.gz \
+	  http://ftp.gwdg.de/pub/misc/mysql/Downloads/MySQL-$(DEB_UPSTREAM_VERSION_MAJOR_MINOR)/mysql-$(DEB_UPSTREAM_VERSION).tar.gz
+	@wget -nv -T10 -t3 \
+	  -O /tmp/refman-$(DEB_UPSTREAM_VERSION_MAJOR_MINOR)-en.man.tar.gz \
+	  http://downloads.mysql.com/docs/refman-$(DEB_UPSTREAM_VERSION_MAJOR_MINOR)-en.man.tar.gz
+	@tar xfz /tmp/mysql-$(DEB_UPSTREAM_VERSION).tar.gz -C /tmp
+	@rm -rf /tmp/mysql-$(DEB_UPSTREAM_VERSION)/Docs
+	@rm -rf /tmp/mysql-$(DEB_UPSTREAM_VERSION)/debian
+	@rm -rf /tmp/mysql-$(DEB_UPSTREAM_VERSION)/man
+	@tar xfz /tmp/refman-$(DEB_UPSTREAM_VERSION_MAJOR_MINOR)-en.man.tar.gz -C /tmp/mysql-$(DEB_UPSTREAM_VERSION)
+	@mv /tmp/mysql-$(DEB_UPSTREAM_VERSION)/refman-$(DEB_UPSTREAM_VERSION_MAJOR_MINOR)-en.man /tmp/mysql-$(DEB_UPSTREAM_VERSION)/man
+	@mv /tmp/mysql-$(DEB_UPSTREAM_VERSION) /tmp/$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).orig
+	@cd /tmp ; tar czf $(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.tar.gz $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).orig
+	@rm -f /tmp/mysql-$(DEB_UPSTREAM_VERSION).tar.gz
+	@rm -f /tmp/refman-$(DEB_UPSTREAM_VERSION_MAJOR_MINOR)-en.man.tar.gz
+	@rm -rf /tmp/$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).orig
+	
 .PHONY: clean clean-patched configure build binary binary-indep binary-arch install patch unpatch
 
 # vim: ts=8




More information about the Pkg-mysql-commits mailing list