Code

Added possibility to use dpatch. This is for internal packages, only.
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 4 Apr 2007 10:00:41 +0000 (10:00 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 4 Apr 2007 10:00:41 +0000 (10:00 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5973 594d385d-05f5-0310-b6e9-bd551577e9d8

debian/control
debian/rules

index 39d067dd0f2badd75c9d7c9705d638720d298994..4b38c16806f0f5df05c552973ca68e7fa3d8b8e1 100644 (file)
@@ -2,7 +2,7 @@ Source: gosa
 Section: web
 Priority: optional
 Maintainer: Cajus Pollmeier <cajus@debian.org>
-Build-Depends-Indep: debhelper(>= 4.1.16)
+Build-Depends-Indep: debhelper(>= 4.1.16), dpatch
 Standards-Version: 3.7.2.0
 
 Package: gosa
index 1106c75cbeb9d26057f17b0bf28e5711c684ac49..71d6555bff68018c2673f12b868361551e186098 100755 (executable)
@@ -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