From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Aug 15 16:50:26 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 386A316A4CE for ; Sun, 15 Aug 2004 16:50:26 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D08943D53 for ; Sun, 15 Aug 2004 16:50:26 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i7FGoQun002283 for ; Sun, 15 Aug 2004 16:50:26 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i7FGoP2p002282; Sun, 15 Aug 2004 16:50:25 GMT (envelope-from gnats) Resent-Date: Sun, 15 Aug 2004 16:50:25 GMT Resent-Message-Id: <200408151650.i7FGoP2p002282@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Tim Bishop Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 629E916A4CE for ; Sun, 15 Aug 2004 16:45:10 +0000 (GMT) Received: from greendale.ukc.ac.uk (greendale.ukc.ac.uk [129.12.21.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id C203D43D41 for ; Sun, 15 Aug 2004 16:45:09 +0000 (GMT) (envelope-from t.d.bishop@kent.ac.uk) Received: from pendennis.ukc.ac.uk ([129.12.3.232]) by greendale.ukc.ac.uk with esmtp (Exim 4.22) id 1BwO7x-00003i-H4; Sun, 15 Aug 2004 17:45:01 +0100 Received: from tdb by pendennis.ukc.ac.uk with local (Exim 4.41 (FreeBSD)) id 1BwO7x-000G7p-ER; Sun, 15 Aug 2004 17:45:01 +0100 Message-Id: Date: Sun, 15 Aug 2004 17:45:01 +0100 From: Tim Bishop Sender: "T.D.Bishop" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: tim@bishnet.net Subject: ports/70490: [NEW PORT] sysutils/openupsd: A UPS daemon for some Belkin UPS's X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Aug 2004 16:50:26 -0000 >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 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 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 X #endif X-#include X #include X #include X #include 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: