summaryrefslogtreecommitdiff
path: root/net/upclient
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>1999-04-06 20:09:59 +0000
committerhubertf <hubertf@pkgsrc.org>1999-04-06 20:09:59 +0000
commitc084681fdb6f093114ca96e7e4fc4bca8a3315c6 (patch)
tree909a45230d309606aa162a1c35916dd23d880f4f /net/upclient
parent60060ae31db5d5c2d7587e286c5038c34b713da1 (diff)
downloadpkgsrc-c084681fdb6f093114ca96e7e4fc4bca8a3315c6.tar.gz
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.
Diffstat (limited to 'net/upclient')
-rw-r--r--net/upclient/Makefile31
-rw-r--r--net/upclient/files/md53
-rw-r--r--net/upclient/files/upclient.sh7
-rw-r--r--net/upclient/patches/patch-aa36
-rw-r--r--net/upclient/patches/patch-ab13
-rw-r--r--net/upclient/patches/patch-ac14
-rw-r--r--net/upclient/pkg/COMMENT1
-rw-r--r--net/upclient/pkg/DESCR6
-rw-r--r--net/upclient/pkg/MESSAGE10
-rw-r--r--net/upclient/pkg/PLIST7
10 files changed, 128 insertions, 0 deletions
diff --git a/net/upclient/Makefile b/net/upclient/Makefile
new file mode 100644
index 00000000000..345ac30ece3
--- /dev/null
+++ b/net/upclient/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1.1.1 1999/04/06 20:09:59 hubertf Exp $
+#
+
+DISTNAME= upclient-3.02
+CATEGORIES= net
+MASTER_SITES= http://uptime.hexon.cx/download/ \
+ ftp://uptime.hexon.cx/pub/
+
+MAINTAINER= hubertf@netbsd.org
+HOMEPAGE= http://uptime.hexon.cx/
+
+ALL_TARGET= bsd
+MESSAGE_FILE= ${WRKDIR}/.MESSAGE
+
+post-extract:
+ ${SED} \
+ -e 's|@PREFIX@|${PREFIX}|g' \
+ ${PKGDIR}/MESSAGE >${MESSAGE_FILE}
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/upclient ${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/upclient
+ ${INSTALL_DATA} ${WRKSRC}/CHANGES ${PREFIX}/share/doc/upclient
+ ${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/upclient
+ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/upclient
+ ${INSTALL_DATA} ${WRKSRC}/upclient.conf ${PREFIX}/etc/upclient.conf.example
+ ${SED} \
+ -e 's|@PREFIX@|${PREFIX}|g' \
+ ${FILESDIR}/upclient.sh >${PREFIX}/etc/rc.d/upclient.sh
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/upclient/files/md5 b/net/upclient/files/md5
new file mode 100644
index 00000000000..892ac3bb0b3
--- /dev/null
+++ b/net/upclient/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 1999/04/06 20:10:00 hubertf Exp $
+
+MD5 (upclient-3.02.tar.gz) = a9b5b801033ddd59e29fab6ff86175ce
diff --git a/net/upclient/files/upclient.sh b/net/upclient/files/upclient.sh
new file mode 100644
index 00000000000..27291b263ff
--- /dev/null
+++ b/net/upclient/files/upclient.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if [ -x @PREFIX@/bin/upclient ]
+then
+ @PREFIX@/bin/upclient
+ echo -n ' upclient'
+fi
diff --git a/net/upclient/patches/patch-aa b/net/upclient/patches/patch-aa
new file mode 100644
index 00000000000..a8f3e0b0d88
--- /dev/null
+++ b/net/upclient/patches/patch-aa
@@ -0,0 +1,36 @@
+$NetBSD: patch-aa,v 1.1.1.1 1999/04/06 20:10:00 hubertf Exp $
+
+--- 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
+
+ solaris:
diff --git a/net/upclient/patches/patch-ab b/net/upclient/patches/patch-ab
new file mode 100644
index 00000000000..ed7243ece1b
--- /dev/null
+++ b/net/upclient/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 1999/04/06 20:10:00 hubertf Exp $
+
+--- upclient.c.orig Sat Apr 3 16:25:30 1999
++++ upclient.c Sun Apr 4 06:23:31 1999
+@@ -193,7 +193,7 @@
+ return 1;
+ }
+
+-#ifdef FREEBSD
++#ifdef xxxBSD
+ int getUptime (uptime)
+ unsigned long *uptime;
+ {
diff --git a/net/upclient/patches/patch-ac b/net/upclient/patches/patch-ac
new file mode 100644
index 00000000000..36ccb2065f4
--- /dev/null
+++ b/net/upclient/patches/patch-ac
@@ -0,0 +1,14 @@
+$NetBSD: patch-ac,v 1.1.1.1 1999/04/06 20:10:00 hubertf Exp $
+
+--- upclient.h.orig Sat Apr 3 12:16:00 1999
++++ upclient.h Sun Apr 4 06:23:36 1999
+@@ -30,7 +30,8 @@
+ #include <sys/types.h>
+ #include <sys/utsname.h>
+
+-#ifdef FREEBSD
++#ifdef xxxBSD
++#include <sys/param.h>
+ #include <sys/sysctl.h>
+ #endif
+
diff --git a/net/upclient/pkg/COMMENT b/net/upclient/pkg/COMMENT
new file mode 100644
index 00000000000..2ea90f687f8
--- /dev/null
+++ b/net/upclient/pkg/COMMENT
@@ -0,0 +1 @@
+Keeps track of your server uptime, and lets you compare it other hosts
diff --git a/net/upclient/pkg/DESCR b/net/upclient/pkg/DESCR
new file mode 100644
index 00000000000..373c6d2cd3f
--- /dev/null
+++ b/net/upclient/pkg/DESCR
@@ -0,0 +1,6 @@
+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.
diff --git a/net/upclient/pkg/MESSAGE b/net/upclient/pkg/MESSAGE
new file mode 100644
index 00000000000..e7d46363987
--- /dev/null
+++ b/net/upclient/pkg/MESSAGE
@@ -0,0 +1,10 @@
+To fully configure the upclient, you need to
+
+1. Register at http://uptime.hexon.cx/register.html
+2. Confirm your account as stated in the mail you get
+3. Login on the web site and add a host, note the host ID
+4. Copy @PREFIX@/etc/upclient.conf.example to @PREFIX@/etc/upclient.conf
+ and enter your values for the HostID, Login, Password and Interval.
+5. Start upclient via @PREFIX@/etc/rc.d/upclient.sh either manually
+ or via /etc/rc.local.
+6. Watch your host show up on the list.
diff --git a/net/upclient/pkg/PLIST b/net/upclient/pkg/PLIST
new file mode 100644
index 00000000000..64b7f03074d
--- /dev/null
+++ b/net/upclient/pkg/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 1999/04/06 20:10:00 hubertf Exp $
+bin/upclient
+etc/rc.d/upclient.sh
+share/doc/upclient/CHANGES
+share/doc/upclient/COPYING
+share/doc/upclient/README
+etc/upclient.conf.example