changed dependencies
authorMichael Imhof <tantive@gentoo.org>
Sun, 13 Oct 2002 21:39:19 +0000 (21:39 +0000)
committerMichael Imhof <tantive@gentoo.org>
Sun, 13 Oct 2002 21:39:19 +0000 (21:39 +0000)
sys-apps/mosix-user/mosix-user-1.8.0.ebuild

index 43f7c7413913fb49a443e9457d6877947e9abe7c..ae53ccf32ede220bdf567719453860998a111d64 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2002 Gentoo Technologies, Inc.
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/mosix-user/mosix-user-1.8.0.ebuild,v 1.1 2002/10/13 21:35:15 tantive Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/mosix-user/mosix-user-1.8.0.ebuild,v 1.2 2002/10/13 21:39:19 tantive Exp $
 
 S=${WORKDIR}/user
 DESCRIPTION="User-land utilities for MOSIX process migration (clustering) software"
@@ -11,6 +11,16 @@ SLOT="0"
 LICENSE="as-is"
 DEPEND=">=sys-libs/ncurses-5.2"
 
+pkg_setup() {
+    if [ -z "`readlink /usr/src/linux|grep mosix`" ]; then
+    eerror
+    eerror "Your linux kernel sources do not appear to be mosix,"
+    eerror "please check your /usr/src/linux symlink."
+    eerror
+    die
+    fi
+}
+
 src_unpack() {
        mkdir ${S}; cd ${S}
        tar -xz --no-same-owner -f ${DISTDIR}/${A} MOSIX-${PV}/user.tar MOSIX-${PV}/manuals.tar