Moved to sys-cluster
authorMichael Imhof <tantive@gentoo.org>
Mon, 4 Nov 2002 20:05:59 +0000 (20:05 +0000)
committerMichael Imhof <tantive@gentoo.org>
Mon, 4 Nov 2002 20:05:59 +0000 (20:05 +0000)
sys-cluster/mosix-user/ChangeLog [new file with mode: 0644]
sys-cluster/mosix-user/files/digest-mosix-user-1.5.7 [new file with mode: 0644]
sys-cluster/mosix-user/files/digest-mosix-user-1.8.0 [new file with mode: 0644]
sys-cluster/mosix-user/files/mosix [new file with mode: 0644]
sys-cluster/mosix-user/files/mosix.init [new file with mode: 0644]
sys-cluster/mosix-user/files/mosix.map [new file with mode: 0644]
sys-cluster/mosix-user/mosix-user-1.5.7.ebuild [new file with mode: 0644]
sys-cluster/mosix-user/mosix-user-1.8.0.ebuild [new file with mode: 0644]

diff --git a/sys-cluster/mosix-user/ChangeLog b/sys-cluster/mosix-user/ChangeLog
new file mode 100644 (file)
index 0000000..74997d6
--- /dev/null
@@ -0,0 +1,39 @@
+# ChangeLog for sys-apps/mosix-user
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/mosix-user/ChangeLog,v 1.1 2002/11/04 20:05:59 tantive Exp $
+
+
+  04 Nov 2002; Michael Imhof <tantive@gentoo.org>
+  Moved to sys-cluster/mosix-user
+
+*mosix-user-1.8.0.ebuild (13 Oct 2002)
+
+  13 Oct 2002; Michael Imhof <tantive@gentoo.org>
+  version bumped, corrected source uri.
+
+*mosix-user-1.5.7.ebuild (14 July 2002)
+
+  21 Jul 2002; Mark Guertin <gerk@gentoo.org>:
+  updated keywords (-ppc)
+
+  14 Jul 2002; phoen][x <phoenix@gentoo.org> mosix-user-1.5.7.ebuild :
+  Added LICENSE, KEYWORDS, SLOT.
+
+*mosix-user-1.5.2-r1 (5 Feb 2002)
+
+  14 Jul 2002; phoen][x <phoenix@gentoo.org> mosix-user-1.5.2-r1.ebuild :
+  Added LICENSE, KEYWORDS, SLOT.
+
+  5 Feb 2002; Daniel Robbins <drobbins@gentoo.org> mosix-user-1.5.2-r1.ebuild:
+  added missing "|| die" to make.  Added ROOT variable to "make install" which
+  should fix sandbox violations.
+
+*mosix-user-1.5.2 (1 Feb 2002)
+
+  1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog :
+  
+  Added initial ChangeLog which should be updated whenever the package is
+  updated in any way. This changelog is targetted to users. This means that the
+  comments should well explained and written in clean English. The details about
+  writing correct changelogs are explained in the skel.ChangeLog file which you
+  can find in the root directory of the portage repository.
diff --git a/sys-cluster/mosix-user/files/digest-mosix-user-1.5.7 b/sys-cluster/mosix-user/files/digest-mosix-user-1.5.7
new file mode 100644 (file)
index 0000000..e62668b
--- /dev/null
@@ -0,0 +1 @@
+MD5 0609e667fa713f0f14b2f21d96e01c15 MOSIX-1.5.7.tar.gz 394854
diff --git a/sys-cluster/mosix-user/files/digest-mosix-user-1.8.0 b/sys-cluster/mosix-user/files/digest-mosix-user-1.8.0
new file mode 100644 (file)
index 0000000..3120e5a
--- /dev/null
@@ -0,0 +1 @@
+MD5 9e8b8ce3c6ca6a5e759ada15b0086f78 MOSIX-1.8.0.tgz 104365
diff --git a/sys-cluster/mosix-user/files/mosix b/sys-cluster/mosix-user/files/mosix
new file mode 100644 (file)
index 0000000..b4bb738
--- /dev/null
@@ -0,0 +1,33 @@
+#!/sbin/runscript
+
+depend() {
+       need net
+}
+
+stop() {
+       ebegin "Stopping MOSIX"
+       echo 0 > /proc/mosix/admin/mospe
+       rm -f /var/lock/subsys/mosix
+       eend
+}
+
+start() {
+       ebegin "Starting MOSIX"
+       #do some first-time setup if MOSIX isn't configured
+       
+       if [ -s /etc/overheads -a -f /proc/mosix/admin/overheads ]
+       then
+                /bin/grep -v '^#' /etc/overheads > /proc/mosix/admin/overheads
+       fi
+       if [ -s /etc/mfscosts -a -f /proc/mosix/admin/mfscosts ]
+       then
+                /bin/grep -v '^#' /etc/mfscosts > /proc/mosix/admin/mfscosts
+       fi
+       a1=
+       [ -s /etc/mospe ] && a1="-p `cat /etc/mospe`"
+       a2=
+       [ -s /etc/mosgates ] && a2="-g `cat /etc/mosgates`"
+       /sbin/setpe -W $a1 $a2 -f /etc/mosix.map
+       touch /var/lock/subsys/mosix
+       eend
+}
diff --git a/sys-cluster/mosix-user/files/mosix.init b/sys-cluster/mosix-user/files/mosix.init
new file mode 100644 (file)
index 0000000..97aadd2
--- /dev/null
@@ -0,0 +1,33 @@
+#!/sbin/runscript
+
+depend() {
+       need net
+}
+
+stop() {
+       ebegin "Stopping MOSIX"
+       echo 0 > /proc/mosix/admin/mospe
+       rm -f /var/lock/subsys/mosix
+       eend
+}
+
+start() {
+       ebegin "Starting MOSIX"
+       if [ -s /etc/overheads -a -f /proc/mosix/admin/overheads ]
+       then
+                grep -v '^#' /etc/overheads > /proc/mosix/admin/overheads
+       fi
+       if [ -s /etc/mfscosts -a -f /proc/mosix/admin/mfscosts ]
+       then
+                grep -v '^#' /etc/mfscosts > /proc/mosix/admin/mfscosts
+       fi
+       local a1
+       local a2
+       a1=
+       [ -s /etc/mospe ] && a1="-p `cat /etc/mospe`"
+       a2=
+       [ -s /etc/mosgates ] && a2="-g `cat /etc/mosgates`"
+       /sbin/setpe -W $a1 $a2 -f /etc/mosix.map
+       touch /var/lock/subsys/mosix
+       eend
+}
diff --git a/sys-cluster/mosix-user/files/mosix.map b/sys-cluster/mosix-user/files/mosix.map
new file mode 100644 (file)
index 0000000..dcb5d0f
--- /dev/null
@@ -0,0 +1,12 @@
+# YOU WILL HAVE TO DELETE ALL LINES CONTAINING COMMENTS FROM THIS FILE!
+#
+# col 1: node number
+# col 2: ip address of node
+# col 3: span (if you are specifying individual nodes on each line, should be 1)
+# All nodes in your cluster should have identical data in this file.
+#
+# YOU WILL HAVE TO DELETE ALL LINES CONTAINING COMMENTS FROM THIS FILE!
+
+ 
+1      192.168.1.1     1
+2      192.168.1.2     1
diff --git a/sys-cluster/mosix-user/mosix-user-1.5.7.ebuild b/sys-cluster/mosix-user/mosix-user-1.5.7.ebuild
new file mode 100644 (file)
index 0000000..f708ed0
--- /dev/null
@@ -0,0 +1,56 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/mosix-user/mosix-user-1.5.7.ebuild,v 1.1 2002/11/04 20:05:59 tantive Exp $
+
+S=${WORKDIR}/user
+DESCRIPTION="User-land utilities for MOSIX process migration (clustering) software"
+SRC_URI="http://www.mosix.cs.huji.ac.il/ftps/MOSIX-${PV}.tar.gz"
+HOMEPAGE="http://www.mosix.org/"
+KEYWORDS="x86 -ppc"
+SLOT="0"
+LICENSE="MOSIX"
+DEPEND=">=sys-libs/ncurses-5.2"
+
+src_unpack() {
+       mkdir ${S}; cd ${S}
+       tar -xz --no-same-owner -f ${DISTDIR}/${A} MOSIX-${PV}/user.tar MOSIX-${PV}/manuals.tar 
+       mv MOSIX-${PV}/*.tar .
+       rm -rf MOSIX-${PV}
+       tar -x --no-same-owner -f user.tar -C ${S}      
+       tar -x --no-same-owner -f manuals.tar -C ${S}
+}
+
+src_compile() {
+       cd ${S}
+       local x
+       for x in lib/moslib sbin/setpe sbin/tune bin/mosrun usr.bin/mon usr.bin/migrate usr.bin/mosctl
+       do
+               cd $x
+               make || die
+               cd ../..
+       done
+}
+
+src_install() {
+       cd ${S}
+       make ROOT=${D} PREFIX=${D}/usr install
+       dodir /usr/share        
+       cd ${D}/usr
+       mv man share    
+       exeinto /etc/init.d
+       newexe ${FILESDIR}/mosix.init mosix
+       insinto /etc
+       #stub mosix.map file
+       doins ${FILESDIR}/mosix.map
+       cd ${S}
+       doman man?/*
+}
+
+pkg_postinst() {
+       echo
+       echo " To complete MOSIX installation, edit /etc/mosix.map and then type:
+       echo "# rc-update add mosix default
+       echo " ...to add MOSIX to the default runlevel.  This particular version of"
+       echo " mosix-user has been designed to work with the 2.4.13 kernel."
+       echo
+}
diff --git a/sys-cluster/mosix-user/mosix-user-1.8.0.ebuild b/sys-cluster/mosix-user/mosix-user-1.8.0.ebuild
new file mode 100644 (file)
index 0000000..070935e
--- /dev/null
@@ -0,0 +1,66 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/mosix-user/mosix-user-1.8.0.ebuild,v 1.1 2002/11/04 20:05:59 tantive Exp $
+
+S=${WORKDIR}/user
+DESCRIPTION="User-land utilities for MOSIX process migration (clustering) software"
+SRC_URI="http://www.mosix.org/ftps/MOSIX-${PV}.tgz"
+HOMEPAGE="http://www.mosix.org/"
+KEYWORDS="~x86 -ppc -sparc -spar64 -alpha"
+SLOT="0"
+LICENSE="MOSIX"
+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 
+       mv MOSIX-${PV}/*.tar .
+       rm -rf MOSIX-${PV}
+       tar -x --no-same-owner -f user.tar -C ${S}      
+       tar -x --no-same-owner -f manuals.tar -C ${S}
+}
+
+src_compile() {
+       cd ${S}
+       local x
+       for x in lib/moslib sbin/setpe sbin/tune bin/mosrun usr.bin/mon usr.bin/migrate usr.bin/mosctl
+       do
+               cd $x
+               make || die
+               cd ../..
+       done
+}
+
+src_install() {
+       cd ${S}
+       make ROOT=${D} PREFIX=${D}/usr install
+       dodir /usr/share        
+       cd ${D}/usr
+       mv man share    
+       exeinto /etc/init.d
+       newexe ${FILESDIR}/mosix.init mosix
+       insinto /etc
+       #stub mosix.map file
+       doins ${FILESDIR}/mosix.map
+       cd ${S}
+       doman man?/*
+}
+
+pkg_postinst() {
+       echo
+       echo " To complete MOSIX installation, edit /etc/mosix.map and then type:
+       echo "# rc-update add mosix default
+       echo " ...to add MOSIX to the default runlevel.  This particular version of"
+       echo " mosix-user has been designed to work with the 2.4.19 kernel."
+       echo
+}