New package: apache-kafka-2.3.0.

This commit is contained in:
Kyle Nusbaum 2019-09-16 15:55:41 -05:00 committed by Juan RP
parent 1e83f5c701
commit aebf383a99
6 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,2 @@
#!/bin/sh
exec logger -t apache-kafka-zookeeper -p 'daemon.info'

View file

@ -0,0 +1,3 @@
#!/bin/sh
[ -r ./conf ] && . ./conf
exec /usr/lib/kafka/bin/zookeeper-server-start.sh ${PROPERTIES_FILE:-/usr/lib/kafka/config/zookeeper.properties}

View file

@ -0,0 +1,3 @@
#!/bin/sh
export PATH=$PATH:/usr/lib/kafka/bin

View file

@ -0,0 +1,2 @@
#!/bin/sh
exec logger -t apache-kafka -p 'daemon.info'

View file

@ -0,0 +1,3 @@
#!/bin/sh
[ -r ./conf ] && . ./conf
exec /usr/lib/kafka/bin/kafka-server-start.sh ${PROPERTIES_FILE:-/usr/lib/kafka/config/server.properties}

View file

@ -0,0 +1,33 @@
# Template file for 'apache-kafka'
pkgname=apache-kafka
version=2.3.0
revision=1
wrksrc="kafka-${version}-src"
hostmakedepends="gradle"
depends="virtual?java-runtime"
short_desc="Distributed Streaming Platform"
maintainer="Kyle Nusbaum <knusbaum+void@sdf.org>"
license="Apache-2.0"
homepage="https://kafka.apache.org"
distfiles="http://apache.mirrors.ionfish.org/kafka/${version}/kafka-${version}-src.tgz"
checksum=d32cbd619e1a7fb4deae2402fa1dce56d909af19ad690c82e2d495fb5c4cfdc0
do_configure() {
gradle
}
do_build() {
./gradlew releaseTarGz
}
do_install() {
vmkdir usr/lib/kafka
tar -xf core/build/distributions/kafka_2.12-${version}.tgz -C ${DESTDIR}/usr/lib/kafka --strip 1
rm -Rf ${DESTDIR}/usr/lib/kafka/bin/windows
mkdir -p ${DESTDIR}/etc/profile.d
vinstall ${FILESDIR}/apache-kafka.sh 0755 etc/profile.d/
vsv apache-kafka-zookeeper
vsv apache-kafka
}