blob: 777d89ff405c7d96b53807bacc10d9c86be42d49 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
|
pkgname=runit-scripts
pkgver=8.5
pkgrel=2
pkgdesc="collection of startup scripts for runit"
url="http://smarden.org/runit/"
license=('BSD')
depends=('glibc' 'util-linux' 'initscripts' 'runit' )
makedepends=('gcc' 'make' 'rsync')
conflicts=()
replaces=()
backup=('etc/runit/1.local' 'etc/runit/3.local')
install=runit.install
source=('fbsplash-runit.sh'
'http://chneukirchen.org/releases/ignite-0.9.0.tar.gz')
arch=('i686' 'x86_64')
build() {
rsync -a --exclude=.svn --exclude=*~ $startdir/runitscripts $srcdir
#build pause util from ignite
cd $srcdir/ignite-0.9.0/util
sed -i 's/musl-gcc/gcc/g' ./Makefile
make
}
package() {
cd $srcdir/runitscripts
install -d $pkgdir/etc/
install -d $pkgdir/etc/runit/
install -d $pkgdir/etc/sv
install -d $pkgdir/usr/bin
install -d $pkgdir/etc/rc.d/functions.d
#this file contains the function runit-stat which is needed by the runit service scripts
install -m755 $srcdir/fbsplash-runit.sh $pkgdir/etc/rc.d/functions.d/fbsplash-runit.sh
install -m0700 1 2 3 1.local 3.local ctrlaltdel $pkgdir/etc/runit
#install -m0755 reboot-runit halt-runit logger $pkgdir/usr/bin
#install -m0755 logger $pkgdir/usr/bin
rsync -a --exclude=.svn services/* $pkgdir/etc/sv
chmod -R 755 $pkgdir/etc/sv
chown -R root:root $pkgdir/etc/sv
install -D -m0755 $srcdir/ignite-0.9.0/util/pause $pkgdir/usr/bin/pause
install -D -m0644 $srcdir/ignite-0.9.0/util/pause.1 $pkgdir/usr/share/man/man1/pause.1
}
md5sums=('30b944b91aa1f57c5469c8bd210cb497'
'1d88cf79d810e7d371e713f724fa2e85')
|