void-packages/srcpkgs/zookeeper/template
2019-03-16 01:50:07 -03:00

45 lines
1.1 KiB
Bash

# Template file for 'zookeeper'
pkgname=zookeeper
version=3.4.13
revision=1
archs=noarch
depends="virtual?java-runtime"
short_desc="Dristributed hierarchical key-value store"
maintainer="Mickael Fortunato <morsi.morsicus@gmail.com>"
license="Apache-2.0"
homepage="http://zookeeper.apache.org/"
distfiles="http://mirrors.ircam.fr/pub/apache/zookeeper/stable/zookeeper-${version}.tar.gz"
checksum=7ced798e41d2027784b8fd55c908605ad5bd94a742d5dab2506be8f94770594d
system_accounts="_zookeeper"
do_install() {
# License
vlicense LICENSE.txt
# Documentation
vmkdir usr/share/doc/${pkgname}
vcopy docs usr/share/doc/${pkgname}
# Configuration example
vmkdir usr/share/examples/${pkgname}
vcopy conf usr/share/examples/${pkgname}
# Default configuration
vmkdir etc/${pkgname}/conf
vcopy conf/zoo_sample.cfg etc/${pkgname}/conf/environment
# Main class
vmkdir usr/share/${pkgname}
vcopy ${pkgname}-${version}.jar usr/share/${pkgname}
# Tools
vmkdir usr/share/${pkgname}/bin
vcopy bin/*.sh usr/share/${pkgname}/bin
# Classpath
vmkdir usr/share/${pkgname}/lib
vcopy lib/* usr/share/${pkgname}/lib
# Service
vsv ${pkgname}
}