blob: 30628aa8c419bfaf28e18e5b6cfc1275ed561b17 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=openrc
pkgver=0.23.2
_ver=${pkgver/_git*/}
pkgrel=0
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-add-compatibility-for-busybox-sysctl.patch
0004-hide-error-when-migrating-var-run-to-run.patch
0005-rc-pull-in-sysinit-and-boot-as-stacked-levels-when-n.patch
0006-mount-efivars-read-only.patch
0007-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="0a39c94b4b88faa87fc3a4445757fc94 openrc-0.23.2.tar.gz
02f4e31e32f9a3e39d18ac584535e085 0001-call-sbin-mkmntdirs-in-localmount-OpenRC-service.patch
4d9990a419c9482e0c381508a3571f0e 0002-force-root-be-rw-before-localmount.patch
70c05e5415b5733f075a6e25bf264b8f 0003-sysctl-add-compatibility-for-busybox-sysctl.patch
1c0fdb51605c1690ae6c81a7913ae8c2 0004-hide-error-when-migrating-var-run-to-run.patch
4c244568d93ab91117a122f3d26895bf 0005-rc-pull-in-sysinit-and-boot-as-stacked-levels-when-n.patch
43b372f599764f1054d113b12e33e4f7 0006-mount-efivars-read-only.patch
9665f09b75a8ce5e0ae53d88fd53daef 0007-make-consolefont-service-compatible-with-busyboxs-se.patch
d83df5513f08f09fa9e7353327701bf7 openrc.logrotate
60b4cf93ca19aff577fd743ab42878a8 hostname.initd
dddb3d66d87e4cc503c8513e7b0e666a hwdrivers.initd
41974f5408fd2e92892f891b58f2e49f keymaps.initd
1737a6fc5376f924230d173f5c7345d0 modules.initd
30f26648981f986e502f75f78fa77df8 modloop.initd
ead05c56ea93a420dd280eba243b5e5b networking.initd
c1ec888202d868710b5749f7b217d1e3 modloop.confd
8a49d8ae0ec6502d0b5ddb568e73138d sysfsconf.initd"
sha256sums="244a9902a98694a7fd59ad3dec49bd9e61a6b22864795ed31ef8fc81aa474251 openrc-0.23.2.tar.gz
0a4edea94da4c7c9e13df8bd7836834e1a29bac9d582295e6a737f5580f47936 0001-call-sbin-mkmntdirs-in-localmount-OpenRC-service.patch
c495add3bc867604f757df0cbdd0fb486b7a082eeec383065dcd8f478146b6ce 0002-force-root-be-rw-before-localmount.patch
4e344ea28a77682b576baf1683f145b143529a64f330fe332402b23f4dbf095a 0003-sysctl-add-compatibility-for-busybox-sysctl.patch
08f6b6e05ed614b5bc750e17fbe97dc14d365d3efdbd24a4aa33a3301c4edc9f 0004-hide-error-when-migrating-var-run-to-run.patch
4f2c30bd06ec997991057a9e2850d0181163394bf3583fb7b9fec0fedbf1971a 0005-rc-pull-in-sysinit-and-boot-as-stacked-levels-when-n.patch
87265e603e229bdd07a6be845b69aa38d7e6356830e1d66fc59352ff953c1aa2 0006-mount-efivars-read-only.patch
20725b5a98da2932db3f5daa5112ab09e590ca0fec4cf8763612b0d6ca046428 0007-make-consolefont-service-compatible-with-busyboxs-se.patch
30a81fb2f761083088d4d6a3d435fc842966d44588e9837b45ffd03e48be6eb6 openrc.logrotate
dda515d7d906cebcf4137746939f3fdccc7f504fe097ef1dbf429e3e6773a013 hostname.initd
381ba933e6bc545a738ca0d12de9052e90381a850c4a5682b8603f00be64ac81 hwdrivers.initd
32562d39ade4092df8163c2e8cf0b31eeec06aa5713d343e1c487bfa6d9f7c84 keymaps.initd
77b377575563df74d0e3fede5e6171c6eeec974fe487d0e47cccc5e0ed60ec2d modules.initd
af015110acf1f24024f2c21e69042a5ac313c90c88bfb1a653d03d33721c9929 modloop.initd
d925fd36f0a5b85bc6fddfc5e4bee0ab2198577944c11c065a9ff551d046529a networking.initd
a5a0316cd59f5401b1d789bb466c98186201277ba6f014017b14965fcc10c254 modloop.confd
63e7b8c3118612d250f55a711c3e8f0fd328ddd54464e50d0425496cc580beb4 sysfsconf.initd"
sha512sums="6c8483d36812d21ba45bf3c386c6f1c03a9c01c10f48b7e7eb26707d105568b8017ba8a7728a794ac0ac6fedab10cea2bc9587f4d5ddb1957001e03f872e8f18 openrc-0.23.2.tar.gz
71fce711adbcb411189a089f1d49567c50348e12c42b7a9c9b582dae5d18051f88ccf81c768337e87d6792d953e84d1e8b93d7978a1947d7d20ef3b1cd330875 0001-call-sbin-mkmntdirs-in-localmount-OpenRC-service.patch
a229dc9e2037a9ab87858f1a8be2a55bfa351125c3051a60a6e9096e6d0d606832766ebe5302aab88ae15e1aa2c416403701e3c283b45ab16f1e458cc3ac40cd 0002-force-root-be-rw-before-localmount.patch
9dea3fcdb90e3e8078a771beefeba3ca91b9966a1b8ee9ff96cf460e7dd21abbc4a46a501a960c3edf5a76c083c2cf60ccb06d9da7a4c6df2a50660745beb278 0003-sysctl-add-compatibility-for-busybox-sysctl.patch
d54630d40a2d6b10a325cb012d4efcda997a60c008ca953ce5d60059d3f267308a59dabddf93a5fc0d301aa91967137d144effbe5f574394af768ce4ebc48738 0004-hide-error-when-migrating-var-run-to-run.patch
39a35c54ec9112fe84c901ed155a711cec8e194af02d5483ee60b80743dab12391e6fdc7b3da2f86844dd4edcf53e681ff95bd4d6fa1101a89ce54dce2ddbb7c 0005-rc-pull-in-sysinit-and-boot-as-stacked-levels-when-n.patch
af69800eafc08754193833ba06cf20f45c0113715e9f7252eac846fe6bc306a33839d43431b439191667e6f0beb052dc5a2f840325b7cbf270bda014a8ede638 0006-mount-efivars-read-only.patch
234c4f3cf39df3350dbea25c00b8d584794b28194f44c726767a6a16d91a26fee1b5d2dd16635f19803fc015b4e9d99c52b23128e6b815938b88365feba8cf59 0007-make-consolefont-service-compatible-with-busyboxs-se.patch
12bb6354e808fbf47bbab963de55ee7901738b4a912659982c57ef2777fff9a670e867fcb8ec316a76b151032c92dc89a950d7d1d835ef53f753a8f3b41d2cec openrc.logrotate
99b542c0903ad6874b8c308b2e0660a4fe2ff9db962dfec65325cd12c368873a2ae800d5e6d42dc4deff775e1d5c0068869eb72581f7ab16e88d5738afe1d3dd hostname.initd
c06eac7264f6cc6888563feeae5ca745aae538323077903de1b19102e4f16baa34c18b8c27af5dd5423e7670834e2261e9aa55f2b1ec8d8fdc2be105fe894d55 hwdrivers.initd
584ecbbcecb284527d7616790b6e337ace610e4b3cedf2993eca294bfbef54674aeaee3078b6c17d746a0c48b5a64a813c3534136915947e6f62a6fa206cd3ca keymaps.initd
b04058ec630e19de0bafefe06198dc1bff8c8d5d2c89e4660dd83dda8bb82a76cdb1d8661cce88e4a406aa6b4152e17efff52d3eb18ffaec0751d0b6cdbcc48a modules.initd
a0ac5eba5001f20031ae4ef7439fb1e7ffffde1a2c47cfa4e9cab93f8f2e03e06a50c51b42d432e91d88f48a2207db5883f4b3c2be5911b1b255cc81f8b00725 modloop.initd
55df0ac13dac1f215f0c573ac07b150d31232a5204eccfc8941d5af73f91b4535a85d79b7f6514217038ecbe6bffa28cb83fd8d46fd4c596e07103deb8bc8a57 networking.initd
aa702a7da8e6c0e5d8738febaf6b4e4cb021b30ce5c1809b530abf2b36739079446b16fc054740da8d86ed099942cf5deed6597cedb64c058f3def587a8b4689 modloop.confd
d76c75c58e6f4b0801edac4e081b725ef3d50a9a8c9bbb5692bf4d0f804af7d383bf71a73d5d03ed348a89741ef0b2427eb6a7cbf5a9b9ff60a240639fa6ec88 sysfsconf.initd"
|