New package: apache-kafka-2.3.0.
This commit is contained in:
parent
1e83f5c701
commit
aebf383a99
6 changed files with 46 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec logger -t apache-kafka-zookeeper -p 'daemon.info'
|
3
srcpkgs/apache-kafka/files/apache-kafka-zookeeper/run
Normal file
3
srcpkgs/apache-kafka/files/apache-kafka-zookeeper/run
Normal 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}
|
3
srcpkgs/apache-kafka/files/apache-kafka.sh
Normal file
3
srcpkgs/apache-kafka/files/apache-kafka.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
export PATH=$PATH:/usr/lib/kafka/bin
|
2
srcpkgs/apache-kafka/files/apache-kafka/log/run
Normal file
2
srcpkgs/apache-kafka/files/apache-kafka/log/run
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec logger -t apache-kafka -p 'daemon.info'
|
3
srcpkgs/apache-kafka/files/apache-kafka/run
Normal file
3
srcpkgs/apache-kafka/files/apache-kafka/run
Normal 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}
|
33
srcpkgs/apache-kafka/template
Normal file
33
srcpkgs/apache-kafka/template
Normal 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
|
||||
}
|
Loading…
Reference in a new issue