mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-08 12:30:44 +02:00
thehive: cleanup
This commit is contained in:
parent
873839288c
commit
61c85b8f54
3 changed files with 0 additions and 122 deletions
|
|
@ -1,3 +1 @@
|
|||
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
|
||||
DIST thehive_3.4.1-1_all.deb 77631578 BLAKE2B 2cf8d49ba5c355a2bc5c9b838fd030f03ace78e9b1b012de73d259b0ece6c2e061a9588841e6dea2eadb1dbcdb86e0f9c895292f8fe8219493240a5a84b0a3c1 SHA512 9b908f8bd6874ccced4b8791689e741c23c4ef00e735d28357b9c40961bc2ee4c98cf1e5f3678744088e103a5d38c6600906c72f99db5d5e2b985c220d573f52
|
||||
|
|
|
|||
|
|
@ -1,60 +0,0 @@
|
|||
# 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"
|
||||
}
|
||||
|
|
@ -1,60 +0,0 @@
|
|||
# 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"
|
||||
}
|
||||
Loading…
Reference in a new issue