cortex: 3.0.0 bump

This commit is contained in:
Yury Martynov 2019-09-19 10:59:15 +03:00
parent 0844c6eb50
commit be2062a801
No known key found for this signature in database
GPG key ID: EBE62DD0CCEAE19E
2 changed files with 55 additions and 0 deletions

View file

@ -1 +1,2 @@
DIST cortex_2.1.3-1_all.deb 107780298 BLAKE2B 3e85d1247e02d897545598132854fcdf516f027a4acf7d05389ec1423fcf236101c45e59b0133cb0fbae129d5aaa1116a26b3c0fe367cd8bd646cdb7e729894c SHA512 fe2de075def7ef532f4ad90343db4e642dc20f80f45abbec46459a240a50c7e873a464f884f96d283a63e692f4daf8ef4afad12ab5c7a58ddfb6c4bfafbd853c
DIST cortex_3.0.0-1_all.deb 79753198 BLAKE2B 723c7233fd90469c99e1e9dc6a23f92001983f6af677c4bbbd17331bdecad2daf1fa5acfd874f0efd4e3c07bbf2926117efdb443f1614d04dd5768f01746f575 SHA512 05109429d78c0855aaff5757bd3bd6e14c1b7a3954c2db3287e15918c4854a4cc003db66cdcf458492facb19e6cde64f5999facffa9787d61cc21687cb998d1c

View file

@ -0,0 +1,54 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit systemd unpacker user
DESCRIPTION="A powerful observable analysis and active response engine"
HOMEPAGE="https://thehive-project.org/ https://github.com/TheHive-Project/Cortex"
SRC_URI="https://dl.bintray.com/thehive-project//debian-stable/cortex_${PV}-1_all.deb"
LICENSE="AGPL-3"
SLOT=0
KEYWORDS="~amd64"
IUSE=""
DEPEND="$(unpacker_src_uri_depends)"
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/cortex"
doins -r "etc/cortex"/*
systemd_dounit "etc/systemd/system/cortex.service"
newinitd "${FILESDIR}"/cortex.initd cortex
newconfd "${FILESDIR}"/cortex.confd cortex
keepdir "/var/log/cortex"
fowners -R ${PN}:${PN} "/var/log/cortex" "/opt/cortex" "/etc/cortex"
fperms 0750 "/etc/cortex" "/var/log/cortex"
fperms +x "/opt/cortex/bin/cortex"
}
pkg_postinst() {
ewarn "\n1) Before starting please change the line from file \"application.conf\" (/etc/cortex/application.conf):"
ewarn " #play.http.secret.key=\"***CHANGEME***\""
ewarn " to"
ewarn " play.http.secret.key=\"<YoUr_some_Secret_KeY>\""
einfo "\n2) Start the \"cortex\" service:"
einfo " ~$ sudo rc-service cortex start"
einfo "\n3) Wait a few seconds and open in your browser: http://127.0.0.1:9001\n"
einfo "See documentation: https://github.com/TheHive-Project/CortexDocs\n"
}