From 432284a3789ce09e791990538ebcec52c50fb21b Mon Sep 17 00:00:00 2001 From: "Rick Farina (Zero_Chaos)" Date: Wed, 7 Dec 2022 21:31:45 -0500 Subject: [PATCH] app-forensices/thehive: remove old --- app-forensics/thehive/Manifest | 1 - app-forensics/thehive/files/thehive.confd | 15 ------ app-forensics/thehive/files/thehive.initd | 19 ------- app-forensics/thehive/metadata.xml | 8 --- app-forensics/thehive/thehive-3.4.3.ebuild | 60 ---------------------- 5 files changed, 103 deletions(-) delete mode 100644 app-forensics/thehive/Manifest delete mode 100644 app-forensics/thehive/files/thehive.confd delete mode 100644 app-forensics/thehive/files/thehive.initd delete mode 100644 app-forensics/thehive/metadata.xml delete mode 100644 app-forensics/thehive/thehive-3.4.3.ebuild diff --git a/app-forensics/thehive/Manifest b/app-forensics/thehive/Manifest deleted file mode 100644 index a267fc4ee..000000000 --- a/app-forensics/thehive/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST thehive_3.4.3-1_all.deb 77916352 BLAKE2B 9814c6d8ca617cb621c2e7601e91f9ef1304abf6b7bf766b150e66267c73468fe0b2fa924d606265878ff30e570841fdb2a498e8db1330ec134bc4d0a6c38ed2 SHA512 27ec6199c7e0cb737a38be474e9b07d99de13773ce2c54063f2bffa22a88b08774a66791ecf737dc41b773ab8c3823be399b003f461f84b4e594049fdd324492 diff --git a/app-forensics/thehive/files/thehive.confd b/app-forensics/thehive/files/thehive.confd deleted file mode 100644 index 7c3180bcb..000000000 --- a/app-forensics/thehive/files/thehive.confd +++ /dev/null @@ -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" diff --git a/app-forensics/thehive/files/thehive.initd b/app-forensics/thehive/files/thehive.initd deleted file mode 100644 index be034d4a2..000000000 --- a/app-forensics/thehive/files/thehive.initd +++ /dev/null @@ -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 : diff --git a/app-forensics/thehive/metadata.xml b/app-forensics/thehive/metadata.xml deleted file mode 100644 index ebc718e70..000000000 --- a/app-forensics/thehive/metadata.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - email@linxon.ru - Yury Martynov - - diff --git a/app-forensics/thehive/thehive-3.4.3.ebuild b/app-forensics/thehive/thehive-3.4.3.ebuild deleted file mode 100644 index f3c3b5953..000000000 --- a/app-forensics/thehive/thehive-3.4.3.ebuild +++ /dev/null @@ -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=\"\"" - 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" -}