summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-02-20 08:29:13 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-02-20 08:29:13 (GMT)
commit7d9fb00267ecfde5f88448ca2184299ab6594bb2 (patch)
treecb6bbc6d73879612c7aeae7a6c5093ca9693a3ee
parent25373fd6dc5bdbe7c5ac89a4e840f88f3923ed69 (diff)
downloadlinhes_pkgbuild-7d9fb00267ecfde5f88448ca2184299ab6594bb2.zip
linhes_pkgbuild-7d9fb00267ecfde5f88448ca2184299ab6594bb2.tar.gz
linhes_pkgbuild-7d9fb00267ecfde5f88448ca2184299ab6594bb2.tar.bz2
Added run for runit.
-rw-r--r--abs/extra-testing/community/athcool/PKGBUILD10
-rw-r--r--abs/extra-testing/community/athcool/athcool.install18
-rw-r--r--abs/extra-testing/community/athcool/run2
3 files changed, 27 insertions, 3 deletions
diff --git a/abs/extra-testing/community/athcool/PKGBUILD b/abs/extra-testing/community/athcool/PKGBUILD
index 2f38191..e5d9dde 100644
--- a/abs/extra-testing/community/athcool/PKGBUILD
+++ b/abs/extra-testing/community/athcool/PKGBUILD
@@ -1,19 +1,23 @@
pkgname=athcool
pkgver=0.3.12
-pkgrel=1
+pkgrel=2
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)
license="GPL"
+install=athcool.install
arch=(i686)
source=(http://members.jcom.home.ne.jp/jacobi/linux/files/$pkgname-$pkgver.tar.gz
- athcool)
+ athcool run)
md5sums=('f2e0f4fbd04f5e1f09aa60a3ecb24645'
- 'bbf32484cec6431568ccf51c2516f9e7')
+ 'bbf32484cec6431568ccf51c2516f9e7'
+ 'b9cf31ac580c1665d50d70e405d276bc')
build() {
cd $startdir/src/$pkgname-$pkgver
make || return 1
make DESTDIR=$startdir/pkg install
/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
}
diff --git a/abs/extra-testing/community/athcool/athcool.install b/abs/extra-testing/community/athcool/athcool.install
new file mode 100644
index 0000000..8896da2
--- /dev/null
+++ b/abs/extra-testing/community/athcool/athcool.install
@@ -0,0 +1,18 @@
+# arg 1: the new package version
+post_install() {
+ add_service.sh athcool
+}
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ /bin/true
+}
+
+# arg 1: the old package version
+post_remove() {
+ remove_service.sh athcool
+}
+
+op=$1
+shift
+$op $*
diff --git a/abs/extra-testing/community/athcool/run b/abs/extra-testing/community/athcool/run
new file mode 100644
index 0000000..b43936c
--- /dev/null
+++ b/abs/extra-testing/community/athcool/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /usr/sbin/athcool on 2>&1