blob: a6b9de73cf95d75d611dc63a6df14fec335d5d51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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.2 2002/12/09 04:37:27 manson 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 -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
}
|