blob: 5872b0d5278be957f8dc7eb20dc921f6a2dd3fc0 (
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
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer:
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
"
_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/
}
md5sums="6c985fbfe3a34608eb3c53dc719172c4 runit-2.1.2.tar.gz
dc4e4b469451497e37cb295136a9b23b run-service-dir.patch"
sha256sums="6fd0160cb0cf1207de4e66754b6d39750cff14bb0aa66ab49490992c0c47ba18 runit-2.1.2.tar.gz
4f4df10f35cd103d7cab27d34f4586f2099b4c5a4e007bdc8299196434744c77 run-service-dir.patch"
sha512sums="a18773ebf1aa22305dd89ed67363165b9fcf86c192b2be4e268d08005dd82d51265160c637abe072f2f2e378c4b315a75bd3d3e602c3e75bdd451a3b0190f8cf runit-2.1.2.tar.gz
195102ea27119700d13279a4265e730ea4d682293b52b5a036481057100de9e7865f77f96d027f4d8e774901beaa7f1f3818e17451d359d1be31cc3759db9646 run-service-dir.patch"
|