parent
3343269a34
commit
96b203aa96
6
srcpkgs/zookeeper/files/zookeeper/run
Normal file
6
srcpkgs/zookeeper/files/zookeeper/run
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
[ -f ./conf ] && . ./conf
|
||||||
|
: ${DEFAULT_CONF_PATH:='/etc/zookeeper/conf/environment'}
|
||||||
|
|
||||||
|
exec chpst -u _zookeeper \
|
||||||
|
/usr/share/zookeeper/bin/zkServer.sh start-foreground ${DEFAULT_CONF_PATH}
|
45
srcpkgs/zookeeper/template
Normal file
45
srcpkgs/zookeeper/template
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
# Template file for 'zookeeper'
|
||||||
|
pkgname=zookeeper
|
||||||
|
version=3.4.10
|
||||||
|
revision=1
|
||||||
|
noarch=yes
|
||||||
|
short_desc="A 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="7f7f5414e044ac11fee2a1e0bc225469f51fb0cdf821e67df762a43098223f27"
|
||||||
|
depends="virtual?java-runtime"
|
||||||
|
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}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user