mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
Web Interface for Graylog
PR: 205531 Submitted by: Thomas Bartelmess <thomas@bartelmess.io>
This commit is contained in:
parent
b04ff743e8
commit
ffc82966e1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=410796
@ -239,6 +239,7 @@
|
||||
SUBDIR += grafana
|
||||
SUBDIR += grafana2
|
||||
SUBDIR += grails
|
||||
SUBDIR += graylog-web-interface
|
||||
SUBDIR += gregarius
|
||||
SUBDIR += groupoffice
|
||||
SUBDIR += grr
|
||||
|
50
www/graylog-web-interface/Makefile
Normal file
50
www/graylog-web-interface/Makefile
Normal file
@ -0,0 +1,50 @@
|
||||
# Created by: Thomas Bartelmess <thomas@bartelmess.io>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= graylog-web-interface
|
||||
PORTVERSION= 1.3.3
|
||||
CATEGORIES= www java sysutils
|
||||
MASTER_SITES= https://packages.graylog2.org/releases/graylog2-web-interface/ \
|
||||
http://packages.graylog2.org/releases/graylog2-web-interface/
|
||||
|
||||
MAINTAINER= thomas@bartelmess.io
|
||||
COMMENT= Web Interface for Graylog
|
||||
|
||||
LICENSE= GPLv3+
|
||||
|
||||
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
|
||||
|
||||
USES= tar:tgz
|
||||
USE_JAVA= yes
|
||||
|
||||
JAVA_EXTRACT= yes
|
||||
JAVA_RUN= yes
|
||||
NO_BUILD= yes
|
||||
NO_ARCH= yes
|
||||
|
||||
USE_RC_SUBR= graylog_web_interface
|
||||
|
||||
GRAYLOGUSER?= graylog
|
||||
GRAYLOGGROUP?= ${GRAYLOGUSER}
|
||||
USERS= ${GRAYLOGUSER}
|
||||
GROUPS= ${GRAYLOGGROUP}
|
||||
|
||||
SUB_FILES= pkg-message
|
||||
SUB_LIST= GRAYLOGUSER=${GRAYLOGUSER} \
|
||||
GRAYLOGGROUP=${GRAYLOGGROUP} \
|
||||
JAVA_HOME=${JAVA_HOME}
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/lib/graylog-web-interface
|
||||
(cd ${WRKSRC}/lib && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/graylog-web-interface/lib/ "-name *\.jar")
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/lib/graylog-web-interface/bin
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/bin/graylog-web-interface ${STAGEDIR}${PREFIX}/lib/graylog-web-interface/bin/
|
||||
cd ${STAGEDIR}${PREFIX}/bin && ${LN} -s ${PREFIX}/lib/graylog-web-interface/bin/graylog-web-interface graylog-web-interface
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/lib/graylog-web-interface/conf
|
||||
${INSTALL_DATA} ${WRKSRC}/conf/application.conf ${STAGEDIR}${PREFIX}/lib/graylog-web-interface/conf
|
||||
${INSTALL_DATA} ${WRKSRC}/conf/play.plugins ${STAGEDIR}${PREFIX}/lib/graylog-web-interface/conf
|
||||
${INSTALL_DATA} ${WRKSRC}/conf/graylog-web-interface.conf ${STAGEDIR}${PREFIX}/etc/graylog-web-interface.conf.sample
|
||||
${INSTALL_DATA} ${FILESDIR}/graylog-web-interface-logging.xml ${STAGEDIR}${PREFIX}/etc/graylog-web-interface-logging.xml.sample
|
||||
cd ${STAGEDIR}${PREFIX}/lib/graylog-web-interface/conf && ${LN} -s ${PREFIX}/etc/graylog-web-interface.conf graylog-web-interface.conf
|
||||
|
||||
.include <bsd.port.mk>
|
2
www/graylog-web-interface/distinfo
Normal file
2
www/graylog-web-interface/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (graylog-web-interface-1.3.3.tgz) = e24d9c5618cfac8a2264e7579557221fe2b6cd5c70e1236bd2af4e33fd0b1643
|
||||
SIZE (graylog-web-interface-1.3.3.tgz) = 41418930
|
@ -0,0 +1,30 @@
|
||||
<configuration>
|
||||
|
||||
<!--
|
||||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>%date %-5level [%thread] - [%logger]- %msg%n</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
-->
|
||||
|
||||
<appender name="ROLLING_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>/var/log/graylog/web/graylog-web-interface.log</file>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<FileNamePattern>/var/log/graylog/web/graylog-web-interface.log.%d{yyyy-MM-dd}.%i.log.gz</FileNamePattern>
|
||||
<MaxHistory>30</MaxHistory>
|
||||
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
|
||||
<maxFileSize>100MB</maxFileSize>
|
||||
</timeBasedFileNamingAndTriggeringPolicy>
|
||||
</rollingPolicy>
|
||||
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
||||
<pattern>%date [%thread] %-5level %logger{36} - %msg%n</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<root level="INFO">
|
||||
<!--<appender-ref ref="STDOUT" />-->
|
||||
<appender-ref ref="ROLLING_FILE" />
|
||||
</root>
|
||||
|
||||
</configuration>
|
54
www/graylog-web-interface/files/graylog_web_interface.in
Normal file
54
www/graylog-web-interface/files/graylog_web_interface.in
Normal file
@ -0,0 +1,54 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# PROVIDE: graylog
|
||||
# REQUIRE: NETWORKING SERVERS
|
||||
# BEFORE: DAEMON
|
||||
# KEYWORD: shutdown
|
||||
#
|
||||
|
||||
# graylog_web_interface_enable (bool):
|
||||
# Default value: "NO"
|
||||
# Flag that determines whether graylog is enabled
|
||||
#
|
||||
# graylog_web_interface_user (username):
|
||||
# Default value: "graylog"
|
||||
# Name of the graylog user account
|
||||
#
|
||||
# graylog_web_interface_group (group):
|
||||
# Default value: "graylog"
|
||||
# Name of the graylog group
|
||||
#
|
||||
# graylog_web_interface_config (string)
|
||||
# Default value %%ETCDIR%%/graylog-web-interface.conf
|
||||
# Path to the graylog configuration file
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name=graylog_web_interface
|
||||
rcvar=graylog_web_interface_enable
|
||||
load_rc_config $name
|
||||
|
||||
: ${graylog_web_interface_enable:="NO"}
|
||||
: ${graylog_web_interface_user:="%%GRAYLOGUSER%%"}
|
||||
: ${graylog_web_interface_group:="%%GRAYLOGGROUP%%"}
|
||||
: ${graylog_web_interface_config:="%%LOCALBASE%%/etc/graylog-web-interface.conf"}
|
||||
|
||||
pidfile=/var/run/${name}.pid
|
||||
command=/usr/sbin/daemon
|
||||
procname=`env JAVAVM_DRYRUN=true JAVA_VERSION=1.7+ %%LOCALBASE%%/bin/java | grep JAVAVM_PROG | cut -f 2 -d =`
|
||||
|
||||
command_args="-p $pidfile -f %%LOCALBASE%%/bin/graylog-web-interface \
|
||||
-Dconfig.file=${graylog_web_interface_config} \
|
||||
-Dpidfile.path=/dev/null \
|
||||
-Dlogger.file=%%LOCALBASE%%/etc/graylog-web-interface-logging.xml"
|
||||
|
||||
start_precmd="graylog_web_interface_precmd"
|
||||
|
||||
graylog_web_interface_precmd() {
|
||||
touch ${pidfile}
|
||||
chown ${graylog_web_interface_user}:${graylog_web_interface_group} ${pidfile}
|
||||
mkdir -p /var/log/graylog/web/
|
||||
chown ${graylog_web_interface_user}:${graylog_web_interface_group} /var/log/graylog/web/
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
3
www/graylog-web-interface/files/pkg-message.in
Normal file
3
www/graylog-web-interface/files/pkg-message.in
Normal file
@ -0,0 +1,3 @@
|
||||
You need to configure the Graylog Web Interface with the URL of a
|
||||
Graylog Server, and the secret for the Graylog Server in
|
||||
%%LOCALBASE%%/etc/graylog-web-interface.conf
|
1
www/graylog-web-interface/pkg-descr
Normal file
1
www/graylog-web-interface/pkg-descr
Normal file
@ -0,0 +1 @@
|
||||
Web Interface for Graylog
|
77
www/graylog-web-interface/pkg-plist
Normal file
77
www/graylog-web-interface/pkg-plist
Normal file
@ -0,0 +1,77 @@
|
||||
bin/graylog-web-interface
|
||||
lib/graylog-web-interface/bin/graylog-web-interface
|
||||
lib/graylog-web-interface/conf/application.conf
|
||||
lib/graylog-web-interface/conf/play.plugins
|
||||
lib/graylog-web-interface/conf/graylog-web-interface.conf
|
||||
lib/graylog-web-interface/lib/aopalliance.aopalliance-1.0.jar
|
||||
lib/graylog-web-interface/lib/ch.qos.logback.logback-classic-1.1.1.jar
|
||||
lib/graylog-web-interface/lib/ch.qos.logback.logback-core-1.1.1.jar
|
||||
lib/graylog-web-interface/lib/com.fasterxml.classmate-1.1.0.jar
|
||||
lib/graylog-web-interface/lib/com.fasterxml.jackson.core.jackson-annotations-2.6.2.jar
|
||||
lib/graylog-web-interface/lib/com.fasterxml.jackson.core.jackson-core-2.6.2.jar
|
||||
lib/graylog-web-interface/lib/com.fasterxml.jackson.core.jackson-databind-2.6.2.jar
|
||||
lib/graylog-web-interface/lib/com.fasterxml.jackson.datatype.jackson-datatype-guava-2.6.2.jar
|
||||
lib/graylog-web-interface/lib/com.fasterxml.jackson.datatype.jackson-datatype-joda-2.6.2.jar
|
||||
lib/graylog-web-interface/lib/com.github.fdimuccio.play2-sockjs_2.10-0.3.1.jar
|
||||
lib/graylog-web-interface/lib/com.google.code.findbugs.jsr305-3.0.1.jar
|
||||
lib/graylog-web-interface/lib/com.google.guava.guava-18.0.jar
|
||||
lib/graylog-web-interface/lib/com.google.inject.extensions.guice-assistedinject-4.0.jar
|
||||
lib/graylog-web-interface/lib/com.google.inject.guice-4.0.jar
|
||||
lib/graylog-web-interface/lib/com.ning.async-http-client-1.9.31.jar
|
||||
lib/graylog-web-interface/lib/com.squareup.okhttp.okhttp-2.5.0.jar
|
||||
lib/graylog-web-interface/lib/com.squareup.okio.okio-1.6.0.jar
|
||||
lib/graylog-web-interface/lib/com.typesafe.akka.akka-actor_2.10-2.3.5.jar
|
||||
lib/graylog-web-interface/lib/com.typesafe.akka.akka-slf4j_2.10-2.3.4.jar
|
||||
lib/graylog-web-interface/lib/com.typesafe.config-1.2.1.jar
|
||||
lib/graylog-web-interface/lib/com.typesafe.netty.netty-http-pipelining-1.1.2.jar
|
||||
lib/graylog-web-interface/lib/com.typesafe.play.build-link-2.3.10.jar
|
||||
lib/graylog-web-interface/lib/com.typesafe.play.play-cache_2.10-2.3.10.jar
|
||||
lib/graylog-web-interface/lib/com.typesafe.play.play-datacommons_2.10-2.3.10.jar
|
||||
lib/graylog-web-interface/lib/com.typesafe.play.play-exceptions-2.3.10.jar
|
||||
lib/graylog-web-interface/lib/com.typesafe.play.play-functional_2.10-2.3.10.jar
|
||||
lib/graylog-web-interface/lib/com.typesafe.play.play-iteratees_2.10-2.3.10.jar
|
||||
lib/graylog-web-interface/lib/com.typesafe.play.play-java_2.10-2.3.10.jar
|
||||
lib/graylog-web-interface/lib/com.typesafe.play.play-json_2.10-2.3.10.jar
|
||||
lib/graylog-web-interface/lib/com.typesafe.play.play_2.10-2.3.10.jar
|
||||
lib/graylog-web-interface/lib/com.typesafe.play.twirl-api_2.10-1.0.2.jar
|
||||
lib/graylog-web-interface/lib/commons-beanutils.commons-beanutils-1.8.3.jar
|
||||
lib/graylog-web-interface/lib/commons-codec.commons-codec-1.9.jar
|
||||
lib/graylog-web-interface/lib/commons-logging.commons-logging-1.1.3.jar
|
||||
lib/graylog-web-interface/lib/dom4j.dom4j-1.6.1.jar
|
||||
lib/graylog-web-interface/lib/graylog-web-interface.graylog-web-interface-1.3.3-assets.jar
|
||||
lib/graylog-web-interface/lib/graylog-web-interface.graylog-web-interface-1.3.3.jar
|
||||
lib/graylog-web-interface/lib/io.netty.netty-3.10.4.Final.jar
|
||||
lib/graylog-web-interface/lib/javassist.javassist--3.12.1.GA-3.12.1.GA.jar
|
||||
lib/graylog-web-interface/lib/javax.el.javax.el-api-3.0.0.jar
|
||||
lib/graylog-web-interface/lib/javax.inject.javax.inject-1.jar
|
||||
lib/graylog-web-interface/lib/javax.transaction.jta-1.1.jar
|
||||
lib/graylog-web-interface/lib/javax.validation.validation-api-1.1.0.Final.jar
|
||||
lib/graylog-web-interface/lib/joda-time.joda-time-2.8.2.jar
|
||||
lib/graylog-web-interface/lib/net.sf.ehcache.ehcache-core-2.6.8.jar
|
||||
lib/graylog-web-interface/lib/org.apache.commons.commons-lang3-3.1.jar
|
||||
lib/graylog-web-interface/lib/org.apache.shiro.shiro-core-1.2.4.jar
|
||||
lib/graylog-web-interface/lib/org.apache.tomcat.tomcat-servlet-api-8.0.5.jar
|
||||
lib/graylog-web-interface/lib/org.graylog2.graylog2-rest-client--1.3.3-1.3.3.jar
|
||||
lib/graylog-web-interface/lib/org.graylog2.graylog2-rest-models-1.3.3.jar
|
||||
lib/graylog-web-interface/lib/org.graylog2.play2-graylog2_2.10-1.2.1.jar
|
||||
lib/graylog-web-interface/lib/org.hibernate.hibernate-validator-5.2.2.Final.jar
|
||||
lib/graylog-web-interface/lib/org.javassist.javassist-3.19.0-GA.jar
|
||||
lib/graylog-web-interface/lib/org.jboss.logging.jboss-logging-3.2.1.Final.jar
|
||||
lib/graylog-web-interface/lib/org.joda.joda-convert-1.6.jar
|
||||
lib/graylog-web-interface/lib/org.reflections.reflections-0.9.8.jar
|
||||
lib/graylog-web-interface/lib/org.scala-lang.scala-library-2.10.4.jar
|
||||
lib/graylog-web-interface/lib/org.scala-lang.scala-reflect-2.10.4.jar
|
||||
lib/graylog-web-interface/lib/org.scala-stm.scala-stm_2.10-0.7.jar
|
||||
lib/graylog-web-interface/lib/org.slf4j.jcl-over-slf4j-1.7.6.jar
|
||||
lib/graylog-web-interface/lib/org.slf4j.jul-to-slf4j-1.7.6.jar
|
||||
lib/graylog-web-interface/lib/org.slf4j.slf4j-api-1.7.12.jar
|
||||
lib/graylog-web-interface/lib/org.springframework.spring-aop--4.0.3.RELEASE-4.0.3.RELEASE.jar
|
||||
lib/graylog-web-interface/lib/org.springframework.spring-beans-4.0.3.RELEASE.jar
|
||||
lib/graylog-web-interface/lib/org.springframework.spring-context-4.0.3.RELEASE.jar
|
||||
lib/graylog-web-interface/lib/org.springframework.spring-core-4.0.3.RELEASE.jar
|
||||
lib/graylog-web-interface/lib/org.springframework.spring-expression--4.0.3.RELEASE-4.0.3.RELEASE.jar
|
||||
lib/graylog-web-interface/lib/org.yaml.snakeyaml-1.13.jar
|
||||
lib/graylog-web-interface/lib/xerces.xercesImpl-2.11.0.jar
|
||||
lib/graylog-web-interface/lib/xml-apis.xml-apis-1.4.01.jar
|
||||
@sample etc/graylog-web-interface.conf.sample
|
||||
@sample etc/graylog-web-interface-logging.xml.sample
|
Loading…
Reference in New Issue
Block a user