FreeBSD Bugzilla – Attachment 245313 Details for
Bug 274149
[new port] net/akhq: Web GUI for Apache Kafka
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
new port patch
file_274149.txt (text/plain), 4.27 KB, created by
Sven Ruediger
on 2023-09-28 18:10:58 UTC
(
hide
)
Description:
new port patch
Filename:
MIME Type:
Creator:
Sven Ruediger
Created:
2023-09-28 18:10:58 UTC
Size:
4.27 KB
patch
obsolete
>From c1389847bf142c7c8eaff05fd5dde72cb0311d2e Mon Sep 17 00:00:00 2001 >From: Sven Ruediger <admin@hackacad.net> >Date: Thu, 28 Sep 2023 18:02:16 +0000 >Subject: [PATCH] initial port > >--- > net/akhq/Makefile | 41 ++++++++++++++++++++++++++++++++++ > net/akhq/distinfo | 3 +++ > net/akhq/files/akhq.in | 40 +++++++++++++++++++++++++++++++++ > net/akhq/files/application.yml | 9 ++++++++ > net/akhq/pkg-descr | 2 ++ > 5 files changed, 95 insertions(+) > create mode 100644 net/akhq/Makefile > create mode 100644 net/akhq/distinfo > create mode 100644 net/akhq/files/akhq.in > create mode 100644 net/akhq/files/application.yml > create mode 100644 net/akhq/pkg-descr > >diff --git a/net/akhq/Makefile b/net/akhq/Makefile >new file mode 100644 >index 000000000000..fd056b8aca31 >--- /dev/null >+++ b/net/akhq/Makefile >@@ -0,0 +1,41 @@ >+PORTNAME= akhq >+DISTVERSION= 0.24.0 >+DISTVERSIONSUFFIX= -all >+CATEGORIES= net java >+MASTER_SITES= https://github.com/tchiotludo/akhq/releases/download/${PORTVERSION}/ >+EXTRACT_SUFX= .jar >+ >+MAINTAINER= freebsd@hackacad.net >+COMMENT= AKHQ (previously known as KafkaHQ) >+WWW= https://github.com/tchiotludo/akhq >+ >+LICENSE= APACHE20 >+ >+USE_JAVA= yes >+ >+NO_ARCH= yes >+ >+PLIST_FILES= ${JAVASHAREDIR}/${PORTNAME}/${PORTNAME}.jar \ >+ >+CONFIG_FILES= application.yml >+ >+NO_BUILD= yes >+NO_EXTRACT= yes >+ >+USE_RC_SUBR= akhq >+ >+do-install: >+ ${MKDIR} ${STAGEDIR}${PREFIX}/etc/akhq >+ ${MKDIR} ${STAGEDIR}${JAVASHAREDIR}/${PORTNAME} >+ ${INSTALL_DATA} ${DISTDIR}/${DISTFILES} ${STAGEDIR}${JAVASHAREDIR}/${PORTNAME}/${PORTNAME}.jar >+ ${INSTALL_DATA} ${FILESDIR}/application.yml ${STAGEDIR}${PREFIX}/etc/akhq/application.yml.sample >+ ${ECHO} "@sample ${PREFIX}/etc/akhq/application.yml.sample" >> ${TMPPLIST} >+ >+post-install: >+# ${INSTALL_SCRIPT} ${FILESDIR}/akhq.in ${STAGEDIR}${PREFIX}/etc/rc.d/akhq >+ >+ @if [ ! -f ${STAGEDIR}${PREFIX}/etc/akhq/application.yml ]; then \ >+ ${CP} -p ${STAGEDIR}${PREFIX}/etc/akhq/application.yml.sample ${STAGEDIR}${PREFIX}/etc/akhq/application.yml ; \ >+ fi >+ >+.include <bsd.port.mk> >diff --git a/net/akhq/distinfo b/net/akhq/distinfo >new file mode 100644 >index 000000000000..0a396fa597fd >--- /dev/null >+++ b/net/akhq/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1695910932 >+SHA256 (akhq-0.24.0-all.jar) = c8d73ebbfbe4d60cf6f4a6e729d1d73ef595aa6cb0ba1b31019904fbc9249169 >+SIZE (akhq-0.24.0-all.jar) = 177638284 >diff --git a/net/akhq/files/akhq.in b/net/akhq/files/akhq.in >new file mode 100644 >index 000000000000..0d00d6833041 >--- /dev/null >+++ b/net/akhq/files/akhq.in >@@ -0,0 +1,40 @@ >+#!/bin/sh >+ >+# PROVIDE: akhq >+# REQUIRE: LOGIN >+# KEYWORD: shutdown >+ >+. /etc/rc.subr >+ >+name=akhq >+rcvar=akhq_enable >+ >+load_rc_config $name >+ >+: ${akhq_enable:=NO} >+: ${akhq_config:=/usr/local/etc/akhq/application.yml} >+: ${akhq_jar:=/usr/local/share/java/akhq/akhq.jar} >+: ${akhq_java:=/usr/local/bin/java} >+: ${akhq_user:=www} >+: ${akhq_pidfile:=/var/run/${name}.pid} >+ >+command="/usr/sbin/daemon" >+command_args="-P ${akhq_pidfile} -r -f ${akhq_java} -Dmicronaut.config.files=${akhq_config} -jar ${akhq_jar}" >+ >+start_precmd=akhq_startprecmd >+ >+akhq_startprecmd() >+{ >+ # Ensure the directory for the PID file exists >+ if [ ! -d $(dirname ${akhq_pidfile}) ]; then >+ install -d -o ${akhq_user} -m 0750 $(dirname ${akhq_pidfile}) >+ fi >+ >+ # Ensure the PID file exists with the right permissions >+ if [ ! -e "${akhq_pidfile}" ]; then >+ install -m 0600 -o ${akhq_user} /dev/null ${akhq_pidfile} >+ fi >+} >+ >+run_rc_command "$1" >+ >diff --git a/net/akhq/files/application.yml b/net/akhq/files/application.yml >new file mode 100644 >index 000000000000..e8ec7266d80f >--- /dev/null >+++ b/net/akhq/files/application.yml >@@ -0,0 +1,9 @@ >+akhq: >+ connections: >+ local: >+ properties: >+ bootstrap.servers: "localhost:9092" >+micronaut: >+ server: >+ port: 80 >+ host: "0.0.0.0" >diff --git a/net/akhq/pkg-descr b/net/akhq/pkg-descr >new file mode 100644 >index 000000000000..71e2a94dda75 >--- /dev/null >+++ b/net/akhq/pkg-descr >@@ -0,0 +1,2 @@ >+Kafka GUI for Apache Kafka to manage topics, topics data, >+consumers group, schema registry, connect and more...
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 274149
:
245313
|
245378
|
246086