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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name zookeeper-server |
---|
7 | version 3.3.1 |
---|
8 | revision 1 |
---|
9 | |
---|
10 | categories java |
---|
11 | maintainers ikami.com:nrh |
---|
12 | platforms darwin |
---|
13 | |
---|
14 | description ZooKeeper: Because coordinating distributed systems is a Zoo |
---|
15 | |
---|
16 | long_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 | |
---|
28 | homepage http://hadoop.apache.org/zookeeper/ |
---|
29 | |
---|
30 | master_sites apache:hadoop/zookeeper/zookeeper-${version}/ |
---|
31 | checksums md5 bdcd73634e3f6623a025854f853c3d0d \ |
---|
32 | sha1 683f439c149fdeaad996eb88d84caa2f2fc756c5 |
---|
33 | |
---|
34 | distname zookeeper-${version} |
---|
35 | |
---|
36 | depends_build bin:ant:apache-ant |
---|
37 | |
---|
38 | use_configure no |
---|
39 | build.cmd ant |
---|
40 | build.target-delete all |
---|
41 | test.run yes |
---|
42 | patchfiles zkServer.sh.patch zoo.cfg.patch |
---|
43 | |
---|
44 | destroot { |
---|
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 | |
---|
59 | startupitem.create yes |
---|
60 | startupitem.executable "${prefix}/bin/zookeeper-server.sh" start-foreground |
---|
61 | |
---|
62 | |
---|