Date: Fri, 11 Aug 2006 16:13:01 -0300 (BRT) From: Ederson de Moura <ederbs@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/101842: [NEW PORT] sysutils/upsdaemon: Simple UpsDaemon Message-ID: <200608111913.k7BJD1FE001765@box.brturbo.com.br> Resent-Message-ID: <200608111930.k7BJUGNR015885@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 101842 >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:16 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 <ederbs@ederbs.org> 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 <bsd.port.mk> 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 <ederbs@ederbs.org> 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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608111913.k7BJD1FE001765>