diff options
author | Michael Imhof <tantive@gentoo.org> | 2003-05-02 09:41:06 +0000 |
---|---|---|
committer | Michael Imhof <tantive@gentoo.org> | 2003-05-02 09:41:06 +0000 |
commit | dc55d74758b3e4166f79b85c160f2c992e43b25e (patch) | |
tree | 302f4ba181bb1aefd3a18b13def16ca433f0355e /sys-cluster | |
parent | Unmasked (diff) | |
download | gentoo-2-dc55d74758b3e4166f79b85c160f2c992e43b25e.tar.gz gentoo-2-dc55d74758b3e4166f79b85c160f2c992e43b25e.tar.bz2 gentoo-2-dc55d74758b3e4166f79b85c160f2c992e43b25e.zip |
openmosix.config resists now in /etc/openmosix
Diffstat (limited to 'sys-cluster')
4 files changed, 102 insertions, 5 deletions
diff --git a/sys-cluster/openmosix-user/ChangeLog b/sys-cluster/openmosix-user/ChangeLog index 1b7d7a6d12dc..75ecec07a63a 100644 --- a/sys-cluster/openmosix-user/ChangeLog +++ b/sys-cluster/openmosix-user/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-cluster/openmosix-user # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmosix-user/ChangeLog,v 1.9 2003/05/01 21:38:46 tantive Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmosix-user/ChangeLog,v 1.10 2003/05/02 09:41:05 tantive Exp $ + +* openmosix-user-0.3.-r2 (02 May 2003) + + 02 May 2003; Michael Imhof <tantive@gentoo.org> + Official solution is to install openmosix.config into /etc/openmosix + and to correct the init-script. * openmosix-user-0.3.-r1 (01 May 2003) diff --git a/sys-cluster/openmosix-user/files/digest-openmosix-user-0.3-r2 b/sys-cluster/openmosix-user/files/digest-openmosix-user-0.3-r2 new file mode 100644 index 000000000000..02794b6db342 --- /dev/null +++ b/sys-cluster/openmosix-user/files/digest-openmosix-user-0.3-r2 @@ -0,0 +1 @@ +MD5 bc3b686cafe591a8207fc6c39c36ba6f openmosix-tools-0.3.tgz 143737 diff --git a/sys-cluster/openmosix-user/files/openmosix.init b/sys-cluster/openmosix-user/files/openmosix.init index b86de169a387..1b912917d480 100644 --- a/sys-cluster/openmosix-user/files/openmosix.init +++ b/sys-cluster/openmosix-user/files/openmosix.init @@ -2,7 +2,7 @@ # # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmosix-user/files/openmosix.init,v 1.4 2003/04/13 19:11:46 tantive Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmosix-user/files/openmosix.init,v 1.5 2003/05/02 09:41:06 tantive Exp $ depend() { need net @@ -50,9 +50,9 @@ if [ $AUTODISC -eq 0 ]; then fi fi -# Source the configuration from /etc/openmosix.config +# Source the configuration from /etc/openmosix/openmosix.config # This file would be a good place to force autodiscovery by setting AUTODISC=1 -[ -f /etc/openmosix.config ] && . /etc/openmosix.config +[ -f /etc/openmosix/openmosix.config ] && . /etc/openmosix/openmosix.config # Make sure we have omdiscd installed if [ $AUTODISC -eq 1 ]; then @@ -66,7 +66,7 @@ fi ebegin "Initializing openMosix" # The variables $OVERHEADS, $MFSCOSTS, $MYOMID, $MOSGATES and $AUTODISCIF - # can be set to desired values in /etc/openmosix.config + # can be set to desired values in /etc/openmosix/openmosix.config [ $OVERHEADS ] && echo $OVERHEADS > /proc/hpc/admin/overheads [ $MFSCOSTS ] && echo $MFSCOSTS > /proc/hpc/admin/mfscosts diff --git a/sys-cluster/openmosix-user/openmosix-user-0.3-r2.ebuild b/sys-cluster/openmosix-user/openmosix-user-0.3-r2.ebuild new file mode 100644 index 000000000000..92ca6b6cbcec --- /dev/null +++ b/sys-cluster/openmosix-user/openmosix-user-0.3-r2.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmosix-user/openmosix-user-0.3-r2.ebuild,v 1.1 2003/05/02 09:41:06 tantive Exp $ + +S=${WORKDIR}/openmosix-tools-${PV} +DESCRIPTION="User-land utilities for openMosix process migration (clustering) software" +SRC_URI="mirror://sourceforge/openmosix/openmosix-tools-${PV}.tgz" +HOMEPAGE="http://www.openmosix.com/" +DEPEND="virtual/glibc + >=sys-libs/ncurses-5.2 + >=sys-kernel/openmosix-sources-2.4.18" +RDEPEND="${DEPEND} + sys-apps/findutils + dev-lang/perl" +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="x86 -ppc -sparc -alpha" + +pkg_setup() { + if [ -z "`readlink /usr/src/linux|grep openmosix`" ]; then + eerror + eerror "Your linux kernel sources do not appear to be openmosix," + eerror "please check your /usr/src/linux symlink." + eerror + die + fi +} + +src_unpack() { + unpack ${A} + cd ${S} + cat > configuration << EOF + +OPENMOSIX=/usr/src/linux +PROCDIR=/proc/hpc +MONNAME=mmon +CC=gcc +INSTALLDIR=/usr +CFLAGS=-I/m/include -I./ -I/usr/include -I\${OPENMOSIX}/include -I${S}/moslib ${CFLAGS} +INSTALL=/usr/bin/install +EOF +} + +src_compile() { + cd ${S} + make clean build +} + +src_install() { + dodir /bin + dodir /sbin + dodir /usr/share/doc + dodir /usr/share/man/man1 + make INSTALLDIR=${D}/usr \ + MANDIR=${D}usr/share/man \ + SYSCONFDIR=${D}/etc \ + BINDIR=${D}/bin \ + SBINDIR=${D}/sbin \ + RCDIR=${D}/etc/init.d \ + LIBDIR=${D}/usr/lib \ + install + + dodoc COPYING README + rm ${D}/etc/init.d/openmosix + exeinto /etc/init.d + newexe ${FILESDIR}/openmosix.init openmosix + insinto /etc + rm ${D}/etc/openmosix.map + #Test if mosix.map is present, stub appropriate openmosix.map + #file + if test -e /etc/openmosix.map; then + einfo "Seems you already have a openmosix.map file, using it."; + elif test -e /etc/mosix.map; then + cp /etc/mosix.map ${WORKDIR}/openmosix.map; + doins ${WORKDIR}/openmosix.map; + else + doins ${FILESDIR}/openmosix.map; + fi +} + +pkg_postinst() { + einfo + einfo " To complete openMosix installation, edit /etc/openmosix.map or" + einfo " delete it to use autodiscovery and then type:" + einfo " # rc-update add openmosix default" + einfo " ...to add openMosix to the default runlevel. This particular version of" + einfo " openmosix-user has been designed to work with the linux-2.4.18-openmosix-1" + einfo " or later kernel (>=sys-kernel/openmosix-sources-2.4.18)" + einfo +} |