aboutsummaryrefslogtreecommitdiffstats
path: root/x11/gnome2/pkg-install
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2002-06-21 07:57:18 +0800
committermarcus <marcus@FreeBSD.org>2002-06-21 07:57:18 +0800
commit6324d0806c9e66a84cd0fd8608a72031521286d1 (patch)
treef54348f608f1fdbaf1acd5bdeee260729c054438 /x11/gnome2/pkg-install
parentfc309ebf91e536706be965532df2b604ee82c8f9 (diff)
downloadfreebsd-ports-gnome-6324d0806c9e66a84cd0fd8608a72031521286d1.tar.gz
freebsd-ports-gnome-6324d0806c9e66a84cd0fd8608a72031521286d1.tar.zst
freebsd-ports-gnome-6324d0806c9e66a84cd0fd8608a72031521286d1.zip
Make the GNOME 1.x warning package-safe.
Suggested by: Cyrille Lefevre <cyrille.lefevre@laposte.net>
Diffstat (limited to 'x11/gnome2/pkg-install')
-rw-r--r--x11/gnome2/pkg-install21
1 files changed, 21 insertions, 0 deletions
diff --git a/x11/gnome2/pkg-install b/x11/gnome2/pkg-install
new file mode 100644
index 000000000000..24cdef59eb6e
--- /dev/null
+++ b/x11/gnome2/pkg-install
@@ -0,0 +1,21 @@
+#!/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 gnomecontrolcenter 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