Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=3eb461c299e03484558eecb5868832c8aee013ed
commit 3eb461c299e03484558eecb5868832c8aee013ed Author: Miklos Vajna <vmik...@frugalware.org> Date: Sat May 7 15:22:44 2011 +0200 genpower-1.0.2-10-i686 - bin, upstream dead since years diff --git a/source/apps-extra/genpower/FrugalBuild b/source/apps-extra/genpower/FrugalBuild deleted file mode 100644 index ca244f0..0000000 --- a/source/apps-extra/genpower/FrugalBuild +++ /dev/null @@ -1,36 +0,0 @@ -# Compiling Time: 0.01 SBU -# Maintainer: Miklos Vajna <vmik...@frugalware.org> - -pkgname=genpower -pkgver=1.0.2 -pkgrel=10 -pkgdesc="UPS monitoring daemon" -url="http://www.ibiblio.org/pub/linux/system/ups/!INDEX.html" -depends=('glibc>=2.8-3' 'bash') -backup=(etc/sysconfig/ups) -groups=('apps-extra') -archs=('i686' 'x86_64' 'ppc') -up2date="lynx -dump 'http://www.ibiblio.org/pub/Linux/system/ups/?M=D'|grep genpower.*tar.gz$|sed -n 's/.*r-\(.*\)\.t.*/\1/;1 p'" -source=(http://www.ibiblio.org/pub/Linux/system/ups/$pkgname-$pkgver.tar.gz \ - genpowerfail-sbin.diff rc.ups ups) -sha1sums=('175c94ab731f13944ee14f990e15d07b65ca3ce7' \ - '4c01b8be61cb8c0ce987c4692a6f5829310a07d6' \ - 'c421c2204473947fda116468994b09d6d0686ac4' \ - '8c56f1e3366debd8f59a678703895d09b0531011') - -build() -{ - Fpatchall - Fsed "^\(CFLAGS.*= \)\(.*\)$" "\1$CFLAGS" Makefile - ## Fix for :incompatible implicit declaration of built-in function 'strcpy' - sed -e 's/#include <stdio.h>/#include <stdio.h>\n#include <string.h>/' -i gentest.c || Fdie - Fmake - Fmkdir /sbin /usr/man/man8 - make BINDIR=$Fdestdir/sbin SCRIPTDIR=$Fdestdir/sbin \ - MANDIR=$Fdestdir/usr/man/man8 install || Fdie - Frcd ups - Ffile /etc/sysconfig/ups - -} - -# optimization OK diff --git a/source/apps-extra/genpower/genpowerfail-sbin.diff b/source/apps-extra/genpower/genpowerfail-sbin.diff deleted file mode 100644 index af30dc9..0000000 --- a/source/apps-extra/genpower/genpowerfail-sbin.diff +++ /dev/null @@ -1,47 +0,0 @@ -diff -Naur genpower-1.0.2.orig/genpowerfail genpower-1.0.2/genpowerfail ---- genpower-1.0.2.orig/genpowerfail 2001-02-05 22:28:37.000000000 +0100 -+++ genpower-1.0.2/genpowerfail 2004-04-03 18:23:34.000000000 +0200 -@@ -6,19 +6,19 @@ - # This script is also being run when the power comes - # up again (if it does in time!) - # --# Version: /etc/genpowerfail 1.0.1 -+# Version: /sbin/genpowerfail 1.0.1 - # - # Author: Tom Webster <webs...@kaiwan.com> - # - - # Set the path. --PATH=/sbin:/etc:/bin:/usr/bin -+PATH=/sbin:/bin:/usr/bin:/usr/sbin - - # Set location of upsstatus file - statpath="/etc/upsstatus" - - # Set location of file containing PID of running shutdowns --spidpath="/etc/shutdownpid" -+spidpath="/var/run/shutdownpid" - - # See what happened. - case "$1" in -@@ -63,7 +63,7 @@ - shutdown -c "THE POWER IS BACK" - ;; - *) -- echo "Usage: /etc/genpowerfail {start|stop}" -+ echo "Usage: /sbin/genpowerfail {start|stop}" - exit 1 - ;; - esac -diff -Naur genpower-1.0.2.orig/Makefile genpower-1.0.2/Makefile ---- genpower-1.0.2.orig/Makefile 2001-02-05 22:28:37.000000000 +0100 -+++ genpower-1.0.2/Makefile 2004-04-03 18:24:16.000000000 +0200 -@@ -8,7 +8,7 @@ - - NAME = genpower-1.0.1 - BINDIR = /sbin --SCRIPTDIR = /etc -+SCRIPTDIR = /sbin - MANDIR = /usr/man/man8 - OWNER = root - GROUP = root diff --git a/source/apps-extra/genpower/messages/ups.en b/source/apps-extra/genpower/messages/ups.en deleted file mode 100644 index f1d0f59..0000000 --- a/source/apps-extra/genpower/messages/ups.en +++ /dev/null @@ -1,3 +0,0 @@ -stopups="Stopping genpowerd daemon" -startups="Starting genpowerd daemon" -editconfig="you need to edit /etc/sysconfig/ups" diff --git a/source/apps-extra/genpower/messages/ups.hu b/source/apps-extra/genpower/messages/ups.hu deleted file mode 100644 index 1d253ef..0000000 --- a/source/apps-extra/genpower/messages/ups.hu +++ /dev/null @@ -1,3 +0,0 @@ -stopups="A genpowerd leállítása" -startups="A genpowerd indítása" -editconfig="szerkessze a /etc/sysconfig/ups fájlt!" diff --git a/source/apps-extra/genpower/rc.ups b/source/apps-extra/genpower/rc.ups deleted file mode 100644 index f0215de..0000000 --- a/source/apps-extra/genpower/rc.ups +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/sh - -# (c) 2003 Vajna Miklos <vmik...@frugalware.org> -# (c) Patrick J. Volkerding, <volke...@slackware.com> -# rc.ups for FrugalWare -# distributed under GPL License - -# chkconfig: 2345 98 98 -# description: Monitor the UPS with genpowerd - -source /lib/initscripts/functions - -TEXTDOMAIN=ups -TEXTDOMAINDIR=/lib/initscripts/messages -actions=(restart status start stop) -daemon=$"Monitor the UPS with genpowerd" - -[ -e /etc/sysconfig/ups ] && . /etc/sysconfig/ups || exit 1 - -rc_start() -{ - start_msg - if [ -z "$device" ]; then - echo -n ": $editconfig" - ok 1 - else - /sbin/genpowerd $device $type - ok $? - fi -} - -rc_stop() -{ - stop_msg - # see if this is a powerfail situation: - if grep FAIL /etc/upsstatus 1> /dev/null 2> /dev/null ; then - # signal UPS to shut off the inverter: - /sbin/genpowerd -k $device $type - if ! [ "$?" = 0 ]; then - echo -n ": $editconfig" - fi - fi - ok $? -} -rc_restart() -{ - rc_stop - sleep 1 - rc_start -} -rc_exec $1 - diff --git a/source/apps-extra/genpower/ups b/source/apps-extra/genpower/ups deleted file mode 100644 index e1cac89..0000000 --- a/source/apps-extra/genpower/ups +++ /dev/null @@ -1,11 +0,0 @@ -# (c) 2003-2005 Vajna Miklos <vmik...@frugalware.org> -# (c) Patrick J. Volkerding, <volke...@slackware.com> -# /etc/sysconfig/ups for FrugalWare -# distributed under GPL License - -# To use this, uncomment it and edit in your serial device and UPS type. For -# more information, see "man genpowerd". You can see a list of supported UPS -# devices by running genpowerd from the command line. - -#device=/dev/ttyS4 -#type=tripp-nt
_______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git