freebsd-ports/x11/gnome2/pkg-install
Joe Marcus Clarke 351d834b58 Allow gnomecontrolcenter to coexist with GNOME 2. This is need so
evolution users can still have Palm Pilot support.  While not pretty,
this is supported by GNOME 2.0, and doesn't overwrite any GNOME 2.0
files.
2002-06-30 22:49:42 +00:00

21 lines
686 B
Bash

#!/bin/sh
if [ -n "${PACKAGE_BUILDING}" ]; then
exit 0
fi
PATH=/bin:/usr/bin:/sbin:/usr/sbin:${PATH}
export PATH
if [ "$2" = "PRE-INSTALL" ]; then
GNOME_ONE_DESKTOP="gnomecore gnomeapplets gnomemedia gnomeutils gtop libgtop sawfish nautilus glade gedit xalf bugbuddy gnomegames"
for package in ${GNOME_ONE_DESKTOP}; do
if pkg_info | grep "^${package}-[0-9]" >/dev/null 2>&1; then
echo "${package} was detected on the system. This package is part of the GNOME 1.x"
echo "desktop, and cannot coexist with the GNOME 2.0 desktop."
echo ""
echo "Please deinstall the GNOME 1.x desktop before installing this package."
false
fi
done
fi