Commit c62b0896 authored by Lukas's avatar Lukas

Remove powernowd

parent 81891a6e
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=powernowd
pkgver=1.00
pkgrel=1
pkgdesc="Program for powering down CPUs dynamicly"
arch=(i686 x86_64)
url="http://www.deater.net/john/powernowd.html"
license="GPL"
depends=('glibc')
source=(http://www.deater.net/john/$pkgname-$pkgver.tar.gz \
powernowd.rc.d powernowd.conf.d)
build() {
cd $startdir/src/$pkgname-$pkgver
make || return 1
install -D -m755 powernowd $startdir/pkg/usr/sbin/powernowd
install -D -m755 $startdir/src/powernowd.rc.d $startdir/pkg/etc/rc.d/powernowd
install -D -m644 $startdir/src/powernowd.conf.d $startdir/pkg/etc/conf.d/powernowd
}
md5sums=('abc48b690d104e9e71a85400ba19d799' 'e9ce60d70107accfcf0665900c4ec3aa'\
'f5a7c17320d9f8995b9916ddb60dbb71')
# Configuration file for powernowd
# If no options given, powernowd should be able to autodetect
# a sane setup. So most users will not have to put anything
# here.
OPTIONS=""
#!/bin/bash
# AUR Credits:
# simple init script the ARCH-way for Powernowd
# Made by, CyberTron, packages@linuxportalen.com
# Modifications by Alexander Baldeck <alexander@archlinux.org>
# general config
. /etc/rc.conf
. /etc/rc.d/functions
PID=`pidof -o %PPID /usr/sbin/powernowd`
[ -f /etc/conf.d/powernowd ] && source /etc/conf.d/powernowd
case "$1" in
start)
stat_busy "Starting Powernowd"
[ -z "$PID" ] && /usr/sbin/powernowd $OPTIONS 2>/dev/null
if [ $? -gt 0 ]; then
stat_fail
else
echo $PID > /var/run/powernowd.pid
add_daemon powernowd
stat_done
fi
;;
stop)
stat_busy "Stopping Powernowd"
[ ! -z "$PID" ] && kill $PID &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
rm /var/run/powernowd.pid
rm_daemon powernowd
stat_done
fi
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
;;
esac
exit 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment