aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-05-21 10:05:26 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-05-21 10:05:26 +0000
commit989df3d6c7fe22573b30100d9d7c1d3283f6338b (patch)
treeb979a45e0d3f1ab470ec133ba97cfd3eb1ef52a2 /main
parent95938b7d460fcadadabff44c0953184999aaf1d0 (diff)
downloadaports-989df3d6c7fe22573b30100d9d7c1d3283f6338b.tar.gz
aports-989df3d6c7fe22573b30100d9d7c1d3283f6338b.tar.bz2
aports-989df3d6c7fe22573b30100d9d7c1d3283f6338b.tar.xz
main/alpine-base: add os-release file
http://www.freedesktop.org/software/systemd/man/os-release.html
Diffstat (limited to 'main')
-rw-r--r--main/alpine-base/APKBUILD13
1 files changed, 12 insertions, 1 deletions
diff --git a/main/alpine-base/APKBUILD b/main/alpine-base/APKBUILD
index 33147dfd49..80f9f0c6af 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.0_beta3
-pkgrel=0
+pkgrel=1
pkgdesc="Meta package for minimal alpine base"
url="http://alpinelinux.org"
arch="noarch"
@@ -30,4 +30,15 @@ Welcome to Alpine Linux ${pkgver%.*}
Kernel \\r on an \\m (\\l)
EOF
+
+ _ver="$(echo "$pkgver" | grep -E -o '^[0-9]+\.[0-9]+')"
+ # create os-release
+ cat >"$pkgdir"/etc/os-release<<EOF
+NAME="Alpine Linux"
+ID=alpine
+VERSION_ID=$pkgver
+PRETTY_NAME="Alpine Linux v$_ver"
+HOME_URL="http://alpinelinux.org"
+BUG_REPORT_URL="http://bugs.alpinelinux.org"
+EOF
}