Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Aug 2004 17:45:01 +0100
From:      Tim Bishop <tim@bishnet.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        tim@bishnet.net
Subject:   ports/70490: [NEW PORT] sysutils/openupsd: A UPS daemon for some Belkin UPS's
Message-ID:  <E1BwO7x-000G7p-ER@pendennis.ukc.ac.uk>
Resent-Message-ID: <200408151650.i7FGoP2p002282@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         70490
>Category:       ports
>Synopsis:       [NEW PORT] sysutils/openupsd: A UPS daemon for some Belkin UPS's
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 15 16:50:25 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Tim Bishop
>Release:        FreeBSD 5.2.1-RELEASE-p9 i386
>Organization:
>Environment:
System: FreeBSD pendennis.ukc.ac.uk 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #1: Sun Jul 18 15:23:54 BST 2004
>Description:
OpenUPSd is a UPS daemon, pretty specific to those Belkin
serial-connected UPS's that speak the "regulator pro smart protocol".
This daemon is monitoring only, at the moment anyway.

WWW: http://frmb.org/openupsd.html

Generated with FreeBSD Port Tools 0.50
>How-To-Repeat:
>Fix:

--- openupsd-0.3.0.shar begins here ---
# 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:
#
#	openupsd
#	openupsd/Makefile
#	openupsd/pkg-descr
#	openupsd/distinfo
#	openupsd/files
#	openupsd/files/patch-support.c
#	openupsd/files/openupsd.sh
#
echo c - openupsd
mkdir -p openupsd > /dev/null 2>&1
echo x - openupsd/Makefile
sed 's/^X//' >openupsd/Makefile << 'END-of-openupsd/Makefile'
X# New ports collection makefile for:	openupsd
X# Date created:				15 August 2004
X# Whom:					Tim Bishop <tim@bishnet.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	openupsd
XPORTVERSION=	0.3.0
XCATEGORIES=	sysutils
XMASTER_SITES=	http://frmb.org/download/
X
XMAINTAINER=	tim@bishnet.net
XCOMMENT=	A UPS daemon for some Belkin UPS's
X
XUSE_RC_SUBR=	yes
XGNU_CONFIGURE=	yes
XCONFIGURE_ARGS=	--program-transform-name= --bindir=${PREFIX}/sbin
X
XPLIST_FILES=	sbin/openupsd etc/openupsd.conf.sample etc/rc.d/openupsd.sh
X
Xpost-extract:
X	@${SED} -e 's#%%RC_SUBR%%#${RC_SUBR}#g' -e 's#%%PREFIX%%#${PREFIX}#g' \
X		${FILESDIR}/openupsd.sh > ${WRKDIR}/openupsd.sh
X
Xpost-install:
X	${INSTALL_DATA} ${WRKSRC}/openupsd.conf ${PREFIX}/etc/openupsd.conf.sample
X	${INSTALL_SCRIPT} ${WRKDIR}/openupsd.sh ${PREFIX}/etc/rc.d/
X
X.include <bsd.port.mk>
END-of-openupsd/Makefile
echo x - openupsd/pkg-descr
sed 's/^X//' >openupsd/pkg-descr << 'END-of-openupsd/pkg-descr'
XOpenUPSd is a UPS daemon, pretty specific to those Belkin
Xserial-connected UPS's that speak the "regulator pro smart protocol".
XThis daemon is monitoring only, at the moment anyway.
X
XWWW: http://frmb.org/openupsd.html
END-of-openupsd/pkg-descr
echo x - openupsd/distinfo
sed 's/^X//' >openupsd/distinfo << 'END-of-openupsd/distinfo'
XMD5 (openupsd-0.3.0.tar.gz) = 99cecb372895a8a08d9ae5b2d428a606
XSIZE (openupsd-0.3.0.tar.gz) = 120596
END-of-openupsd/distinfo
echo c - openupsd/files
mkdir -p openupsd/files > /dev/null 2>&1
echo x - openupsd/files/patch-support.c
sed 's/^X//' >openupsd/files/patch-support.c << 'END-of-openupsd/files/patch-support.c'
X--- support.c.bak	Sun Aug 15 16:26:05 2004
X+++ support.c	Sun Aug 15 16:26:13 2004
X@@ -23,7 +23,6 @@
X #ifdef HAVE_STDLIB_H
X #include <stdlib.h>
X #endif
X-#include <malloc.h>
X #include <sys/time.h>
X #include <netinet/in.h>
X #include <termios.h>
END-of-openupsd/files/patch-support.c
echo x - openupsd/files/openupsd.sh
sed 's/^X//' >openupsd/files/openupsd.sh << 'END-of-openupsd/files/openupsd.sh'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X# PROVIDE: openupsd
X# REQUIRE: LOGIN
X# KEYWORD: FreeBSD shutdown
X
Xopenupsd_enable=${openupsd_enable:-"NO"}
X
X. %%RC_SUBR%%
X
Xname="openupsd"
Xrcvar=`set_rcvar`
X
Xstart_cmd="${name}_start"
Xstop_cmd="${name}_stop"
X
Xopenupsd_start()
X{
X	%%PREFIX%%/sbin/openupsd
X}
X
Xopenupsd_stop()
X{
X	killall openupsd
X}
X
Xload_rc_config $name
Xrun_rc_command "$1"
END-of-openupsd/files/openupsd.sh
exit
--- openupsd-0.3.0.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1BwO7x-000G7p-ER>