1 # $NetBSD: INSTALL,v 1.2 2011/02/05 13:21:13 obache Exp $
6 OS_VERSION=`${UNAME} -r`
7 PKG_VERSION="${PKGNAME##*-}"
10 if ${TEST} -f /usr/bin/oslevel ;then
11 OS_VERSION=`/usr/bin/oslevel | \
12 sed -e's/\([0-9]*\.[0-9]*\).*/\1/'`
14 OS_VERSION="`${UNAME} -v`.`${UNAME} -r`"
15 OS_VERSION=`echo "${OS_VERSION}" | \
16 sed -e's/\([0-9]*\.[0-9]*\).*/\1/'`
19 DragonFly|FreeBSD|Linux)
20 OS_VERSION=`echo "${OS_VERSION}" | sed -e's/-.*$//'`
23 OS_VERSION=`echo "${OS_VERSION}" | sed -e's/^V//'`
26 OS_VERSION=`echo "${OS_VERSION}" | sed -e's/^B.//'`
29 OS_VERSION=`echo "${OS_VERSION}" | sed -e's/(.*)//'`
33 if ${TEST} "${OS_VERSION}" != "${PKG_VERSION}" ;then
34 echo "The Operating System version (${OS_VERSION}) does not match ${PKG_VERSION}"