From c6e7eaaf12ab076ff2e642ca0203e1f0dcc26fd8 Mon Sep 17 00:00:00 2001 From: itetcu Date: Tue, 15 Aug 2006 16:09:38 +0000 Subject: The upsdaemon is a simple program to monitor APC-Pro series UPSes. When the power fail, the UpsDaemon it effects shutdown the system. WWW: http://www.ederbs.org/projects/upsdaemon/ - Ederson de Moura ederbs@ederbs.org PR: ports/101841 Submitted by: Ederson de Moura --- sysutils/Makefile | 1 + sysutils/upsdaemon/Makefile | 25 ++++++++++++++++ sysutils/upsdaemon/distinfo | 3 ++ sysutils/upsdaemon/files/upsdaemon.in | 55 +++++++++++++++++++++++++++++++++++ sysutils/upsdaemon/pkg-descr | 8 +++++ sysutils/upsdaemon/pkg-message | 7 +++++ sysutils/upsdaemon/pkg-plist | 4 +++ 7 files changed, 103 insertions(+) create mode 100644 sysutils/upsdaemon/Makefile create mode 100644 sysutils/upsdaemon/distinfo create mode 100644 sysutils/upsdaemon/files/upsdaemon.in create mode 100644 sysutils/upsdaemon/pkg-descr create mode 100644 sysutils/upsdaemon/pkg-message create mode 100644 sysutils/upsdaemon/pkg-plist (limited to 'sysutils') diff --git a/sysutils/Makefile b/sysutils/Makefile index 56a7f4f7e5bd..98fb6f21c9ca 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -597,6 +597,7 @@ SUBDIR += unieject SUBDIR += unquote SUBDIR += upsd + SUBDIR += upsdaemon SUBDIR += upsmon SUBDIR += uptimec SUBDIR += uptimed diff --git a/sysutils/upsdaemon/Makefile b/sysutils/upsdaemon/Makefile new file mode 100644 index 000000000000..010069b68d6c --- /dev/null +++ b/sysutils/upsdaemon/Makefile @@ -0,0 +1,25 @@ +# New ports collection makefile for: UpsDaemon +# Date created: 17 June 2006 +# Whom: Ederson de Moura +# +# $FreeBSD$ +# + +PORTNAME= upsdaemon +PORTVERSION= 1.0 +CATEGORIES= sysutils +MASTER_SITES= http://www.ederbs.org/pub/ \ + ftp://ederbs.org/pub/ + +MAINTAINER= ederbs@ederbs.org +COMMENT= Simple APC UPS Daemon + +MAN8= upsdaemon.8 +MANCOMPRESSED= no + +USE_RC_SUBR= upsdaemon + +post-install: + @${CAT} ${PKGMESSAGE} + +.include diff --git a/sysutils/upsdaemon/distinfo b/sysutils/upsdaemon/distinfo new file mode 100644 index 000000000000..7bc1a90924b5 --- /dev/null +++ b/sysutils/upsdaemon/distinfo @@ -0,0 +1,3 @@ +MD5 (upsdaemon-1.0.tar.gz) = 68791c1f42af9c002cafc30c8514e53f +SHA256 (upsdaemon-1.0.tar.gz) = c89cf173cb4229c4b2ca23120c3c48770aeca6b621d05666f05aea8bc0f28981 +SIZE (upsdaemon-1.0.tar.gz) = 30720 diff --git a/sysutils/upsdaemon/files/upsdaemon.in b/sysutils/upsdaemon/files/upsdaemon.in new file mode 100644 index 000000000000..19a1d89374e8 --- /dev/null +++ b/sysutils/upsdaemon/files/upsdaemon.in @@ -0,0 +1,55 @@ +#!/bin/sh +# +# Copyright (c) 1995, 2006 Ederson de Moura +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer +# in this position and unchanged. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. The name of the author may not be used to endorse or promote products +# derived from this software without specific prior written permission +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# + +# PROVIDE: upsdaemon +# REQUIRE: DAEMON +# KEYWORD: shutdown +# +# Add the following to /etc/rc.conf to enable this service +# +# upsdaemon_enable="YES" + +. /etc/rc.subr + +name=upsdaemon +rcvar=`set_rcvar` + +command=/usr/local/sbin/upsdaemon + +upsdaemon=${upsdaemon:-"/usr/local/libexec/upsdaemon/upsdaemon-alerts"} + +required_files="${upsdaemon}" + +pidfile=/var/run/upsdaemon.pid + +upsdaemon_enable=${upsdaemon_enable:-"NO"} +start_precmd="${upsdaemon_start_precmd}" + +load_rc_config $name +run_rc_command "$1" diff --git a/sysutils/upsdaemon/pkg-descr b/sysutils/upsdaemon/pkg-descr new file mode 100644 index 000000000000..70c9b7e4da92 --- /dev/null +++ b/sysutils/upsdaemon/pkg-descr @@ -0,0 +1,8 @@ + +The upsdaemon is a simple program to monitor APC-Pro series UPSes. +When the power fail, the UpsDaemon it effects shutdown the system. + +WWW: http://www.ederbs.org/projects/upsdaemon/ + +- Ederson de Moura +ederbs@ederbs.org diff --git a/sysutils/upsdaemon/pkg-message b/sysutils/upsdaemon/pkg-message new file mode 100644 index 000000000000..f04f449e4a74 --- /dev/null +++ b/sysutils/upsdaemon/pkg-message @@ -0,0 +1,7 @@ +************************************************* +NOTICE: + + To run UpsDaemon from startup add + upsdaemon_enable="YES" in rc.conf + +************************************************* diff --git a/sysutils/upsdaemon/pkg-plist b/sysutils/upsdaemon/pkg-plist new file mode 100644 index 000000000000..616e8896edc7 --- /dev/null +++ b/sysutils/upsdaemon/pkg-plist @@ -0,0 +1,4 @@ +sbin/upsdaemon +libexec/upsdaemon/upsdaemon-alerts +libexec/upsdaemon/upsdaemon.sh +@dirrm libexec/upsdaemon -- cgit atabases?h=gstreamer'>stats
Commit message (Expand)AuthorAgeFilesLines
* The PostgreSQL Global Development Group announced that the first betagirgen2014-05-1831-0/+2760
* - Update to 2.5.0b5miwi2014-05-183-4/+4
* - Update to 1.5.2miwi2014-05-182-3/+3
* - Update to 1.11.3miwi2014-05-183-5/+5
* - Fix paths for SHEBANG_FILESswills2014-05-181-12/+9
* Catch up with libxml2 api breakage in 2.9.xkwm2014-05-182-1/+119
* Fix shebang.vanilla2014-05-171-1/+13
* - Update to 2.2.0miwi2014-05-173-6/+8
* 1: Support staging.vanilla2014-05-163-4/+22
* Support staging.vanilla2014-05-162-5/+2
* Fix latest build warning with ${DOCDIR}vanilla2014-05-161-1/+1
* - Update to 1.112jadawin2014-05-162-3/+3
* - Update to 0.002105jadawin2014-05-162-3/+3
* - Update to 3.2.0jadawin2014-05-162-3/+3
* Fix pkg-plist.vanilla2014-05-161-22/+22
* add shebangfix, and bump version.vanilla2014-05-161-1/+2
* Support staging.vanilla2014-05-161-6/+4
* Support staging.vanilla2014-05-161-12/+10
* 1: Support staging.vanilla2014-05-164-11/+6
* Fix build on 32-bit archs.ale2014-05-162-0/+22
* Support staging.vanilla2014-05-162-10/+9
* Support staging.vanilla2014-05-161-2/+1
* Support staging.vanilla2014-05-162-9/+4
* Support STAGEDIR.vanilla2014-05-161-6/+2
* Support STAGEDIR.vanilla2014-05-161-6/+4
* Support STAGEDIR.vanilla2014-05-161-13/+12
* Support STAGEDIR.vanilla2014-05-162-1/+23
* Support STAGEDIR.vanilla2014-05-161-8/+7
* Support STAGEDIR.vanilla2014-05-162-14/+13
* Support STAGEDIR.vanilla2014-05-161-4/+3
* Support STAGEDIR.vanilla2014-05-164-19/+25
* - Update to 0.6.5lwhsu2014-05-142-4/+4
* - Update to 0.6.2lwhsu2014-05-143-5/+4
* Update to 4.2.1matthew2014-05-142-3/+3
* - Update to 0.95.012wen2014-05-142-3/+3
* - Update to 1.9.9wen2014-05-142-7/+3
* Upgrade from 2.8.8 to 2.8.9.osa2014-05-142-3/+3
* - Stage.gerald2014-05-142-4/+5
* Maintainer no longer wishes to maintain those 2 portsantoine2014-05-142-2/+2
* Fix build on current [1]zeising2014-05-131-0/+11
* Stagify databases/py-dbf.dbn2014-05-131-1/+2
* twemproxy, aka nutcracker is a fast and lightweight proxy for memcached andskreuzer2014-05-134-0/+34
* databases/mysqltuner: 1.2.0 -> 1.3.0, switch to my FreeBSD account emailpi2014-05-132-10/+15
* - Add py-geoalchemy 0.7.2sunpoet2014-05-134-0/+30
* - Fix build on DragonFlyBSDsunpoet2014-05-131-0/+1
* - Mark deprecated since it's deprecated upstream [1] [2]swills2014-05-123-8/+14
* Update to 2.6.1 release.ale2014-05-1213-547/+13
* Stagify.ale2014-05-121-10/+9
* Add python version against which package was built into PKGNAME;demon2014-05-121-2/+2
* Fix a typo.demon2014-05-121-1/+1
* Remove testing leftover.demon2014-05-121-1/+1
* New port: nagios-check_mongodb.demon2014-05-125-0/+564
* Convert my ports to USES=tarmakc2014-05-121-2/+1
* Stage port.madpilot2014-05-122-13/+6
* Remove EOLed firebird 2.0bapt2014-05-1225-762/+0
* Mark as broken (it does not compile with any modern compilers)bapt2014-05-121-1/+3
* - drop maintainershipdinoex2014-05-112-2/+2
* - Support staging.rakuco2014-05-112-2/+3
* Reset more maintainers:antoine2014-05-111-1/+1
* - Don't remove mtree directoriesamdmi32014-05-103-3/+0
* Update to 4.2.0matthew2014-05-092-10/+5
* databases/my2cego: switch to my FreeBSD account emailpi2014-05-091-1/+1
* - Stagevanilla2014-05-091-7/+8
* - Stagevanilla2014-05-091-8/+7
* databases/freetds-devel: fix pkg-plist for make install,pi2014-05-092-7/+7
* Fix a few nits with databases/pgtune that cause runtimegjb2014-05-091-1/+10
* Fix build after libiodbc/unixODBC changesbapt2014-05-082-3/+4
* Reset maintainer:antoine2014-05-082-2/+2
* - Fix RUN_DEPENDSsunpoet2014-05-081-3/+5
* - Add regression-test:sunpoet2014-05-081-0/+3
* strip binariesbapt2014-05-082-5/+10
* Use optionsbapt2014-05-082-13/+28
* Support stagebapt2014-05-082-29/+13
* Fix buildbapt2014-05-083-35/+45
* Unbreakantoine2014-05-071-0/+1
* - Run autotools in the same order as autoreconf, i.e. libtoolize, aclocal,tijl2014-05-062-10/+5
* Switch over to unixODBC to fix build after r353029bapt2014-05-061-3/+3
* Convert archivers/libzip to USES=libtool. Bump PORTREVISION on alltijl2014-05-066-92/+85
* The KDE on FreeBSD team presents Qt 4.8.6.rakuco2014-05-061-1/+0
* Fix unixODBC vs libiodbc conflictsbapt2014-05-0624-267/+126
* Convert to USES=pgsqlbapt2014-05-059-63/+39
* Convert to USES=pgsqlbapt2014-05-057-21/+11
* Convert all :U to :tu and :L to :tlbapt2014-05-059-14/+14
* Prevent the port from hardcoding its own CFLAGS/CXXFLAGS.rakuco2014-05-035-10/+51
* databases/cego: update 2.20.1 -> 2.20.9pi2014-05-032-4/+4
* - Stageskreuzer2014-05-032-2/+3
* Up to 0.38:vg2014-05-032-3/+3
* Up to 1.5.3:vg2014-05-034-34/+38
* Update to 1.4.8.vg2014-05-024-21/+21
* - Pass maintainership to new volunteerwen2014-05-021-1/+1
* - Allow install lite versionwen2014-05-023-231/+276
* There is no _WITH/_WITHOUT support in bsd.options.mk. Use _ON/_OFF insteadkwm2014-05-011-2/+2
* Fix kerberos enable/disable flags.kwm2014-04-301-1/+2
* - Update to 1.001002sunpoet2014-04-292-5/+7
* Update to 4.0.1.14.48bar2014-04-293-138/+145
* ODBC driver for SQLite 2 and 3.madpilot2014-04-296-0/+88
* - Update to 6.0.1wen2014-04-283-6/+18
* - Update to 4.1.0wen2014-04-283-13/+36
* Mark a few unfetchable ports BROKENantoine2014-04-272-1/+5
* Update to 4.1.14matthew2014-04-272-3/+3
* - Update to 1.11.0sunpoet2014-04-271-1/+1
* - Update to 0.6.5sunpoet2014-04-275-48/+84
* - Update to 1.5.1miwi2014-04-252-3/+3
* - Update to 0.100miwi2014-04-253-5/+7
* Switch to USES=libtoolbapt2014-04-252-48/+21
* Convert to USES=libtool.tijl2014-04-252-7/+3
* . fix plist; [1]bsam2014-04-242-2/+19
* databases/pymongo: update to 2.7wg2014-04-242-3/+3
* . support staging; [1]bsam2014-04-233-592/+578
* When linking a library libA with a library libB using libtool, if libB.latijl2014-04-235-9/+10
* databases/py-gdbm: Make install PREFIX-safekoobs2014-04-231-6/+6
* Support stagebapt2014-04-22