aboutsummaryrefslogtreecommitdiffstats
path: root/community/runit/APKBUILD
blob: bbd16f5fc9e1c758e481691a400a8291d665a916 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=runit
pkgver=2.1.2
pkgrel=3
pkgdesc="UNIX init scheme with service supervision"
url="http://smarden.org/runit/"
arch="all"
license="BSD"
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"

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
13b3d1e097d58c7fe78c8c2ae9c829ff  run-service-dir.patch
735265c11ac8653fe61615e5756af272  README.alpine
78cbc567c4c0da26d07a1600fc375ca7  runit.initd"
sha256sums="6fd0160cb0cf1207de4e66754b6d39750cff14bb0aa66ab49490992c0c47ba18  runit-2.1.2.tar.gz
b051476a9cea0673cdd3f849c33555e364540f49436ab7d05f5aeee553d84ab7  run-service-dir.patch
6a49cdf4c9fd8326d9e3fed3df8ff6fae47f60fd586b56d561e0b2d629ea949a  README.alpine
c0e39b97fddc5a19e7f596975118491d7fd6291bf5bff9868f5cc0971f1d3961  runit.initd"
sha512sums="a18773ebf1aa22305dd89ed67363165b9fcf86c192b2be4e268d08005dd82d51265160c637abe072f2f2e378c4b315a75bd3d3e602c3e75bdd451a3b0190f8cf  runit-2.1.2.tar.gz
7107da162f7c13e1483f17bf04a844c23a8d1b81ef982c3d956a4c0e23b2a20e415850f0b95999b1eb1e04638284884948937377756ca080037bd6455e3301e8  run-service-dir.patch
88d1efcf366add7803ed026ec8e693b271c842d4e3d5a52587b7ead96266ee27b4ceb1b2696551243f0d9efa93199a07231d2b37186ce1535e9a6b9d90192909  README.alpine
a3e82785650dbb0a96454ae29635012022bd3a705318bdb56a4430a2f487f4aa17661fb1a87fce56ca535b6a526a618a7673ad66848d5fffb47f5795cdcbf18b  runit.initd"