Merge pull request #15047 from cstrahan/zooinspector
zookeeper: include ZooInspector app
This commit is contained in:
commit
d3eb87a9dd
@ -23,14 +23,28 @@ stdenv.mkDerivation rec {
|
|||||||
--prefix PATH : "${bash}/bin"
|
--prefix PATH : "${bash}/bin"
|
||||||
done
|
done
|
||||||
chmod -x $out/bin/zkEnv.sh
|
chmod -x $out/bin/zkEnv.sh
|
||||||
|
|
||||||
|
mkdir -p $out/share/zooinspector
|
||||||
|
cp -r contrib/ZooInspector/{${name}-ZooInspector.jar,icons,lib,config} $out/share/zooinspector
|
||||||
|
|
||||||
|
classpath="$out/${name}.jar:$out/share/zooinspector/${name}-ZooInspector.jar"
|
||||||
|
for jar in $out/lib/*.jar $out/share/zooinspector/lib/*.jar; do
|
||||||
|
classpath="$classpath:$jar"
|
||||||
|
done
|
||||||
|
|
||||||
|
cat << EOF > $out/bin/zooInspector.sh
|
||||||
|
#!${stdenv.shell}
|
||||||
|
cd $out/share/zooinspector
|
||||||
|
exec ${jre}/bin/java -cp $classpath org.apache.zookeeper.inspector.ZooInspector
|
||||||
|
EOF
|
||||||
|
chmod +x $out/bin/zooInspector.sh
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "http://zookeeper.apache.org";
|
homepage = "http://zookeeper.apache.org";
|
||||||
description = "Apache Zookeeper";
|
description = "Apache Zookeeper";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = [ maintainers.nathan-gs ];
|
maintainers = with maintainers; [ nathan-gs cstrahan ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user