diff options
author | hubertf <hubertf> | 2002-05-07 22:25:02 +0000 |
---|---|---|
committer | hubertf <hubertf> | 2002-05-07 22:25:02 +0000 |
commit | 5b954bc83b592a1434d929bd5d984c06b82e62c8 (patch) | |
tree | e3eac5fe419d5c50169c8296a7834ee1f9a6f0a7 | |
parent | 80db7cf1298bb70168620b46bc2a9245d3150696 (diff) | |
download | pkgsrc-5b954bc83b592a1434d929bd5d984c06b82e62c8.tar.gz |
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/
-rw-r--r-- | net/upclient/MESSAGE | 2 | ||||
-rw-r--r-- | net/upclient/Makefile | 41 | ||||
-rw-r--r-- | net/upclient/PLIST | 2 | ||||
-rw-r--r-- | net/upclient/distinfo | 8 | ||||
-rw-r--r-- | net/upclient/files/upclient.sh | 15 | ||||
-rw-r--r-- | net/upclient/patches/patch-aa | 18 | ||||
-rw-r--r-- | net/upclient/patches/patch-ab | 13 | ||||
-rw-r--r-- | net/upclient/patches/patch-ac | 12 | ||||
-rw-r--r-- | net/upclient/patches/patch-ad | 2 |
9 files changed, 110 insertions, 3 deletions
diff --git a/net/upclient/MESSAGE b/net/upclient/MESSAGE index d9f4dfccb9e..fbb95ef7213 100644 --- a/net/upclient/MESSAGE +++ b/net/upclient/MESSAGE @@ -1,5 +1,5 @@ ====================================================================== -$NetBSD: MESSAGE,v 1.1.1.1 2002/05/07 22:20:59 hubertf Exp $ +$NetBSD: MESSAGE,v 1.2 2002/05/07 22:25:02 hubertf Exp $ To start the Uptime Client, run the ${PREFIX}/etc/rc.d/upclient script either manually or via /etc/rc.local. diff --git a/net/upclient/Makefile b/net/upclient/Makefile new file mode 100644 index 00000000000..bcdf2dedd5f --- /dev/null +++ b/net/upclient/Makefile @@ -0,0 +1,41 @@ +# $NetBSD: Makefile,v 1.11 2002/05/07 22:25:03 hubertf Exp $ +# + +DISTNAME= upclient-4.2.1.23 +PKGREVISION= 1 +CATEGORIES= net +MASTER_SITES= http://uptimes.atomicvoid.net/files/ + +MAINTAINER= hubertf@netbsd.org +HOMEPAGE= http://uptimes.wonko.com/ +COMMENT= Keeps track of your server uptime, and compares it to other hosts + +ALL_TARGET= bsd + +post-patch: + ${MV} ${WRKSRC}/scripts/upchk ${WRKSRC}/scripts/upchk.bak + ${SED} \ + -e 's|@PREFIX@|${PREFIX}|g' \ + >${WRKSRC}/scripts/upchk <${WRKSRC}/scripts/upchk.bak + +do-build: + cd ${WRKSRC}/src && ${MAKE} ${ALL_TARGET} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/src/upclient ${PREFIX}/bin + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/upclient + ${INSTALL_DATA} ${WRKSRC}/AUTHORS ${PREFIX}/share/doc/upclient + ${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/upclient + ${INSTALL_DATA} ${WRKSRC}/HISTORY ${PREFIX}/share/doc/upclient + ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/upclient + ${INSTALL_DATA} ${WRKSRC}/FAQ ${PREFIX}/share/doc/upclient + ${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/upclient + ${INSTALL_DATA} ${WRKSRC}/conf/upclient.conf ${PREFIX}/etc + ${SED} \ + -e 's|@PREFIX@|${PREFIX}|g' \ + -e 's|@INSTALL@|${INSTALL}|g' \ + -e 's|@SU@|${SU}|g' \ + ${FILESDIR}/upclient.sh >${PREFIX}/etc/rc.d/upclient + ${CHMOD} +x ${PREFIX}/etc/rc.d/upclient + +.include "../../mk/bsd.pkg.mk" diff --git a/net/upclient/PLIST b/net/upclient/PLIST index 686ad90f541..73cf8b1c891 100644 --- a/net/upclient/PLIST +++ b/net/upclient/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.1.1.1 2002/05/07 22:20:59 hubertf Exp $ +@comment $NetBSD: PLIST,v 1.2 2002/05/07 22:25:03 hubertf Exp $ bin/upclient etc/rc.d/upclient etc/upclient.conf diff --git a/net/upclient/distinfo b/net/upclient/distinfo new file mode 100644 index 00000000000..8b8eab74912 --- /dev/null +++ b/net/upclient/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.6 2002/05/07 22:25:03 hubertf Exp $ + +SHA1 (upclient-4.2.1.23.tar.gz) = c6595959c6a5058b03ab7096a6bf9c0dbfa4285a +Size (upclient-4.2.1.23.tar.gz) = 29386 bytes +SHA1 (patch-aa) = 4492c6741adc516171ecba4d272f5ab46ec28ebe +SHA1 (patch-ab) = dd1e318cee6e27fcf433b2123cf8f3f6ed8eb548 +SHA1 (patch-ac) = 3641ee544199aa0b63ddfb090b64cbab60e9bb8c +SHA1 (patch-ad) = a850246e88af38aa3c64cf18b40f5702208c5887 diff --git a/net/upclient/files/upclient.sh b/net/upclient/files/upclient.sh new file mode 100644 index 00000000000..db74076fc92 --- /dev/null +++ b/net/upclient/files/upclient.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +pidfile=/var/run/upclient.pid + +if [ "$1" = "stop" ]; then + kill `cat $pidfile` + +else + if [ -x @PREFIX@/bin/upclient ] + then + @INSTALL@ -o nobody -m 644 /dev/null $pidfile + @SU@ -m nobody -c @PREFIX@/bin/upclient + echo -n ' upclient' + fi +fi diff --git a/net/upclient/patches/patch-aa b/net/upclient/patches/patch-aa new file mode 100644 index 00000000000..bfaf540bb80 --- /dev/null +++ b/net/upclient/patches/patch-aa @@ -0,0 +1,18 @@ +$NetBSD: patch-aa,v 1.7 2002/05/07 22:25:03 hubertf Exp $ + +--- 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); ++ } + } + } + } diff --git a/net/upclient/patches/patch-ab b/net/upclient/patches/patch-ab new file mode 100644 index 00000000000..ae42b1a5e65 --- /dev/null +++ b/net/upclient/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.5 2002/05/07 22:25:04 hubertf Exp $ + +--- scripts/upchk.orig Tue Jun 19 11:15:24 2001 ++++ scripts/upchk Tue Jun 19 11:15:51 2001 +@@ -24,7 +24,7 @@ + # + + # change this to the full path AND name of your upclient executable: +-upclient="/usr/local/sbin/upclient" ++upclient="@PREFIX@/bin/upclient" + + # change this to the name of your upclient's pidfile (as defined in + # config.h of the upclient distribution) diff --git a/net/upclient/patches/patch-ac b/net/upclient/patches/patch-ac new file mode 100644 index 00000000000..4dd8debb8d9 --- /dev/null +++ b/net/upclient/patches/patch-ac @@ -0,0 +1,12 @@ +$NetBSD: patch-ac,v 1.5 2002/05/07 22:25:04 hubertf Exp $ + +--- src/stats-bsd.c.orig Sat Jun 16 21:12:53 2001 ++++ src/stats-bsd.c +@@ -21,6 +21,7 @@ + #include <sys/dkstat.h> + #include <sys/sysctl.h> + #include <sys/utsname.h> ++#include <sys/sched.h> + + /** + * @desc Get statistics diff --git a/net/upclient/patches/patch-ad b/net/upclient/patches/patch-ad index 2f24736eef9..eb2036eedb9 100644 --- a/net/upclient/patches/patch-ad +++ b/net/upclient/patches/patch-ad @@ -1,4 +1,4 @@ -$NetBSD: patch-ad,v 1.1.1.1 2002/05/07 22:20:59 hubertf Exp $ +$NetBSD: patch-ad,v 1.2 2002/05/07 22:25:04 hubertf Exp $ --- conf/upclient.conf.orig Sat Jun 16 18:33:54 2001 +++ conf/upclient.conf |