#!/bin/bash
# package is installed here with the $pkg_make_install comand from the port/conf file
# $pkg_name_version contains portname-portversion $pkg_name contains portname and $pkg_version
# contains portversion
ls /usr/local/share/instmon/instlog.$pkg_name_version > /dev/null 2>&1
if [ $? = 0 ]
then 
	echo "$name package $pkg_name [$pkg_version] is installed"
	exit
fi

ls /usr/local/share/instmon/instlog.$pkg_name-[0-9]* > /dev/null 2>&1
if [ $? = 0 ]
then 
	echo "$name package $pkg_name is installed in another version"
	exit
fi


ls /usr/local/share/instmon/instlog.$pkg_name* > /dev/null 2>&1
if test $? = 0 -a "$ignore_minimal_errors" != "yes" 
then 
	echo "something like $pkg_name is installed"
	exit
fi
