diff options
author | James Meyer <James.meyer@operamail.com> | 2008-10-02 03:19:12 (GMT) |
---|---|---|
committer | James Meyer <James.meyer@operamail.com> | 2008-10-02 03:19:12 (GMT) |
commit | 0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a (patch) | |
tree | c0aa2c0b53c317be87eacfcb77b63f53f1f415e7 /abs/core/runit/PKGBUILD | |
download | linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.zip linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.gz linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.bz2 |
initial import
Diffstat (limited to 'abs/core/runit/PKGBUILD')
-rwxr-xr-x | abs/core/runit/PKGBUILD | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/abs/core/runit/PKGBUILD b/abs/core/runit/PKGBUILD new file mode 100755 index 0000000..4065ae6 --- /dev/null +++ b/abs/core/runit/PKGBUILD @@ -0,0 +1,69 @@ +pkgname=runit +pkgver=1.8.0 +pkgrel=51 +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) +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 + + 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 + #cp -rp $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 -d $startdir/pkg/etc/runit/runsvdir + #install -d $startdir/pkg/etc/runit/runsvdir/default + #ln -s default $startdir/pkg/etc/runit/runsvdir/current + + 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 + #cp -R services/* $startdir/pkg/etc/sv + cd $startdir + install -d $startdir/pkg/usr/bin + install -m0755 fbd $startdir/pkg/usr/bin/fbd + +} |