1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

sysutils/graylog: update to 4.1.3 and provide a valid default .conf

Summary:
ChangeLog: https://docs.graylog.org/en/4.1/pages/changelog.html#graylog-4-1-3

Reported by:	Daniel Morante <daniel@morante.net>
Submitted by:   Charles Gonçalves <charles@freebsdbrasil.com.br>
Sponsored by:   FreeBSD Brasil
Sponsored by:	SkunkWerks, GmbH
Differential Revision: https://reviews.freebsd.org/D31521
This commit is contained in:
Dave Cottlehuber 2021-08-17 15:42:52 +00:00
parent d8c487985f
commit 5bd41868da
3 changed files with 19 additions and 9 deletions

View File

@ -1,7 +1,7 @@
# Created by: Thomas Bartelmess <thomas@bartelmess.io>
PORTNAME= graylog
DISTVERSION= 4.1.2
DISTVERSION= 4.1.3
CATEGORIES= sysutils java
MASTER_SITES= https://downloads.graylog.org/releases/
DISTFILES= graylog/${DISTNAME}${EXTRACT_SUFX} \
@ -48,10 +48,19 @@ PLIST_SUB= DISTVERSION=${DISTVERSION} \
GRAYLOGGROUP=${GRAYLOGGROUP} \
PORTNAME=${PORTNAME}
post-extract:
${REINPLACE_CMD} -E \
-e 's,^bin_dir .+,bin_dir = ${LOCALBASE}/share/graylog/bin,' \
-e 's,^data_dir .+,data_dir = /var/db/graylog,' \
-e 's,^message_journal_dir .+,message_journal_dir = ${GRAYLOG_DATA_DIR}/journal,' \
-e 's,^node_id_file .+,node_id_file = ${ETCDIR}/server/node-id,' \
-e 's,^plugin_dir .+,plugin_dir = ${LOCALBASE}/share/graylog/plugin,' \
${WRKSRC}/graylog.conf.example
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}/plugin
@${MKDIR} ${STAGEDIR}${ETCDIR}
@${MKDIR} ${STAGEDIR}${GRAYLOG_DATA_DIR}
@${MKDIR} ${STAGEDIR}${ETCDIR}/server
@${MKDIR} ${STAGEDIR}${GRAYLOG_DATA_DIR}/journal
@${MKDIR} ${STAGEDIR}${GRAYLOG_LOGS_DIR}
${INSTALL_DATA} ${WRKSRC}/graylog.jar ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/graylog.conf.example \

View File

@ -1,5 +1,5 @@
TIMESTAMP = 1627499684
SHA256 (graylog/graylog-4.1.2.tgz) = befdebb2c759ab6b1a17f8c918e989dedc174af8c14befd549a6c05d797934dc
SIZE (graylog/graylog-4.1.2.tgz) = 197078255
SHA256 (graylog-integrations/graylog-integrations-plugins-4.1.2.tgz) = 8ca7d63743ce4c6aaebb73522376d315556f44c0b05c326c2b5f53ae7a96734f
SIZE (graylog-integrations/graylog-integrations-plugins-4.1.2.tgz) = 29495666
TIMESTAMP = 1628761882
SHA256 (graylog/graylog-4.1.3.tgz) = 516b32cc3f6888bbbdedfa1c3d722a5413da658257de6be7eb9adf2fb404ac83
SIZE (graylog/graylog-4.1.3.tgz) = 197149916
SHA256 (graylog-integrations/graylog-integrations-plugins-4.1.3.tgz) = 5e603130abf8a9f8181504035653c98f4297c13041363850c82386b0fe33ee6c
SIZE (graylog-integrations/graylog-integrations-plugins-4.1.3.tgz) = 29497807

View File

@ -5,8 +5,9 @@
%%DATADIR%%/plugin/%%PORTNAME%%-plugin-threatintel-%%DISTVERSION%%.jar
%%DATADIR%%/plugin/%%PORTNAME%%-storage-elasticsearch6-%%DISTVERSION%%.jar
%%DATADIR%%/plugin/%%PORTNAME%%-storage-elasticsearch7-%%DISTVERSION%%.jar
@dir %%ETCDIR%%
@dir(%%GRAYLOGUSER%%,%%GRAYLOGGROUP%%,750) %%ETCDIR%%/server
@dir(%%GRAYLOGUSER%%,%%GRAYLOGGROUP%%,750) %%GRAYLOG_DATA_DIR%%
@dir(%%GRAYLOGUSER%%,%%GRAYLOGGROUP%%,750) %%GRAYLOG_DATA_DIR%%/journal
@dir(%%GRAYLOGUSER%%,%%GRAYLOGGROUP%%,750) %%GRAYLOG_LOGS_DIR%%
@sample(%%GRAYLOGUSER%%,%%GRAYLOGGROUP%%,440) %%ETCDIR%%/graylog.conf.sample
@sample(%%GRAYLOGUSER%%,%%GRAYLOGGROUP%%,440) %%ETCDIR%%/log4j2.xml.sample