Ticket #26872: rollup.patch

File rollup.patch, 6.0 KB (added by nrh@…, 14 years ago)

alternately, a rollup patch against svn r72483

  • java/zookeeper-server/Portfile

    diff -urN /opt/local/var/macports/sources/rsync.macports.org/release/ports/java/zookeeper-server/Portfile java/zookeeper-server/Portfile
    old new  
     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
  • java/zookeeper-server/files/zkServer.sh.patch

    diff -urN /opt/local/var/macports/sources/rsync.macports.org/release/ports/java/zookeeper-server/files/zkServer.sh.patch java/zookeeper-server/files/zkServer.sh.patch
    old new  
     1--- ../zookeeper-3.3.1.orig/bin/zkServer.sh     2010-05-07 13:15:35.000000000 -0400
     2+++ bin/zkServer.sh     2010-10-17 18:28:07.000000000 -0400
     3@@ -32,20 +32,28 @@
     4 
     5 if [ "x$JMXDISABLE" = "x" ]
     6 then
     7-    echo "JMX enabled by default"
     8+    echo "JMX enabled by default" >&2
     9     # for some reason these two options are necessary on jdk6 on Ubuntu
     10     #   accord to the docs they are not necessary, but otw jconsole cannot
     11     #   do a local attach
     12     ZOOMAIN="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=$JMXLOCALONLY org.apache.zookeeper.server.quorum.QuorumPeerMain"
     13 else
     14-    echo "JMX disabled by user request"
     15+    echo "JMX disabled by user request" >&2
     16     ZOOMAIN="org.apache.zookeeper.server.quorum.QuorumPeerMain"
     17 fi
     18 
     19 # Only follow symlinks if readlink supports it
     20+# macos's readlink doesn't have -f
     21 if readlink -f "$0" > /dev/null 2>&1
     22 then
     23-  ZOOBIN=`readlink -f "$0"`
     24+  READLINK="readlink -f"
     25+else
     26+  READLINK="readlink"
     27+fi
     28+
     29+if $READLINK "$0" > /dev/null 2>&1
     30+then
     31+  ZOOBIN=`$READLINK "$0"`
     32 else
     33   ZOOBIN="$0"
     34 fi
     35@@ -58,6 +66,16 @@
     36     ZOOCFG="$ZOOCFGDIR/$2"
     37 fi
     38 
     39+# if we're given a more complicated path to the config
     40+# don't assume it lives in $ZOOCFGDIR, just use it
     41+if [ ! -z "$2" ]
     42+then
     43+  if [ "`basename $2`" != "$2" ]
     44+  then
     45+    ZOOCFG="$2"
     46+  fi
     47+fi
     48+
     49 if $cygwin
     50 then
     51     ZOOCFG=`cygpath -wp "$ZOOCFG"`
     52@@ -67,7 +85,7 @@
     53     KILL=kill
     54 fi
     55 
     56-echo "Using config: $ZOOCFG"
     57+echo "Using config: $ZOOCFG" >&2
     58 
     59 ZOOPIDFILE=$(grep dataDir "$ZOOCFG" | sed -e 's/.*=//')/zookeeper_server.pid
     60 
     61@@ -80,6 +98,13 @@
     62     /bin/echo -n $! > "$ZOOPIDFILE"
     63     echo STARTED
     64     ;;
     65+start-foreground)
     66+    java  "-Dzookeeper.log.dir=${ZOO_LOG_DIR}" "-Dzookeeper.root.logger=${ZOO_LOG4J_PROP}" \
     67+    -cp "$CLASSPATH" $JVMFLAGS $ZOOMAIN "$ZOOCFG"
     68+    ;;
     69+print-cmd)
     70+    echo "java -Dzookeeper.log.dir=\"${ZOO_LOG_DIR}\" -Dzookeeper.root.logger=\"${ZOO_LOG4J_PROP}\" -cp \"$CLASSPATH\" $JVMFLAGS $ZOOMAIN \"$ZOOCFG\""
     71+    ;;
     72 stop)
     73     echo "Stopping zookeeper ... "
     74     if [ ! -f "$ZOOPIDFILE" ]
  • java/zookeeper-server/files/zoo.cfg.patch

    diff -urN /opt/local/var/macports/sources/rsync.macports.org/release/ports/java/zookeeper-server/files/zoo.cfg.patch java/zookeeper-server/files/zoo.cfg.patch
    old new  
     1--- /dev/null   2010-10-17 13:27:21.000000000 -0400
     2+++ conf/zoo.cfg        2010-09-04 13:37:08.000000000 -0400
     3@@ -0,0 +1,12 @@
     4+# The number of milliseconds of each tick
     5+tickTime=2000
     6+# The number of ticks that the initial
     7+# synchronization phase can take
     8+initLimit=10
     9+# The number of ticks that can pass between
     10+# sending a request and getting an acknowledgement
     11+syncLimit=5
     12+# the directory where the snapshot is stored.
     13+dataDir=/Users/nrh/projects/zookeeper/var/data
     14+# the port at which the clients will connect
     15+clientPort=2181