summaryrefslogtreecommitdiff
path: root/strata/zookeeper/java-ant.morph
diff options
context:
space:
mode:
authorMike Smith <mike.smith@codethink.co.uk>2014-12-11 14:23:59 +0000
committerMike Smith <mike.smith@codethink.co.uk>2014-12-18 12:40:03 +0000
commita99327e2c260e4e48d29dc0ddd032c96c6214d1a (patch)
treef279c18f23db73a3498cb80a21fc7d2d0566e0fe /strata/zookeeper/java-ant.morph
parentf7dd00169f2482a4db7087008317589848afed32 (diff)
downloaddefinitions-a99327e2c260e4e48d29dc0ddd032c96c6214d1a.tar.gz
Add chunks for Java, ANT and ZooKeeper
Java is sourced from the binary Java release from Oracle. This chunk was originally written by Francisco Marchena. ANT is a Java build system and is needed by ZooKeeper. ZooKeeper itself is documented at http://zookeeper.apache.org/ This patch also brings in a zookeeper test program in a seperate strata that can be safely discarded if not required. this test program was written by me, <mike.smith@codethink.co.uk> and is not designed to be used in any practical way, but to showcase the functionality of zookeeper within baserock Reviewed by: Sam Thursfield <sam.thursfield@codethink.co.uk> Pedro Alvarez <pdro.alvarez@codethink.co.uk> The ZooKeeper demonstration server and client are currently hosted on baserock/test. The Java binary chunk only works for x86_64. As such, these systems are limited to that architecture.
Diffstat (limited to 'strata/zookeeper/java-ant.morph')
-rw-r--r--strata/zookeeper/java-ant.morph8
1 files changed, 8 insertions, 0 deletions
diff --git a/strata/zookeeper/java-ant.morph b/strata/zookeeper/java-ant.morph
new file mode 100644
index 00000000..37d402b0
--- /dev/null
+++ b/strata/zookeeper/java-ant.morph
@@ -0,0 +1,8 @@
+name: ant
+kind: chunk
+build-commands:
+- |
+ export JAVA_HOME=/usr/lib/jdk1.8.0_20
+ sh build.sh -Ddist.dir="$DESTDIR/usr/lib/ant" dist
+- mkdir -p "${DESTDIR}${PREFIX}/bin"
+- ln -sf "${PREFIX}/lib/ant/bin/ant" "${DESTDIR}${PREFIX}/bin/ant"