diff options
Diffstat (limited to 'net-analyzer')
3 files changed, 70 insertions, 0 deletions
diff --git a/net-analyzer/prelude-correlator/Manifest b/net-analyzer/prelude-correlator/Manifest index 49337bbb73d9..58c9e31c5b8d 100644 --- a/net-analyzer/prelude-correlator/Manifest +++ b/net-analyzer/prelude-correlator/Manifest @@ -1,3 +1,4 @@ DIST prelude-correlator-3.0.1.tar.gz 181019 BLAKE2B 9156b7c76ac641326dcbb6e89f336ad1a65ed9c0af3b32acaa2d4430d3ba0b5015b5baf6372bdeb8e08d269b7742304f84ac026c512b63ca8710cc757697d0c6 SHA512 2aa159251cf7f9fead117737f67cc01e7cb2012c4fd9db77454c7d639cf477888d5ea6476661bf501c2da7aaef58ea7101b7780669f025af1480acd9480ce8d3 DIST prelude-correlator-3.1.0.tar.gz 185812 BLAKE2B 8390059cf00f1f4038d31eff401d4a2e475f9ef89fe84b4748c891ccf521fa6c6d241e4e441d6398a2acaf2bf01451e4407188e95779f8c0dbb19713c405cc6d SHA512 f44d805445c19af1f80f2662b7c5d2678e9928fd5cea17e1938a712157ca3ac51eaf361bd164ec6fa38836461b3719cf739232c130f3c784cf692e1588256d79 DIST prelude-correlator-4.0.0.tar.gz 347973 BLAKE2B 93f383d5d3ca3632f841b8523efa829f00ee36e4fdce76c982ef638f468dc574fa69452b4e9e5abcdaec87697a4a824faf543f0383756d15a72e99c0ac02cabe SHA512 aeeb5d1e29a464afa41b8a04f5324e0915b8450eceea68a07cb6d8bb61823ab8da8df51e1a331f5a66fd295bd2a514f484da5c396e0508c4fc5634c98382779b +DIST prelude-correlator-4.1.1.tar.gz 237036 BLAKE2B f3965b179d101450bd5b64805d0c982cc093de47fbbc4b4e0077f231cffcf152f3ace78cab5e96d7e18d8af0fae7de0fb5c70c17b8888245558ab091bee6438d SHA512 ac6eb554ab8d20325afbe49fcec9e238d84579cb68ee5731e6ec7d1da11c1b745e60117fade76d8747c93f57d4ae91461fd6e82160f659f88a0bb545e4990597 diff --git a/net-analyzer/prelude-correlator/files/prelude-correlator-4.1.1-fix_python3.patch b/net-analyzer/prelude-correlator/files/prelude-correlator-4.1.1-fix_python3.patch new file mode 100644 index 000000000000..a671aa476585 --- /dev/null +++ b/net-analyzer/prelude-correlator/files/prelude-correlator-4.1.1-fix_python3.patch @@ -0,0 +1,36 @@ +--- a/preludecorrelator/config.py ++++ b/preludecorrelator/config.py +@@ -19,7 +19,11 @@ + + import os + import glob +-import StringIO ++import sys ++if sys.version_info >= (3, 0): ++ from io import StringIO ++else: ++ import StringIO + try: + import configparser + except: +@@ -77,5 +81,8 @@ + f = open(fname, 'r') + except IOError: + continue +- self.readfp(StringIO.StringIO('[prelude]\n' + f.read())) ++ if sys.version_info >= (3, 0): ++ self.readfp(StringIO('[prelude]\n' + f.read())) ++ else: ++ self.readfp(StringIO.StringIO('[prelude]\n' + f.read())) + f.close() +--- a/preludecorrelator/context.py ++++ b/preludecorrelator/context.py +@@ -362,7 +362,7 @@ + + try: + _CONTEXT_TABLE.update(ContextUnpickler(fd).load()) +- except EOFError: ++ except: + return + + logger.debug("[load]: %d context loaded", len(_CONTEXT_TABLE)) diff --git a/net-analyzer/prelude-correlator/prelude-correlator-4.1.1.ebuild b/net-analyzer/prelude-correlator/prelude-correlator-4.1.1.ebuild new file mode 100644 index 000000000000..1ff9d4c41e25 --- /dev/null +++ b/net-analyzer/prelude-correlator/prelude-correlator-4.1.1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python{2_7,3_{4,5,6}} ) + +inherit distutils-r1 systemd + +DESCRIPTION="Real time correlator of events received by Prelude Manager" +HOMEPAGE="https://www.prelude-siem.org" +SRC_URI="https://www.prelude-siem.org/pkg/src/4.1.0/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" + +RDEPEND="~dev-libs/libprelude-4.1.0[python,${PYTHON_USEDEP}] + dev-python/netaddr[${PYTHON_USEDEP}]" + +PATCHES=( + "${FILESDIR}/${PN}-4.1.1-fix_python3.patch" +) + +src_install() { + distutils-r1_src_install + + systemd_dounit "${FILESDIR}/${PN}.service" + systemd_newtmpfilesd "${FILESDIR}/${PN}.run" "${PN}.conf" + + newinitd "${FILESDIR}/${PN}.initd" "${PN}" +} |