mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-21 06:10:56 +02:00
thehive: new ebuild written by linxon
This commit is contained in:
parent
61ade852f3
commit
e7c1cdcaa9
6 changed files with 79 additions and 0 deletions
1
app-forensics/thehive/Manifest
Normal file
1
app-forensics/thehive/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST thehive_3.3.1-1_all.deb 121612382 BLAKE2B 2c04600b27cbd96bddedcc02aa16e39c687131054b097a69d6c01f0aae90d01652ebd0642779f11b29983ffeca4a1b66ece22a0ca52d1f092ebbf45c7ad05570 SHA512 dd8a249b4ee83d4924587be8fccdfd47d9b6bfb2d375c53715dd656b2996889fc42bb0b91c77282fadfb07d83e73bfad3fc459bde161418e63f5aaf4f3baf2f6
|
||||
15
app-forensics/thehive/files/thehive.confd
Normal file
15
app-forensics/thehive/files/thehive.confd
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# /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"
|
||||
14
app-forensics/thehive/files/thehive.initd
Normal file
14
app-forensics/thehive/files/thehive.initd
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#!/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"
|
||||
pidfile="/run/${RC_SVCNAME}.pid"
|
||||
start_stop_daemon_args="--quiet"
|
||||
#retry="0/30/KILL/5"
|
||||
|
||||
# vim: set ft=gentoo-init-d ts=4 :
|
||||
8
app-forensics/thehive/metadata.xml
Normal file
8
app-forensics/thehive/metadata.xml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?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>
|
||||
39
app-forensics/thehive/thehive-3.3.1.ebuild
Normal file
39
app-forensics/thehive/thehive-3.3.1.ebuild
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
# 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 ~x86"
|
||||
IUSE=""
|
||||
DEPEND="$(unpacker_src_uri_depends)"
|
||||
RDEPEND="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"
|
||||
}
|
||||
|
|
@ -15,3 +15,5 @@ app-misc/openodb
|
|||
=app-misc/gplaycli-3.23*
|
||||
|
||||
=app-misc/mc-4.8.20-r2
|
||||
|
||||
=app-misc/elasticsearch-5*
|
||||
|
|
|
|||
Loading…
Reference in a new issue