head 1.9; access; symbols pkgsrc-2026Q1:1.9.0.2 pkgsrc-2026Q1-base:1.9 pkgsrc-2025Q4:1.8.0.182 pkgsrc-2025Q4-base:1.8 pkgsrc-2025Q3:1.8.0.180 pkgsrc-2025Q3-base:1.8 pkgsrc-2025Q2:1.8.0.178 pkgsrc-2025Q2-base:1.8 pkgsrc-2025Q1:1.8.0.176 pkgsrc-2025Q1-base:1.8 pkgsrc-2024Q4:1.8.0.174 pkgsrc-2024Q4-base:1.8 pkgsrc-2024Q3:1.8.0.172 pkgsrc-2024Q3-base:1.8 pkgsrc-2024Q2:1.8.0.170 pkgsrc-2024Q2-base:1.8 pkgsrc-2024Q1:1.8.0.168 pkgsrc-2024Q1-base:1.8 pkgsrc-2023Q4:1.8.0.166 pkgsrc-2023Q4-base:1.8 pkgsrc-2023Q3:1.8.0.164 pkgsrc-2023Q3-base:1.8 pkgsrc-2023Q2:1.8.0.162 pkgsrc-2023Q2-base:1.8 pkgsrc-2023Q1:1.8.0.160 pkgsrc-2023Q1-base:1.8 pkgsrc-2022Q4:1.8.0.158 pkgsrc-2022Q4-base:1.8 pkgsrc-2022Q3:1.8.0.156 pkgsrc-2022Q3-base:1.8 pkgsrc-2022Q2:1.8.0.154 pkgsrc-2022Q2-base:1.8 pkgsrc-2022Q1:1.8.0.152 pkgsrc-2022Q1-base:1.8 pkgsrc-2021Q4:1.8.0.150 pkgsrc-2021Q4-base:1.8 pkgsrc-2021Q3:1.8.0.148 pkgsrc-2021Q3-base:1.8 pkgsrc-2021Q2:1.8.0.146 pkgsrc-2021Q2-base:1.8 pkgsrc-2021Q1:1.8.0.144 pkgsrc-2021Q1-base:1.8 pkgsrc-2020Q4:1.8.0.142 pkgsrc-2020Q4-base:1.8 pkgsrc-2020Q3:1.8.0.140 pkgsrc-2020Q3-base:1.8 pkgsrc-2020Q2:1.8.0.136 pkgsrc-2020Q2-base:1.8 pkgsrc-2020Q1:1.8.0.116 pkgsrc-2020Q1-base:1.8 pkgsrc-2019Q4:1.8.0.138 pkgsrc-2019Q4-base:1.8 pkgsrc-2019Q3:1.8.0.134 pkgsrc-2019Q3-base:1.8 pkgsrc-2019Q2:1.8.0.132 pkgsrc-2019Q2-base:1.8 pkgsrc-2019Q1:1.8.0.130 pkgsrc-2019Q1-base:1.8 pkgsrc-2018Q4:1.8.0.128 pkgsrc-2018Q4-base:1.8 pkgsrc-2018Q3:1.8.0.126 pkgsrc-2018Q3-base:1.8 pkgsrc-2018Q2:1.8.0.124 pkgsrc-2018Q2-base:1.8 pkgsrc-2018Q1:1.8.0.122 pkgsrc-2018Q1-base:1.8 pkgsrc-2017Q4:1.8.0.120 pkgsrc-2017Q4-base:1.8 pkgsrc-2017Q3:1.8.0.118 pkgsrc-2017Q3-base:1.8 pkgsrc-2017Q2:1.8.0.114 pkgsrc-2017Q2-base:1.8 pkgsrc-2017Q1:1.8.0.112 pkgsrc-2017Q1-base:1.8 pkgsrc-2016Q4:1.8.0.110 pkgsrc-2016Q4-base:1.8 pkgsrc-2016Q3:1.8.0.108 pkgsrc-2016Q3-base:1.8 pkgsrc-2016Q2:1.8.0.106 pkgsrc-2016Q2-base:1.8 pkgsrc-2016Q1:1.8.0.104 pkgsrc-2016Q1-base:1.8 pkgsrc-2015Q4:1.8.0.102 pkgsrc-2015Q4-base:1.8 pkgsrc-2015Q3:1.8.0.100 pkgsrc-2015Q3-base:1.8 pkgsrc-2015Q2:1.8.0.98 pkgsrc-2015Q2-base:1.8 pkgsrc-2015Q1:1.8.0.96 pkgsrc-2015Q1-base:1.8 pkgsrc-2014Q4:1.8.0.94 pkgsrc-2014Q4-base:1.8 pkgsrc-2014Q3:1.8.0.92 pkgsrc-2014Q3-base:1.8 pkgsrc-2014Q2:1.8.0.90 pkgsrc-2014Q2-base:1.8 pkgsrc-2014Q1:1.8.0.88 pkgsrc-2014Q1-base:1.8 pkgsrc-2013Q4:1.8.0.86 pkgsrc-2013Q4-base:1.8 pkgsrc-2013Q3:1.8.0.84 pkgsrc-2013Q3-base:1.8 pkgsrc-2013Q2:1.8.0.82 pkgsrc-2013Q2-base:1.8 pkgsrc-2013Q1:1.8.0.80 pkgsrc-2013Q1-base:1.8 pkgsrc-2012Q4:1.8.0.78 pkgsrc-2012Q4-base:1.8 pkgsrc-2012Q3:1.8.0.76 pkgsrc-2012Q3-base:1.8 pkgsrc-2012Q2:1.8.0.74 pkgsrc-2012Q2-base:1.8 pkgsrc-2012Q1:1.8.0.72 pkgsrc-2012Q1-base:1.8 pkgsrc-2011Q4:1.8.0.70 pkgsrc-2011Q4-base:1.8 pkgsrc-2011Q3:1.8.0.68 pkgsrc-2011Q3-base:1.8 pkgsrc-2011Q2:1.8.0.66 pkgsrc-2011Q2-base:1.8 pkgsrc-2011Q1:1.8.0.64 pkgsrc-2011Q1-base:1.8 pkgsrc-2010Q4:1.8.0.62 pkgsrc-2010Q4-base:1.8 pkgsrc-2010Q3:1.8.0.60 pkgsrc-2010Q3-base:1.8 pkgsrc-2010Q2:1.8.0.58 pkgsrc-2010Q2-base:1.8 pkgsrc-2010Q1:1.8.0.56 pkgsrc-2010Q1-base:1.8 pkgsrc-2009Q4:1.8.0.54 pkgsrc-2009Q4-base:1.8 pkgsrc-2009Q3:1.8.0.52 pkgsrc-2009Q3-base:1.8 pkgsrc-2009Q2:1.8.0.50 pkgsrc-2009Q2-base:1.8 pkgsrc-2009Q1:1.8.0.48 pkgsrc-2009Q1-base:1.8 pkgsrc-2008Q4:1.8.0.46 pkgsrc-2008Q4-base:1.8 pkgsrc-2008Q3:1.8.0.44 pkgsrc-2008Q3-base:1.8 cube-native-xorg:1.8.0.42 cube-native-xorg-base:1.8 pkgsrc-2008Q2:1.8.0.40 pkgsrc-2008Q2-base:1.8 cwrapper:1.8.0.38 pkgsrc-2008Q1:1.8.0.36 pkgsrc-2008Q1-base:1.8 pkgsrc-2007Q4:1.8.0.34 pkgsrc-2007Q4-base:1.8 pkgsrc-2007Q3:1.8.0.32 pkgsrc-2007Q3-base:1.8 pkgsrc-2007Q2:1.8.0.30 pkgsrc-2007Q2-base:1.8 pkgsrc-2007Q1:1.8.0.28 pkgsrc-2007Q1-base:1.8 pkgsrc-2006Q4:1.8.0.26 pkgsrc-2006Q4-base:1.8 pkgsrc-2006Q3:1.8.0.24 pkgsrc-2006Q3-base:1.8 pkgsrc-2006Q2:1.8.0.22 pkgsrc-2006Q2-base:1.8 pkgsrc-2006Q1:1.8.0.20 pkgsrc-2006Q1-base:1.8 pkgsrc-2005Q4:1.8.0.18 pkgsrc-2005Q4-base:1.8 pkgsrc-2005Q3:1.8.0.16 pkgsrc-2005Q3-base:1.8 pkgsrc-2005Q2:1.8.0.14 pkgsrc-2005Q2-base:1.8 pkgsrc-2005Q1:1.8.0.12 pkgsrc-2005Q1-base:1.8 pkgsrc-2004Q4:1.8.0.10 pkgsrc-2004Q4-base:1.8 pkgsrc-2004Q3:1.8.0.8 pkgsrc-2004Q3-base:1.8 pkgsrc-2004Q2:1.8.0.6 pkgsrc-2004Q2-base:1.8 pkgsrc-2004Q1:1.8.0.4 pkgsrc-2004Q1-base:1.8 pkgsrc-2003Q4:1.8.0.2 pkgsrc-2003Q4-base:1.8 netbsd-1-6-1:1.7.0.6 netbsd-1-6-1-base:1.7 netbsd-1-6:1.7.0.8 netbsd-1-6-RELEASE-base:1.7 pkgviews:1.7.0.4 pkgviews-base:1.7 buildlink2:1.7.0.2 buildlink2-base:1.7 netbsd-1-5-PATCH001:1.2 netbsd-1-5-RELEASE:1.2 netbsd-1-4-PATCH003:1.2 netbsd-1-4-PATCH002:1.2 comdex-fall-1999:1.1.1.1 netbsd-1-4-PATCH001:1.1.1.1 netbsd-1-4-RELEASE:1.1.1.1 pkgsrc-base:1.1.1.2 TNF:1.1.1; locks; strict; comment @# @; 1.9 date 2026.03.21.10.38.34; author nia; state Exp; branches; next 1.8; commitid oUJenGJaYxgPwPyG; 1.8 date 2003.07.02.18.22.42; author jmmv; state Exp; branches; next 1.7; 1.7 date 2002.05.07.22.25.03; author hubertf; state Exp; branches; next 1.6; 1.6 date 2001.10.04.11.05.01; author abs; state dead; branches; next 1.5; 1.5 date 2001.06.28.10.32.46; author wiz; state Exp; branches; next 1.4; 1.4 date 2001.06.21.13.57.18; author nra; state Exp; branches; next 1.3; 1.3 date 2001.06.20.14.30.48; author nra; state Exp; branches; next 1.2; 1.2 date 2000.01.21.01.35.43; author hubertf; state Exp; branches; next 1.1; 1.1 date 99.04.06.20.10.00; author hubertf; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 99.04.06.20.10.00; author hubertf; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2002.05.07.22.20.59; author hubertf; state Exp; branches; next ; desc @@ 1.9 log @upclient: Various fixes for recent gcc. @ text @$NetBSD: patch-aa,v 1.8 2003/07/02 18:22:42 jmmv Exp $ --- src/options.c.orig 2001-06-16 19:15:04.000000000 +0000 +++ src/options.c @@@@ -8,7 +8,10 @@@@ #include "options.h" /* System includes */ -#include "stdio.h" +#include +#include +#include +#include /** * Global variables, very ugly, watch through sunglasses! @@@@ -158,9 +161,10 @@@@ static int process_option(const char *ke * @@desc isblank() for Solaris */ #if defined(PLATFORM_SOLARIS) -static int isblank(const char chr) { +static int my_isblank(const char chr) { return(chr == ' ' || chr == '\t'); } +#define isblank my_isblank #endif /** @@@@ -294,13 +298,10 @@@@ int read_config(void) { /* Try to open config file in current directory */ if(!(fp = fopen(CONFIGFILE, "r"))) { - /* Failed, now try to open config file in /etc */ - if(!(fp = fopen("/etc/"CONFIGFILE, "r"))) { - /* Failed, now try to open config file in /usr/local/etc */ - if(!(fp = fopen("/usr/local/etc/"CONFIGFILE, "r"))) { - printf("Error: couldn't open config file %s for reading in:\n- current directory\n- /etc\n- /usr/local/etc\n", CONFIGFILE); - exit(-1); - } + /* Failed, now try to open config file in PKG_SYSCONFDIR */ + if(!(fp = fopen(PKG_SYSCONFDIR "/"CONFIGFILE, "r"))) { + printf("Error: couldn't open config file %s for reading in:\n- current directory\n- " PKG_SYSCONFDIR "\n", CONFIGFILE); + exit(-1); } } @ 1.8 log @Convert to PKG_SYSCONFDIR and buildlink2. Bump PKGREVISION to 2. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.7 2002/05/07 22:25:03 hubertf Exp $ d3 1 a3 1 --- src/options.c.orig 2001-06-16 21:15:04.000000000 +0200 d5 25 a29 1 @@@@ -294,13 +294,10 @@@@ int read_config(void) { @ 1.7 log @Re-Added upclient-4.2.1.23: Keeps track of your server uptime Upclient is a program that keeps track of your server uptime, and lets you compare it with the uptime of other (similar) hosts. It consists of two parts, a client- and a serverpart. The client runs on your server and sends the uptime every few minutes to the server. The server collects all data in a table on this site. Package re-added after the service formerly offered by uptimes.net is now again online as http://www.wonko.com/ @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.5 2001/06/28 10:32:46 wiz Exp $ d3 10 a12 6 --- src/options.c Sat Jun 16 14:15:04 2001 +++ src/options.c Tue Jun 19 10:48:25 2001 @@@@ -298,8 +298,11 @@@@ if(!(fp = fopen("/etc/"CONFIGFILE, "r"))) { /* Failed, now try to open config file in /usr/local/etc */ if(!(fp = fopen("/usr/local/etc/"CONFIGFILE, "r"))) { d15 5 a19 6 + /* Failed, now try to open config file in /usr/pkg/etc */ + if (!(fp = fopen("/usr/pkg/etc/"CONFIGFILE, "r"))) { + printf("Error: couldn't open config file %s for reading in:\n- current directory\n- /etc\n- /usr/local/etc\n- /usr/pkg/etc\n", CONFIGFILE); + exit(-1); + } } d22 1 @ 1.6 log @Deleted net/upclient - the uptimes project has been suspended, and if it resumes it will use a new client and protocol. @ text @@ 1.5 log @Only patch one file per patch file. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.4 2001/06/21 13:57:18 nra Exp $ @ 1.4 log @Add RCS Tag. @ text @d1 1 a1 1 $NetBSD$ a18 10 --- src/stats-bsd.c Sat Jun 16 14:12:53 2001 +++ src/stats-bsd.c Tue Jun 19 10:47:04 2001 @@@@ -21,6 +21,7 @@@@ #include #include #include +#include /** * @@desc Get statistics @ 1.3 log @ Update upclient to 4.2.1.23. Changes include: 4.2.1.23, Released Sunday 17 June 2001, changes: Fixed compilation error in stats-sol.c 4.2.1.22, Released Saturday 16 June 2001, changes: Darwin / MacOS X support BeOS support Improved Irix support BSD idle-time-submit(tm) support New SendCPULevel option (BSD, Solaris & Irix only) Debian init.d script Alternative to the upchk script added Fixed compilating error when using the NR_LINUX_UPTIME_WRAPAROUNDS That's all folks! @ text @d1 2 @ 1.2 log @Make this package match reality (V4.07). A big THANKS to who told me that our client is upto date some weeks ago... @ text @d1 23 a23 44 $NetBSD$ --- config.h.orig Mon Jan 10 21:35:01 2000 +++ config.h Fri Jan 21 01:36:24 2000 @@@@ -16,7 +16,11 @@@@ * Ultrix --> #define PLATFORM_CODE 3 * Solaris --> #define PLATFORM_CODE 4 */ +#ifdef __NetBSD__ +#define PLATFORM_CODE 1 +#else #define PLATFORM_CODE -1 +#endif #if (PLATFORM_CODE == 0) # define PLATFORM_LINUX @@@@ -49,8 +53,8 @@@@ * If you haven't registered yourself yet, go to * http://www.uptimes.net/register.html */ -#define LOGINNAME "Enter your loginname here" -#define PASSWORD "Enter your password here" +#define LOGINNAME "@@UPCLIENT_LOGIN@@" +#define PASSWORD "@@UPCLIENT_PASSWORD@@" @@@@ -61,7 +65,7 @@@@ * column on http://www.uptimes.net/hosts.html. * If your host isn't in the list, click "add host" */ -#define HOSTID 0 +#define HOSTID @@UPCLIENT_HOSTID@@ @@@@ -125,7 +129,7 @@@@ * * Where should the client write it's pidfile? */ -#define PIDFILE "/upclient.pid" +#define PIDFILE "/var/run/upclient.pid" d25 2 @ 1.1 log @Initial revision @ text @d3 42 a44 32 --- Makefile.orig Sat Apr 3 11:47:04 1999 +++ Makefile Sun Apr 4 06:31:51 1999 @@@@ -1,7 +1,7 @@@@ # Uptime Client Makefile # Location of config file (for example /etc/upclient.conf) -CONFIGFILE = upclient.conf +CONFIGFILE = ${PREFIX}/etc/upclient.conf ################ @@@@ -13,7 +13,7 @@@@ @@echo "You must specify the system which you want to compile for:" @@echo "" @@echo "make linux Linux" - @@echo "make freebsd FreeBSD" + @@echo "make bsd FreeBSD, NetBSD, OpenBSD, BSDi @@echo "make solaris Solaris" @@echo "" @@@@ -24,11 +24,11 @@@@ CFLAGS='-DLINUX -DCONFIGFILE=\"$(CONFIGFILE)\"' \ upclient -freebsd: +bsd: $(MAKE) CC=gcc \ LDFLAGS= \ OBJECTS= \ - CFLAGS='-DFREEBSD -DCONFIGFILE=\"$(CONFIGFILE)\"' \ + CFLAGS='-DxxxBSD -DCONFIGFILE=\"$(CONFIGFILE)\"' \ upclient a45 1 solaris: @ 1.1.1.1 log @Upclient is a program that keeps track of your server uptime, and lets you compare it with the uptime of other (similar) hosts. It consists of two parts, a client- and a serverpart. The client runs on your server and sends the uptime every few minutes to the server. The server collects all data in a table on this site. @ text @@ 1.1.1.2 log @Re-Added upclient-4.2.1.23: Keeps track of your server uptime Upclient is a program that keeps track of your server uptime, and lets you compare it with the uptime of other (similar) hosts. It consists of two parts, a client- and a serverpart. The client runs on your server and sends the uptime every few minutes to the server. The server collects all data in a table on this site. Package re-added after the service formerly offered by uptimes.net is now again online as http://www.wonko.com/ @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.5 2001/06/28 10:32:46 wiz Exp $ d3 34 a36 16 --- src/options.c Sat Jun 16 14:15:04 2001 +++ src/options.c Tue Jun 19 10:48:25 2001 @@@@ -298,8 +298,11 @@@@ if(!(fp = fopen("/etc/"CONFIGFILE, "r"))) { /* Failed, now try to open config file in /usr/local/etc */ if(!(fp = fopen("/usr/local/etc/"CONFIGFILE, "r"))) { - printf("Error: couldn't open config file %s for reading in:\n- current directory\n- /etc\n- /usr/local/etc\n", CONFIGFILE); - exit(-1); + /* Failed, now try to open config file in /usr/pkg/etc */ + if (!(fp = fopen("/usr/pkg/etc/"CONFIGFILE, "r"))) { + printf("Error: couldn't open config file %s for reading in:\n- current directory\n- /etc\n- /usr/local/etc\n- /usr/pkg/etc\n", CONFIGFILE); + exit(-1); + } } } } @