summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Imhof <tantive@gentoo.org>2003-11-06 16:17:14 +0000
committerMichael Imhof <tantive@gentoo.org>2003-11-06 16:17:14 +0000
commit970ef97e69deada56abbf7d0f0d73a1601ebfaa9 (patch)
treec6ccb59da2ed6c3f286a9b334eb3afbb5aad1ce2 /sys-cluster/openmosix-user
parentVersion bump. Closes #28239. (diff)
downloadgentoo-2-970ef97e69deada56abbf7d0f0d73a1601ebfaa9.tar.gz
gentoo-2-970ef97e69deada56abbf7d0f0d73a1601ebfaa9.tar.bz2
gentoo-2-970ef97e69deada56abbf7d0f0d73a1601ebfaa9.zip
Version bump. Closes #28239.
Diffstat (limited to 'sys-cluster/openmosix-user')
-rw-r--r--sys-cluster/openmosix-user/ChangeLog8
-rw-r--r--sys-cluster/openmosix-user/Manifest6
-rw-r--r--sys-cluster/openmosix-user/files/digest-openmosix-user-0.3.4-r11
-rw-r--r--sys-cluster/openmosix-user/files/openmosix.init12
-rw-r--r--sys-cluster/openmosix-user/openmosix-user-0.3.4-r1.ebuild93
5 files changed, 113 insertions, 7 deletions
diff --git a/sys-cluster/openmosix-user/ChangeLog b/sys-cluster/openmosix-user/ChangeLog
index e205e8e244e8..39c65de6ac2d 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.15 2003/09/27 14:03:35 tantive Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmosix-user/ChangeLog,v 1.16 2003/11/06 16:17:05 tantive Exp $
+
+* openmosix-user-0.3.4-r1 (06 Nov 2003)
+
+ 06 Nov 2003; Michael Imhof <tantive@gentoo.org>
+ Version bumped to make sure everyone gets the new init-script.
+ Closes #28239.
27 Sep 2003; Michael Imhof <tantive@gentoo.org>
Cleaned out old ebuilds.
diff --git a/sys-cluster/openmosix-user/Manifest b/sys-cluster/openmosix-user/Manifest
index 70852b5e6ff2..3667d4e49574 100644
--- a/sys-cluster/openmosix-user/Manifest
+++ b/sys-cluster/openmosix-user/Manifest
@@ -1,12 +1,12 @@
MD5 beb9efce81ae2c582a621528fc783095 metadata.xml 373
MD5 dffd0d637019dad9b415150df6a6c03b openmosix-user-0.3.3.ebuild 2385
-MD5 4754f088529798938ebdef4be250c0fc ChangeLog 3162
+MD5 ad13efe207c0115ed59e09352bb9b66e ChangeLog 3336
MD5 0b20d2a8ce14a92eb2479d91d99f8f0e openmosix-user-0.3.4.ebuild 2386
MD5 89d22f691f44455ce9441941e6f6d397 openmosix-user-0.3.2.ebuild 2384
-MD5 0b20d2a8ce14a92eb2479d91d99f8f0e openmosix-user-0.3.4-r1.ebuild 2386
+MD5 947edceb389e1d8acd965144b6609224 openmosix-user-0.3.4-r1.ebuild 2389
MD5 25dcd82590aa8f31e939aa58097be907 files/digest-openmosix-user-0.3.4 74
MD5 25dcd82590aa8f31e939aa58097be907 files/digest-openmosix-user-0.3.4-r1 74
-MD5 37a1fef8049327e5131ceb63ff9ce8a5 files/openmosix.init 2859
+MD5 a36ea94817bd81da29c0e646dd67aa6b files/openmosix.init 2859
MD5 04d066799df9a26748327c14ec14f908 files/digest-openmosix-user-0.3.2 73
MD5 93de05f0abb949a9bdb9822fb7240cac files/digest-openmosix-user-0.3.3 73
MD5 8bba8ee22957c18e2fce4c810644323e files/openmosix.map 382
diff --git a/sys-cluster/openmosix-user/files/digest-openmosix-user-0.3.4-r1 b/sys-cluster/openmosix-user/files/digest-openmosix-user-0.3.4-r1
new file mode 100644
index 000000000000..127c8b5cf1d9
--- /dev/null
+++ b/sys-cluster/openmosix-user/files/digest-openmosix-user-0.3.4-r1
@@ -0,0 +1 @@
+MD5 f9c9cee038aa95004a77907b226ff006 openmosix-tools-0.3.4.tar.bz2 277601
diff --git a/sys-cluster/openmosix-user/files/openmosix.init b/sys-cluster/openmosix-user/files/openmosix.init
index 41de3a279fd7..ef5f144ae93d 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.6 2003/05/12 21:36:08 tantive Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmosix-user/files/openmosix.init,v 1.7 2003/11/06 16:17:05 tantive Exp $
depend() {
need net
@@ -41,9 +41,15 @@ else
AUTODISC=1
fi
+OMnode=""
+if [ -f /etc/openmosix/om-node-num ]
+then
+ OMnode="-p $(< /etc/openmosix/om-node-num)"
+fi
+
# Check the map-file for sanity
if [ $AUTODISC -eq 0 ]; then
- setpe -c -f $OMOSIX_MAP &> /dev/null
+ setpe $OMnode -c -f $OMOSIX_MAP &> /dev/null
if [ ! $? -eq 0 ]; then
einfo "openMosix: Invalid configuration in map-file $OMOSIX_MAP, using autodiscovery"
AUTODISC=1
@@ -75,7 +81,7 @@ fi
SETPE_OPTIONS=""
[ $MYOMID ] && SETPE_OPTIONS="$SETPE_OPTIONS -p $MYOMID"
[ $MOSGATES ] && SETPE_OPTIONS="$SETPE_OPTIONS -g $MOSGATES"
- setpe -W $SETPE_OPTIONS -f $OMOSIX_MAP
+ setpe $OMnode -W $SETPE_OPTIONS -f $OMOSIX_MAP
else
# Configurate openMosix with the omdiscd
OMDISCD_OPTIONS=""
diff --git a/sys-cluster/openmosix-user/openmosix-user-0.3.4-r1.ebuild b/sys-cluster/openmosix-user/openmosix-user-0.3.4-r1.ebuild
new file mode 100644
index 000000000000..32fd06b3a9fa
--- /dev/null
+++ b/sys-cluster/openmosix-user/openmosix-user-0.3.4-r1.ebuild
@@ -0,0 +1,93 @@
+# 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.4-r1.ebuild,v 1.1 2003/11/06 16:17:05 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}.tar.bz2"
+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"
+
+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}
+ ./configure --with-kerneldir=/usr/src/linux \
+ --mandir=${D}usr/share/man \
+ --sysconfdir=${D}/etc \
+ --bindir=${D}/bin \
+ --sbindir=${D}/sbin \
+ --libdir=${D}/usr/lib \
+ --with-sysvdir=${D}/etc/init.d \
+ --with-configdir=${D}/etc/openmosix \
+ --with-mapdir=${D}/etc \
+ --prefix=${D}/usr
+ make
+}
+
+src_install() {
+ dodir /bin
+ dodir /sbin
+ dodir /usr/share/doc
+ dodir /usr/share/man/man1
+
+ make 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."
+ einfo " Type:"
+ einfo " # rc-update add openmosix default"
+ einfo " to add openMosix to the default runlevel."
+ einfo
+}