1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## use-snoopy-from-distro.dpatch by Roland Mas <lolando@debian.org>
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Use the Snoopy class as provided by the libphp-snoopy Debian package
6 ## DP: instead of shipping a local one.
9 diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' gforge~/plugins/cvstracker/bin/post.php gforge/plugins/cvstracker/bin/post.php
10 --- gforge~/plugins/cvstracker/bin/post.php 2010-06-02 20:10:15.000000000 +0200
11 +++ gforge/plugins/cvstracker/bin/post.php 2010-06-03 13:38:29.000000000 +0200
13 require dirname(__FILE__).'/../../env.inc.php';
14 require_once $gfwww.'include/pre.php';
15 require_once ($gfcommon.'common/include/utils.php');
16 -require_once ($gfplugins.'cvstracker/common/Snoopy.class.php');
17 +require_once ('/usr/share/php/libphp-snoopy/Snoopy.class.php');
19 $cvs_binary_version = get_cvs_binary_version () ;
21 diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' gforge~/plugins/scmcvs/bin/aclcheck.php gforge/plugins/scmcvs/bin/aclcheck.php
22 --- gforge~/plugins/scmcvs/bin/aclcheck.php 2010-06-03 13:36:11.000000000 +0200
23 +++ gforge/plugins/scmcvs/bin/aclcheck.php 2010-06-03 13:38:29.000000000 +0200
25 require_once $gfwww. 'include/pre.php';
26 require_once $gfcommon.'include/utils.php';
27 require_once $gfconfig.'plugins/scmcvs/config.php';
28 -require_once $gfplugins.'scmcvs/common/Snoopy.class.php';
29 +require_once '/usr/share/php/libphp-snoopy/Snoopy.class.php';
32 $env_cvsroot = (string) $_ENV['CVSROOT'];
33 diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' gforge~/plugins/svntracker/bin/post.php gforge/plugins/svntracker/bin/post.php
34 --- gforge~/plugins/svntracker/bin/post.php 2010-06-02 20:10:15.000000000 +0200
35 +++ gforge/plugins/svntracker/bin/post.php 2010-06-03 13:38:29.000000000 +0200
39 require_once $gfwww.'include/pre.php';
40 -require $gfplugins.'svntracker/common/Snoopy.class.php';
41 +require '/usr/share/php/libphp-snoopy/Snoopy.class.php';
44 * It returns the usage and exit program