The images in www/syweb are broken due to warnings about deprecated old-style constructors in PHP 7.x. This patch updates to new-style constructors.
Index: Makefile
===================================================================
RCS file: /cvs/ports/www/syweb/Makefile,v
retrieving revision 1.29
diff -u -p -u -r1.29 Makefile
--- Makefile    20 Mar 2020 16:44:28 -0000      1.29
+++ Makefile    29 Dec 2020 22:51:41 -0000
@@ -2,7 +2,7 @@
 
 COMMENT=       web frontend to symon
 DISTNAME=      syweb-0.65
-REVISION=      9
+REVISION=      10
 CATEGORIES=    www sysutils
 
 HOMEPAGE=      http://www.xs4all.nl/~wpd/symon
Index: patches/patch-htdocs_syweb_class_cache_inc
===================================================================
RCS file: patches/patch-htdocs_syweb_class_cache_inc
diff -N patches/patch-htdocs_syweb_class_cache_inc
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-htdocs_syweb_class_cache_inc  29 Dec 2020 22:51:41 -0000
@@ -0,0 +1,18 @@
+$OpenBSD$
+
+Index: htdocs/syweb/class_cache.inc
+--- htdocs/syweb/class_cache.inc.orig
++++ htdocs/syweb/class_cache.inc
+@@ -54,7 +54,7 @@ class Cache {
+     var $db;
+     var $timestamp;
+ 
+-    function Cache() {
++    function __construct() {
+       global $symon;
+ 
+       if (!isset($symon["cache_duration"])) {
+@@ -240,4 +240,4 @@ class Cache {
+ if (!isset($cache)) {
+     $cache = new Cache();
+ }
Index: patches/patch-htdocs_syweb_class_graph_inc
===================================================================
RCS file: patches/patch-htdocs_syweb_class_graph_inc
diff -N patches/patch-htdocs_syweb_class_graph_inc
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-htdocs_syweb_class_graph_inc  29 Dec 2020 22:51:41 -0000
@@ -0,0 +1,14 @@
+$OpenBSD$
+
+Index: htdocs/syweb/class_graph.inc
+--- htdocs/syweb/class_graph.inc.orig
++++ htdocs/syweb/class_graph.inc
+@@ -49,7 +49,7 @@ class Graph {
+     var $definition;
+     var $url;
+ 
+-    function Graph(&$group_vars) {
++    function __construct(&$group_vars) {
+       $this->group_vars = $group_vars;
+     }
+ 
Index: patches/patch-htdocs_syweb_class_layout_inc
===================================================================
RCS file: patches/patch-htdocs_syweb_class_layout_inc
diff -N patches/patch-htdocs_syweb_class_layout_inc
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-htdocs_syweb_class_layout_inc 29 Dec 2020 22:51:41 -0000
@@ -0,0 +1,14 @@
+$OpenBSD$
+
+Index: htdocs/syweb/class_layout.inc
+--- htdocs/syweb/class_layout.inc.orig
++++ htdocs/syweb/class_layout.inc
+@@ -47,7 +47,7 @@ class Layout {
+     var $groups;
+     var $groupvars;
+ 
+-    function Layout() {
++    function __construct() {
+       global $symon;
+         global $session;
+ 
Index: patches/patch-htdocs_syweb_class_lexer_inc
===================================================================
RCS file: patches/patch-htdocs_syweb_class_lexer_inc
diff -N patches/patch-htdocs_syweb_class_lexer_inc
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-htdocs_syweb_class_lexer_inc  29 Dec 2020 22:51:41 -0000
@@ -0,0 +1,18 @@
+$OpenBSD$
+
+Index: htdocs/syweb/class_lexer.inc
+--- htdocs/syweb/class_lexer.inc.orig
++++ htdocs/syweb/class_lexer.inc
+@@ -43,7 +43,7 @@ class Lexer {
+     var $unget;
+     var $keywordchrs;
+ 
+-    function Lexer() {
++    function __construct() {
+       $this->filename = '';
+       $this->lineno = 0;
+       $this->buffer = array();
+@@ -249,4 +249,4 @@ class Lexer {
+       }
+     }
+ }
Index: patches/patch-htdocs_syweb_class_rrdtool_inc
===================================================================
RCS file: patches/patch-htdocs_syweb_class_rrdtool_inc
diff -N patches/patch-htdocs_syweb_class_rrdtool_inc
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-htdocs_syweb_class_rrdtool_inc        29 Dec 2020 22:51:41 
-0000
@@ -0,0 +1,18 @@
+$OpenBSD$
+
+Index: htdocs/syweb/class_rrdtool.inc
+--- htdocs/syweb/class_rrdtool.inc.orig
++++ htdocs/syweb/class_rrdtool.inc
+@@ -40,7 +40,7 @@ class RRDTool {
+     var $error;
+     var $output;
+ 
+-    function RRDTool() {
++    function __construct() {
+       global $symon;
+ 
+       $this->method = '';
+@@ -149,4 +149,4 @@ class RRDTool {
+       return 1;
+     }
+ }
Index: patches/patch-htdocs_syweb_class_session_inc
===================================================================
RCS file: patches/patch-htdocs_syweb_class_session_inc
diff -N patches/patch-htdocs_syweb_class_session_inc
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-htdocs_syweb_class_session_inc        29 Dec 2020 22:51:41 
-0000
@@ -0,0 +1,18 @@
+$OpenBSD$
+
+Index: htdocs/syweb/class_session.inc
+--- htdocs/syweb/class_session.inc.orig
++++ htdocs/syweb/class_session.inc
+@@ -46,7 +46,7 @@ require_once("tools.inc");
+ class Session {
+     var $vars;
+ 
+-    function Session() {
++    function __construct() {
+       $this->vars = new Vars();
+     }
+ 
+@@ -200,4 +200,4 @@ class Session {
+ if (!isset($session)) {
+     $session = new Session();
+ }
Index: patches/patch-htdocs_syweb_class_text_inc
===================================================================
RCS file: patches/patch-htdocs_syweb_class_text_inc
diff -N patches/patch-htdocs_syweb_class_text_inc
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-htdocs_syweb_class_text_inc   29 Dec 2020 22:51:41 -0000
@@ -0,0 +1,18 @@
+$OpenBSD$
+
+Index: htdocs/syweb/class_text.inc
+--- htdocs/syweb/class_text.inc.orig
++++ htdocs/syweb/class_text.inc
+@@ -40,7 +40,7 @@ require_once('class_lexer.inc');
+ class Text {
+     var $text;
+ 
+-    function Text($text='') {
++    function __construct($text='') {
+       $this->text = $text;
+     }
+ 
+@@ -63,4 +63,4 @@ class Text {
+       $this->_display();
+     }
+ }
Index: patches/patch-htdocs_syweb_class_vars_inc
===================================================================
RCS file: patches/patch-htdocs_syweb_class_vars_inc
diff -N patches/patch-htdocs_syweb_class_vars_inc
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-htdocs_syweb_class_vars_inc   29 Dec 2020 22:51:41 -0000
@@ -0,0 +1,18 @@
+$OpenBSD$
+
+Index: htdocs/syweb/class_vars.inc
+--- htdocs/syweb/class_vars.inc.orig
++++ htdocs/syweb/class_vars.inc
+@@ -49,7 +49,7 @@ $html2chr = array_flip($chr2html);
+ class Vars {
+     var $vars;
+ 
+-    function Vars($frozen="") {
++    function __construct($frozen="") {
+       unset($this->vars);
+       if ($frozen != "") {
+           $this->inject($frozen);
+@@ -144,4 +144,4 @@ class Vars {
+       }
+     }
+ }

Reply via email to