diff options
author | Michael Imhof <tantive@gentoo.org> | 2002-11-04 20:05:59 +0000 |
---|---|---|
committer | Michael Imhof <tantive@gentoo.org> | 2002-11-04 20:05:59 +0000 |
commit | 902de6046fbc411b6137578b94979ba9b728253a (patch) | |
tree | 6bc22cef93ed55de8c650f2aaca1ceb85ce86cac /sys-cluster | |
parent | New ebuild. See bug #8846 (diff) | |
download | gentoo-2-902de6046fbc411b6137578b94979ba9b728253a.tar.gz gentoo-2-902de6046fbc411b6137578b94979ba9b728253a.tar.bz2 gentoo-2-902de6046fbc411b6137578b94979ba9b728253a.zip |
Moved to sys-cluster
Diffstat (limited to 'sys-cluster')
-rw-r--r-- | sys-cluster/mosix-user/ChangeLog | 39 | ||||
-rw-r--r-- | sys-cluster/mosix-user/files/digest-mosix-user-1.5.7 | 1 | ||||
-rw-r--r-- | sys-cluster/mosix-user/files/digest-mosix-user-1.8.0 | 1 | ||||
-rw-r--r-- | sys-cluster/mosix-user/files/mosix | 33 | ||||
-rw-r--r-- | sys-cluster/mosix-user/files/mosix.init | 33 | ||||
-rw-r--r-- | sys-cluster/mosix-user/files/mosix.map | 12 | ||||
-rw-r--r-- | sys-cluster/mosix-user/mosix-user-1.5.7.ebuild | 56 | ||||
-rw-r--r-- | sys-cluster/mosix-user/mosix-user-1.8.0.ebuild | 66 |
8 files changed, 241 insertions, 0 deletions
diff --git a/sys-cluster/mosix-user/ChangeLog b/sys-cluster/mosix-user/ChangeLog new file mode 100644 index 000000000000..74997d6a8aca --- /dev/null +++ b/sys-cluster/mosix-user/ChangeLog @@ -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 index 000000000000..e62668b7a60e --- /dev/null +++ b/sys-cluster/mosix-user/files/digest-mosix-user-1.5.7 @@ -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 index 000000000000..3120e5ab65d8 --- /dev/null +++ b/sys-cluster/mosix-user/files/digest-mosix-user-1.8.0 @@ -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 index 000000000000..b4bb7381999d --- /dev/null +++ b/sys-cluster/mosix-user/files/mosix @@ -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 index 000000000000..97aadd2c118d --- /dev/null +++ b/sys-cluster/mosix-user/files/mosix.init @@ -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 index 000000000000..dcb5d0f31bbd --- /dev/null +++ b/sys-cluster/mosix-user/files/mosix.map @@ -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 index 000000000000..f708ed051367 --- /dev/null +++ b/sys-cluster/mosix-user/mosix-user-1.5.7.ebuild @@ -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 index 000000000000..070935ee39d0 --- /dev/null +++ b/sys-cluster/mosix-user/mosix-user-1.8.0.ebuild @@ -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 +} |