svn commit: r444956 - in head/ports-mgmt/fbsdmon: . files

Dmitry Marakasov amdmi3 at FreeBSD.org
Mon Jul 3 14:09:03 UTC 2017


Author: amdmi3
Date: Mon Jul  3 14:09:02 2017
New Revision: 444956
URL: https://svnweb.freebsd.org/changeset/ports/444956

Log:
  Commit the patch forgotten in the previous commit:
  
  "- Modify the port to never send data to fbsdmon.org, bump PORTREVISION"
  
  PR:             217099
  Submitted by:   asomers
  MFH:            2017Q3

Added:
  head/ports-mgmt/fbsdmon/files/patch-src_io.c   (contents, props changed)
Modified:
  head/ports-mgmt/fbsdmon/Makefile

Modified: head/ports-mgmt/fbsdmon/Makefile
==============================================================================
--- head/ports-mgmt/fbsdmon/Makefile	Mon Jul  3 13:42:50 2017	(r444955)
+++ head/ports-mgmt/fbsdmon/Makefile	Mon Jul  3 14:09:02 2017	(r444956)
@@ -3,7 +3,7 @@
 
 PORTNAME=	fbsdmon
 PORTVERSION=	1.01
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	ports-mgmt sysutils
 MASTER_SITES=	LOCAL/gblach/
 

Added: head/ports-mgmt/fbsdmon/files/patch-src_io.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/ports-mgmt/fbsdmon/files/patch-src_io.c	Mon Jul  3 14:09:02 2017	(r444956)
@@ -0,0 +1,18 @@
+--- src/io.c.orig	2014-09-06 23:04:23 UTC
++++ src/io.c
+@@ -16,6 +16,15 @@ extern char *fbsdmon_url(char *path)
+     if(NULL != prefix) prefix = strdup(prefix);
+     else prefix = strdup("http://fbsdmon.org/");
+ 
++	if (strstr(prefix, "fbsdmon.org") != NULL) {
++		fprintf(stderr, "fbsdmon is no longer supported, and the "
++						"web site it sends data to (http://fbsdmon.org/), "
++						"has been taken over by cybersquatters. Refusing "
++						"to send system info to an unknown party. Please "
++						"deinstall fbsdmon package.\n\n");
++		exit(1);
++	}
++
+     char *url = malloc(strlen(prefix) + strlen(path) + 1);
+     bzero(url, 1);
+     strcat(url, prefix);


More information about the svn-ports-all mailing list