{
    "version": "3.9.5",
    "description": "High-performance coordination service for distributed applications",
    "homepage": "https://zookeeper.apache.org/",
    "license": "Apache-2.0",
    "suggest": {
        "JDK": "java/openjdk"
    },
    "url": "https://downloads.apache.org/zookeeper/zookeeper-3.9.5/apache-zookeeper-3.9.5-bin.tar.gz",
    "hash": "sha512:baa1c21dda4d57238fca751e4fa2bbf1daff9a28612b125e497dccd5c188ee6449e2f79947e474c2dd4d19992789d4d36b27b1ba2feb80c2b0c45e7df0e22aa8",
    "extract_dir": "apache-zookeeper-3.9.5-bin",
    "post_install": [
        "$dataDirPath = (\"$dir\\data\").replace('\\', '\\\\')",
        "(Get-Content \"$dir\\conf\\zoo_sample.cfg\") -Replace '^dataDir=(.+)$', \"dataDir=$dataDirPath\" | Set-Content \"$dir\\conf\\zoo.cfg\" -Encoding Ascii"
    ],
    "bin": [
        "bin\\zkServer.cmd",
        "bin\\zkCli.cmd"
    ],
    "persist": "data",
    "checkver": {
        "url": "https://downloads.apache.org/zookeeper/",
        "regex": "zookeeper-([\\d.]+)/",
        "reverse": true
    },
    "autoupdate": {
        "url": "https://downloads.apache.org/zookeeper/zookeeper-$version/apache-zookeeper-$version-bin.tar.gz",
        "hash": {
            "url": "$url.sha512"
        },
        "extract_dir": "apache-zookeeper-$version-bin"
    }
}
