Ticket #26872: Portfile

File Portfile, 2.1 KB (added by nrh@…, 14 years ago)

zookeeper-server Portfile

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 72252 2010-10-08 23:20:28Z jberry@macports.org $
3
4PortSystem      1.0
5
6name            zookeeper-server
7version         3.3.1
8revision        1
9
10categories      java
11maintainers     ikami.com:nrh
12platforms       darwin
13
14description     ZooKeeper: Because coordinating distributed systems is a Zoo
15
16long_description \
17    ZooKeeper allows distributed processes to coordinate with each other \
18    through a shared hierarchal name space of data registers (we call \
19    these registers znodes), much like a file system. Unlike normal file \
20    systems ZooKeeper provides its clients with high throughput, low \
21    latency, highly available, strictly ordered access to the znodes. \
22    The performance aspects of ZooKeeper allows it to be used in large \
23    distributed systems. The reliability aspects prevent it from \
24    becoming the single point of failure in big systems. Its strict \
25    ordering allows sophisticated synchronization primitives to be \
26    implemented at the client.
27
28homepage        http://hadoop.apache.org/zookeeper/
29
30master_sites    apache:hadoop/zookeeper/zookeeper-${version}/
31checksums       md5 bdcd73634e3f6623a025854f853c3d0d \
32                sha1 683f439c149fdeaad996eb88d84caa2f2fc756c5
33
34distname        zookeeper-${version}
35
36depends_build   bin:ant:apache-ant
37
38use_configure       no
39build.cmd           ant
40build.target-delete all
41test.run            yes
42patchfiles          zkServer.sh.patch zoo.cfg.patch
43
44destroot {
45    xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}
46    file copy ${worksrcpath}/zookeeper-${version}.jar \
47        ${destroot}${prefix}/share/java/${name}
48    file copy \
49        ${worksrcpath}/lib \
50        ${worksrcpath}/bin \
51        ${worksrcpath}/conf \
52        ${worksrcpath}/docs \
53        ${destroot}${prefix}/share/java/${name}
54
55    ln -sf ${prefix}/share/java/${name}/bin/zkServer.sh \
56        ${destroot}${prefix}/bin/zookeeper-server.sh
57}
58
59startupitem.create      yes
60startupitem.executable  "${prefix}/bin/zookeeper-server.sh" start-foreground
61
62