Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: apache-kafka-2.3.0.
Date: Wed, 18 Sep 2019 21:54:48 +0200	[thread overview]
Message-ID: <20190918195448.FxXyp0FlB9aaMKTqDtPv6dMhhiZHDfUI3umCuwawnwI@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-14537@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 413 bytes --]

There is an updated pull request by knusbaum against master on the void-packages repository

https://github.com/knusbaum/void-packages NEW_apache-kafka-2.3.0
https://github.com/void-linux/void-packages/pull/14537

New package: apache-kafka-2.3.0.
Tested locally, able to bring up the server, produce and consume messages.

A patch file from https://github.com/void-linux/void-packages/pull/14537.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-NEW_apache-kafka-2.3.0-14537.patch --]
[-- Type: text/x-diff, Size: 3816 bytes --]

From a02fb3cb7f187aae7d231112be238c6974078296 Mon Sep 17 00:00:00 2001
From: Kyle Nusbaum <kylenusbaum@granular.ag>
Date: Mon, 16 Sep 2019 15:55:41 -0500
Subject: [PATCH] New package: apache-kafka-2.3.0.

---
 .../files/apache-kafka-zookeeper/log/run      |  2 ++
 .../files/apache-kafka-zookeeper/run          |  3 ++
 srcpkgs/apache-kafka/files/apache-kafka.sh    |  3 ++
 .../apache-kafka/files/apache-kafka/log/run   |  2 ++
 srcpkgs/apache-kafka/files/apache-kafka/run   |  3 ++
 srcpkgs/apache-kafka/template                 | 33 +++++++++++++++++++
 6 files changed, 46 insertions(+)
 create mode 100644 srcpkgs/apache-kafka/files/apache-kafka-zookeeper/log/run
 create mode 100644 srcpkgs/apache-kafka/files/apache-kafka-zookeeper/run
 create mode 100644 srcpkgs/apache-kafka/files/apache-kafka.sh
 create mode 100644 srcpkgs/apache-kafka/files/apache-kafka/log/run
 create mode 100644 srcpkgs/apache-kafka/files/apache-kafka/run
 create mode 100644 srcpkgs/apache-kafka/template

diff --git a/srcpkgs/apache-kafka/files/apache-kafka-zookeeper/log/run b/srcpkgs/apache-kafka/files/apache-kafka-zookeeper/log/run
new file mode 100644
index 00000000000..043340b6125
--- /dev/null
+++ b/srcpkgs/apache-kafka/files/apache-kafka-zookeeper/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec logger -t apache-kafka-zookeeper -p 'daemon.info'
diff --git a/srcpkgs/apache-kafka/files/apache-kafka-zookeeper/run b/srcpkgs/apache-kafka/files/apache-kafka-zookeeper/run
new file mode 100644
index 00000000000..1fcaf44eeb9
--- /dev/null
+++ b/srcpkgs/apache-kafka/files/apache-kafka-zookeeper/run
@@ -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}
diff --git a/srcpkgs/apache-kafka/files/apache-kafka.sh b/srcpkgs/apache-kafka/files/apache-kafka.sh
new file mode 100644
index 00000000000..ed60441924d
--- /dev/null
+++ b/srcpkgs/apache-kafka/files/apache-kafka.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+export PATH=$PATH:/usr/lib/kafka/bin
diff --git a/srcpkgs/apache-kafka/files/apache-kafka/log/run b/srcpkgs/apache-kafka/files/apache-kafka/log/run
new file mode 100644
index 00000000000..94f6f1f9164
--- /dev/null
+++ b/srcpkgs/apache-kafka/files/apache-kafka/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec logger -t apache-kafka -p 'daemon.info'
diff --git a/srcpkgs/apache-kafka/files/apache-kafka/run b/srcpkgs/apache-kafka/files/apache-kafka/run
new file mode 100644
index 00000000000..7f888a35e8c
--- /dev/null
+++ b/srcpkgs/apache-kafka/files/apache-kafka/run
@@ -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}
diff --git a/srcpkgs/apache-kafka/template b/srcpkgs/apache-kafka/template
new file mode 100644
index 00000000000..11813e31a89
--- /dev/null
+++ b/srcpkgs/apache-kafka/template
@@ -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
+}

  parent reply	other threads:[~2019-09-18 19:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-17 21:42 [PR PATCH] " voidlinux-github
2019-09-18 15:56 ` [PR PATCH] [Updated] " voidlinux-github
2019-09-18 15:56 ` voidlinux-github
2019-09-18 19:54 ` voidlinux-github [this message]
2019-09-18 19:54 ` voidlinux-github
2020-02-14 19:33 ` [PR PATCH] [Merged]: " xtraeme

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190918195448.FxXyp0FlB9aaMKTqDtPv6dMhhiZHDfUI3umCuwawnwI@z \
    --to=voidlinux-github@inbox.vuxu.org \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).