1 # Maintainer: TJ Vanderpoel <tj@rubyists.com>
5 pkgdesc="A service supervision scheme, compiled with dietlibc"
6 url="http://smarden.org/runit/"
9 depends=('util-linux-ng')
12 makedepends=('dietlibc')
13 optdepends=("runit-services: a collection of commonly used service directories" "runit-run: to replace SysV init with runit init scheme")
15 source=(rsvlog http://smarden.org/runit/runit-$pkgver.tar.gz)
16 md5sums=('e9f0bdde366bca6fd29a9202818f3591'
17 '8fa53ea8f71d88da9503f62793336bc3')
20 cd "$srcdir/admin/runit-$pkgver/src"
23 # we build static against dietlibc
24 echo '/opt/diet/bin/diet -Os gcc -O2 -Wall' > conf-cc
25 echo '/opt/diet/bin/diet -Os gcc -s -Os -pipe' > conf-ld
26 # set default service path to /var/service
27 sed -i -e 's:^char \*varservice ="/service/";$:char \*varservice ="/var/service/";:' sv.c || return 1
31 make check || return 1
33 install -d "$pkgdir/etc/runit/runsvdir/runit-default"
34 install -d "$pkgdir/var"
35 ln -s ../etc/runit/runsvdir/current "${pkgdir}/var/service" || return 1
38 install -d -m0755 "${pkgdir}/sbin" || return 1
39 for i in `cat "$srcdir/admin/runit-$pkgver/package/commands"`
41 install -s -m0755 "$srcdir/admin/runit-$pkgver/src/$i" "${pkgdir}/sbin" || return 1
44 install -d -m0755 "${pkgdir}/usr/share/man/man8" || return 1
45 install -m0644 "$srcdir/admin/runit-$pkgver/man/"* "${pkgdir}/usr/share/man/man8" || return 1
48 install -d -m0755 "${pkgdir}/usr/share/doc/runit" || return 1
49 install -m0644 "$srcdir/admin/runit-$pkgver/doc/"*.html "${pkgdir}/usr/share/doc/runit" || return 1
51 install -D "$srcdir/admin/runit-$pkgver/package/COPYING" "$pkgdir/usr/share/licenses/runit/COPYING"
55 install -D -m0755 "rsvlog" "$pkgdir/usr/bin/rsvlog"