head 1.6; access; symbols OPENPKG_E1_MP_HEAD:1.3 OPENPKG_E1_MP:1.3 OPENPKG_E1_MP_2_STABLE:1.3 OPENPKG_E1_FP:1.3 OPENPKG_2_STABLE_MP:1.3 OPENPKG_2_STABLE_20061018:1.3 OPENPKG_2_STABLE_20060622:1.3 OPENPKG_2_STABLE:1.3.0.2 OPENPKG_2_STABLE_BP:1.3 OPENPKG_2_5_RELEASE:1.2.2.1 OPENPKG_2_5_SOLID:1.2.0.2 OPENPKG_2_5_SOLID_BP:1.2 OPENPKG_2_4_RELEASE:1.1 OPENPKG_2_4_SOLID:1.1.0.8 OPENPKG_2_4_SOLID_BP:1.1 OPENPKG_CW_FP:1.1 OPENPKG_2_3_RELEASE:1.1 OPENPKG_2_3_SOLID:1.1.0.6 OPENPKG_2_3_SOLID_BP:1.1 OPENPKG_2_2_RELEASE:1.1 OPENPKG_2_2_SOLID:1.1.0.4 OPENPKG_2_2_SOLID_BP:1.1 OPENPKG_2_1_RELEASE:1.1 OPENPKG_2_1_SOLID:1.1.0.2 OPENPKG_2_1_SOLID_BP:1.1; locks; strict; comment @# @; 1.6 date 2007.12.09.18.02.48; author rse; state Exp; branches; next 1.5; commitid e4I9E9wxyyAPBMIs; 1.5 date 2007.09.29.17.07.26; author rse; state Exp; branches; next 1.4; commitid w4Ddt02McXPlAEzs; 1.4 date 2007.09.29.15.07.20; author rse; state Exp; branches; next 1.3; commitid h57JQShMEhP8VDzs; 1.3 date 2005.10.12.06.35.00; author rse; state Exp; branches; next 1.2; 1.2 date 2005.10.08.07.26.58; author rse; state Exp; branches 1.2.2.1; next 1.1; 1.1 date 2004.06.17.12.46.16; author tho; state Exp; branches; next ; 1.2.2.1 date 2005.10.12.06.39.12; author rse; state Exp; branches; next ; desc @@ 1.6 log @use a more canonical User-Agent @ text @Index: autoconf/Makefile.in --- autoconf/Makefile.in.orig 2003-11-06 04:41:31 +0100 +++ autoconf/Makefile.in 2007-12-09 19:01:16 +0100 @@@@ -11,7 +11,7 @@@@ CC = @@CC@@ LEX = @@LEX@@ CFILE = @@sysconfdir@@/sysmon.conf -INCLUDES = -I/usr/local/include +INCLUDES = @@CPPFLAGS@@ CFLAGS = @@CFLAGS@@ '@@SENDMAIL@@' -DCFILE='"$(CFILE)"' @@SNP@@ $(INCLUDES) #@@IPV6@@ Index: configure --- configure.orig 2005-09-21 03:23:51 +0200 +++ configure 2007-12-09 19:01:16 +0100 @@@@ -1390,14 +1390,6 @@@@ fi; - if test "x/usr/local/" != x -a -d /usr/local/; then - if test -d /usr/local//lib; then - LDFLAGS="-L/usr/local//lib $LDFLAGS" - fi - if test -d /usr/local//include; then - CPPFLAGS="-I/usr/local//include $CPPFLAGS" - fi - fi ac_ext=c @@@@ -4475,14 +4467,6 @@@@ - if test "x/usr/local/ssl" != x -a -d /usr/local/ssl; then - if test -d /usr/local/ssl/lib; then - LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS" - fi - if test -d /usr/local/ssl/include; then - CPPFLAGS="-I/usr/local/ssl/include $CPPFLAGS" - fi - fi echo "$as_me:$LINENO: checking for main in -lssl" >&5 echo $ECHO_N "checking for main in -lssl... $ECHO_C" >&6 Index: src/config.h --- src/config.h.orig 2005-10-12 05:30:05 +0200 +++ src/config.h 2007-12-09 19:01:16 +0100 @@@@ -13,7 +13,7 @@@@ #include #include #include -#if (defined(__svr4__) || defined(unixware)) /* slo-laris */ +#if defined(__svr4__) || defined(unixware) || (defined(__sun) && defined(__SVR4)) /* slo-laris */ #include #endif #include @@@@ -72,11 +72,7 @@@@ #endif /* HAVE_LIBNCURSES */ #ifdef NICEINTERFACE -#ifdef sgi -#include "/usr/local/include/ncurses.h" -#else #include -#endif /* sgi */ #endif /* NICEINTERFACE */ #ifdef HAVE_NET_SNMP_VERSION_H Index: src/http.c --- src/http.c.orig 2003-12-16 18:33:44 +0100 +++ src/http.c 2007-12-09 19:01:28 +0100 @@@@ -174,7 +174,7 @@@@ memset(buffer, 0, 1024); snprintf(buffer, 1024, "GET %s HTTP/1.0", here->checkent->url); sendline(here->filedes, buffer); - sendline(here->filedes, "User-Agent: sysmond/http.c"); + sendline(here->filedes, "User-Agent: SysMon"); memset(buffer, 0, 1024); snprintf(buffer, 1024, "Host: %s", here->checkent->hostname); sendline(here->filedes, buffer); Index: src/page.c --- src/page.c.orig 2003-12-16 18:33:44 +0100 +++ src/page.c 2007-12-09 19:01:16 +0100 @@@@ -102,17 +102,17 @@@@ memcpy(out,tmp,1024); break; case 'c': - snprintf(tmp, 1024, "%s %ld", out, + snprintf(tmp, 1024, "%s%ld", out, svc->downct); memcpy(out,tmp,1024); break; case 'C': - snprintf(tmp, 1024, "%s %ld", out, + snprintf(tmp, 1024, "%s%ld", out, svc->upct); memcpy(out,tmp,1024); break; case 'p': - snprintf(tmp, 1024, "%s %d", out, + snprintf(tmp, 1024, "%s%d", out, svc->port); memcpy(out,tmp,1024); break; @@@@ -122,7 +122,7 @@@@ value = (100.0000-((tmp1/tmp2) * 100)); if (value<0) value=0.000; if (tmp2==0) value=100.00; - snprintf(tmp, 1024, "%s %10.6f%%", out, + snprintf(tmp, 1024, "%s%.1f%%", out, value); memcpy(out,tmp,1024); break; @ 1.5 log @render the numeric stuff without leading blank and reduce reliability floating point number resolution @ text @d3 1 a3 1 +++ autoconf/Makefile.in 2007-09-29 19:05:30 +0200 d15 1 a15 1 +++ configure 2007-09-29 19:05:30 +0200 d48 1 a48 1 +++ src/config.h 2007-09-29 19:05:30 +0200 d70 12 d84 1 a84 1 +++ src/page.c 2007-09-29 19:05:38 +0200 @ 1.4 log @modifying package: sysmon-0.92.2 20070720 -> 20070929 @ text @d3 1 a3 1 +++ autoconf/Makefile.in 2007-09-29 17:02:52 +0200 d15 1 a15 1 +++ configure 2007-09-29 17:02:52 +0200 d48 1 a48 1 +++ src/config.h 2007-09-29 17:02:52 +0200 d70 33 @ 1.3 log @upgrading package: sysmon 0.92.1 -> 0.92.2 @ text @d1 45 d48 1 a48 1 +++ src/config.h 2005-10-12 08:33:55 +0200 d58 12 @ 1.2 log @upgrading package: sysmon 0.92 -> 0.92.1 @ text @d2 2 a3 2 --- src/config.h.orig 2005-09-21 03:23:51 +0200 +++ src/config.h 2005-10-08 09:23:46 +0200 a9 1 #undef QSORT_WAY d12 1 @ 1.2.2.1 log @MFC: latest version @ text @d2 2 a3 2 --- src/config.h.orig 2005-10-12 05:30:05 +0200 +++ src/config.h 2005-10-12 08:33:55 +0200 d10 1 a12 1 #include @ 1.1 log @modifying package: sysmon-0.91.20 20040617 again @ text @d2 3 a4 3 --- src/config.h.orig 2004-06-17 14:15:47.651863000 +0200 +++ src/config.h 2004-06-17 14:14:18.163157000 +0200 @@@@ -11,7 +11,7 @@@@ d10 1 a12 1 #include @