From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 40468138334 for ; Wed, 18 Jul 2018 07:32:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CEA15E08C0; Wed, 18 Jul 2018 07:32:12 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 68F80E08BB for ; Wed, 18 Jul 2018 07:32:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 894EF335CBF for ; Wed, 18 Jul 2018 07:32:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E996B37D for ; Wed, 18 Jul 2018 07:32:06 +0000 (UTC) From: "Tony Vroon" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Tony Vroon" Message-ID: <1531899111.8a214509fee49cb4af6e7030b94d5dadf31b9739.chainsaw@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/prewikka/files/, www-apps/prewikka/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-apps/prewikka/Manifest www-apps/prewikka/files/prewikka-4.1.5-fix_rule_error.patch www-apps/prewikka/files/prewikka-4.1.5-fix_siteconfig.patch www-apps/prewikka/prewikka-4.1.5.ebuild X-VCS-Directories: www-apps/prewikka/files/ www-apps/prewikka/ X-VCS-Committer: chainsaw X-VCS-Committer-Name: Tony Vroon X-VCS-Revision: 8a214509fee49cb4af6e7030b94d5dadf31b9739 X-VCS-Branch: master Date: Wed, 18 Jul 2018 07:32:06 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 3dca73b6-74c3-4542-985b-320e6c997a3f X-Archives-Hash: c9162b7eedcef478a0f3fabae331d7d6 commit: 8a214509fee49cb4af6e7030b94d5dadf31b9739 Author: Thomas Andrejak gmail com> AuthorDate: Sat May 19 16:35:08 2018 +0000 Commit: Tony Vroon gentoo org> CommitDate: Wed Jul 18 07:31:51 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a214509 www-apps/prewikka: Bump version 4.1 Closes: https://bugs.gentoo.org/645852 www-apps/prewikka/Manifest | 1 + .../files/prewikka-4.1.5-fix_rule_error.patch | 32 ++++++++++++++++++ .../files/prewikka-4.1.5-fix_siteconfig.patch | 12 +++++++ www-apps/prewikka/prewikka-4.1.5.ebuild | 38 ++++++++++++++++++++++ 4 files changed, 83 insertions(+) diff --git a/www-apps/prewikka/Manifest b/www-apps/prewikka/Manifest index ec269634681..1024ef2e42d 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 00000000000..64fd92f14ef --- /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 00000000000..773b2e98469 --- /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 00000000000..712e2dcd057 --- /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" +)