aboutsummaryrefslogtreecommitdiffstats
path: root/main/openrc/APKBUILD
blob: 592194fdc88fd1a23a82224629fab85f8f60e1fc (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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=openrc
pkgver=0.21.7
_ver=${pkgver/_git*/}
pkgrel=2
pkgdesc="OpenRC manages the services, startup and shutdown of a host"
url="http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git"
arch="all"
license='BSD-2'
depends=""
makedepends="bsd-compat-headers"
subpackages="$pkgname-doc $pkgname-dev"
install="$pkgname.post-install $pkgname.post-upgrade"
source="$pkgname-$pkgver.tar.gz::https://github.com/OpenRC/openrc/archive/$pkgver.tar.gz

	0001-call-sbin-mkmntdirs-in-localmount-OpenRC-service.patch
	0002-force-root-be-rw-before-localmount.patch
	0003-sysctl.Linux.in-fix-for-busybox-sysctl.patch
	0004-swap-only-unmount-tmpfs-when-shutting-down.patch
	0005-hide-error-when-migrating-var-run-to-run.patch
	0006-rc-pull-in-sysinit-and-boot-as-stacked-levels-when-n.patch
	0007-mount-efivars-read-only.patch
	0008-make-consolefont-service-compatible-with-busyboxs-se.patch

	openrc.logrotate
	hostname.initd
	hwdrivers.initd
	keymaps.initd
	modules.initd
	modloop.initd
	networking.initd
	modloop.confd
	sysfsconf.initd
	"

builddir="$srcdir/$pkgname-$_ver"
prepare() {
	default_prepare || return 1
	sed -i -e '/^sed/d' "$builddir"/pkgconfig/Makefile \
		|| return 1
}

build() {
	cd "$builddir"
	make LIBEXECDIR=/lib/rc || return 1
}

package() {
	cd "$builddir"
	make LIBEXECDIR=/lib/rc DESTDIR="$pkgdir/" install

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

	# we still use our ifup/ifdown based net config
	rm -f "$pkgdir"/etc/conf.d/network "$pkgdir"/etc/init.d/network

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

	# we override some of the conf.d files
	for i in "$srcdir"/*.confd; do
		j=${i##*/}
		install -Dm644 $i "$pkgdir"/etc/conf.d/${j%.confd}
	done

	install -Dm644 "$srcdir/$pkgname.logrotate" "$pkgdir/etc/logrotate.d/$pkgname"
	install -d "$pkgdir"/etc/local.d "$pkgdir"/run
}

md5sums="50cd24a1bfc3ef2f82b81cd44b5aeb66  openrc-0.21.7.tar.gz
ac16fca77d315dd92ef39db43dd2b39c  0001-call-sbin-mkmntdirs-in-localmount-OpenRC-service.patch
58f42bb7ba1eb8bfc07554dc150a8a6c  0002-force-root-be-rw-before-localmount.patch
04bcb11513ad0178fc00508f288b2160  0003-sysctl.Linux.in-fix-for-busybox-sysctl.patch
9fc84b1130c7a0ad93553c8808af1476  0004-swap-only-unmount-tmpfs-when-shutting-down.patch
2ba09bebca524be06bd2ba9eeabd1be6  0005-hide-error-when-migrating-var-run-to-run.patch
f402d67b185803ea899053c3bccfc87c  0006-rc-pull-in-sysinit-and-boot-as-stacked-levels-when-n.patch
63a6b0e12a5c71d66c1dcb64bc907b6d  0007-mount-efivars-read-only.patch
fdb251e2c6cdc7ec6911bc5dbac88ac3  0008-make-consolefont-service-compatible-with-busyboxs-se.patch
d83df5513f08f09fa9e7353327701bf7  openrc.logrotate
60b4cf93ca19aff577fd743ab42878a8  hostname.initd
887eba592d487d6ffe2b42cfcd2813df  hwdrivers.initd
41974f5408fd2e92892f891b58f2e49f  keymaps.initd
1737a6fc5376f924230d173f5c7345d0  modules.initd
6611e399f60fd25ef8aadef999630b51  modloop.initd
ead05c56ea93a420dd280eba243b5e5b  networking.initd
c1ec888202d868710b5749f7b217d1e3  modloop.confd
8a49d8ae0ec6502d0b5ddb568e73138d  sysfsconf.initd"
sha256sums="522409fb65f4c751e7d01faec54a9446501837abc9e6ee1bea868cb88e4bd603  openrc-0.21.7.tar.gz
9dc7b80480ea8c54fe4fd3967098906d3c535ff420879bb5d8d646e5f7f627bf  0001-call-sbin-mkmntdirs-in-localmount-OpenRC-service.patch
28648317df903af33e369397f52285f8a865b6151f8a89f4d490e28bcebf13b0  0002-force-root-be-rw-before-localmount.patch
d6418b65b9f2f8f31f7b87fb5a3d38baf836b4eed6544f2a6a2b980fd6cc30dd  0003-sysctl.Linux.in-fix-for-busybox-sysctl.patch
6fe8105fe7b18f8d529ee07b4ec53985db84b141cbf5f675c242e09d8c8ebc3b  0004-swap-only-unmount-tmpfs-when-shutting-down.patch
47188ade6627eeadcd9934976f131b7dea574192219be895a9802f6c24d56e09  0005-hide-error-when-migrating-var-run-to-run.patch
0447481a30d1af83293861cf53eef9b0b241d02eeb015e2d10b310acea126c9b  0006-rc-pull-in-sysinit-and-boot-as-stacked-levels-when-n.patch
cd35c4040a9b21da394c598a8996390dab1c520e93e84707014094ab82827163  0007-mount-efivars-read-only.patch
bddeb20a3bfba12b7e8d88cb75143e301e49a47c06235483f500565eff64310c  0008-make-consolefont-service-compatible-with-busyboxs-se.patch
30a81fb2f761083088d4d6a3d435fc842966d44588e9837b45ffd03e48be6eb6  openrc.logrotate
dda515d7d906cebcf4137746939f3fdccc7f504fe097ef1dbf429e3e6773a013  hostname.initd
6cb4d9ea3ad562bcf2697f61f5a76a10481d23f5dead570f82eff576eaca5236  hwdrivers.initd
32562d39ade4092df8163c2e8cf0b31eeec06aa5713d343e1c487bfa6d9f7c84  keymaps.initd
77b377575563df74d0e3fede5e6171c6eeec974fe487d0e47cccc5e0ed60ec2d  modules.initd
724f0634a45db4420abeb9ba3fe417bcd6358835a89fe897af1732d43a805455  modloop.initd
d925fd36f0a5b85bc6fddfc5e4bee0ab2198577944c11c065a9ff551d046529a  networking.initd
a5a0316cd59f5401b1d789bb466c98186201277ba6f014017b14965fcc10c254  modloop.confd
63e7b8c3118612d250f55a711c3e8f0fd328ddd54464e50d0425496cc580beb4  sysfsconf.initd"
sha512sums="3b04af849550a7fb7fbc441a666a9562692e5e3fed0c27e92cf5d98345953ddd2e76177646b9ccc29903c097f89ce588cefc82f66f4dddb36a496e05811a926b  openrc-0.21.7.tar.gz
33bb89638bce6908911643d78586bd24b1a009eec0379a6e7b93ea360dda8512de3730583d177f68f81b6777d6c4ef5a70f1731ad040826f1133c9345486e5d8  0001-call-sbin-mkmntdirs-in-localmount-OpenRC-service.patch
a7468878fdb47de7b0e26eb5a664401e914332e173c5c0a4a3b50ac40f4f20ba750da9600bf1521501d5a5e73ac5f9f17254ccfd17ab6bdcbc8c04fce2a4ef68  0002-force-root-be-rw-before-localmount.patch
4d790d2e0b2ff05580f7481a800e8b77fd7015218d3177e156710e9470ee5b29a0a1c97d5af4ce3a4f5cf7724b67c0eb02cf8c87f3ed82b090b95914d8d9bde8  0003-sysctl.Linux.in-fix-for-busybox-sysctl.patch
e68933f16a2112fdf41bf9827266dd776801656a656fb961c17bb5eaf483e4791e46594b6b47b221a826a83a76e51cd0ec2f0f74c3c6b4b3ac0c0c96ff2f53f1  0004-swap-only-unmount-tmpfs-when-shutting-down.patch
c70d0bb6c8149c370231ef875d37fcfc77a3a6b0511252161abd9c5141bd14d2e12ae74f208f9b8e26057579cb732dad71ce7c1731d79273634d4d69f412565f  0005-hide-error-when-migrating-var-run-to-run.patch
769712a6ad7d401a03b15a29dbe5cb62e67e289a5ff252b470b43a265c7cd51a8bb4819d645c29eb10abdf39d9f705173d1b53d23608f638be7917a6d83a7fc7  0006-rc-pull-in-sysinit-and-boot-as-stacked-levels-when-n.patch
e1d23634e7b6d68c488efefa5a4c5b1ca59385eaab298bd3ac88903f60dd5b20d634da4c837c5a2fed012ec8b07894547984c0646aef7a3b2ab41250e778a874  0007-mount-efivars-read-only.patch
ee9152339674d4cf5609f01a110938ed9817b719679466d71a3ddf192ccaaceb1a7a49a09c2f4f51ec19b85ec9c0ec2ff68765013d8350b9d0d8671e509d5c55  0008-make-consolefont-service-compatible-with-busyboxs-se.patch
12bb6354e808fbf47bbab963de55ee7901738b4a912659982c57ef2777fff9a670e867fcb8ec316a76b151032c92dc89a950d7d1d835ef53f753a8f3b41d2cec  openrc.logrotate
99b542c0903ad6874b8c308b2e0660a4fe2ff9db962dfec65325cd12c368873a2ae800d5e6d42dc4deff775e1d5c0068869eb72581f7ab16e88d5738afe1d3dd  hostname.initd
b51d95df7b692aaea3e14ed009d99b46b82500d505e2eeecb6a20136cee140aea4a7377a65ccc5c51fff64be7a50666be48616d179888eaeff9d35178a7a772b  hwdrivers.initd
584ecbbcecb284527d7616790b6e337ace610e4b3cedf2993eca294bfbef54674aeaee3078b6c17d746a0c48b5a64a813c3534136915947e6f62a6fa206cd3ca  keymaps.initd
b04058ec630e19de0bafefe06198dc1bff8c8d5d2c89e4660dd83dda8bb82a76cdb1d8661cce88e4a406aa6b4152e17efff52d3eb18ffaec0751d0b6cdbcc48a  modules.initd
04631a89c6cf37b95c5934b64961fcee96241498a22d2ccadaf206fe5811c27ca25a035a086aa902dbbb2adb5c7de82669c27cb4b469671df006e6f8e1a194a0  modloop.initd
55df0ac13dac1f215f0c573ac07b150d31232a5204eccfc8941d5af73f91b4535a85d79b7f6514217038ecbe6bffa28cb83fd8d46fd4c596e07103deb8bc8a57  networking.initd
aa702a7da8e6c0e5d8738febaf6b4e4cb021b30ce5c1809b530abf2b36739079446b16fc054740da8d86ed099942cf5deed6597cedb64c058f3def587a8b4689  modloop.confd
d76c75c58e6f4b0801edac4e081b725ef3d50a9a8c9bbb5692bf4d0f804af7d383bf71a73d5d03ed348a89741ef0b2427eb6a7cbf5a9b9ff60a240639fa6ec88  sysfsconf.initd"