From: cajus Date: Wed, 4 Apr 2007 10:00:41 +0000 (+0000) Subject: Added possibility to use dpatch. This is for internal packages, only. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d8d6ee977cd07773193f28eb3feb0ae099f1e752;p=gosa.git Added possibility to use dpatch. This is for internal packages, only. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5973 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/debian/control b/debian/control index 39d067dd0..4b38c1680 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: gosa Section: web Priority: optional Maintainer: Cajus Pollmeier -Build-Depends-Indep: debhelper(>= 4.1.16) +Build-Depends-Indep: debhelper(>= 4.1.16), dpatch Standards-Version: 3.7.2.0 Package: gosa diff --git a/debian/rules b/debian/rules index 1106c75cb..71d6555bf 100755 --- a/debian/rules +++ b/debian/rules @@ -7,16 +7,21 @@ export DH_COMPAT=4 # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -build: +build: patch #**** Off we go... **** -clean: +clean: clean-patched unpatch +clean-patched: clean-patched dh_testdir rm -f install-stamp -rm -f debian/files -rm -f debian/substvars dh_clean +unpatch: + dpatch deapply-all + rm -rf patch-stamp debian/patched + install: install-stamp install-stamp: dh_testdir @@ -87,6 +92,11 @@ install-stamp: -mv debian/gosa/usr/share/gosa/include/php_setup.inc.new debian/gosa/usr/share/gosa/include/php_setup.inc touch install-stamp +patch: patch-stamp +patch-stamp: + dpatch apply-all + dpatch cat-all >patch-stamp + binary-indep: install dh_testdir dh_testroot