pkgsrc-Changes archive

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

CVS commit: pkgsrc/pkgtools/osabi



Module Name:    pkgsrc
Committed By:   nia
Date:           Sun Jul 24 07:28:09 UTC 2022

Modified Files:
        pkgsrc/pkgtools/osabi: INSTALL

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


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/pkgtools/osabi/INSTALL

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/pkgtools/osabi/INSTALL
diff -u pkgsrc/pkgtools/osabi/INSTALL:1.5 pkgsrc/pkgtools/osabi/INSTALL:1.6
--- pkgsrc/pkgtools/osabi/INSTALL:1.5   Wed Nov 21 14:15:32 2018
+++ pkgsrc/pkgtools/osabi/INSTALL       Sun Jul 24 07:28:09 2022
@@ -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//'`
                ;;



Home | Main Index | Thread Index | Old Index