[pkg-horde] [SCM] Debian Horde Packages repository: turba2 package branch, debian-sid, updated. d02df5a5b91056f25063d30f5308fba1607615a2
Gregory Colpart
reg at foulademer.gcolpart.com
Wed Oct 21 00:47:45 UTC 2009
The following commit has been merged in the debian-sid branch:
commit 7566ea07bb7b280a41f2c43b576f78600d53d11b
Author: Gregory Colpart <reg at foulademer.gcolpart.com>
Date: Wed Oct 21 02:17:54 2009 +0200
Add "Git patches" stuff in debian/rules
diff --git a/debian/changelog b/debian/changelog
index 670b3b9..008612d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ turba2 (2.3.2-1) unstable; urgency=low
* New upstream release.
* Correct Gitweb URL in Vcs-Browser field.
* Update to standards version 3.8.3, no further required changes.
+ * Add "Git patches" stuff in debian/rules.
[ Mathieu Parent ]
* Added me to uploaders
@@ -12,7 +13,7 @@ turba2 (2.3.2-1) unstable; urgency=low
(See https://www.intevation.de/roundup/kolab/issue3758)
* Change my email address, as I am now Debian developer
- -- Gregory Colpart <reg at debian.org> Wed, 21 Oct 2009 01:54:37 +0200
+ -- Gregory Colpart <reg at debian.org> Wed, 21 Oct 2009 02:17:32 +0200
turba2 (2.3.1-1) unstable; urgency=low
diff --git a/debian/rules b/debian/rules
index 55e60ba..c3cbcef 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,7 +6,48 @@
# List all Files and directories here that should not be copied
COPY_EXCLUDE=^(\{arch\}|configure-stamp|build-stamp|config|COPYING|debian|docs|po|README|scripts|LICENSE)$
-configure: configure-stamp
+
+srcpkg = $(shell dpkg-parsechangelog | sed -ne 's/Source: *//p')
+srcver = $(shell dpkg-parsechangelog | sed -ne 's/Version: *\(.*:\)\?\(.*\)-.*$$/\2/p')
+
+#{{{ generic rules
+
+../$(srcpkg)_$(srcver).orig.tar.gz:
+ @if git rev-parse --git-dir >/dev/null 2>&1; then \
+ pristine-tar checkout $@; \
+ fi
+
+check-tarball: ../$(srcpkg)_$(srcver).orig.tar.gz
+
+.PHONY: check-tarball
+
+#}}}
+#{{{ maintainer stuff
+
+refresh-patches: check-tarball
+ @dh_testdir
+ @echo 'refreshing debian/patches:'
+ @rm -rf '$(CURDIR)'/debian/patches
+ @mkdir -p '$(CURDIR)'/debian/patches
+ @cd '$(CURDIR)'/debian/patches && git format-patch upstream..upstream+patches
+ @echo .
+#}}}
+
+patch: patch-stamp check-tarball
+
+patch-stamp:
+ dh_testdir
+ set -e; test -e patch-stamp || \
+ for i in `ls -1 debian/patches/*.patch || :`; do patch -p1 <$$i > /dev/null; done
+ touch $@
+
+unpatch:
+ dh_testdir
+ set -e; ! test -e patch-stamp || \
+ for i in `ls -1r debian/patches/*.patch || :`; do patch -p1 -R <$$i > /dev/null; done
+ rm -f patch-stamp
+
+configure: configure-stamp patch
configure-stamp:
dh_testdir
touch configure-stamp
@@ -17,7 +58,7 @@ build-stamp: configure-stamp
dh_testdir
touch build-stamp
-clean:
+clean: unpatch
dh_testdir
dh_testroot
dh_clean build-stamp configure-stamp
@@ -105,4 +146,4 @@ binary-indep: build install
dh_builddeb
binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
+.PHONY: patch unpatch build clean binary-indep binary-arch binary install configure
--
Debian Horde Packages repository: turba2 package
More information about the pkg-horde-hackers
mailing list