#!/bin/sh
# 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

dpkg -l $pkg_name_version >/dev/null
# FIXME this didn't work
if test $? -eq 0 
then 
	echo "$name package $pkg_name [$pkg_version] is already installed"
	exit
fi

dpkg -l $pkg_name >/dev/null
if test $? -eq 0 
then 
	echo "$name package $pkg_name is already installed in another version"
	exit
fi
