mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-12 01:41:01 +02:00
thehive: update deps and other minor changes
This commit is contained in:
parent
06a66212f7
commit
99bcde7518
2 changed files with 24 additions and 3 deletions
|
|
@ -9,6 +9,10 @@ command_user="thehive:thehive"
|
|||
command_args="${TH_OPTS} -Dpidfile.path=/dev/null"
|
||||
pidfile="/run/${RC_SVCNAME}.pid"
|
||||
start_stop_daemon_args="--quiet"
|
||||
#retry="0/30/KILL/5"
|
||||
retry="SIGTERM/0"
|
||||
|
||||
depend() {
|
||||
need elasticsearch
|
||||
}
|
||||
|
||||
# vim: set ft=gentoo-init-d ts=4 :
|
||||
|
|
|
|||
|
|
@ -10,10 +10,17 @@ HOMEPAGE="https://thehive-project.org"
|
|||
SRC_URI="https://dl.bintray.com/thehive-project/debian-stable/thehive_${PV}-1_all.deb"
|
||||
LICENSE="AGPL-3"
|
||||
SLOT=0
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="$(unpacker_src_uri_depends)"
|
||||
RDEPEND="virtual/jre"
|
||||
|
||||
# TheHive 3.4.0-RC1 added support to elasticsearch 6, but it's still in Beta
|
||||
# https://github.com/TheHive-Project/TheHiveDocs/issues/105#issuecomment-501198731
|
||||
RDEPEND="
|
||||
<=app-misc/elasticsearch-5.6.16
|
||||
virtual/jre"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
pkg_setup() {
|
||||
|
|
@ -37,3 +44,13 @@ src_install() {
|
|||
fperms 0750 "/etc/thehive" "/var/log/thehive"
|
||||
fperms +x "/opt/thehive/bin/thehive"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "\n1) Before starting please change the line from file \"application.conf\" (/etc/thehive/application.conf):"
|
||||
ewarn " #play.http.secret.key=\"***changeme***\""
|
||||
ewarn " to"
|
||||
ewarn " play.http.secret.key=\"<YoUr_some_Secret_KeY>\""
|
||||
einfo "\n2) Start the \"thehive\" service:"
|
||||
einfo " ~$ sudo rc-service thehive start"
|
||||
einfo "\n3) Wait a few seconds and open in your browser: http://127.0.0.1:9000\n"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue