diff options
Diffstat (limited to 'abs/core-testing/runit')
-rwxr-xr-x | abs/core-testing/runit/PKGBUILD | 73 | ||||
-rwxr-xr-x | abs/core-testing/runit/add_service.sh | 15 | ||||
-rwxr-xr-x | abs/core-testing/runit/halt.script | 16 | ||||
-rwxr-xr-x | abs/core-testing/runit/poweroff.script | 11 | ||||
-rwxr-xr-x | abs/core-testing/runit/reboot.script | 11 | ||||
-rwxr-xr-x | abs/core-testing/runit/remove_service.sh | 8 | ||||
-rwxr-xr-x | abs/core-testing/runit/runit.install | 49 | ||||
-rwxr-xr-x | abs/core-testing/runit/shutdown.script | 45 |
8 files changed, 0 insertions, 228 deletions
diff --git a/abs/core-testing/runit/PKGBUILD b/abs/core-testing/runit/PKGBUILD deleted file mode 100755 index bb3a4f5..0000000 --- a/abs/core-testing/runit/PKGBUILD +++ /dev/null @@ -1,73 +0,0 @@ -pkgname=runit -pkgver=1.8.0 -pkgrel=64 -pkgdesc="A replacement for sysvinit, and other init schemes, with service supervision" -url="http://smarden.org/runit/" -license="BSD" -depends=('glibc' 'util-linux' 'initscripts' ) -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) -arch=('i686') - -build() { - cd $startdir/src/admin/$pkgname-$pkgver/src - echo "${CC:-gcc} ${CFLAGS:--Os}" > conf-cc - echo "${LD:-gcc -s}" > conf-ld - make || return 1 - ./compile svwaitdown.c - ./load svwaitdown unix.a byte.a time.a - ./compile svwaitup.c - ./load svwaitup unix.a byte.a time.a - ./compile utmpset.c - ./load utmpset unix.a byte.a - - - - - install -d $startdir/pkg/sbin/ - install -d $startdir/pkg/usr/man/man8 - install -m0755 $startdir/src/add_service.sh $startdir/pkg/sbin - install -m0755 $startdir/src/remove_service.sh $startdir/pkg/sbin - install -m0755 $startdir/src/reboot.script $startdir/pkg/sbin - install -m0755 $startdir/src/halt.script $startdir/pkg/sbin - install -m0755 $startdir/src/poweroff.script $startdir/pkg/sbin - install -m0755 $startdir/src/shutdown.script $startdir/pkg/sbin - - for i in `cat ../package/commands`; do - install -m0755 $i $startdir/pkg/sbin/ - done - - install -m0755 svwaitup $startdir/pkg/sbin/ - install -m0755 svwaitdown $startdir/pkg/sbin/ - install -m0644 ../man/*.8 $startdir/pkg/usr/man/man8 - -# rsync -a --exclude=.svn $startdir/runitscripts $startdir/src -# cd $startdir/src/runitscripts - - install -d $startdir/pkg/etc/ - install -d $startdir/pkg/etc/runit/ - install -d $startdir/pkg/var/service - - -# install -m0700 1 2 3 ctrlaltdel $startdir/pkg/etc/runit -# install -m0755 reboot-runit halt-runit logger $startdir/pkg/sbin - - # install -d $startdir/pkg/etc/sv - # rsync -a --exclude=.svn services/* $startdir/pkg/etc/sv - - cd $startdir - install -d $startdir/pkg/usr/bin - - -} -md5sums=('46549303a336bee8f627bfb399d44085' - '5828ac37537d60ded00252dc02d462c6' - '984dbe096b0db26ad9f3f5b51addd9c9' - 'e347ea8cf2981f2cd4105111ea1ce1d4' - '263198ec006b87891ea0f3ab1d103086' - '3ec5f3013dcbd60b6b957d17ba220585' - 'febe6821f4bea3bfa93f4b6d3df4d801') diff --git a/abs/core-testing/runit/add_service.sh b/abs/core-testing/runit/add_service.sh deleted file mode 100755 index 237af13..0000000 --- a/abs/core-testing/runit/add_service.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash -SERVICE_DIR=/var/service -SCRIPT_DIR=/etc/sv -if [ -d $SCRIPT_DIR/$1 ] -then - if [ -d $SERVICE_DIR/$1 ] - then - echo "$1 is already present" - else - ln -s $SCRIPT_DIR/$1 $SERVICE_DIR/$1 - echo "adding $1" - fi -else - echo "couldn't find $SCRIPT_DIR/$1" -fi diff --git a/abs/core-testing/runit/halt.script b/abs/core-testing/runit/halt.script deleted file mode 100755 index b49ed7c..0000000 --- a/abs/core-testing/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-testing/runit/poweroff.script b/abs/core-testing/runit/poweroff.script deleted file mode 100755 index 99779eb..0000000 --- a/abs/core-testing/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-testing/runit/reboot.script b/abs/core-testing/runit/reboot.script deleted file mode 100755 index fcce679..0000000 --- a/abs/core-testing/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-testing/runit/remove_service.sh b/abs/core-testing/runit/remove_service.sh deleted file mode 100755 index 16c7ecf..0000000 --- a/abs/core-testing/runit/remove_service.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -SERVICE_DIR=/var/service -SCRIPT_DIR=/etc/sv -if [ -e $SERVICE_DIR/$1 ] -then - rm $SERVICE_DIR/$1 - echo "removing $1" -fi diff --git a/abs/core-testing/runit/runit.install b/abs/core-testing/runit/runit.install deleted file mode 100755 index 1728bc6..0000000 --- a/abs/core-testing/runit/runit.install +++ /dev/null @@ -1,49 +0,0 @@ -# arg 1: the new package version - -pre_install () { -if [ ! -f /sbin/halt-init ] -then - mv /sbin/halt /sbin/halt-init - mv /sbin/shutdown /sbin/shutdown-init -fi - rm -f /sbin/reboot - rm -f /sbin/poweroff - -} - -pre_upgrade () { -if [ ! -f /sbin/halt-init ] -then - mv /sbin/halt /sbin/halt-init -fi - -if [ ! -f /sbin/shutdown-init ] -then - mv /sbin/shutdown /sbin/shutdown-init -fi - rm -f /sbin/reboot - rm -f /sbin/poweroff - -} - -post_install () { - mkdir /var/service - [ -e /sbin/halt ] || ln -s /sbin/halt.script /sbin/halt - [ -e /sbin/reboot ] || ln -s /sbin/reboot.script /sbin/reboot - [ -e /sbin/poweroff ] || ln -s /sbin/poweroff.script /sbin/poweroff - [ -e /sbin/reboot.init ] || ln -s /sbin/halt-init /sbin/reboot.init - [ -e /sbin/poweroff.init ] || ln -s /sbin/halt-init /sbin/poweroff.init - [ -e /sbin/shutdown ] || ln -s /sbin/shutdown.script /sbin/shutdown -} - -# arg 1: the new package version -# arg 2: the old package version - -post_upgrade(){ - /bin/true -} - -op=$1 -shift - -$op $* diff --git a/abs/core-testing/runit/shutdown.script b/abs/core-testing/runit/shutdown.script deleted file mode 100755 index 229996b..0000000 --- a/abs/core-testing/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 |