mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-09 04:51:27 +02:00
app-forensices/thehive: remove old
This commit is contained in:
parent
73a85e6243
commit
432284a378
5 changed files with 0 additions and 103 deletions
|
|
@ -1 +0,0 @@
|
|||
DIST thehive_3.4.3-1_all.deb 77916352 BLAKE2B 9814c6d8ca617cb621c2e7601e91f9ef1304abf6b7bf766b150e66267c73468fe0b2fa924d606265878ff30e570841fdb2a498e8db1330ec134bc4d0a6c38ed2 SHA512 27ec6199c7e0cb737a38be474e9b07d99de13773ce2c54063f2bffa22a88b08774a66791ecf737dc41b773ab8c3823be399b003f461f84b4e594049fdd324492
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
# /etc/conf.d/thehive: config file for /etc/init.d/thehive
|
||||
|
||||
# #####################################
|
||||
# ##### Environment Configuration #####
|
||||
# #####################################
|
||||
|
||||
# *WARNING* This file is not read by if you are using systemd
|
||||
|
||||
# This file gets sourced before the actual startscript
|
||||
# gets executed. You can use this file to provide
|
||||
# environment variables
|
||||
|
||||
TH_OPTS="
|
||||
-Dconfig.file=/etc/thehive/application.conf
|
||||
-Dlogger.file=/etc/thehive/logback.xml"
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="A scalable 4-in-1 open source and free Security Incident Response Platform"
|
||||
command="/opt/thehive/bin/thehive"
|
||||
command_background="true"
|
||||
command_user="thehive:thehive"
|
||||
command_args="${TH_OPTS} -Dpidfile.path=/dev/null"
|
||||
command_progress="yes"
|
||||
pidfile="/run/${RC_SVCNAME}.pid"
|
||||
start_stop_daemon_args="--quiet"
|
||||
retry="SIGTERM/50"
|
||||
|
||||
depend() {
|
||||
need elasticsearch
|
||||
}
|
||||
|
||||
# vim: set ft=gentoo-init-d ts=4 :
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>email@linxon.ru</email>
|
||||
<name>Yury Martynov</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
|
@ -1,60 +0,0 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit systemd unpacker user
|
||||
|
||||
DESCRIPTION="A scalable 4-in-1 open source and free Security Incident Response Platform"
|
||||
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"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="$(unpacker_src_uri_depends)"
|
||||
|
||||
# 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-6*
|
||||
virtual/jre"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup ${PN}
|
||||
enewuser ${PN} -1 -1 /dev/null ${PN}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
doins -r "opt/"
|
||||
|
||||
insinto "/etc/thehive"
|
||||
doins -r "etc/thehive"/*
|
||||
|
||||
systemd_dounit "usr/lib/systemd/system/thehive.service"
|
||||
newinitd "${FILESDIR}"/thehive.initd thehive
|
||||
newconfd "${FILESDIR}"/thehive.confd thehive
|
||||
|
||||
keepdir "/var/log/thehive"
|
||||
|
||||
fowners -R ${PN}:${PN} "/var/log/thehive" "/opt/thehive" "/etc/thehive"
|
||||
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>\""
|
||||
ewarn "\n2) Configure search engine. Use a descriptive name for your cluster/node (/etc/elasticsearch/elasticsearch.yml):"
|
||||
ewarn " cluster.name: hive"
|
||||
ewarn " node.name: the_hive"
|
||||
einfo "\n3) Start the \"thehive\" service:"
|
||||
einfo " ~$ sudo rc-service thehive start"
|
||||
einfo "\n4) Wait a few seconds and open in your browser: http://127.0.0.1:9000\n"
|
||||
einfo "See documentation: https://github.com/TheHive-Project/TheHiveDocs\n"
|
||||
}
|
||||
Loading…
Reference in a new issue