summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClayton Craft <clayton@craftyguy.net>2024-09-05 15:30:35 -0700
committerNatanael Copa <ncopa@alpinelinux.org>2024-09-06 06:26:53 +0000
commita60311be7b5935ad22dd421500367752d7dd7d29 (patch)
treeee75235ffe494a05bc890f96d3d06cc09bb59e2e
parent4464ef68d0fc08287504be5a98d47afb2306a3e7 (diff)
downloadaports-a60311be7b5935ad22dd421500367752d7dd7d29.zip
main/alpine-base: move os-release to /usr
This moves os-release to /usr, and creates a relative symlink at /etc/os-release to it. The symlink is for backwards compatibility. This is the recommended way to install os-release, as described in the os-release manpage[1] 1. https://www.man7.org/linux/man-pages/man5/os-release.5.html
-rw-r--r--main/alpine-base/APKBUILD6
1 files changed, 4 insertions, 2 deletions
diff --git a/main/alpine-base/APKBUILD b/main/alpine-base/APKBUILD
index d106010c229..00372348d53 100644
--- a/main/alpine-base/APKBUILD
+++ b/main/alpine-base/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=alpine-base
pkgver=3.21.0_alpha20240807
-pkgrel=0
+pkgrel=1
pkgdesc="Meta package for minimal alpine base"
url="https://alpinelinux.org"
arch="noarch"
@@ -51,7 +51,8 @@ Kernel \\r on an \\m (\\l)
EOF
# create os-release
- cat >"$subpkgdir"/etc/os-release<<EOF
+ mkdir -p "$subpkgdir"/usr/lib
+ cat >"$subpkgdir"/usr/lib/os-release<<EOF
NAME="Alpine Linux"
ID=alpine
VERSION_ID=$pkgver
@@ -59,6 +60,7 @@ 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