mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
net/akhq: misc fix
- Fix handling of sample file - Fix PREFIX vs LOCALBASE in the .in file - Fix NO_EXTRACT and CONFIG_FILES that are not needed anymore Sponsored by: Klara, Inc. Approved by: 0mp (mentor) Approved by: kevans Reported by: diizzy Differential Revision: https://reviews.freebsd.org/D49537
This commit is contained in:
parent
3f605c51f9
commit
7820c0a420
2 changed files with 5 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
|||
PORTNAME= akhq
|
||||
DISTVERSION= 0.25.1
|
||||
DISTVERSIONSUFFIX= -all
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= net java
|
||||
MASTER_SITES= https://github.com/tchiotludo/akhq/releases/download/${PORTVERSION}/
|
||||
EXTRACT_SUFX= .jar
|
||||
|
@ -21,19 +21,16 @@ NO_BUILD= yes
|
|||
SUB_FILES= akhq
|
||||
SUB_LIST= WWWOWN=${WWWOWN}
|
||||
|
||||
NO_WRKSUBDIR= yes
|
||||
|
||||
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>
|
||||
|
|
|
@ -12,8 +12,8 @@ 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_config:=%%PREFIX%%/etc/akhq/application.yml}
|
||||
: ${akhq_jar:=%%PREFIX%%/share/java/akhq/akhq.jar}
|
||||
: ${akhq_java:=%%LOCALBASE%%/bin/java}
|
||||
: ${akhq_user:=%%WWWOWN%%}
|
||||
: ${akhq_pidfile:=/var/run/${name}.pid}
|
||||
|
|
Loading…
Add table
Reference in a new issue