aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2011-08-08 21:01:12 +0800
committerpav <pav@FreeBSD.org>2011-08-08 21:01:12 +0800
commitaea1aedadcab9cb766d25cb144a926fc8b13023e (patch)
tree888bc6a5b2b2859a4db2cb9d42a42601a8a715eb /www
parentbb64f1cd35e755c6d90ddbe571775f9859cf8c5f (diff)
downloadfreebsd-ports-gnome-aea1aedadcab9cb766d25cb144a926fc8b13023e.tar.gz
freebsd-ports-gnome-aea1aedadcab9cb766d25cb144a926fc8b13023e.tar.zst
freebsd-ports-gnome-aea1aedadcab9cb766d25cb144a926fc8b13023e.zip
- Teach it about recent Windows versions
PR: ports/159360 Submitted by: Kurt Lidl <kurt.lidl@cello.com>
Diffstat (limited to 'www')
-rw-r--r--www/analog/Makefile2
-rw-r--r--www/analog/files/patch-ab23
2 files changed, 22 insertions, 3 deletions
diff --git a/www/analog/Makefile b/www/analog/Makefile
index 0bae6af84a9d..ee9d66184fae 100644
--- a/www/analog/Makefile
+++ b/www/analog/Makefile
@@ -7,7 +7,7 @@
PORTNAME= analog
PORTVERSION= 6.0
-PORTREVISION= 6
+PORTREVISION= 7
PORTEPOCH= 1
CATEGORIES= www
MASTER_SITES= http://www.analog.cx/ \
diff --git a/www/analog/files/patch-ab b/www/analog/files/patch-ab
index 7f4a5505e436..d8e0734783e6 100644
--- a/www/analog/files/patch-ab
+++ b/www/analog/files/patch-ab
@@ -1,5 +1,5 @@
--- src/tree.c.orig 2004-12-19 08:51:31.000000000 -0500
-+++ src/tree.c 2011-05-12 16:38:50.388298051 -0400
++++ src/tree.c 2011-08-01 12:49:29.176805068 -0400
@@ -769,11 +769,13 @@
if (((*name = strstr(whole, "Mosaic")) != NULL && (len = 6)) ||
((*name = strstr(whole, "mosaic")) != NULL && (len = 6)) ||
@@ -14,7 +14,26 @@
((*name = strstr(whole, "Camino")) != NULL && (len = 6)) ||
((*name = strstr(whole, "Safari")) != NULL && (len = 6)) ||
((*name = strstr(whole, "WebTV")) != NULL && (len = 5)) ||
-@@ -904,8 +906,16 @@
+@@ -871,7 +873,17 @@
+ else
+ *name = "Windows:Unknown Windows";
+ }
+- else if (*c >= '6' && *c <= '9')
++ else if (*c == '6') {
++ if (*(c + 1) == '.' && (*(c + 2) == '0'))
++ *name = "Windows:Windows Vista";
++ else if (*(c + 1) == '.' && (*(c + 2) == '1'))
++ *name = "Windows:Windows 7";
++ else if (*(c + 1) == '.' && (*(c + 2) == '2'))
++ *name = "Windows:Windows 8";
++ else
++ *name = "Windows:Unknown Windows";
++ }
++ else if (*c >= '7' && *c <= '9')
+ *name = "Windows:Unknown Windows";
+ else
+ *name = "Windows:Windows NT";
+@@ -904,8 +916,16 @@
*name = "Macintosh";
else if (strstr(whole, "Linux") != NULL || strstr(whole, "linux") != NULL)
*name = "Unix:Linux";