pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/osabi osabi: Teach it to check the version of...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7220f1e76657
branches:  trunk
changeset: 382248:7220f1e76657
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun Jul 24 07:28:09 2022 +0000

description:
osabi: Teach it to check the version of the userspace rather than
the kernel on NetBSD. from Hauke Fath.

diffstat:

 pkgtools/osabi/INSTALL |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 48c994715278 -r 7220f1e76657 pkgtools/osabi/INSTALL
--- a/pkgtools/osabi/INSTALL    Sun Jul 24 06:26:49 2022 +0000
+++ b/pkgtools/osabi/INSTALL    Sun Jul 24 07:28:09 2022 +0000
@@ -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 @@
        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//'`
                ;;



Home | Main Index | Thread Index | Old Index