From dbfd9598e7acac8ad2ad8b9501859d07a51ae4e6 Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Mon, 9 Mar 2009 09:14:55 -0500
Subject: Temp fix for athcool and runit.  This adds the finish file to stop
 the athcool service after running once. Athcool does not like my system, so
 this is untested.

---
 abs/extra-testing/community/athcool/PKGBUILD | 5 +++--
 abs/extra-testing/community/athcool/finish   | 3 +++
 2 files changed, 6 insertions(+), 2 deletions(-)
 create mode 100755 abs/extra-testing/community/athcool/finish

diff --git a/abs/extra-testing/community/athcool/PKGBUILD b/abs/extra-testing/community/athcool/PKGBUILD
index e5d9dde..c5a3290 100644
--- a/abs/extra-testing/community/athcool/PKGBUILD
+++ b/abs/extra-testing/community/athcool/PKGBUILD
@@ -1,6 +1,6 @@
 pkgname=athcool
 pkgver=0.3.12
-pkgrel=2
+pkgrel=3
 pkgdesc="Small utility allowing to enable powersaving mode on AMD Duron/Athlon/Athlon XP processors."
 url="http://members.jcom.home.ne.jp/jacobi/linux/softwares.html"
 depends=(pciutils)
@@ -8,7 +8,7 @@ license="GPL"
 install=athcool.install
 arch=(i686)
 source=(http://members.jcom.home.ne.jp/jacobi/linux/files/$pkgname-$pkgver.tar.gz
-	athcool run)
+athcool run finish)
 md5sums=('f2e0f4fbd04f5e1f09aa60a3ecb24645'
 	 'bbf32484cec6431568ccf51c2516f9e7'
 	 'b9cf31ac580c1665d50d70e405d276bc')
@@ -20,4 +20,5 @@ build() {
   /bin/install -D -m0755 ../athcool $startdir/pkg/etc/rc.d/athcool
   mkdir -p $pkgdir/etc/sv/athcool/supervise
   install -D -m0755 ../run $pkgdir/etc/sv/athcool
+  install -D -m0755 ../finish $pkgdir/etc/sv/athcool
 }
diff --git a/abs/extra-testing/community/athcool/finish b/abs/extra-testing/community/athcool/finish
new file mode 100755
index 0000000..cae6b1b
--- /dev/null
+++ b/abs/extra-testing/community/athcool/finish
@@ -0,0 +1,3 @@
+#!/bin/bash
+exec 2>&1
+sv down athcool
-- 
cgit v0.12

