freebsd-ports/sysutils/pkg_install-devel/pkg-req

22 lines
407 B
Text
Raw Normal View History

2004-06-30 12:31:45 +02:00
#!/bin/sh
#
# $FreeBSD$
#
if [ -z "$OSVERSION" ]; then
if [ -x /sbin/sysctl ]; then
OSVERSION=`/sbin/sysctl -n kern.osreldate`
else
OSVERSION=`/usr/sbin/sysctl -n kern.osreldate`
fi
fi
2004-06-30 12:31:45 +02:00
case $2 in
INSTALL)
if [ "$OSVERSION" -ge 492000 -a "$OSVERSION" -lt 500000 -o "$OSVERSION" -ge 502120 ]; then
echo "$1: Your base pkg_install tools are already up-to-date."
2004-06-30 12:31:45 +02:00
exit 1
fi
;;
esac