Commit 85c9c03f authored by gerd's avatar gerd

OS X porting


git-svn-id: https://gps.dynxs.de/private/svn/app-plasma/trunk@627 55289a75-7b90-4627-9e07-ffb4263930b2
parent 8e7b6fea
......@@ -33,7 +33,7 @@ netplex {
port = 2730;
alive_min = "all";
replication = 1;
rank_script = "ip addr show label 'eth*' | grep link/ether | awk '{print $2}'";
rank_script = "<PREFIX>/etc/rank.sh";
elect_timeout = 60.0;
inodecache { port = 2740 };
};
......
#! /bin/sh
case `uname` in
Linux)
ip addr show label 'eth*' | grep link/ether | awk '{print $2}';;
Darwin)
ioreg -rd1 -c IOPlatformExpertDevice | awk '/IOPlatformUUID/ { split($0, line, "\""); printf("%s\n", line[4]); }';;
esac
......@@ -88,7 +88,7 @@ echo "Blocksize: $blocksize"
echo "Template: $template"
mkdir -p instances/$inst
for f in namenode.hosts datanode.hosts nfsnode.hosts authnode.hosts global.conf rc_dn.sh rc_nn.sh rc_nfsd.sh rc_an.sh; do
for f in namenode.hosts datanode.hosts nfsnode.hosts authnode.hosts global.conf rc_dn.sh rc_nn.sh rc_nfsd.sh rc_an.sh rank.sh; do
cp -p "instances/$template/$f" "instances/$inst/$f"
done
......
......@@ -10,10 +10,14 @@ of applications:
{2 Operating System}
So far, Plasma has only been tested on 64 bit Linux. It is not
impossible that it runs in 32 bit mode, too, but there might be issues.
Working OS (tested):
- Linux 64 bit
- OS X 10.7 (needs OCamlnet-3.6.1)
Whether it runs on other operating systems is totally unknown. There
Generally, Plasma requires a 64 bit CPU. It is not
impossible that it runs in 32 bit mode, but there might be issues.
Whether it runs on other operating systems is unknown. There
is a chance it could work on
- FreeBSD 9
- Open Solaris
......
......@@ -11,6 +11,7 @@ Fixes:
- Detecting ocamlnet-3.6 (and better), and requiring netstring-pcre as
additional findlib dependency
- OS X (and probably BSD): reformulated a sed regexp that was broken here
- OS X: fixing some shell scripts
{3 Changed in 0.6.1}
......
requires = "rpc,plasmasupport,netstring-pcre"
requires = "rpc,plasmasupport"
archive(byte) = "plasmaclient.cma"
archive(native) = "plasmaclient.cmxa"
requires = "unix,netplex,shell,netmech-scram,pcre"
requires = "unix,netplex,shell,netmech-scram@EXTRA@"
archive(byte) = "plasmasupport.cma"
archive(native) = "plasmasupport.cmxa"
......@@ -49,5 +49,11 @@ if $(NATIVE_ENABLED)
.DEFAULT: $(InterfaceDoc $(LIB), $(FILES))
.DEFAULT: META
META: META.in
sed -e 's/@EXTRA@/ $(EXTRA_PKGS)/' META.in >META
clean:
rm -f *.a *.cmx *.cmxa *.o *.cmo *.cma *.cmi *.annot *.idoc dll*.so
rm -f META
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment