mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
main/openrc: new openrc-init subpackage
This subpackage gives users the option to keep the openrc-init binary, even though Alpine does not use it
This commit is contained in:
parent
ce0eae1206
commit
a009012158
@ -2,7 +2,7 @@
|
||||
pkgname=openrc
|
||||
pkgver=0.54.2
|
||||
_ver=${pkgver/_git*/}
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="OpenRC manages the services, startup and shutdown of a host"
|
||||
url="https://github.com/OpenRC/openrc"
|
||||
arch="all"
|
||||
@ -17,6 +17,7 @@ subpackages="
|
||||
$pkgname-tools::noarch
|
||||
$pkgname-static
|
||||
$pkgname-dev
|
||||
$pkgname-init:openrc_init
|
||||
agetty-openrc:_agetty_openrc:noarch
|
||||
$pkgname-bash-completion
|
||||
$pkgname-zsh-completion
|
||||
@ -106,10 +107,6 @@ package() {
|
||||
mv "$pkgdir"/usr/lib/*.so* "$pkgdir"/usr/lib/*.a \
|
||||
"$pkgdir"/lib/
|
||||
|
||||
# Alpine does not use openrc as its init so delete
|
||||
# openrc-init & openrc-shutdown to avoid confusion.
|
||||
rm -f "$pkgdir"/sbin/openrc-init "$pkgdir"/sbin/openrc-shutdown
|
||||
|
||||
# we cannot have anything turned on by default
|
||||
rm -f "$pkgdir"/etc/runlevels/*/*
|
||||
|
||||
@ -175,6 +172,14 @@ _agetty_openrc() {
|
||||
amove etc/conf.d/agetty
|
||||
}
|
||||
|
||||
openrc_init() {
|
||||
pkgdesc="OpenRC init process"
|
||||
|
||||
# Alpine does not use openrc as its init by default
|
||||
amove sbin/openrc-init
|
||||
amove sbin/openrc-shutdown
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
6a4a9e7d84a5b4f1aeb78a271e69560b1d9e621392b36d26997727d75099f3628e7712f09b4e5393bc588eca41b375e2777a307d8b03ce26f45ed297537c9fd6 openrc-0.54.2.tar.gz
|
||||
257861f5f0562e9b9a9fccebae474bd75c4bb51f005a2b8132fd551f061f65863de46c5bc4437f137b4a9d3ca741f9de9274bfa7b418eda70497ed4b5fd3056d 0001-call-sbin-mkmntdirs-in-localmount-OpenRC-service.patch
|
||||
|
Loading…
Reference in New Issue
Block a user