#!/bin/sh
#
# $FreeBSD: ports/ports-mgmt/pkg_install-devel/pkg-req,v 1.3 2004/08/13 17:01:01 eik Exp $
#

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 [ "$OSVERSION" -ge 491101 -a "$OSVERSION" -lt 500000 -o "$OSVERSION" -ge 502120 ]; then
    echo "$1: Your base pkg_install tools are already up-to-date."
    exit 1
  fi
  ;;
esac


syntax highlighted by Code2HTML, v. 0.9.1