1 # This PKGBUILD replaces sysV init scheme
2 # with the runit supervision system. see
3 # smarden.org/runit for more information.
6 # Maintainer: Kevin Berry <kb@rubyists.com>
7 pkgname='runit-run-git'
10 pkgdesc="A SysV replacement init scheme with parallel start-up and flexible service directories"
11 arch=('i686' 'x86_64')
12 url="http://github.com/rubyists/runit-run"
14 provides=('runit-run')
15 depends=('runit-dietlibc' 'fgetty')
17 optdepends=('socklog-dietlibc: advanced logging system'
18 'sv-helper: Wrapper for easy service management'
19 'runit-services: a collection of commonly used service directories')
20 backup=('etc/runit/1' 'etc/runit/2' 'etc/runit/3')
21 install='runit-run.install'
23 md5sums=('00378d23a0f0d8bb6dbc60d9f0578b7c')
25 _gitroot="git://github.com/rubyists/runit-run.git"
30 msg "Connecting to GIT server...."
32 if [ -d $_gitname ] ; then
33 cd $_gitname && git pull origin
34 msg "The local files are updated."
36 git clone --depth=1 $_gitroot $_gitname
39 msg "GIT checkout done or server timeout"
43 cd "$srcdir/$_gitname/"
44 install -D -m 0755 etc/runit/1 $pkgdir/etc/runit/1
45 install -m 0755 etc/runit/2 $pkgdir/etc/runit/2
46 install -m 0755 etc/runit/3 $pkgdir/etc/runit/3
47 install -m 0755 etc/runit/ctrlaltdel $pkgdir/etc/runit/ctrlaltdel
48 install -d $pkgdir/etc/runit/runsvdir/runit-run-default
49 install -d $pkgdir/etc/runit/runsvdir/archlinux-default
50 install -D -m 0644 README.runit-run $pkgdir/usr/share/doc/runit-run/README
51 install -d $pkgdir/etc/sv
52 for service in etc/sv/*;do
53 cp -a $service $pkgdir/etc/sv/
55 ln -s /etc/sv/fgetty-tty2 $pkgdir/etc/runit/runsvdir/runit-run-default
56 ln -s /etc/sv/fgetty-tty3 $pkgdir/etc/runit/runsvdir/runit-run-default
57 ln -s /etc/sv/fgetty-tty2 $pkgdir/etc/runit/runsvdir/archlinux-default
58 ln -s /etc/sv/fgetty-tty3 $pkgdir/etc/runit/runsvdir/archlinux-default
60 ln -s /etc/sv/agetty-tty${s} $pkgdir/etc/runit/runsvdir/archlinux-default
63 ln -s /etc/sv/syslog-ng $pkgdir/etc/runit/runsvdir/archlinux-default/
64 ln -s /etc/sv/cron $pkgdir/etc/runit/runsvdir/archlinux-default/