Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
blshkv
committed
Sep 15, 2019
1 parent
39107f0
commit 0ef1c95
Showing
3 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST thehive_3.3.1-1_all.deb 121612382 BLAKE2B 2c04600b27cbd96bddedcc02aa16e39c687131054b097a69d6c01f0aae90d01652ebd0642779f11b29983ffeca4a1b66ece22a0ca52d1f092ebbf45c7ad05570 SHA512 dd8a249b4ee83d4924587be8fccdfd47d9b6bfb2d375c53715dd656b2996889fc42bb0b91c77282fadfb07d83e73bfad3fc459bde161418e63f5aaf4f3baf2f6 | ||
DIST thehive_3.4.0-1_all.deb 77355098 BLAKE2B 98e0ad003c0fe5d797a8ec8cc447960ba1c58e43c6b37105155e6450a697e07baf1cb7cf91f8bd5010ef875e69de76cd33a18b09560fbfe0ab78cf14ab818481 SHA512 02b1ff580981a1c373e31fde84c47c1595784c5dcfe7d080dddaedea19a07aeacab2d4b68ff2c5c1bcb37d74508225a69f8df4a723dc74793bad5f3969f0a02a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Copyright 1999-2019 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-5.6.16 | ||
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,3 +39,5 @@ app-forensics/libewf | |
app-forensics/spiderfoot | ||
|
||
app-forensics/maltego | ||
|
||
app-forensics/thehive |