2023-11-01 20:24:47 +03:00
|
|
|
distributable:
|
|
|
|
url: https://archive.apache.org/dist/zookeeper/zookeeper-{{version}}/apache-zookeeper-{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
versions:
|
|
|
|
url: https://archive.apache.org/dist/zookeeper/
|
|
|
|
match: /zookeeper-\d+\.\d+\.\d+/
|
|
|
|
strip:
|
|
|
|
- /^zookeeper-/
|
|
|
|
dependencies:
|
|
|
|
openjdk.org: '*'
|
|
|
|
openssl.org: '*'
|
|
|
|
runtime:
|
|
|
|
env:
|
2024-03-04 23:07:47 +03:00
|
|
|
ZOODIR: '{{prefix}}'
|
2023-11-01 20:24:47 +03:00
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
gnu.org/autoconf: '*'
|
|
|
|
gnu.org/automake: '*'
|
|
|
|
freedesktop.org/cppunit: '*'
|
|
|
|
gnu.org/libtool: '*'
|
|
|
|
maven.apache.org: '*'
|
|
|
|
freedesktop.org/pkg-config: '*'
|
|
|
|
linux:
|
|
|
|
gnu.org/gcc: '*'
|
|
|
|
script:
|
|
|
|
- cd ..
|
|
|
|
- rm -rf ./zookeeper || true
|
2024-03-04 23:07:47 +03:00
|
|
|
- mv $SRCROOT zookeeper
|
2023-11-01 20:24:47 +03:00
|
|
|
- cd zookeeper
|
|
|
|
- run: mkdir -p etc/zookeeper var/log/zookeeper var/run/zookeeper/data
|
2024-03-04 23:07:47 +03:00
|
|
|
working-directory: '{{prefix}}'
|
2023-11-01 20:24:47 +03:00
|
|
|
- mvn install -Pfull-build -DskipTests
|
|
|
|
- tar -xf zookeeper-assembly/target/apache-zookeeper-{{version}}-bin.tar.gz
|
|
|
|
- run: |
|
|
|
|
rm -f bin/*.cmd bin/*.txt
|
|
|
|
cp -r ./* {{prefix}}/
|
|
|
|
working-directory: apache-zookeeper-{{version}}-bin
|
|
|
|
- tar -xf zookeeper-assembly/target/apache-zookeeper-{{version}}-lib.tar.gz
|
|
|
|
- run: |
|
|
|
|
cp -r usr/include {{prefix}}/
|
|
|
|
cp -r usr/lib {{prefix}}/
|
|
|
|
working-directory: apache-zookeeper-{{version}}-lib
|
|
|
|
- run: rm -f *.txt *.md
|
2024-03-04 23:07:47 +03:00
|
|
|
working-directory: '{{prefix}}'
|
2023-11-01 20:24:47 +03:00
|
|
|
- run: |
|
|
|
|
ln -s zkCleanup.sh zkCleanup
|
|
|
|
ln -s zkCli.sh zkCli
|
|
|
|
ln -s zkEnv.sh zkEnv
|
|
|
|
ln -s zkServer-initialize.sh zkServer-initialize
|
|
|
|
ln -s zkServer.sh zkServer
|
|
|
|
ln -s zkSnapshotComparer.sh zkSnapshotComparer
|
|
|
|
ln -s zkSnapshotRecursiveSummaryToolkit.sh zkSnapshotRecursiveSummaryToolkit
|
|
|
|
ln -s zkSnapShotToolkit.sh zkSnapShotToolkit
|
|
|
|
ln -s zkTxnLogToolkit.sh zkTxnLogToolkit
|
2024-03-04 23:07:47 +03:00
|
|
|
working-directory: '{{prefix}}/bin'
|
2023-11-01 20:24:47 +03:00
|
|
|
- run: |
|
|
|
|
cp zoo_sample.cfg zoo.cfg
|
|
|
|
sed -i.bak 's|dataDir=/tmp/zookeeper|dataDir=\$ZOODIR/var/run/zookeper|' zoo.cfg
|
|
|
|
rm -f zoo.cfg.bak
|
2024-03-04 23:07:47 +03:00
|
|
|
working-directory: '{{prefix}}/conf'
|
2023-11-01 20:24:47 +03:00
|
|
|
provides:
|
|
|
|
- bin/zkCleanup
|
|
|
|
- bin/zkCli
|
|
|
|
- bin/zkEnv
|
|
|
|
- bin/zkServer-initialize
|
|
|
|
- bin/zkServer
|
|
|
|
- bin/zkSnapshotComparer
|
|
|
|
- bin/zkSnapshotRecursiveSummaryToolkit
|
|
|
|
- bin/zkSnapShotToolkit
|
|
|
|
- bin/zkTxnLogToolkit
|
|
|
|
test:
|
|
|
|
script:
|
2024-03-04 23:07:47 +03:00
|
|
|
- zkServer version | grep {{version}}
|