Skip to content
Snippets Groups Projects
Commit 8b30ff10 authored by Laurent Bercot's avatar Laurent Bercot :sleeping: Committed by Ariadne Conill
Browse files

main/busybox-openrc: rename from busybox-initscripts


Also remove obsolete post-install/post-upgrade script.
People upgrading from busybox-initscripts will have run it;
people directly installing busybox-openrc do not need it
because the base we install already has the necessary modifications.

Signed-off-by: default avatarLaurent Bercot <ska@appnovation.com>
parent 69d329e1
No related branches found
No related tags found
2 merge requests!39304[3.16] main/expat: security upgrade to 2.4.9,!37834Split busybox-initscripts into busybox-openrc, busybox-extras-openrc, busybox-mdev-openrc
Showing
with 10 additions and 60 deletions
......@@ -2,13 +2,13 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=alpine-base
pkgver=3.17_alpha20220809
pkgrel=1
pkgrel=2
pkgdesc="Meta package for minimal alpine base"
url="https://alpinelinux.org"
arch="noarch"
license="MIT"
depends="alpine-baselayout alpine-conf apk-tools busybox busybox-suid busybox-initscripts
openrc libc-utils alpine-release"
depends="alpine-baselayout alpine-conf apk-tools busybox busybox-suid busybox-openrc
openrc libc-utils alpine-keys"
makedepends=""
install=""
subpackages="alpine-release:release"
......
#!/bin/sh
# this is for upgraders
addgroup -S -g 23 input 2>/dev/null
# this is for upgraders
if [ -L /etc/runlevels/boot/mdev ] && ! [ -L /etc/runlevels/sysinit/mdev ]; then
mkdir -p /etc/runlevels/sysinit
mv /etc/runlevels/boot/mdev /etc/runlevels/sysinit/ 2>/dev/null
fi
rename_service() {
oldname="$1"
newname="$2"
ret=1
for link in /run/openrc/*/${oldname} /etc/runlevels/*/${oldname}; do
newlink="${link%/*}/${newname}"
if [ -L "$link" ] && ! [ -L "$newlink" ]; then
target="$(readlink $link)"
ln -s "${target%/*}/$newname" "$newlink"
rm "$link"
ret=0
continue
fi
if [ -d "$link" ] && ! [ -d "$newlink" ]; then
mv "$link" "$newlink"
ret=0
fi
done
return $ret
}
# cron was renamed to crond
rename_service cron crond
# keymaps was renamed to loadkmap
rename_service keymaps loadkmap && cat 1>&2 <<-EOF
*
* The OpenRC keymaps service was renamed to loadkmap. You might want
* to rename your previous configuration file /etc/conf.d/keymaps to
* /etc/conf.d/loadkmap. Also make sure that /etc/init.d/keymaps was
* removed and remove it manually if it wasn't.
*
EOF
exit 0
busybox-initscripts.post-install
\ No newline at end of file
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=busybox-initscripts
pkgver=4.2
pkgrel=1
pkgdesc="Init scripts for busybox daemons"
url="https://git.alpinelinux.org/aports/tree/main/busybox-initscripts"
pkgname=busybox-openrc
pkgver=1.0
pkgrel=0
pkgdesc="Init scripts for miscellaneous services provided busybox"
url="https://git.alpinelinux.org/aports/tree/main/busybox-openrc"
arch="noarch"
license="GPL-2.0-only"
depends="busybox openrc>=0.24.1-r6 mdev-conf"
makedepends=""
install="$pkgname.post-install $pkgname.post-upgrade"
replaces="alpine-baselayout openntpd"
options="!check"
replaces="alpine-baselayout openntpd busybox-initscripts"
source="acpid.initd crond.initd dnsd.initd httpd.initd inetd.initd klogd.initd
mdev.initd ntpd.initd rdate.initd syslog.initd udhcpd.initd loadkmap.initd
watchdog.initd crond.confd klogd.confd ntpd.confd rdate.confd syslog.confd
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment