summaryrefslogtreecommitdiffstats
path: root/main/openrc/APKBUILD
blob: 5e156966806c841d0ce354bc40a599d5a6074330 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=openrc
pkgver=0.5.0
pkgrel=12
pkgdesc="OpenRC manages the services, startup and shutdown of a host"
url="http://roy.marples.name/openrc"
license='BSD-2'
depends=""
subpackages="$pkgname-doc $pkgname-dev"
install="$pkgname.post-install $pkgname.post-upgrade"
source="http://roy.marples.name/downloads/$pkgname/$pkgname-$pkgver.tar.bz2
	dont-provide-ourself.patch
	command-line-size-fix.patch
	openrc-0.4.3-mkmntdirs.patch
	openrc-hwclock.patch
	localmount.patch
	hostname.initd
	hwdrivers.initd
	keymaps.initd
	modules.initd
	modloop.initd
	networking.initd
	local.start
	"

build() {
	cd "$srcdir/$pkgname-$pkgver"
	for i in ../*.patch; do
		msg "Applying $i..."
		patch -p1 < $i || return 1
	done

	make || return 1
	make DESTDIR="$pkgdir/" install

	# we cannot have anything turned on by default
	rm -f "$pkgdir"/etc/runlevels/*/*

	rm -f "$pkgdir"/etc/conf.d/network "$pkgdir"/etc/init.d/network

	# we override some of the scripts
	for i in ../*.initd; do
		j=${i##*/}
		install -Dm755 $i "$pkgdir"/etc/init.d/${j%.initd}
	done

	install -Dm644 ../local.start "$pkgdir"/etc/conf.d/local.start
}

md5sums="9ec7f8425e12abbbd0f7a962aae3fa3c  openrc-0.5.0.tar.bz2
1bb9c2aec9243a781191efcfc68df8c9  dont-provide-ourself.patch
396b1cbd399403ba0448402afc6f9220  command-line-size-fix.patch
8c2c1c2ee0509b63966b7187a2079f4b  openrc-0.4.3-mkmntdirs.patch
f462c976b04cfbb35b2335be15eee7f6  openrc-hwclock.patch
fa1809cd59cc0559a163bc6adc7398f6  localmount.patch
c32e15b0858eef708497e7ee6355a055  hostname.initd
b1e64885f301166df30be3e3cf5338ff  hwdrivers.initd
33ca3e558c42cdd17adccbc7807298f7  keymaps.initd
098a1f16812f56fcb56eb6b6f0fa31f6  modules.initd
4c69d1c6a84cbe0195496c14a757579b  modloop.initd
747168eee535e845179eaef5a3fcb334  networking.initd
0a615d93aab691364c03539c3b496dcc  local.start"