diff options
author | nia <nia@pkgsrc.org> | 2022-07-24 07:28:09 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2022-07-24 07:28:09 +0000 |
commit | aa06c512a3af452729c4be1f9536e679d0dba2be (patch) | |
tree | 2a13def9a73cbf462ea651e470ed40fde4fafdc9 /pkgtools | |
parent | 64c030e10d99394725bca29a369220d49ae9ba36 (diff) | |
download | pkgsrc-aa06c512a3af452729c4be1f9536e679d0dba2be.tar.gz |
osabi: Teach it to check the version of the userspace rather than
the kernel on NetBSD. from Hauke Fath.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/osabi/INSTALL | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgtools/osabi/INSTALL b/pkgtools/osabi/INSTALL index 9ba2ecdcd3b..d15ac765ba2 100644 --- a/pkgtools/osabi/INSTALL +++ b/pkgtools/osabi/INSTALL @@ -1,4 +1,4 @@ -# $NetBSD: INSTALL,v 1.5 2018/11/21 14:15:32 jmcneill Exp $ +# $NetBSD: INSTALL,v 1.6 2022/07/24 07:28:09 nia Exp $ UNAME="@UNAME@" PKG_ADMIN="@PKG_ADMIN@" @@ -25,6 +25,12 @@ PRE-INSTALL) DragonFly|FreeBSD|Linux) OS_VERSION=`echo "${OS_VERSION}" | sed -e's/-.*$//'` ;; + NetBSD) + if [ -f /etc/release ]; then + OS_VERSION=`head -1 /etc/release | \ + sed -e "s,^NetBSD ,,g" -e "s,/.*$,,g"` + fi + ;; OSF1) OS_VERSION=`echo "${OS_VERSION}" | sed -e's/^V//'` ;; |