Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: apache-kafka-2.3.0.
@ 2019-09-17 21:42 voidlinux-github
  2019-09-18 15:56 ` [PR PATCH] [Updated] " voidlinux-github
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: voidlinux-github @ 2019-09-17 21:42 UTC (permalink / raw)
  To: ml

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

There is a new 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 77e2e4f8c5e9f8c1cb7e13ab7df9b5fc64fb2436 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
+}

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PR PATCH] [Updated] New package: apache-kafka-2.3.0.
  2019-09-17 21:42 [PR PATCH] New package: apache-kafka-2.3.0 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
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: voidlinux-github @ 2019-09-18 15:56 UTC (permalink / raw)
  To: ml

[-- 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: 5709 bytes --]

From 0123403bd9b0c264d0f6a8c0cd7f1786d0f16833 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 ++
 .../apache-kafka-zookeeper/log/supervise      |  1 +
 .../files/apache-kafka-zookeeper/run          |  3 ++
 .../files/apache-kafka-zookeeper/supervise    |  1 +
 srcpkgs/apache-kafka/files/apache-kafka.sh    |  3 ++
 .../apache-kafka/files/apache-kafka/log/run   |  2 ++
 .../files/apache-kafka/log/supervise          |  1 +
 srcpkgs/apache-kafka/files/apache-kafka/run   |  3 ++
 .../apache-kafka/files/apache-kafka/supervise |  1 +
 srcpkgs/apache-kafka/template                 | 33 +++++++++++++++++++
 10 files changed, 50 insertions(+)
 create mode 100644 srcpkgs/apache-kafka/files/apache-kafka-zookeeper/log/run
 create mode 120000 srcpkgs/apache-kafka/files/apache-kafka-zookeeper/log/supervise
 create mode 100644 srcpkgs/apache-kafka/files/apache-kafka-zookeeper/run
 create mode 120000 srcpkgs/apache-kafka/files/apache-kafka-zookeeper/supervise
 create mode 100644 srcpkgs/apache-kafka/files/apache-kafka.sh
 create mode 100644 srcpkgs/apache-kafka/files/apache-kafka/log/run
 create mode 120000 srcpkgs/apache-kafka/files/apache-kafka/log/supervise
 create mode 100644 srcpkgs/apache-kafka/files/apache-kafka/run
 create mode 120000 srcpkgs/apache-kafka/files/apache-kafka/supervise
 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/log/supervise b/srcpkgs/apache-kafka/files/apache-kafka-zookeeper/log/supervise
new file mode 120000
index 00000000000..07146ff73f4
--- /dev/null
+++ b/srcpkgs/apache-kafka/files/apache-kafka-zookeeper/log/supervise
@@ -0,0 +1 @@
+/run/runit/supervise.apache-kafka-zookeeper-log
\ No newline at end of file
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-zookeeper/supervise b/srcpkgs/apache-kafka/files/apache-kafka-zookeeper/supervise
new file mode 120000
index 00000000000..718648f9975
--- /dev/null
+++ b/srcpkgs/apache-kafka/files/apache-kafka-zookeeper/supervise
@@ -0,0 +1 @@
+/run/runit/supervise.apache-kafka-zookeeper
\ No newline at end of file
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/log/supervise b/srcpkgs/apache-kafka/files/apache-kafka/log/supervise
new file mode 120000
index 00000000000..95501bb338d
--- /dev/null
+++ b/srcpkgs/apache-kafka/files/apache-kafka/log/supervise
@@ -0,0 +1 @@
+/run/runit/supervise.apache-kafka-log
\ No newline at end of file
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/files/apache-kafka/supervise b/srcpkgs/apache-kafka/files/apache-kafka/supervise
new file mode 120000
index 00000000000..a57bae2547d
--- /dev/null
+++ b/srcpkgs/apache-kafka/files/apache-kafka/supervise
@@ -0,0 +1 @@
+/run/runit/supervise.apache-kafka
\ No newline at end of file
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
+}

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PR PATCH] [Updated] New package: apache-kafka-2.3.0.
  2019-09-17 21:42 [PR PATCH] New package: apache-kafka-2.3.0 voidlinux-github
@ 2019-09-18 15:56 ` voidlinux-github
  2019-09-18 15:56 ` voidlinux-github
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: voidlinux-github @ 2019-09-18 15:56 UTC (permalink / raw)
  To: ml

[-- 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: 5709 bytes --]

From 0123403bd9b0c264d0f6a8c0cd7f1786d0f16833 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 ++
 .../apache-kafka-zookeeper/log/supervise      |  1 +
 .../files/apache-kafka-zookeeper/run          |  3 ++
 .../files/apache-kafka-zookeeper/supervise    |  1 +
 srcpkgs/apache-kafka/files/apache-kafka.sh    |  3 ++
 .../apache-kafka/files/apache-kafka/log/run   |  2 ++
 .../files/apache-kafka/log/supervise          |  1 +
 srcpkgs/apache-kafka/files/apache-kafka/run   |  3 ++
 .../apache-kafka/files/apache-kafka/supervise |  1 +
 srcpkgs/apache-kafka/template                 | 33 +++++++++++++++++++
 10 files changed, 50 insertions(+)
 create mode 100644 srcpkgs/apache-kafka/files/apache-kafka-zookeeper/log/run
 create mode 120000 srcpkgs/apache-kafka/files/apache-kafka-zookeeper/log/supervise
 create mode 100644 srcpkgs/apache-kafka/files/apache-kafka-zookeeper/run
 create mode 120000 srcpkgs/apache-kafka/files/apache-kafka-zookeeper/supervise
 create mode 100644 srcpkgs/apache-kafka/files/apache-kafka.sh
 create mode 100644 srcpkgs/apache-kafka/files/apache-kafka/log/run
 create mode 120000 srcpkgs/apache-kafka/files/apache-kafka/log/supervise
 create mode 100644 srcpkgs/apache-kafka/files/apache-kafka/run
 create mode 120000 srcpkgs/apache-kafka/files/apache-kafka/supervise
 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/log/supervise b/srcpkgs/apache-kafka/files/apache-kafka-zookeeper/log/supervise
new file mode 120000
index 00000000000..07146ff73f4
--- /dev/null
+++ b/srcpkgs/apache-kafka/files/apache-kafka-zookeeper/log/supervise
@@ -0,0 +1 @@
+/run/runit/supervise.apache-kafka-zookeeper-log
\ No newline at end of file
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-zookeeper/supervise b/srcpkgs/apache-kafka/files/apache-kafka-zookeeper/supervise
new file mode 120000
index 00000000000..718648f9975
--- /dev/null
+++ b/srcpkgs/apache-kafka/files/apache-kafka-zookeeper/supervise
@@ -0,0 +1 @@
+/run/runit/supervise.apache-kafka-zookeeper
\ No newline at end of file
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/log/supervise b/srcpkgs/apache-kafka/files/apache-kafka/log/supervise
new file mode 120000
index 00000000000..95501bb338d
--- /dev/null
+++ b/srcpkgs/apache-kafka/files/apache-kafka/log/supervise
@@ -0,0 +1 @@
+/run/runit/supervise.apache-kafka-log
\ No newline at end of file
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/files/apache-kafka/supervise b/srcpkgs/apache-kafka/files/apache-kafka/supervise
new file mode 120000
index 00000000000..a57bae2547d
--- /dev/null
+++ b/srcpkgs/apache-kafka/files/apache-kafka/supervise
@@ -0,0 +1 @@
+/run/runit/supervise.apache-kafka
\ No newline at end of file
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
+}

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PR PATCH] [Updated] New package: apache-kafka-2.3.0.
  2019-09-17 21:42 [PR PATCH] New package: apache-kafka-2.3.0 voidlinux-github
                   ` (2 preceding siblings ...)
  2019-09-18 19:54 ` voidlinux-github
@ 2019-09-18 19:54 ` voidlinux-github
  2020-02-14 19:33 ` [PR PATCH] [Merged]: " xtraeme
  4 siblings, 0 replies; 6+ messages in thread
From: voidlinux-github @ 2019-09-18 19:54 UTC (permalink / raw)
  To: ml

[-- 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
+}

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PR PATCH] [Updated] New package: apache-kafka-2.3.0.
  2019-09-17 21:42 [PR PATCH] New package: apache-kafka-2.3.0 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
  2019-09-18 19:54 ` voidlinux-github
  2020-02-14 19:33 ` [PR PATCH] [Merged]: " xtraeme
  4 siblings, 0 replies; 6+ messages in thread
From: voidlinux-github @ 2019-09-18 19:54 UTC (permalink / raw)
  To: ml

[-- 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
+}

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PR PATCH] [Merged]: New package: apache-kafka-2.3.0.
  2019-09-17 21:42 [PR PATCH] New package: apache-kafka-2.3.0 voidlinux-github
                   ` (3 preceding siblings ...)
  2019-09-18 19:54 ` voidlinux-github
@ 2020-02-14 19:33 ` xtraeme
  4 siblings, 0 replies; 6+ messages in thread
From: xtraeme @ 2020-02-14 19:33 UTC (permalink / raw)
  To: ml

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

There's a merged pull request on the void-packages repository

New package: apache-kafka-2.3.0.
https://github.com/void-linux/void-packages/pull/14537

Description:
Tested locally, able to bring up the server, produce and consume messages.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-02-14 19:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-17 21:42 [PR PATCH] New package: apache-kafka-2.3.0 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
2019-09-18 19:54 ` voidlinux-github
2020-02-14 19:33 ` [PR PATCH] [Merged]: " xtraeme

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).