Date: Tue, 23 May 2000 16:08:37 -0400 (EDT) From: jim@thehousleys.net To: FreeBSD-gnats-submit@freebsd.org Subject: ports/18777: New Port: misc/upclient Message-ID: <200005232008.QAA00633@egg.thehousleys.net>
next in thread | raw e-mail | index | archive | help
>Number: 18777 >Category: ports >Synopsis: New Port: misc/upclient4 www.uptimes.net client >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue May 23 14:10:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: James Housley >Release: FreeBSD 4.0-STABLE i386 >Organization: The Housleys dot Net >Environment: >Description: This is a port of the newest upclient program from www.uptimes.net. This superceeds PR: ports/18401 >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # upclient4 # upclient4/files # upclient4/files/md5 # upclient4/patches # upclient4/patches/patch-aa # upclient4/patches/patch-ab # upclient4/pkg # upclient4/pkg/COMMENT # upclient4/pkg/DESCR # upclient4/pkg/MESSAGE # upclient4/pkg/PLIST # upclient4/Makefile # echo c - upclient4 mkdir -p upclient4 > /dev/null 2>&1 echo c - upclient4/files mkdir -p upclient4/files > /dev/null 2>&1 echo x - upclient4/files/md5 sed 's/^X//' >upclient4/files/md5 << 'END-of-upclient4/files/md5' XMD5 (upclient-4.12.tar.gz) = 10a18a314a1b61b67185586a7d2ed073 END-of-upclient4/files/md5 echo c - upclient4/patches mkdir -p upclient4/patches > /dev/null 2>&1 echo x - upclient4/patches/patch-aa sed 's/^X//' >upclient4/patches/patch-aa << 'END-of-upclient4/patches/patch-aa' X--- Makefile Sun Jan 23 10:53:15 2000 X+++ Makefile Fri Feb 25 17:58:46 2000 X@@ -10,5 +10,17 @@ X # Uncomment for Solaris X #OPTS = -lsocket -lnsl X X+IDINFO = -DLOGINNAME="\"${myUSER}\"" -DPASSWORD="\"${myPASS}\"" X+ X+all: upclient X+ X upclient: upclient.c config.h X- $(CC) $(OPTS) -Wall -o upclient upclient.c X+ $(CC) $(OPTS) $(IDINFO) -Wall -o upclient upclient.c X+ X+clean: X+ rm upclient X+ X+install: upclient X+ $(INSTALL) -o root -g wheel -m 755 -c -p upclient /usr/local/sbin X+ $(INSTALL) -o root -g wheel -m 755 -c -p upchk /usr/local/sbin X+ END-of-upclient4/patches/patch-aa echo x - upclient4/patches/patch-ab sed 's/^X//' >upclient4/patches/patch-ab << 'END-of-upclient4/patches/patch-ab' X--- config.h Sun Feb 13 19:00:58 2000 X+++ config.h Fri Feb 25 17:56:10 2000 X@@ -17,7 +17,7 @@ X * Solaris --> #define PLATFORM_CODE 4 X * AIX --> #define PLATFORM_CODE 5 X */ X-#define PLATFORM_CODE -1 X+#define PLATFORM_CODE 1 X X #if (PLATFORM_CODE == 0) X # define PLATFORM_LINUX X@@ -52,8 +52,10 @@ X * If you haven't registered yourself yet, go to X * http://www.uptimes.net/register.html X */ X+/* X #define LOGINNAME "Enter your loginname here" X #define PASSWORD "Enter your password here" X+*/ X X X X@@ -128,7 +128,7 @@ X * X * Where should the client write it's pidfile? X */ X-#define PIDFILE "<path-to>/upclient.pid" X+#define PIDFILE "/var/run/upclient.pid" X X X END-of-upclient4/patches/patch-ab echo c - upclient4/pkg mkdir -p upclient4/pkg > /dev/null 2>&1 echo x - upclient4/pkg/COMMENT sed 's/^X//' >upclient4/pkg/COMMENT << 'END-of-upclient4/pkg/COMMENT' XThe Server Uptimes project client END-of-upclient4/pkg/COMMENT echo x - upclient4/pkg/DESCR sed 's/^X//' >upclient4/pkg/DESCR << 'END-of-upclient4/pkg/DESCR' XThis is the client program for the Server Uptimes project. XFor more information on the Server Uptimes project visit their web site at: X XWWW: http://www.uptimes.net/ X X- Jim Xjim@thehousleys.net END-of-upclient4/pkg/DESCR echo x - upclient4/pkg/MESSAGE sed 's/^X//' >upclient4/pkg/MESSAGE << 'END-of-upclient4/pkg/MESSAGE' XBefore running the client for the first time, be sure to: X 1. log in (WWW: http://uptime.hexon.cx/login) X X 2. Add your host (WWW: http://uptime.hexon.cx/login/cgi-bin/addhost.cgi) X XNote that in order to send your uptime information to the uptime server, Xyou hosts need more-or-less full-time Internet access. X END-of-upclient4/pkg/MESSAGE echo x - upclient4/pkg/PLIST sed 's/^X//' >upclient4/pkg/PLIST << 'END-of-upclient4/pkg/PLIST' Xsbin/upclient Xsbin/upchk END-of-upclient4/pkg/PLIST echo x - upclient4/Makefile sed 's/^X//' >upclient4/Makefile << 'END-of-upclient4/Makefile' X# New ports collection makefile for: upclient X# Date created: 5 May 2000 X# Whom: James Housley <jim@thehousleys.net> X# X# $FreeBSD$ X# X XPORTNAME= upclient XPORTVERSION= 4.12 XCATEGORIES= misc XMASTER_SITES= ftp://ftp.uptimes.net/pub/uptimes/ \ X http://ftp.uptimes.net/download/ X XMAINTAINER= jim@theousleys.net X XNO_PACKAGE= myUSER and myPASS need to be set at compile time X X# Need to define myUSER and myPASS X.if !defined(myUSER) && !defined(myPASS) Xpre-build: X @${ECHO} X @${ECHO} You must set variable myUSER and myPASS to the username X @${ECHO} and password you used to register at http://www.uptimes.net X @${ECHO} X @${FALSE} X.elif !defined(myUSER) Xpre-build: X @${ECHO} X @${ECHO} You must set variable myUSER to the user name you registered X @${ECHO} at http://www.uptimes.net X @${ECHO} X @${FALSE} X.elif !defined(myPASS) Xpre-build: X @${ECHO} X @${ECHO} You must set variable myPASS the password you received when X @${ECHO} you registered at http://www.uptimes.net X @${ECHO} X @${FALSE} X.endif X Xpost-install: X @${CAT} ${PKGDIR}/MESSAGE X X.include <bsd.port.mk> END-of-upclient4/Makefile exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200005232008.QAA00633>