blob: a3b202eb4ef54dbed8be7a8c5e741287f7b032c3 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
pkgname=runit
pkgver=2.1.1
pkgrel=3
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 shutdown.script)
arch=('i686')
build() {
cd $srcdir/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
}
package() {
install -d $pkgdir/sbin/
install -d $pkgdir/usr/man/man8
install -m0755 $srcdir/add_service.sh $pkgdir/sbin
install -m0755 $srcdir/remove_service.sh $pkgdir/sbin
install -m0755 $srcdir/reboot.script $pkgdir/sbin
install -m0755 $srcdir/halt.script $pkgdir/sbin
install -m0755 $srcdir/poweroff.script $pkgdir/sbin
install -m0755 $srcdir/shutdown.script $pkgdir/sbin
cd $srcdir/admin/$pkgname-$pkgver/src
for i in `cat ../package/commands`; do
install -m0755 $i $pkgdir/sbin/
done
install -m0755 svwaitup $pkgdir/sbin/
install -m0755 svwaitdown $pkgdir/sbin/
install -m0644 ../man/*.8 $pkgdir/usr/man/man8
gzip -9 $pkgdir/usr/man/man8/*.8 || return 1
# rsync -a --exclude=.svn $startdir/runitscripts $srcdir
# cd $srcdir/runitscripts
install -d $pkgdir/etc/
install -d $pkgdir/etc/runit/
install -d $pkgdir/var/service
# install -m0700 1 2 3 ctrlaltdel $pkgdir/etc/runit
# install -m0755 reboot-runit halt-runit logger $pkgdir/sbin
# install -d $pkgdir/etc/sv
# rsync -a --exclude=.svn services/* $pkgdir/etc/sv
cd $startdir
install -d $pkgdir/usr/bin
}
md5sums=('8fa53ea8f71d88da9503f62793336bc3'
'8ee2bffb82e18ab6a10f01dc2cada38a'
'e7845f7609459542e6c5fc024a9ef922'
'e347ea8cf2981f2cd4105111ea1ce1d4'
'263198ec006b87891ea0f3ab1d103086'
'3ec5f3013dcbd60b6b957d17ba220585'
'febe6821f4bea3bfa93f4b6d3df4d801')
|