blob: c484d6efc5172828c8b9591c62c66d712b8ac16f (
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
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=runit
pkgver=2.1.2
pkgrel=0
pkgdesc="UNIX init scheme with service supervision"
url="http://smarden.org/runit/"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://smarden.org/runit/runit-$pkgver.tar.gz
run-service-dir.patch
README.alpine
$pkgname.initd
"
_builddir="$srcdir"/admin/runit-$pkgver/src
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
echo "$CC $CFLAGS" > conf-cc
echo "$CC $LDFLAGS" > conf-ld
}
build() {
cd "$_builddir"
make
}
package() {
cd "$_builddir"
install -d "$pkgdir"/sbin
for i in chpst runit runit-init runsv runsvchdir runsvdir sv svlogd utmpset; do
install -m755 "$i" "$pkgdir"/sbin/$i || return 1
done
install -d "$pkgdir"/usr/share/man/man8
cd .. && cp -rf man/* "$pkgdir"/usr/share/man/man8/
install -m755 -D "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/runitd || return 1
install -Dm644 "$srcdir"/README.alpine \
"$pkgdir"/usr/share/doc/$pkgname/README.alpine || return 1
mkdir -p "$pkgdir"/etc/service
mkdir -p "$pkgdir"/etc/sv
}
md5sums="6c985fbfe3a34608eb3c53dc719172c4 runit-2.1.2.tar.gz
dc4e4b469451497e37cb295136a9b23b run-service-dir.patch
6ad1a147996f44854152dc8e650035ce README.alpine
5399d00c9d611116ae697437dfc48527 runit.initd"
sha256sums="6fd0160cb0cf1207de4e66754b6d39750cff14bb0aa66ab49490992c0c47ba18 runit-2.1.2.tar.gz
4f4df10f35cd103d7cab27d34f4586f2099b4c5a4e007bdc8299196434744c77 run-service-dir.patch
1869a548fda50efeebad59d7178fe6b4fafca8b16067213c258e7e1e21d56e3e README.alpine
5b1c05d674fbe863800c1d4ef03aaaa6b466d02297801ef759b126911c50f3a4 runit.initd"
sha512sums="a18773ebf1aa22305dd89ed67363165b9fcf86c192b2be4e268d08005dd82d51265160c637abe072f2f2e378c4b315a75bd3d3e602c3e75bdd451a3b0190f8cf runit-2.1.2.tar.gz
195102ea27119700d13279a4265e730ea4d682293b52b5a036481057100de9e7865f77f96d027f4d8e774901beaa7f1f3818e17451d359d1be31cc3759db9646 run-service-dir.patch
f6a5ffa9ea9c0e6c76afd92412b5a14ad76695855808274b21c1c0009248019b77b780b4d3d0040c8c3cc4529fc58cdfebec6ea46a9c98ce40df6b4be9ea53bb README.alpine
6f2f2c861f931ce95de791c138e854f7e5ea22c67c81b9ddb146aec07caecdc4ea366075a5ad18372947c58b290fa5186f35345ec6c1451a4d702dd695da1251 runit.initd"
|