summaryrefslogtreecommitdiffstats
path: root/x11/gnome2/pkg-install
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2002-10-10 13:57:15 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2002-10-10 13:57:15 +0800
commit74166f345082705d65ce2a94f12bee997796119f (patch)
tree0b09aab90331409bb4de178e890d4c8c094ae6a3 /x11/gnome2/pkg-install
parentfaa6795b6542aa4a3938219520a39f33a72c9173 (diff)
downloadmarcuscom-ports-74166f345082705d65ce2a94f12bee997796119f.tar
marcuscom-ports-74166f345082705d65ce2a94f12bee997796119f.tar.gz
marcuscom-ports-74166f345082705d65ce2a94f12bee997796119f.tar.bz2
marcuscom-ports-74166f345082705d65ce2a94f12bee997796119f.tar.lz
marcuscom-ports-74166f345082705d65ce2a94f12bee997796119f.tar.xz
marcuscom-ports-74166f345082705d65ce2a94f12bee997796119f.tar.zst
marcuscom-ports-74166f345082705d65ce2a94f12bee997796119f.zip
Add gnome2.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@50 df743ca5-7f9a-e211-a948-0013205c9059
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 000000000..cfd1cd437
--- /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 gtop libgtop sawfish nautilus glade gedit xalf bugbuddy gnomegames gdm eog"
+ 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