diff options
author | Thomas Andrejak <thomas.andrejak@gmail.com> | 2018-05-19 18:35:08 +0200 |
---|---|---|
committer | Tony Vroon <chainsaw@gentoo.org> | 2018-07-18 08:31:51 +0100 |
commit | 8a214509fee49cb4af6e7030b94d5dadf31b9739 (patch) | |
tree | 1ac7adcf95c1af775e544a6745babbf70921cf00 /www-apps/prewikka | |
parent | net-analyzer/prelude-lml-rules: Bump version 4.1 (diff) | |
download | gentoo-8a214509fee49cb4af6e7030b94d5dadf31b9739.tar.gz gentoo-8a214509fee49cb4af6e7030b94d5dadf31b9739.tar.bz2 gentoo-8a214509fee49cb4af6e7030b94d5dadf31b9739.zip |
www-apps/prewikka: Bump version 4.1
Closes: https://bugs.gentoo.org/645852
Diffstat (limited to 'www-apps/prewikka')
-rw-r--r-- | www-apps/prewikka/Manifest | 1 | ||||
-rw-r--r-- | www-apps/prewikka/files/prewikka-4.1.5-fix_rule_error.patch | 32 | ||||
-rw-r--r-- | www-apps/prewikka/files/prewikka-4.1.5-fix_siteconfig.patch | 12 | ||||
-rw-r--r-- | www-apps/prewikka/prewikka-4.1.5.ebuild | 38 |
4 files changed, 83 insertions, 0 deletions
diff --git a/www-apps/prewikka/Manifest b/www-apps/prewikka/Manifest index ec269634681a..1024ef2e42d9 100644 --- a/www-apps/prewikka/Manifest +++ b/www-apps/prewikka/Manifest @@ -1,2 +1,3 @@ DIST prewikka-3.1.0.tar.gz 1349193 BLAKE2B b87021ecec490b44f080dfd7a29b301ec55c1e6316fbaa385edfd9a9c586c8eb964bd8aa637041eda3fff3b7d3463845de207bc9e6cb6a209d3c15c8c661daaa SHA512 7321e7383d6205f18dffd00a23d07e9154dd79e35eb58d04a6af77bc9f70e476b67a953eb5d09685b4a7c386ecdb9111d40c77bf3b570ffc27a1c90b612a4803 DIST prewikka-4.0.0.tar.gz 1365985 BLAKE2B 2248c80bebccf4a5f4b99f46d3af6f2aff433c19105e02dfa6c8570a6e41436a9f74971774f3963cbec9abcf70a2bf52b04cd99d930f3e193033aeb1246d1a18 SHA512 01e69b89543cac6b7a694a48cb184759641d37a5987530ce5b738a287a9cd72cc37f6bb85a621d6eb973e957730a6cb438fd302a33f2324359232e4325970bb6 +DIST prewikka-4.1.5.tar.gz 1432885 BLAKE2B aa899eae92b7eee10c4e80544fc02c80fce403dd808464ef3ca21a6d8ddb052730314bd4b83970c684401c53f8398df0f9ca5180c946999e08a2faf9eb7b94f4 SHA512 f68fb6c893727e1bfc2611ef8e3327e6c44d24ea36239fb998675d0e8102dd9849990dbd344c9f584a045f9ed6b4208c3a9928c952ed6248e691687827677dd3 diff --git a/www-apps/prewikka/files/prewikka-4.1.5-fix_rule_error.patch b/www-apps/prewikka/files/prewikka-4.1.5-fix_rule_error.patch new file mode 100644 index 000000000000..64fd92f14ef8 --- /dev/null +++ b/www-apps/prewikka/files/prewikka-4.1.5-fix_rule_error.patch @@ -0,0 +1,32 @@ +# Based on https://www.prelude-siem.org/projects/prewikka/repository/revisions/9814f708b6e157795b89f9edda32ab38d0a2ced7/diff/prewikka/view.py +# Already commited + +--- a/prewikka/view.py ++++ b/prewikka/view.py +@@ -523,7 +523,7 @@ + + try: + rule, view_kwargs = env.request.url_adapter.match(request.path, method=request.method, return_rule=True) +- view = self._views_rules[rule] ++ view = self._views_rules[rule.rule+rule.endpoint] + + except werkzeug.exceptions.MethodNotAllowed: + raise InvalidMethodError(N_("Method '%(method)s' is not allowed for view '%(view)s'", +@@ -580,7 +580,7 @@ + + rule = Rule(path, endpoint=v.view_endpoint, methods=methods, defaults=defaults) + +- self._views_rules[rule] = v ++ self._views_rules[rule.rule+rule.endpoint] = v + self._rule_map.add(rule) + + def addView(self, view): +@@ -601,7 +601,7 @@ + + rule = Rule((view.view_path or "/" + view.view_id), endpoint=view.view_endpoint) + +- self._views_rules[rule] = view ++ self._views_rules[rule.rule+rule.endpoint] = view + self._rule_map.add(rule) + self._views[view.view_id] = view + diff --git a/www-apps/prewikka/files/prewikka-4.1.5-fix_siteconfig.patch b/www-apps/prewikka/files/prewikka-4.1.5-fix_siteconfig.patch new file mode 100644 index 000000000000..773b2e984698 --- /dev/null +++ b/www-apps/prewikka/files/prewikka-4.1.5-fix_siteconfig.patch @@ -0,0 +1,12 @@ +--- a/setup.py ++++ b/setup.py +@@ -84,7 +84,8 @@ + + def init_siteconfig(self): + config = open("prewikka/siteconfig.py", "w") +- config.write("tmp_dir = '%s'\n" % (os.path.join(tempfile.gettempdir(), "prewikka"))) ++ config.write("import os, tempfile\n") ++ config.write("tmp_dir = os.path.join(tempfile.gettempdir(), 'prewikka')\n") + config.write("conf_dir = '%s'\n" % (os.path.abspath(self.conf_prefix))) + config.write("data_dir = '%s'\n" % (os.path.abspath(self.data_prefix))) + config.write("libprelude_required_version = '%s'\n" % (LIBPRELUDE_REQUIRED_VERSION)) diff --git a/www-apps/prewikka/prewikka-4.1.5.ebuild b/www-apps/prewikka/prewikka-4.1.5.ebuild new file mode 100644 index 000000000000..712e2dcd0579 --- /dev/null +++ b/www-apps/prewikka/prewikka-4.1.5.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="ssl" + +inherit distutils-r1 + +DESCRIPTION="Graphical front-end analysis console for the Prelude Framework" +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" +IUSE="adns" + +DEPEND="dev-python/lesscpy[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + sys-devel/gettext" + +RDEPEND="~dev-libs/libprelude-4.1.0[python,${PYTHON_USEDEP}] + ~dev-libs/libpreludedb-4.1.0[python,${PYTHON_USEDEP}] + dev-python/Babel[${PYTHON_USEDEP}] + dev-python/croniter[${PYTHON_USEDEP}] + dev-python/mako[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/werkzeug[${PYTHON_USEDEP}] + media-fonts/font-xfree86-type1 + adns? ( dev-python/twisted[${PYTHON_USEDEP}] )" + +PATCHES=( + "${FILESDIR}/${PN}-4.1.5-fix_siteconfig.patch" + "${FILESDIR}/${PN}-4.1.5-fix_rule_error.patch" +) |