freebsd-ports/sysutils/pkg_install-devel/pkg-req
2004-08-13 17:01:01 +00:00

21 lines
346 B
Bash

#!/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
case $2 in
INSTALL)
if [ %%OSVERSIONCHK%% ]; then
echo "$1: Your base pkg_install tools are already up-to-date."
exit 1
fi
;;
esac