summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/PKGBUILD
blob: 2e5d50b2b055f15011b44830514f70d02002e34f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
pkgname=runit-scripts
pkgver=8.1
pkgrel=1
pkgdesc="collection of startup scripts for runit"
url="http://smarden.org/runit/"
license="BSD"
depends=('glibc' 'util-linux' 'initscripts' 'runit' )
makedepends=('rsync')
conflicts=()
replaces=()
backup=('etc/runit/1.local' 'etc/runit/3.local')
install=runit.install
source=(fbsplash-runit.sh)
arch=('i686' 'x86_64')

build() {
  rsync -a --exclude=.svn --exclude=*~ $startdir/runitscripts $srcdir
}

package() {
  cd $srcdir/runitscripts
  install -d $pkgdir/etc/
  install -d $pkgdir/etc/runit/
  install -d $pkgdir/etc/sv
  install -d $pkgdir/sbin
  install -d $pkgdir/etc/rc.d/functions.d

  install -m0700 1 2 3 1.local 3.local ctrlaltdel $pkgdir/etc/runit
  install -m755 $srcdir/fbsplash-runit.sh $pkgdir/etc/rc.d/functions.d/fbsplash-runit.sh
  install -m0755 reboot-runit halt-runit logger $pkgdir/sbin
  rsync -a --exclude=.svn services/* $pkgdir/etc/sv
  chmod -R  755 $pkgdir/etc/sv
  chown -R root:root $pkgdir/etc/sv
}
md5sums=('c79246677d5ffe687bcf6df1b9c2abc2')