From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Aug 11 19:30:22 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org 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 3E6A916A52F for ; Fri, 11 Aug 2006 19:30:22 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 14A5643D49 for ; Fri, 11 Aug 2006 19:30:20 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k7BJUJPU015961 for ; Fri, 11 Aug 2006 19:30:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k7BJUJLZ015960; Fri, 11 Aug 2006 19:30:19 GMT (envelope-from gnats) Resent-Date: Fri, 11 Aug 2006 19:30:19 GMT Resent-Message-Id: <200608111930.k7BJUJLZ015960@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, Ederson de Moura Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD4DC16A4DF for ; Fri, 11 Aug 2006 19:21:18 +0000 (UTC) (envelope-from root@box.brturbo.com.br) Received: from box.brturbo.com.br (201-34-174-9.fnsce701.dsl.brasiltelecom.net.br [201.34.174.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F59743D55 for ; Fri, 11 Aug 2006 19:21:16 +0000 (GMT) (envelope-from root@box.brturbo.com.br) Received: from box.brturbo.com.br (localhost.brturbo.com.br [127.0.0.1]) by box.brturbo.com.br (8.13.6/8.13.6) with ESMTP id k7BJGfP3002326 for ; Fri, 11 Aug 2006 16:16:41 -0300 (BRT) (envelope-from root@box.brturbo.com.br) Received: (from root@localhost) by box.brturbo.com.br (8.13.6/8.13.6/Submit) id k7BJGfwB002325; Fri, 11 Aug 2006 16:16:41 -0300 (BRT) (envelope-from root) Message-Id: <200608111916.k7BJGfwB002325@box.brturbo.com.br> Date: Fri, 11 Aug 2006 16:16:41 -0300 (BRT) From: Ederson de Moura To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/101844: [NEW PORT] sysutils/upsdaemon: Simple UpsDaemon X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Aug 2006 19:30:22 -0000 >Number: 101844 >Category: ports >Synopsis: [NEW PORT] sysutils/upsdaemon: Simple UpsDaemon >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: Fri Aug 11 19:30:17 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Ederson de Moura >Release: FreeBSD 6.1-RELEASE i386 >Organization: >Environment: System: FreeBSD box.brturbo.com.br 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 7 04:32:43 UTC >Description: The upsdaemon is a simple program to monitor os (UPS) series APC-Pro. When the power fail, the UpsDaemon it effects shutdown the system. WWW: http://www.ederbs.org/projects/upsdaemon/ - Ederson de Moura ederbs@ederbs.org Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- upsdaemon-1.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: # # upsdaemon # upsdaemon/Makefile # upsdaemon/pkg-descr # upsdaemon/pkg-plist # upsdaemon/distinfo # upsdaemon/pkg-message # upsdaemon/files # upsdaemon/files/upsdaemon.sh.in # echo c - upsdaemon mkdir -p upsdaemon > /dev/null 2>&1 echo x - upsdaemon/Makefile sed 's/^X//' >upsdaemon/Makefile << 'END-of-upsdaemon/Makefile' X# New ports collection makefile for: UpsDaemon X# Date created: 17 June 2006 X# Whom: Ederson de Moura X# X# $FreeBSD$ X# X XPORTNAME= upsdaemon XPORTVERSION= 1.0 XCATEGORIES= sysutils XMASTER_SITES= http://www.ederbs.org/pub/ \ X ftp://ederbs.org/pub/ X XMAINTAINER= ederbs@ederbs.org XCOMMENT= Simple UpsDaemon X XMAN8= upsdaemon.8 XMANCOMPRESSED= no X X.if ${PORTNAME} == "upsdaemon" XUSE_RC_SUBR= upsdaemon.sh X.endif X Xpost-install: X @${CAT} ${PKGMESSAGE} X X.include END-of-upsdaemon/Makefile echo x - upsdaemon/pkg-descr sed 's/^X//' >upsdaemon/pkg-descr << 'END-of-upsdaemon/pkg-descr' X XThe upsdaemon is a simple program to monitor os (UPS) series APC-Pro. XWhen the power fail, the UpsDaemon it effects shutdown the system. X XWWW: http://www.ederbs.org/projects/upsdaemon/ X X- Ederson de Moura Xederbs@ederbs.org END-of-upsdaemon/pkg-descr echo x - upsdaemon/pkg-plist sed 's/^X//' >upsdaemon/pkg-plist << 'END-of-upsdaemon/pkg-plist' Xsbin/upsdaemon Xlibexec/upsdaemon/upsdaemon-alerts Xlibexec/upsdaemon/upsdaemon.sh X@dirrm libexec/upsdaemon END-of-upsdaemon/pkg-plist echo x - upsdaemon/distinfo sed 's/^X//' >upsdaemon/distinfo << 'END-of-upsdaemon/distinfo' XMD5 (upsdaemon-1.0.tar.gz) = 68791c1f42af9c002cafc30c8514e53f XSHA256 (upsdaemon-1.0.tar.gz) = c89cf173cb4229c4b2ca23120c3c48770aeca6b621d05666f05aea8bc0f28981 XSIZE (upsdaemon-1.0.tar.gz) = 30720 END-of-upsdaemon/distinfo echo x - upsdaemon/pkg-message sed 's/^X//' >upsdaemon/pkg-message << 'END-of-upsdaemon/pkg-message' X************************************************* XNOTICE: X X To run UpsDaemon from startup add X upsdaemon_enable="YES" in rc.conf X X************************************************* END-of-upsdaemon/pkg-message echo c - upsdaemon/files mkdir -p upsdaemon/files > /dev/null 2>&1 echo x - upsdaemon/files/upsdaemon.sh.in sed 's/^X//' >upsdaemon/files/upsdaemon.sh.in << 'END-of-upsdaemon/files/upsdaemon.sh.in' X#!/bin/sh X# X# Copyright (c) 1995, 2006 Ederson de Moura X# All rights reserved. X# X# Redistribution and use in source and binary forms, with or without X# modification, are permitted provided that the following conditions X# are met: X# 1. Redistributions of source code must retain the above copyright X# notice, this list of conditions and the following disclaimer X# in this position and unchanged. X# 2. Redistributions in binary form must reproduce the above copyright X# notice, this list of conditions and the following disclaimer in the X# documentation and/or other materials provided with the distribution. X# 3. The name of the author may not be used to endorse or promote products X# derived from this software without specific prior written permission X# X# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR X# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES X# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. X# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, X# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT X# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, X# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY X# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT X# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF X# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. X# X X# PROVIDE: upsdaemon X# REQUIRE: DAEMON X# KEYWORD: shutdown X# X# Add the following to /etc/rc.conf to enable this service X# X# upsdaemon_enable="YES" X X. /etc/rc.subr X Xname=upsdaemon Xrcvar=`set_rcvar` X Xcommand=/usr/local/sbin/upsdaemon X Xupsdaemon=${upsdaemon:-"/usr/local/libexec/upsdaemon/upsdaemon-alerts"} X Xrequired_files="${upsdaemon}" X Xpidfile=/var/run/upsdaemon.pid X Xupsdaemon_enable=${upsdaemon_enable:-"NO"} Xstart_precmd="${upsdaemon_start_precmd}" X Xload_rc_config $name Xrun_rc_command "$1" END-of-upsdaemon/files/upsdaemon.sh.in exit --- upsdaemon-1.0.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted: