svn commit: r402367 - in head/net-mgmt/xymon-server: . files

Mark Felder feld at FreeBSD.org
Tue Nov 24 16:07:30 UTC 2015


Author: feld
Date: Tue Nov 24 16:07:28 2015
New Revision: 402367
URL: https://svnweb.freebsd.org/changeset/ports/402367

Log:
  net-mgmt/xymon-server: Update to 4.3.24
  
  Also ensure 301 redirects are conisidered "GREEN". This has been
  reported upstream.

Modified:
  head/net-mgmt/xymon-server/Makefile
  head/net-mgmt/xymon-server/distinfo
  head/net-mgmt/xymon-server/files/patch-xymonnet_httpresult.c

Modified: head/net-mgmt/xymon-server/Makefile
==============================================================================
--- head/net-mgmt/xymon-server/Makefile	Tue Nov 24 15:06:49 2015	(r402366)
+++ head/net-mgmt/xymon-server/Makefile	Tue Nov 24 16:07:28 2015	(r402367)
@@ -1,8 +1,8 @@
 # $FreeBSD$
 
 PORTNAME=	xymon
-PORTVERSION=	4.3.23
-PORTREVISION=	1
+PORTVERSION=	4.3.24
+PORTREVISION=	0
 CATEGORIES=	net-mgmt www
 MASTER_SITES=	SF/xymon/Xymon/${PORTVERSION}
 PKGNAMESUFFIX=	-server${PKGNAMESUFFIX2}

Modified: head/net-mgmt/xymon-server/distinfo
==============================================================================
--- head/net-mgmt/xymon-server/distinfo	Tue Nov 24 15:06:49 2015	(r402366)
+++ head/net-mgmt/xymon-server/distinfo	Tue Nov 24 16:07:28 2015	(r402367)
@@ -1,2 +1,2 @@
-SHA256 (repacked/xymon-4.3.23.tar.gz) = e48de2f266c652149f8a855785e4873be3351298ea5936695379606d73d9ec87
-SIZE (repacked/xymon-4.3.23.tar.gz) = 2983261
+SHA256 (repacked/xymon-4.3.24.tar.gz) = 29d5bffcf9c24d8107cdd2a4818a960f403c1322725bfa29ca9b44d2a1f82ba7
+SIZE (repacked/xymon-4.3.24.tar.gz) = 2983386

Modified: head/net-mgmt/xymon-server/files/patch-xymonnet_httpresult.c
==============================================================================
--- head/net-mgmt/xymon-server/files/patch-xymonnet_httpresult.c	Tue Nov 24 15:06:49 2015	(r402366)
+++ head/net-mgmt/xymon-server/files/patch-xymonnet_httpresult.c	Tue Nov 24 16:07:28 2015	(r402367)
@@ -1,17 +1,10 @@
---- xymonnet/httpresult.c.orig	2015-11-23 19:40:49 UTC
+--- xymonnet/httpresult.c.orig	2015-11-24 15:59:24 UTC
 +++ xymonnet/httpresult.c
-@@ -64,10 +64,10 @@ static int statuscolor(testedhost_t *h, 
- 		break;
- 	  default:
- 		/* Unknown or custom status */
--		result = (result < 100) ? (h->dialup ? COL_CLEAR : COL_RED) :
--			 (result < 200) ? COL_YELLOW :
--			 (result < 300) ? COL_GREEN  :
--			 (result < 400) ? COL_YELLOW :
-+		result = (status < 100) ? (h->dialup ? COL_CLEAR : COL_RED) :
-+			 (status < 200) ? COL_YELLOW :
-+			 (status < 300) ? COL_GREEN  :
-+			 (status < 400) ? COL_YELLOW :
- 			 COL_RED;
- 		break;
- 	}
+@@ -44,6 +44,7 @@ static int statuscolor(testedhost_t *h, 
+ 
+ 	switch(status) {
+ 	  case 200: /* OK - most common case */
++	  case 301: /* Permanent Redirect */
+ 	  case 302: /* Temp Redirect */
+ 	  case 303: /* See Other */
+ 	  case 307: /* Temp Redirect (HTTP 1.1) */


More information about the svn-ports-all mailing list