summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Imhof <tantive@gentoo.org>2002-11-04 20:08:46 +0000
committerMichael Imhof <tantive@gentoo.org>2002-11-04 20:08:46 +0000
commit78ca7f57de1f882104ac054df54d7ae2e8de2932 (patch)
tree89d26e281f45d7e8fb3c83f23b4600082abcc17d /sys-cluster
parentMasking jakarta-regexp due to package rename (diff)
downloadhistorical-78ca7f57de1f882104ac054df54d7ae2e8de2932.tar.gz
historical-78ca7f57de1f882104ac054df54d7ae2e8de2932.tar.bz2
historical-78ca7f57de1f882104ac054df54d7ae2e8de2932.zip
moved to sys-cluster/openmosix-user
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/openmosix-user/files/digest-openmosix-user-0.2.01
-rw-r--r--sys-cluster/openmosix-user/files/digest-openmosix-user-0.2.41
-rw-r--r--sys-cluster/openmosix-user/files/digest-openmosix-user-0.2.4-r11
-rw-r--r--sys-cluster/openmosix-user/files/digest-openmosix-user-0.2.4-r21
-rw-r--r--sys-cluster/openmosix-user/files/digest-openmosix-user-0.2.4-r31
-rw-r--r--sys-cluster/openmosix-user/files/digest-openmosix-user-0.2.4-r41
-rw-r--r--sys-cluster/openmosix-user/files/mosix.map12
-rw-r--r--sys-cluster/openmosix-user/files/openmosix.init33
-rw-r--r--sys-cluster/openmosix-user/openmosix-user-0.2.4-r1.ebuild84
-rw-r--r--sys-cluster/openmosix-user/openmosix-user-0.2.4-r2.ebuild87
-rw-r--r--sys-cluster/openmosix-user/openmosix-user-0.2.4-r3.ebuild92
-rw-r--r--sys-cluster/openmosix-user/openmosix-user-0.2.4-r4.ebuild94
-rw-r--r--sys-cluster/openmosix-user/openmosix-user-0.2.4.ebuild67
13 files changed, 475 insertions, 0 deletions
diff --git a/sys-cluster/openmosix-user/files/digest-openmosix-user-0.2.0 b/sys-cluster/openmosix-user/files/digest-openmosix-user-0.2.0
new file mode 100644
index 000000000000..085b9d842674
--- /dev/null
+++ b/sys-cluster/openmosix-user/files/digest-openmosix-user-0.2.0
@@ -0,0 +1 @@
+MD5 9d67096ca1c9bc3224773caae54235ff openMosixUserland-0.2.0.tar.gz 42030
diff --git a/sys-cluster/openmosix-user/files/digest-openmosix-user-0.2.4 b/sys-cluster/openmosix-user/files/digest-openmosix-user-0.2.4
new file mode 100644
index 000000000000..85f88e730ce3
--- /dev/null
+++ b/sys-cluster/openmosix-user/files/digest-openmosix-user-0.2.4
@@ -0,0 +1 @@
+MD5 2e4e630a391900b331323bffea5c5547 openMosixUserland-0.2.4.tgz 65494
diff --git a/sys-cluster/openmosix-user/files/digest-openmosix-user-0.2.4-r1 b/sys-cluster/openmosix-user/files/digest-openmosix-user-0.2.4-r1
new file mode 100644
index 000000000000..85f88e730ce3
--- /dev/null
+++ b/sys-cluster/openmosix-user/files/digest-openmosix-user-0.2.4-r1
@@ -0,0 +1 @@
+MD5 2e4e630a391900b331323bffea5c5547 openMosixUserland-0.2.4.tgz 65494
diff --git a/sys-cluster/openmosix-user/files/digest-openmosix-user-0.2.4-r2 b/sys-cluster/openmosix-user/files/digest-openmosix-user-0.2.4-r2
new file mode 100644
index 000000000000..85f88e730ce3
--- /dev/null
+++ b/sys-cluster/openmosix-user/files/digest-openmosix-user-0.2.4-r2
@@ -0,0 +1 @@
+MD5 2e4e630a391900b331323bffea5c5547 openMosixUserland-0.2.4.tgz 65494
diff --git a/sys-cluster/openmosix-user/files/digest-openmosix-user-0.2.4-r3 b/sys-cluster/openmosix-user/files/digest-openmosix-user-0.2.4-r3
new file mode 100644
index 000000000000..85f88e730ce3
--- /dev/null
+++ b/sys-cluster/openmosix-user/files/digest-openmosix-user-0.2.4-r3
@@ -0,0 +1 @@
+MD5 2e4e630a391900b331323bffea5c5547 openMosixUserland-0.2.4.tgz 65494
diff --git a/sys-cluster/openmosix-user/files/digest-openmosix-user-0.2.4-r4 b/sys-cluster/openmosix-user/files/digest-openmosix-user-0.2.4-r4
new file mode 100644
index 000000000000..85f88e730ce3
--- /dev/null
+++ b/sys-cluster/openmosix-user/files/digest-openmosix-user-0.2.4-r4
@@ -0,0 +1 @@
+MD5 2e4e630a391900b331323bffea5c5547 openMosixUserland-0.2.4.tgz 65494
diff --git a/sys-cluster/openmosix-user/files/mosix.map b/sys-cluster/openmosix-user/files/mosix.map
new file mode 100644
index 000000000000..dcb5d0f31bbd
--- /dev/null
+++ b/sys-cluster/openmosix-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/openmosix-user/files/openmosix.init b/sys-cluster/openmosix-user/files/openmosix.init
new file mode 100644
index 000000000000..c12a883aee69
--- /dev/null
+++ b/sys-cluster/openmosix-user/files/openmosix.init
@@ -0,0 +1,33 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+}
+
+stop() {
+ ebegin "Stopping openMosix"
+ setpe -off
+ rm -f /var/lock/subsys/mosix
+ eend
+}
+
+start() {
+ ebegin "Starting openMosix"
+ 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`"
+ setpe -W $a1 $a2 -f /etc/mosix.map
+ touch /var/lock/subsys/mosix
+ eend
+}
diff --git a/sys-cluster/openmosix-user/openmosix-user-0.2.4-r1.ebuild b/sys-cluster/openmosix-user/openmosix-user-0.2.4-r1.ebuild
new file mode 100644
index 000000000000..80eed93e5528
--- /dev/null
+++ b/sys-cluster/openmosix-user/openmosix-user-0.2.4-r1.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2002 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.2.4-r1.ebuild,v 1.1 2002/11/04 20:08:46 tantive Exp $
+
+S=${WORKDIR}/openMosixUserland-${PV}
+DESCRIPTION="User-land utilities for openMosix process migration (clustering) software"
+SRC_URI="mirror://sourceforge/openmosix/openMosixUserland-${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
+ sys-devel/perl"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="x86 -ppc -sparc -sparc64 -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 ${CFLAGS}
+INSTALL=/usr/bin/install
+EOF
+}
+
+src_compile() {
+ cd ${S}
+ make clean build
+}
+
+src_install() {
+ dodir /usr/lib
+ dodir /usr/sbin
+ dodir /usr/include
+ dodir /usr/bin
+ dodir /bin
+ ln -s /usr/bin/migrate ${D}/bin/migrate
+ ln -s /usr/bin/mmon ${D}/bin/mmon
+ ln -s /usr/bin/mosctl ${D}/bin/mosctl
+ ln -s /usr/bin/mosrun ${D}/bin/mosrun
+ dodir /usr/share/man/man1
+ make INSTALLBASEDIR=${D}usr \
+ INSTALLMANDIR=${D}usr/share/man \
+ INSTALLEXTRADIR=${D}usr/share \
+ DESTDIR=${D} \
+ INSTALLDIR=${D}usr \
+ install
+
+ dodoc COPYING README
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/openmosix.init openmosix
+ insinto /etc
+ #stub mosix.map file
+ doins ${FILESDIR}/mosix.map
+
+}
+
+pkg_postinst() {
+ einfo
+ einfo " To complete openMosix installation, edit /etc/mosix.map 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-r1"
+ einfo " or later kernel (>=sys-kernel/openmosix-sources-2.4.18)"
+ einfo
+}
diff --git a/sys-cluster/openmosix-user/openmosix-user-0.2.4-r2.ebuild b/sys-cluster/openmosix-user/openmosix-user-0.2.4-r2.ebuild
new file mode 100644
index 000000000000..99dd631a088d
--- /dev/null
+++ b/sys-cluster/openmosix-user/openmosix-user-0.2.4-r2.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2002 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.2.4-r2.ebuild,v 1.1 2002/11/04 20:08:46 tantive Exp $
+
+S=${WORKDIR}/openMosixUserland-${PV}
+DESCRIPTION="User-land utilities for openMosix process migration (clustering) software"
+SRC_URI="mirror://sourceforge/openmosix/openMosixUserland-${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
+ sys-devel/perl"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="x86 -ppc -sparc -sparc64 -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 Makefile | sed s/DIRS.*=/DIRS=autodiscovery/g > Makefile
+ 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 ${CFLAGS}
+INSTALL=/usr/bin/install
+EOF
+}
+
+src_compile() {
+ cd ${S}
+ make clean build
+}
+
+src_install() {
+ dodir /usr/lib
+ dodir /usr/sbin
+ dodir /usr/include
+ dodir /usr/share/include
+ dodir /usr/bin
+ dodir /bin
+ ln -s /usr/bin/migrate ${D}/bin/migrate
+ ln -s /usr/bin/mmon ${D}/bin/mmon
+ ln -s /usr/bin/mosctl ${D}/bin/mosctl
+ ln -s /usr/bin/mosrun ${D}/bin/mosrun
+ dodir /usr/share/man/man1
+ make INSTALLBASEDIR=${D}usr \
+ INSTALLMANDIR=${D}usr/share/man \
+ INSTALLEXTRADIR=${D}usr/share \
+ DESTDIR=${D} \
+ INSTALLDIR=${D}usr \
+ install
+
+ dodoc COPYING README
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/openmosix.init openmosix
+ insinto /etc
+ #stub mosix.map file
+ doins ${FILESDIR}/mosix.map
+
+}
+
+pkg_postinst() {
+ einfo
+ einfo " To complete openMosix installation, edit /etc/mosix.map 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-r1"
+ einfo " or later kernel (>=sys-kernel/openmosix-sources-2.4.18)"
+ einfo
+}
diff --git a/sys-cluster/openmosix-user/openmosix-user-0.2.4-r3.ebuild b/sys-cluster/openmosix-user/openmosix-user-0.2.4-r3.ebuild
new file mode 100644
index 000000000000..b05f104e7ffc
--- /dev/null
+++ b/sys-cluster/openmosix-user/openmosix-user-0.2.4-r3.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2002 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.2.4-r3.ebuild,v 1.1 2002/11/04 20:08:46 tantive Exp $
+
+S=${WORKDIR}/openMosixUserland-${PV}
+DESCRIPTION="User-land utilities for openMosix process migration (clustering) software"
+SRC_URI="mirror://sourceforge/openmosix/openMosixUserland-${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
+ sys-devel/perl"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="x86 -ppc -sparc -sparc64 -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 Makefile | sed s/DIRS.*=/DIRS=autodiscovery/g > Makefile
+ 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 ${CFLAGS}
+INSTALL=/usr/bin/install
+EOF
+
+#non-alpha-mode for autodiscovery (omdiscd)
+cd ${S}/autodiscovery
+cat openmosix.c | grep -v "define ALPHA" > openmosix.c.tmp
+mv openmosix.c.tmp openmosix.c
+cat showmap.c | grep -v "define ALPHA" > showmap.c.tmp
+mv showmap.c.tmp showmap.c
+}
+
+src_compile() {
+ cd ${S}
+ make clean build
+}
+
+src_install() {
+ dodir /usr/lib
+ dodir /usr/sbin
+ dodir /usr/include
+ dodir /usr/share/include
+ dodir /usr/bin
+ dodir /bin
+ ln -s /usr/bin/migrate ${D}/bin/migrate
+ ln -s /usr/bin/mmon ${D}/bin/mmon
+ ln -s /usr/bin/mosctl ${D}/bin/mosctl
+ ln -s /usr/bin/mosrun ${D}/bin/mosrun
+ dodir /usr/share/man/man1
+ make INSTALLBASEDIR=${D}usr \
+ INSTALLMANDIR=${D}usr/share/man \
+ INSTALLEXTRADIR=${D}usr/share \
+ DESTDIR=${D} \
+ INSTALLDIR=${D}usr \
+ install
+
+ dodoc COPYING README
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/openmosix.init openmosix
+ insinto /etc
+ #stub mosix.map file
+ doins ${FILESDIR}/mosix.map
+}
+
+pkg_postinst() {
+ einfo
+ einfo " To complete openMosix installation, edit /etc/mosix.map 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-r1"
+ einfo " or later kernel (>=sys-kernel/openmosix-sources-2.4.18)"
+ einfo
+}
diff --git a/sys-cluster/openmosix-user/openmosix-user-0.2.4-r4.ebuild b/sys-cluster/openmosix-user/openmosix-user-0.2.4-r4.ebuild
new file mode 100644
index 000000000000..f2a4b444907e
--- /dev/null
+++ b/sys-cluster/openmosix-user/openmosix-user-0.2.4-r4.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2002 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.2.4-r4.ebuild,v 1.1 2002/11/04 20:08:46 tantive Exp $
+
+S=${WORKDIR}/openMosixUserland-${PV}
+DESCRIPTION="User-land utilities for openMosix process migration (clustering) software"
+SRC_URI="mirror://sourceforge/openmosix/openMosixUserland-${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
+ sys-devel/perl"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="x86 -ppc -sparc -sparc64 -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 Makefile | sed s/DIRS.*=/DIRS=autodiscovery/g > Makefile.tmp
+ mv Makefile.tmp Makefile
+ 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 ${CFLAGS}
+INSTALL=/usr/bin/install
+EOF
+
+#non-alpha-mode for autodiscovery (omdiscd)
+cd ${S}/autodiscovery
+cat openmosix.c | grep -v "define ALPHA" > openmosix.c.tmp
+mv openmosix.c.tmp openmosix.c
+cat showmap.c | grep -v "define ALPHA" > showmap.c.tmp
+mv showmap.c.tmp showmap.c
+}
+
+src_compile() {
+ cd ${S}
+ make clean build
+}
+
+src_install() {
+ dodir /usr/lib
+ dodir /usr/sbin
+ dodir /usr/include
+ dodir /usr/share/include
+ dodir /usr/bin
+ dodir /bin
+ ln -s /usr/bin/migrate ${D}/bin/migrate
+ ln -s /usr/bin/mmon ${D}/bin/mmon
+ ln -s /usr/bin/mosctl ${D}/bin/mosctl
+ ln -s /usr/bin/mosrun ${D}/bin/mosrun
+ dodir /usr/share/man/man1
+ make INSTALLBASEDIR=${D}usr \
+ INSTALLMANDIR=${D}usr/share/man \
+ INSTALLEXTRADIR=${D}usr/share \
+ DESTDIR=${D} \
+ INSTALLDIR=${D}usr \
+ install
+
+ dodoc COPYING README
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/openmosix.init openmosix
+ insinto /etc
+ #stub mosix.map file
+ doins ${FILESDIR}/mosix.map
+
+}
+
+pkg_postinst() {
+ einfo
+ einfo " To complete openMosix installation, edit /etc/mosix.map 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-r1"
+ einfo " or later kernel (>=sys-kernel/openmosix-sources-2.4.18)"
+ einfo
+}
diff --git a/sys-cluster/openmosix-user/openmosix-user-0.2.4.ebuild b/sys-cluster/openmosix-user/openmosix-user-0.2.4.ebuild
new file mode 100644
index 000000000000..410b5ee67d7f
--- /dev/null
+++ b/sys-cluster/openmosix-user/openmosix-user-0.2.4.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2002 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.2.4.ebuild,v 1.1 2002/11/04 20:08:46 tantive Exp $
+
+S=${WORKDIR}/openMosixUserland-${PV}
+DESCRIPTION="User-land utilities for openMosix process migration (clustering) software"
+SRC_URI="mirror://sourceforge/openmosix/openMosixUserland-${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
+ sys-devel/perl"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="x86 -ppc -sparc -sparc64 -alpha"
+
+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 ${CFLAGS}
+INSTALL=/usr/bin/install
+EOF
+}
+
+src_compile() {
+ cd ${S}
+ make clean build
+}
+
+src_install () {
+ dodir /usr/lib
+ dodir /usr/sbin
+ dodir /usr/include
+ dodir /usr/bin
+ dodir /usr/share/man/man1
+ make INSTALLBASEDIR=${D}usr \
+ INSTALLMANDIR=${D}usr/share/man \
+ INSTALLEXTRADIR=${D}usr/share \
+ DESTDIR=${D} \
+ INSTALLDIR=${D}usr \
+ install
+
+ dodoc COPYING README
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/openmosix.init openmosix
+ insinto /etc
+ #stub mosix.map file
+ doins ${FILESDIR}/mosix.map
+}
+
+pkg_postinst() {
+ einfo
+ einfo " To complete openMosix installation, edit /etc/mosix.map 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-r1"
+ einfo " or later kernel (>=sys-kernel/openmosix-sources-2.4.18)"
+ einfo
+}