summaryrefslogtreecommitdiffstats
path: root/abs/core/runit
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2011-08-20 15:21:59 (GMT)
committerJames Meyer <james.meyer@operamail.com>2011-08-20 15:21:59 (GMT)
commitd66c33d9e436aa96c477991f89ebd85407bae0cb (patch)
treec53cafec2d4e5505c473616413209de0d38dce2c /abs/core/runit
parent94b35c36de73945918cd2d09f23735a0c4e84fe4 (diff)
downloadlinhes_pkgbuild-d66c33d9e436aa96c477991f89ebd85407bae0cb.zip
linhes_pkgbuild-d66c33d9e436aa96c477991f89ebd85407bae0cb.tar.gz
linhes_pkgbuild-d66c33d9e436aa96c477991f89ebd85407bae0cb.tar.bz2
runit & sysvinit : remove power related scripts and move them to a common
Diffstat (limited to 'abs/core/runit')
-rw-r--r--abs/core/runit/PKGBUILD18
-rwxr-xr-xabs/core/runit/halt.script16
-rwxr-xr-xabs/core/runit/poweroff.script11
-rwxr-xr-xabs/core/runit/reboot.script11
-rwxr-xr-xabs/core/runit/shutdown.script45
5 files changed, 5 insertions, 96 deletions
diff --git a/abs/core/runit/PKGBUILD b/abs/core/runit/PKGBUILD
index f1b1bb2..7bfd9f5 100644
--- a/abs/core/runit/PKGBUILD
+++ b/abs/core/runit/PKGBUILD
@@ -1,16 +1,16 @@
pkgname=runit
pkgver=2.1.1
-pkgrel=4
+pkgrel=6
pkgdesc="A replacement for sysvinit, and other init schemes, with service supervision"
url="http://smarden.org/runit/"
license=('BSD')
-depends=('glibc' 'util-linux' 'initscripts')
+depends=('glibc' 'util-linux' 'initscripts' 'poweroff-scripts>= 1.1')
makedepends=()
conflicts=()
replaces=()
backup=()
-install=runit.install
-source=(http://smarden.org/runit/$pkgname-$pkgver.tar.gz add_service.sh remove_service.sh halt.script reboot.script poweroff.script shutdown.script)
+#install=runit.install
+source=(http://smarden.org/runit/$pkgname-$pkgver.tar.gz add_service.sh remove_service.sh)
arch=('i686')
build() {
@@ -31,10 +31,6 @@ package() {
install -d $pkgdir/usr/man/man8
install -m0755 $srcdir/add_service.sh $pkgdir/sbin
install -m0755 $srcdir/remove_service.sh $pkgdir/sbin
- install -m0755 $srcdir/reboot.script $pkgdir/sbin
- install -m0755 $srcdir/halt.script $pkgdir/sbin
- install -m0755 $srcdir/poweroff.script $pkgdir/sbin
- install -m0755 $srcdir/shutdown.script $pkgdir/sbin
cd $srcdir/admin/$pkgname-$pkgver/src
for i in `cat ../package/commands`; do
@@ -55,8 +51,4 @@ package() {
}
md5sums=('8fa53ea8f71d88da9503f62793336bc3'
'8ee2bffb82e18ab6a10f01dc2cada38a'
- 'e7845f7609459542e6c5fc024a9ef922'
- 'e347ea8cf2981f2cd4105111ea1ce1d4'
- '263198ec006b87891ea0f3ab1d103086'
- '3ec5f3013dcbd60b6b957d17ba220585'
- 'febe6821f4bea3bfa93f4b6d3df4d801')
+ 'e7845f7609459542e6c5fc024a9ef922')
diff --git a/abs/core/runit/halt.script b/abs/core/runit/halt.script
deleted file mode 100755
index b49ed7c..0000000
--- a/abs/core/runit/halt.script
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/bash
-. /etc/profile
-INIT=`ps -p 1 -o comm=`
-if [ x$1 = x-w ]
-then
- /sbin/halt-init -w
- exit 0
-fi
-chvt 1
-if [ x$INIT = xrunit ]
-then
- /sbin/halt-runit $@
-else
- /sbin/halt-init $@
-fi
-
diff --git a/abs/core/runit/poweroff.script b/abs/core/runit/poweroff.script
deleted file mode 100755
index 99779eb..0000000
--- a/abs/core/runit/poweroff.script
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/bash
-. /etc/profile
-INIT=`ps -p 1 -o comm=`
-chvt 1
-if [ x$INIT = xrunit ]
-then
- /sbin/halt-runit $@
-else
- /sbin/poweroff.init $@
-fi
-
diff --git a/abs/core/runit/reboot.script b/abs/core/runit/reboot.script
deleted file mode 100755
index fcce679..0000000
--- a/abs/core/runit/reboot.script
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/bash
-. /etc/profile
-INIT=`ps -p 1 -o comm=`
-chvt 1
-if [ x$INIT = xrunit ]
-then
- /sbin/reboot-runit $@
-else
- /sbin/reboot.init $@
-fi
-
diff --git a/abs/core/runit/shutdown.script b/abs/core/runit/shutdown.script
deleted file mode 100755
index 229996b..0000000
--- a/abs/core/runit/shutdown.script
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/bash
-. /etc/profile
-INIT=`ps -p 1 -o comm=`
-if [ x$INIT = xrunit ]
-then
- reboot=""
- halt=""
- delay=""
- while getopts rht: name
- do
- case $name in
- r) reboot=1 ;;
- h) halt=1 ;;
- t) delay="$OPTARG"
- if [ x$delay = "xnow" ]
- then
- delay=0
- fi
- ;;
- *)
- exit 2;;
- esac
- done
- if [ x$delay = x ]
- then
- delay=0
- fi
-
- if [ x$reboot = x1 ]
- then
- wall "System will reboot in $delay seconds"
- sleep $delay
- /sbin/runit-init 6
- fi
-
- if [ x$halt = x1 ]
- then
- wall "System will poweroff in $delay seconds"
- sleep $delay
- /sbin/runit-init 0
- fi
-
-else
- /sbin/shutdown-init $@
-fi