diff options
Diffstat (limited to 'x11/gnome2-lite/pkg-install')
-rw-r--r-- | x11/gnome2-lite/pkg-install | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/x11/gnome2-lite/pkg-install b/x11/gnome2-lite/pkg-install new file mode 100644 index 000000000..2480ec609 --- /dev/null +++ b/x11/gnome2-lite/pkg-install @@ -0,0 +1,17 @@ +#!/bin/sh + +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 gedit xalf bugbuddy gnomegames gdm eog ggv gnomeaudio" + 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 desktop." + echo "" + echo "Please deinstall the GNOME 1.x desktop before installing this package." + false + fi + done +fi |