Update from portsd
This commit is contained in:
39
net/akhq/Makefile
Normal file
39
net/akhq/Makefile
Normal file
@ -0,0 +1,39 @@
|
||||
PORTNAME= akhq
|
||||
DISTVERSION= 0.25.1
|
||||
DISTVERSIONSUFFIX= -all
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net java
|
||||
MASTER_SITES= https://github.com/tchiotludo/akhq/releases/download/${PORTVERSION}/
|
||||
EXTRACT_SUFX= .jar
|
||||
|
||||
MAINTAINER= freebsd@hackacad.net
|
||||
COMMENT= Kafka Gui for Apache Kafka
|
||||
WWW= https://github.com/tchiotludo/akhq
|
||||
|
||||
LICENSE= APACHE20
|
||||
|
||||
USES= java
|
||||
JAVA_VERSION= 17+
|
||||
USE_RC_SUBR= akhq
|
||||
|
||||
NO_ARCH= yes
|
||||
NO_BUILD= yes
|
||||
SUB_FILES= akhq
|
||||
SUB_LIST= WWWOWN=${WWWOWN}
|
||||
|
||||
PLIST_FILES= "@sample ${ETCDIR}/application.yml.sample" \
|
||||
${JAVASHAREDIR}/${PORTNAME}/${PORTNAME}.jar
|
||||
PLIST_SUB+= ${SUB_LIST}
|
||||
|
||||
CONFIG_FILES= application.yml
|
||||
|
||||
NO_EXTRACT= yes
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${STAGEDIR}${ETCDIR}
|
||||
${MKDIR} ${STAGEDIR}${JAVASHAREDIR}/${PORTNAME}
|
||||
${INSTALL_DATA} ${DISTDIR}/${DISTFILES} ${STAGEDIR}${JAVASHAREDIR}/${PORTNAME}/${PORTNAME}.jar
|
||||
${INSTALL_DATA} ${FILESDIR}/application.yml ${STAGEDIR}${ETCDIR}/application.yml.sample
|
||||
${INSTALL_DATA} ${FILESDIR}/application.yml ${STAGEDIR}${ETCDIR}/application.yml
|
||||
|
||||
.include <bsd.port.mk>
|
||||
3
net/akhq/distinfo
Normal file
3
net/akhq/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1734718291
|
||||
SHA256 (akhq-0.25.1-all.jar) = 5aec420df890e388ade89c6995e6ed45a37d3cb1ff22f5d9837b1156ff4eaf72
|
||||
SIZE (akhq-0.25.1-all.jar) = 191995582
|
||||
40
net/akhq/files/akhq.in
Normal file
40
net/akhq/files/akhq.in
Normal file
@ -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:=%%LOCALBASE%%/etc/akhq/application.yml}
|
||||
: ${akhq_jar:=%%LOCALBASE%%/share/java/akhq/akhq.jar}
|
||||
: ${akhq_java:=%%LOCALBASE%%/bin/java}
|
||||
: ${akhq_user:=%%WWWOWN%%}
|
||||
: ${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"
|
||||
|
||||
9
net/akhq/files/application.yml
Normal file
9
net/akhq/files/application.yml
Normal file
@ -0,0 +1,9 @@
|
||||
akhq:
|
||||
connections:
|
||||
local:
|
||||
properties:
|
||||
bootstrap.servers: "localhost:9092"
|
||||
micronaut:
|
||||
server:
|
||||
port: 8080
|
||||
host: "127.0.0.1"
|
||||
2
net/akhq/pkg-descr
Normal file
2
net/akhq/pkg-descr
Normal file
@ -0,0 +1,2 @@
|
||||
Kafka GUI for Apache Kafka to manage topics, topics data,
|
||||
consumers group, schema registry, connect and more...
|
||||
Reference in New Issue
Block a user