Code

Remove upstream applied patch
authortolimar <tolimar@98d490a6-b407-0410-aaaa-fdee166ba3f5>
Mon, 26 Sep 2011 13:39:11 +0000 (13:39 +0000)
committertolimar <tolimar@98d490a6-b407-0410-aaaa-fdee166ba3f5>
Mon, 26 Sep 2011 13:39:11 +0000 (13:39 +0000)
git-svn-id: svn://svn.debian.org/svn/pkg-nagios/nagvis/trunk@1969 98d490a6-b407-0410-aaaa-fdee166ba3f5

debian/changelog
debian/patches/00list
debian/patches/php5.3-deprecated-ereg.dpatch [deleted file]

index a58a85671e26f3fe919573d4ff8805687c58a569..2c298e4ea4d5af4ee469792c49c2ba53348c3eca 100644 (file)
@@ -5,8 +5,9 @@ nagvis (1:1.5.10-1) UNRELEASED; urgency=low
   * Change Package dependencies:  Drop all ndo and mysql related stuff, we want to use mk livestatus
   * Update debian/copyright
   * Rework post{inst,rm} to not configure database
   * Change Package dependencies:  Drop all ndo and mysql related stuff, we want to use mk livestatus
   * Update debian/copyright
   * Rework post{inst,rm} to not configure database
+  * patches/php5.3-deprecated-ereg.dpatch: removed; applied upstream
 
 
- -- Alexander Reichle-Schmehl <tolimar@debian.org>  Mon, 26 Sep 2011 15:23:50 +0200
+ -- Alexander Reichle-Schmehl <tolimar@debian.org>  Mon, 26 Sep 2011 15:38:30 +0200
 
 nagvis (1:1.4.6-2) unstable; urgency=medium
 
 
 nagvis (1:1.4.6-2) unstable; urgency=medium
 
index ca25319c517f770e426b2df826d66058ddfd9477..509e18f52fbfddab367f2e9d58fc35ecd632f69e 100644 (file)
@@ -1,4 +1,3 @@
 config
 config
-php5.3-deprecated-ereg
 visibility_magic-set-method
 fix-get_class-object
 visibility_magic-set-method
 fix-get_class-object
diff --git a/debian/patches/php5.3-deprecated-ereg.dpatch b/debian/patches/php5.3-deprecated-ereg.dpatch
deleted file mode 100755 (executable)
index 7f83baf..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## php5.3-deprecated-ereg.dpatch by Hendrik Frenzel <hfrenzel@scunc.net>
-##
-## All lines beginning with `## DP:' are a description of the patch.
-## DP: changes deprecated ereg() to preg_match() for use with php >= 5.3
-
-@DPATCH@
-diff -urNad nagvis-1.4.6~/nagvis/includes/classes/GlobalMainCfg.php nagvis-1.4.6/nagvis/includes/classes/GlobalMainCfg.php
---- nagvis-1.4.6~/nagvis/includes/classes/GlobalMainCfg.php    2010-02-04 21:51:13.000000000 +0100
-+++ nagvis-1.4.6/nagvis/includes/classes/GlobalMainCfg.php     2010-03-01 18:06:16.000000000 +0100
-@@ -791,15 +791,15 @@
-                                       
-                                       // loop given elements for checking: => all given attributes valid
-                                       foreach($vars AS $key => $val) {
--                                              if(!ereg('^comment_',$key)) {
--                                                      if(ereg('^backend_', $type)) {
-+                                              if(!preg_match('/^comment_/',$key)) {
-+                                                      if(preg_match('/^backend_/', $type)) {
-                                                               if(isset($this->validConfig['backend']['options'][$this->getValue($type,'backendtype')]) 
-                                                                        && is_array($this->validConfig['backend']['options'][$this->getValue($type,'backendtype')])) {
-                                                                       $arrValidConfig = array_merge($this->validConfig['backend'], $this->validConfig['backend']['options'][$this->getValue($type,'backendtype')]);
-                                                               } else {
-                                                                       $arrValidConfig = $this->validConfig['backend'];
-                                                               }
--                                                      } elseif(ereg('^rotation_', $type)) {
-+                                                      } elseif(preg_match('/^rotation_/', $type)) {
-                                                               $arrValidConfig = $this->validConfig['rotation'];
-                                                       } else {
-                                                               $arrValidConfig = $this->validConfig[$type];
-@@ -821,7 +821,7 @@
-                                                               return FALSE;
-                                                       } else {
-                                                               // Workaround to get the configured string back
--                                                              if(ereg('^rotation_', $type) && $key == 'maps') {
-+                                                              if(preg_match('/^rotation_/', $type) && $key == 'maps') {
-                                                                       foreach($val AS $intId => $arrStep) {
-                                                                               if(isset($arrStep['label']) && $arrStep['label'] != '') {
-                                                                                       $label = $arrStep['label'].':';
-diff -urNad nagvis-1.4.6~/wui/form_handler.php nagvis-1.4.6/wui/form_handler.php
---- nagvis-1.4.6~/wui/form_handler.php 2010-02-04 21:51:13.000000000 +0100
-+++ nagvis-1.4.6/wui/form_handler.php  2010-03-01 18:06:39.000000000 +0100
-@@ -252,7 +252,7 @@
-                       // is status for this map there?
-                       $file = file($CORE->MAINCFG->getValue('paths', 'mapcfg').'autobackup.status');
-                       foreach($file AS $key => $val) {
--                              if(ereg("^".$mapname."=",$val)) {
-+                              if(preg_match("/^".$mapname."=/",$val)) {
-                                       // $arr[1] is value
-                                       $arr = explode('=',$val);
-