diff options
author | billf <billf@FreeBSD.org> | 1998-11-24 22:43:40 +0000 |
---|---|---|
committer | billf <billf@FreeBSD.org> | 1998-11-24 22:43:40 +0000 |
commit | 1e3719c94674cd9a94d3b9c6f201c957185de024 (patch) | |
tree | 1bae2585aa00554c1357d39ab92382d0fdcac29a /sysutils | |
parent | 2445e61623d5bc1085bae5b3d1d0b0f3d9ca706b (diff) | |
download | FreeBSD-ports-1e3719c94674cd9a94d3b9c6f201c957185de024.zip FreeBSD-ports-1e3719c94674cd9a94d3b9c6f201c957185de024.tar.gz |
Initial import of ports/sysutils/upsmon
Designed specifically for the APC SmartUPS devices, the
software is dependent on the SmartUPS interface and will
only function with SmartUPS devices.
Essentially, this is a simpler version of upsd.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/upsmon/Makefile | 34 | ||||
-rw-r--r-- | sysutils/upsmon/distinfo | 1 | ||||
-rw-r--r-- | sysutils/upsmon/files/patch-aa | 20 | ||||
-rw-r--r-- | sysutils/upsmon/files/upsmon.sh | 7 | ||||
-rw-r--r-- | sysutils/upsmon/pkg-comment | 1 | ||||
-rw-r--r-- | sysutils/upsmon/pkg-descr | 8 | ||||
-rw-r--r-- | sysutils/upsmon/pkg-message | 9 | ||||
-rw-r--r-- | sysutils/upsmon/pkg-plist | 5 |
8 files changed, 85 insertions, 0 deletions
diff --git a/sysutils/upsmon/Makefile b/sysutils/upsmon/Makefile new file mode 100644 index 0000000..f690805 --- /dev/null +++ b/sysutils/upsmon/Makefile @@ -0,0 +1,34 @@ +# New ports collection makefile for: upsmon +# Version required: 2.1.3 +# Date created: 5 Oct 1998 +# Whom: Igor Vinokurov <igor@zynaps.ru> +# +# $Id: $ +# + +DISTNAME= upsmon-2.1.3 +CATEGORIES= sysutils +MASTER_SITES= ftp://newcorridor.com/pub/upsmon/ + +MAINTAINER= ports@FreeBSD.org + +MAKEFILE= makefile.bsdi +NO_PACKAGE= "must provide without modifications" + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/upsstat ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/upsmond ${PREFIX}/sbin + + ${SED} -e 's#!!PREFIX!!#${PREFIX}#g' ${FILESDIR}/upsmon.sh \ + > ${PREFIX}/etc/rc.d/upsmon.sh + @chmod +x ${PREFIX}/etc/rc.d/upsmon.sh + +.if !defined(NOPORTDOCS) + ${MKDIR} ${PREFIX}/share/doc/upsmon + ${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/upsmon +.endif + +post-install: + ${SED} -e 's#/usr/local#${PREFIX}#' ${PKGDIR}/MESSAGE + +.include <bsd.port.mk> diff --git a/sysutils/upsmon/distinfo b/sysutils/upsmon/distinfo new file mode 100644 index 0000000..ef794fe --- /dev/null +++ b/sysutils/upsmon/distinfo @@ -0,0 +1 @@ +MD5 (upsmon-2.1.3.tar.gz) = 2ab764327dcb1cef58a1c8d2745a3884 diff --git a/sysutils/upsmon/files/patch-aa b/sysutils/upsmon/files/patch-aa new file mode 100644 index 0000000..79d209a --- /dev/null +++ b/sysutils/upsmon/files/patch-aa @@ -0,0 +1,20 @@ +--- makefile.bsdi.orig Wed Aug 5 01:18:38 1998 ++++ makefile.bsdi Mon Oct 5 20:11:38 1998 +@@ -33,13 +33,13 @@ + .SUFFIXES: .cc .o #rules for .c and .o + + CC = gcc +-CFLAGS_DEBUG = -O2 -Wall -DDEBUG -g +-CFLAGS_NODEBUG = -O2 -Wall -g ++CFLAGS_DEBUG = -DDEBUG ++CFLAGS_NODEBUG = + + .ifdef DEBUG +-CFLAGS = $(CFLAGS_DEBUG) ++CFLAGS += $(CFLAGS_DEBUG) + .else +-CFLAGS = $(CFLAGS_NODEBUG) ++CFLAGS += $(CFLAGS_NODEBUG) + .endif + + UPSMOND_TARGET = upsmond diff --git a/sysutils/upsmon/files/upsmon.sh b/sysutils/upsmon/files/upsmon.sh new file mode 100644 index 0000000..eb59e9a --- /dev/null +++ b/sysutils/upsmon/files/upsmon.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +# see !!PREFIX!!/share/doc/upsmon/INSTALL for command line option details + +if [ -x !!PREFIX!!/sbin/upsmon ]; then + !!PREFIX!!/sbin/upsmon -p /dev/cuaa0 && echo -n ' upsmond' +fi diff --git a/sysutils/upsmon/pkg-comment b/sysutils/upsmon/pkg-comment new file mode 100644 index 0000000..21d92cf --- /dev/null +++ b/sysutils/upsmon/pkg-comment @@ -0,0 +1 @@ +Basic UPS monitor for the APC SmartUPS devices. diff --git a/sysutils/upsmon/pkg-descr b/sysutils/upsmon/pkg-descr new file mode 100644 index 0000000..607cdcb2 --- /dev/null +++ b/sysutils/upsmon/pkg-descr @@ -0,0 +1,8 @@ +Designed specifically for the APC SmartUPS devices, the +software is dependent on the SmartUPS interface and will +only function with SmartUPS devices. + +Provides the basic functions. + +-- Igor +igor@zynaps.ru diff --git a/sysutils/upsmon/pkg-message b/sysutils/upsmon/pkg-message new file mode 100644 index 0000000..91b8dca --- /dev/null +++ b/sysutils/upsmon/pkg-message @@ -0,0 +1,9 @@ + +upsmon has been installed. + +See /usr/local/share/doc/upsmon/INSTALL for command line +option details. + +NOTE: upsmond will dump core if you start upsstat without + SmartUPS properly attached to the specified port. + diff --git a/sysutils/upsmon/pkg-plist b/sysutils/upsmon/pkg-plist new file mode 100644 index 0000000..3eb3190 --- /dev/null +++ b/sysutils/upsmon/pkg-plist @@ -0,0 +1,5 @@ +bin/upsstat +sbin/upsmond +etc/rc.d/upsmon.sh +share/doc/upsmon/INSTALL +@dirrm share/doc/upsmon |