diff options
author | marcus <marcus@FreeBSD.org> | 2003-04-15 22:21:27 +0000 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-04-15 22:21:27 +0000 |
commit | 6d467aac219aa7406f7230d59a0c1bb74527d2fc (patch) | |
tree | 8f08aaf8442ca8492b38bb1b608a099ead69409f /x11/xscreensaver-gnome/pkg-install | |
parent | 0b2c06793eb9cacb15633adf30837689deae2cc5 (diff) | |
download | FreeBSD-ports-6d467aac219aa7406f7230d59a0c1bb74527d2fc.zip FreeBSD-ports-6d467aac219aa7406f7230d59a0c1bb74527d2fc.tar.gz |
Add a pkg-install check to see if xscreensaver is already installed. This
way, users won't end up with two versions of xscreensaver.
Based on patches that were
Submitted by: Miguel Mendez <flynn@energyhq.homeip.net>
Diffstat (limited to 'x11/xscreensaver-gnome/pkg-install')
-rw-r--r-- | x11/xscreensaver-gnome/pkg-install | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/x11/xscreensaver-gnome/pkg-install b/x11/xscreensaver-gnome/pkg-install new file mode 100644 index 0000000..453b4b8 --- /dev/null +++ b/x11/xscreensaver-gnome/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 + if pkg_info | grep "^xscreensaver-[0-9]" >/dev/null 2>&1; then + echo "" + echo "*********************************************************" + echo "You already have the non-gnome xscreensaver installed." + echo "Please deinstall it before installing xscreensaver-gnome." + echo "*********************************************************" + echo "" + false + fi + done +fi |