diff options
author | Greg Larkin <glarkin@FreeBSD.org> | 2010-07-23 20:59:08 +0000 |
---|---|---|
committer | Greg Larkin <glarkin@FreeBSD.org> | 2010-07-23 20:59:08 +0000 |
commit | abb1ada39c4ed296557612a9a80ac03742e0209a (patch) | |
tree | 35fd1d276dd72db4422efea1503e6109f08eb2ab /net-mgmt/pnp/files | |
parent | 4028024871697791278b782efdc380c9777ad362 (diff) | |
download | ports-abb1ada39c4ed296557612a9a80ac03742e0209a.tar.gz ports-abb1ada39c4ed296557612a9a80ac03742e0209a.zip |
Notes
Diffstat (limited to 'net-mgmt/pnp/files')
12 files changed, 120 insertions, 18 deletions
diff --git a/net-mgmt/pnp/files/extra-patch-share::pnp::include::function.inc.php b/net-mgmt/pnp/files/extra-patch-share__pnp__include__function.inc.php index a266517489b8..a266517489b8 100644 --- a/net-mgmt/pnp/files/extra-patch-share::pnp::include::function.inc.php +++ b/net-mgmt/pnp/files/extra-patch-share__pnp__include__function.inc.php diff --git a/net-mgmt/pnp/files/patch-man::Makefile.in b/net-mgmt/pnp/files/patch-man::Makefile.in deleted file mode 100644 index 376ce217d910..000000000000 --- a/net-mgmt/pnp/files/patch-man::Makefile.in +++ /dev/null @@ -1,10 +0,0 @@ ---- man/Makefile.in.orig 2008-08-18 18:45:56.000000000 +0400 -+++ man/Makefile.in 2008-08-18 18:48:41.000000000 +0400 -@@ -36,7 +36,6 @@ - devclean: distclean - - install: -- $(MAKE) install-basic - - install-basic: - $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(MANDIR)/man1/ diff --git a/net-mgmt/pnp/files/patch-man__Makefile.in b/net-mgmt/pnp/files/patch-man__Makefile.in new file mode 100644 index 000000000000..6585064f2992 --- /dev/null +++ b/net-mgmt/pnp/files/patch-man__Makefile.in @@ -0,0 +1,10 @@ +--- ./man/Makefile.in.orig 2010-05-29 23:27:44.000000000 +0200 ++++ ./man/Makefile.in 2010-05-29 23:27:44.000000000 +0200 +@@ -36,7 +36,6 @@ + devclean: distclean + + install: +- $(MAKE) install-basic + + install-basic: + $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(MANDIR)/man1/ diff --git a/net-mgmt/pnp/files/patch-sample-config::Makefile.in b/net-mgmt/pnp/files/patch-sample-config__Makefile.in index 9d15ac804bd6..bd4fb23b2ad0 100644 --- a/net-mgmt/pnp/files/patch-sample-config::Makefile.in +++ b/net-mgmt/pnp/files/patch-sample-config__Makefile.in @@ -1,5 +1,5 @@ ---- sample-config/Makefile.in.orig 2008-10-11 18:13:17.000000000 +0400 -+++ sample-config/Makefile.in 2008-12-24 17:33:32.000000000 +0300 +--- ./sample-config/Makefile.in.orig 2010-05-29 23:27:44.000000000 +0200 ++++ ./sample-config/Makefile.in 2010-05-29 23:27:44.000000000 +0200 @@ -27,23 +27,19 @@ devclean: distclean diff --git a/net-mgmt/pnp/files/patch-scripts::Makefile.in b/net-mgmt/pnp/files/patch-scripts__Makefile.in index 5ddf46396dad..03f3d0d280de 100644 --- a/net-mgmt/pnp/files/patch-scripts::Makefile.in +++ b/net-mgmt/pnp/files/patch-scripts__Makefile.in @@ -1,5 +1,5 @@ ---- scripts/Makefile.in.orig 2008-12-24 01:11:40.000000000 +0300 -+++ scripts/Makefile.in 2008-12-24 01:12:25.000000000 +0300 +--- ./scripts/Makefile.in.orig 2010-05-29 23:27:44.000000000 +0200 ++++ ./scripts/Makefile.in 2010-05-29 23:27:44.000000000 +0200 @@ -25,7 +25,6 @@ devclean: distclean diff --git a/net-mgmt/pnp/files/patch-share__pnp__include__font__makefont__makefont.php b/net-mgmt/pnp/files/patch-share__pnp__include__font__makefont__makefont.php new file mode 100644 index 000000000000..0b9769cceacc --- /dev/null +++ b/net-mgmt/pnp/files/patch-share__pnp__include__font__makefont__makefont.php @@ -0,0 +1,11 @@ +--- ./share/pnp/include/font/makefont/makefont.php.orig 2010-05-29 23:27:44.000000000 +0200 ++++ ./share/pnp/include/font/makefont/makefont.php 2010-05-29 23:30:23.000000000 +0200 +@@ -171,7 +171,7 @@ + //StemV + if(isset($fm['StdVW'])) + $stemv=$fm['StdVW']; +- elseif(isset($fm['Weight']) and eregi('(bold|black)',$fm['Weight'])) ++ elseif(isset($fm['Weight']) and preg_match('/(bold|black)/i',$fm['Weight'])) + $stemv=120; + else + $stemv=70; diff --git a/net-mgmt/pnp/files/patch-share__pnp__include__fpdi.php b/net-mgmt/pnp/files/patch-share__pnp__include__fpdi.php new file mode 100644 index 000000000000..dc3061fffca1 --- /dev/null +++ b/net-mgmt/pnp/files/patch-share__pnp__include__fpdi.php @@ -0,0 +1,11 @@ +--- ./share/pnp/include/fpdi.php.orig 2010-05-29 23:27:44.000000000 +0200 ++++ ./share/pnp/include/fpdi.php 2010-05-29 23:27:44.000000000 +0200 +@@ -93,7 +93,7 @@ + $fn =& $this->current_filename; + + if (!isset($this->parsers[$fn])) +- $this->parsers[$fn] =& new fpdi_pdf_parser($fn,$this); ++ $this->parsers[$fn] = new fpdi_pdf_parser($fn,$this); + $this->current_parser =& $this->parsers[$fn]; + + return $this->parsers[$fn]->getPageCount(); diff --git a/net-mgmt/pnp/files/patch-share__pnp__include__fpdi_pdf_parser.php b/net-mgmt/pnp/files/patch-share__pnp__include__fpdi_pdf_parser.php new file mode 100644 index 000000000000..d1ff1c1906c2 --- /dev/null +++ b/net-mgmt/pnp/files/patch-share__pnp__include__fpdi_pdf_parser.php @@ -0,0 +1,11 @@ +--- ./share/pnp/include/fpdi_pdf_parser.php.orig 2010-05-29 23:27:44.000000000 +0200 ++++ ./share/pnp/include/fpdi_pdf_parser.php 2010-05-29 23:27:44.000000000 +0200 +@@ -242,7 +242,7 @@ + if (preg_match("/^\/[a-z85]*$/i", $_filter[1], $filterName) && @include_once('decoders'.$_filter[1].'.php')) { + $filterName = substr($_filter[1],1); + if (class_exists($filterName)) { +- $decoder =& new $filterName($this->fpdi); ++ $decoder = new $filterName($this->fpdi); + $stream = $decoder->decode(trim($stream)); + } else { + $this->fpdi->error(sprintf("Unsupported Filter: %s",$_filter[1])); diff --git a/net-mgmt/pnp/files/patch-share__pnp__include__function.inc.php b/net-mgmt/pnp/files/patch-share__pnp__include__function.inc.php new file mode 100644 index 000000000000..04b7b06ab07a --- /dev/null +++ b/net-mgmt/pnp/files/patch-share__pnp__include__function.inc.php @@ -0,0 +1,29 @@ +--- ./share/pnp/include/function.inc.php.orig 2010-05-29 21:26:22.000000000 +0200 ++++ ./share/pnp/include/function.inc.php 2010-05-29 21:32:24.000000000 +0200 +@@ -1030,7 +1030,7 @@ + } + } + +- $pdf =& new PDF('P', 'mm', 'A4'); ++ $pdf = new PDF('P', 'mm', 'A4'); + $pdf->AliasNbPages(); + $pdf->SetAutoPageBreak('off'); + $pdf->SetMargins(12.5,25,10); +@@ -1540,7 +1540,7 @@ + $NAGIOS['RRD'][$tag][$dsl] = urldecode($value); + } + +- if($level == 2 && $type == "complete" && eregi("^NAGIOS_",$tag)){ ++ if($level == 2 && $type == "complete" && preg_match("/^NAGIOS_/i",$tag)){ + if(isset($xml_elem['value'])){ + $value = $xml_elem['value']; + }else{ +@@ -1571,7 +1571,7 @@ + $PAGE=""; + $allowed_tags = array("page", "graph"); + foreach($data as $line){ +- if(ereg('(^#|^;)',$line)) { ++ if(preg_match('/(^#|^;)/',$line)) { + continue; + } + diff --git a/net-mgmt/pnp/files/patch-share__pnp__include__pdf_parser.php b/net-mgmt/pnp/files/patch-share__pnp__include__pdf_parser.php new file mode 100644 index 000000000000..e622887a22fe --- /dev/null +++ b/net-mgmt/pnp/files/patch-share__pnp__include__pdf_parser.php @@ -0,0 +1,29 @@ +--- ./share/pnp/include/pdf_parser.php.orig 2010-05-29 23:27:44.000000000 +0200 ++++ ./share/pnp/include/pdf_parser.php 2010-05-29 23:31:23.000000000 +0200 +@@ -91,7 +91,7 @@ + + $this->getPDFVersion(); + +- $this->c =& new pdf_context($this->f); ++ $this->c = new pdf_context($this->f); + // Read xref-Data + $this->pdf_read_xref($this->xref, $this->pdf_find_xref()); + +@@ -257,7 +257,7 @@ + fseek($this->f, $o_pos+strlen($m[1])); + } + +- $c =& new pdf_context($this->f); ++ $c = new pdf_context($this->f); + $trailer = $this->pdf_read_value($c); + + if (isset($trailer[1]['/Prev'])) { +@@ -423,7 +423,7 @@ + $e++; + + if ($this->actual_obj[1][1]['/Length'][0] == PDF_TYPE_OBJREF) { +- $tmp_c =& new pdf_context($this->f); ++ $tmp_c = new pdf_context($this->f); + $tmp_length = $this->pdf_resolve_object($tmp_c,$this->actual_obj[1][1]['/Length']); + $length = $tmp_length[1][1]; + } else { diff --git a/net-mgmt/pnp/files/patch-share__pnp__include__site.php b/net-mgmt/pnp/files/patch-share__pnp__include__site.php new file mode 100644 index 000000000000..9e6be31ffd1c --- /dev/null +++ b/net-mgmt/pnp/files/patch-share__pnp__include__site.php @@ -0,0 +1,11 @@ +--- ./share/pnp/include/site.php.orig 2010-05-29 23:27:44.000000000 +0200 ++++ ./share/pnp/include/site.php 2010-05-29 23:27:44.000000000 +0200 +@@ -30,7 +30,7 @@ + $a = 0; + + while (isset($file[$l]) && $file[$l] != "") { +- if(!ereg("^#",$file[$l]) && !ereg("^;",$file[$l])) { ++ if(!preg_match("/^#/",$file[$l]) && !preg_match("/^;/",$file[$l])) { + $defineCln = explode("{", $file[$l]); + $define = explode(" ",$defineCln[0]); + if (isset($define[1]) && in_array(trim($define[1]),$type)) { diff --git a/net-mgmt/pnp/files/patch-src::Makefile.in b/net-mgmt/pnp/files/patch-src__Makefile.in index 315868353d14..13b3997a8312 100644 --- a/net-mgmt/pnp/files/patch-src::Makefile.in +++ b/net-mgmt/pnp/files/patch-src__Makefile.in @@ -1,11 +1,11 @@ ---- src/Makefile.in.orig 2008-12-24 01:12:54.000000000 +0300 -+++ src/Makefile.in 2008-12-24 01:13:31.000000000 +0300 -@@ -88,8 +88,6 @@ +--- ./src/Makefile.in.orig 2010-05-29 23:27:44.000000000 +0200 ++++ ./src/Makefile.in 2010-05-29 23:27:44.000000000 +0200 +@@ -121,8 +121,6 @@ $(MAKE) install-basic install-basic: - $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(BINDIR) - $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(PERFDATA_SPOOL_DIR) $(INSTALL) -m 754 $(INSTALL_OPTS) @npcd_name@ $(DESTDIR)$(BINDIR) + $(INSTALL) -m 754 $(INSTALL_OPTS) npcdmod.o $(DESTDIR)$(BINDIR) - strip-post-install: |