mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-20 22:26:50 +02:00
Currently the message displayed above the login prompt on virtual consoles looks like this: Welcome to Alpine Linux 3.21 Kernel 6.12.8-0-virt on an x86_64 (/dev/ttyS0) The "on an $arch" part results in correct English for some of the supported architectures (e.g. x86_64 and aarch64) but not for some others (e.g. riscv64 and loongarch64). Tweak the message so that correct English is produced regardless of the architecture. Signed-off-by: Andrea Bolognani <eof@kiyuko.org>
70 lines
1.5 KiB
Text
70 lines
1.5 KiB
Text
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=alpine-base
|
|
pkgver=3.22.0_alpha20250108
|
|
pkgrel=1
|
|
pkgdesc="Meta package for minimal alpine base"
|
|
url="https://alpinelinux.org"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="
|
|
alpine-baselayout
|
|
alpine-conf
|
|
alpine-release
|
|
apk-tools
|
|
busybox
|
|
busybox-mdev-openrc
|
|
busybox-openrc
|
|
busybox-suid
|
|
musl-utils
|
|
openrc
|
|
"
|
|
subpackages="alpine-release:release"
|
|
replaces="alpine-baselayout"
|
|
options="!check"
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"
|
|
}
|
|
|
|
release() {
|
|
depends="alpine-keys"
|
|
pkgdesc="Alpine release data"
|
|
|
|
mkdir -p "$subpkgdir"/etc
|
|
# create /etc/alpine-release
|
|
echo $pkgver > "$subpkgdir"/etc/alpine-release
|
|
local _ver="$(echo "$pkgver" | grep -E -o '^[0-9]+\.[0-9]+')"
|
|
local _rel="v$_ver"
|
|
case "$pkgver" in
|
|
*_alpha*|*_beta*|*_pre*)
|
|
_ver="$pkgver (edge)"
|
|
_rel="edge"
|
|
;;
|
|
esac
|
|
|
|
# create /etc/issue
|
|
cat >"$subpkgdir"/etc/issue<<EOF
|
|
Welcome to Alpine Linux $_ver
|
|
Kernel \\r on \\m (\\l)
|
|
|
|
EOF
|
|
|
|
# create os-release
|
|
mkdir -p "$subpkgdir"/usr/lib
|
|
cat >"$subpkgdir"/usr/lib/os-release<<EOF
|
|
NAME="Alpine Linux"
|
|
ID=alpine
|
|
VERSION_ID=$pkgver
|
|
PRETTY_NAME="Alpine Linux $_rel"
|
|
HOME_URL="https://alpinelinux.org/"
|
|
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
|
|
EOF
|
|
ln -s ../usr/lib/os-release "$subpkgdir"/etc/os-release
|
|
|
|
# create secfixes.d repository list
|
|
mkdir -p "$subpkgdir"/etc/secfixes.d
|
|
cat >"$subpkgdir"/etc/secfixes.d/alpine<<EOF
|
|
https://secdb.alpinelinux.org/$_rel/main.json
|
|
https://secdb.alpinelinux.org/$_rel/community.json
|
|
EOF
|
|
}
|