summaryrefslogtreecommitdiffstats
path: root/x11/xscreensaver-gnome/pkg-install
blob: 453b4b82d4a60f900dc23d019060b67247386593 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
OpenPOWER on IntegriCloud