From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-libs/libpreludedb/Manifest | 8 ++ .../libpreludedb-4.0.0-fix-python-bindings.patch | 39 ++++++++++ dev-libs/libpreludedb/libpreludedb-3.0.0.ebuild | 74 ++++++++++++++++++ dev-libs/libpreludedb/libpreludedb-3.1.0.ebuild | 72 +++++++++++++++++ dev-libs/libpreludedb/libpreludedb-4.0.0.ebuild | 89 ++++++++++++++++++++++ dev-libs/libpreludedb/metadata.xml | 19 +++++ 6 files changed, 301 insertions(+) create mode 100644 dev-libs/libpreludedb/Manifest create mode 100644 dev-libs/libpreludedb/files/libpreludedb-4.0.0-fix-python-bindings.patch create mode 100644 dev-libs/libpreludedb/libpreludedb-3.0.0.ebuild create mode 100644 dev-libs/libpreludedb/libpreludedb-3.1.0.ebuild create mode 100644 dev-libs/libpreludedb/libpreludedb-4.0.0.ebuild create mode 100644 dev-libs/libpreludedb/metadata.xml (limited to 'dev-libs/libpreludedb') diff --git a/dev-libs/libpreludedb/Manifest b/dev-libs/libpreludedb/Manifest new file mode 100644 index 000000000000..84adcccfa179 --- /dev/null +++ b/dev-libs/libpreludedb/Manifest @@ -0,0 +1,8 @@ +AUX libpreludedb-4.0.0-fix-python-bindings.patch 1075 BLAKE2B 414a9308a10b2c0aeeb12b462c8a972341161c308bfce2ab9c94d25a63dc14f01f2ed3484f690b994e8f509262f99406e19c25ec9a70ee5eeaca3b7c5823c055 SHA512 61309ae2d68aeeca5321fb2592f7d01e57b00b10ed04e63d1c011aa96115855087abd0fb4687f09d04b01b488dda840bef08cc9c1d0ec714064c1322f9589a2e +DIST libpreludedb-3.0.0.tar.gz 1269937 BLAKE2B 6f6bad7b9529b88bd03b224c1ea4066b9e806ff82960d1c2e336ebc5c345353a3b63224e0ea84407f159443b6ec53c1cb6bba8009d48dfb53a26bab96960467e SHA512 9d80e01be8cf028b8a843e68e45eeb84c561ff37e688fe5b8156e717f337b1db4d3de983f37a0544bf018238bec07580dce0c7208df005113efbba0aab34b981 +DIST libpreludedb-3.1.0.tar.gz 1291186 BLAKE2B 90b3b6264f0042b14e54abfc3068071419646076fc6cfa3dd84ba6c14797fb0ea88885edef47b8a5d0dc455468e6daaa8e795b621a4f9001d19d8edc33630a88 SHA512 dcb98eff2521979c2956bdd6f3b661c346c0f6748ef820a75d77c948e426a996de26c7fc6b6c2abddc93277db3820eb2f44b61c87feb86483e720cf9b0e0124c +DIST libpreludedb-4.0.0.tar.gz 1325812 BLAKE2B 7a506f7cd7b51898e26201f2cc640b1f34227f9cf7c5c6e2385480f1fc0ad854b6d747293ab502b641cc65f1ee9ae4a8f225e6a1d4489bcaa59901c6342f1279 SHA512 13f5dbcfa6af965f2075d60c645ebb19cbd6b18807b26f4f13a7a05f1cf552996f9846e856728a4e1dc621efda693016e82623d4a3cbf74849b3e7114f19faca +EBUILD libpreludedb-3.0.0.ebuild 1572 BLAKE2B 6a80c44ac91eb49044fd908e77b458e26203d7c5937e6764f0789e5c5fe048e6c4dcd0e84b8dfdcc331afd9cc03259c91a8dcb4f79b033c51e0d740a8876d8fc SHA512 8b8b5dbf1b1a5aabaab7b1191f79353aa197254b39ae8517f5f9b230ea8b7f946ec29395e7d7b5429bc542aabbb4a7b61ac8a611823f49d6eab356f432e450d6 +EBUILD libpreludedb-3.1.0.ebuild 1496 BLAKE2B 01fd701a2c6c2b14f3f1e75478f1d823d9f4441d183ac8bef243c6a8da44c03c4d6c0a6636cefbdcebf97c7c8e6decf091a45e1decf2e81ca8e8f9f2ef749464 SHA512 86eb7b065814b5a07e5908e57a2952ee82d61441dfd748afcff4d2c052c4353c4aae866e98520de84b76a63ee50e39f3bdb33e224d9456e48fe55f704b6842fa +EBUILD libpreludedb-4.0.0.ebuild 1741 BLAKE2B 66618e59ac7cd62ccd480dc18ef2014ef04c930679da0af3427c2ea1b4d42a5c22fe6546dc0917895d1e32b88f493dcadc974d2feb72160be62f5f796659783a SHA512 f3f59361adb1907fbef8ca5d88755d4ef85b02ee2a4e1f7712c5bf13b1d2f6dbcfa472eb73e06cc54db86348c482df2a641517752924382a639ff15abb246b68 +MISC metadata.xml 740 BLAKE2B 4378279b071469fe4b56d29d93bbfa596c007ed9be028c028c0b3cea7b4a4d206b8dfada84f8dbefdc56ec1d355c0a81f8a5f719a3819761ef532a85fbdc2490 SHA512 336a155dddb152697e44246184aaf0cfa928f1a3acd226c3f048aaeca81e96e1c5c7bceaee2bcc5e6ff731b59de1eadb02698e01c3e9443e6d9a37859da8e973 diff --git a/dev-libs/libpreludedb/files/libpreludedb-4.0.0-fix-python-bindings.patch b/dev-libs/libpreludedb/files/libpreludedb-4.0.0-fix-python-bindings.patch new file mode 100644 index 000000000000..7fb93c269ef2 --- /dev/null +++ b/dev-libs/libpreludedb/files/libpreludedb-4.0.0-fix-python-bindings.patch @@ -0,0 +1,39 @@ +--- a/bindings/python/Makefile.am 2017-07-18 12:27:27.278000000 +0200 ++++ b/bindings/python/Makefile.am 2017-09-07 23:41:21.279920258 +0200 +@@ -6,36 +6,6 @@ + all-am: python-build + + python-build: _preludedb.cxx +-if HAVE_PYTHON2 +- CC="$(CXX)" $(PYTHON2) setup.py build +-endif +-if HAVE_PYTHON3 +- CC="$(CXX)" $(PYTHON3) setup.py build +-endif +-install-exec-hook: +-if HAVE_PYTHON2 +- $(PYTHON2) setup.py install `test -n "$(DESTDIR)" && echo --root $(DESTDIR)` +-endif +-if HAVE_PYTHON3 +- $(PYTHON3) setup.py install `test -n "$(DESTDIR)" && echo --root $(DESTDIR)` +-endif +- +-uninstall-hook: +-if HAVE_PYTHON2 +- $(PYTHON2) setup.py uninstall `test -n "$(DESTDIR)" && echo --root $(DESTDIR)` +-endif +-if HAVE_PYTHON3 +- $(PYTHON3) setup.py uninstall `test -n "$(DESTDIR)" && echo --root $(DESTDIR)` +-endif +- +-clean-local: +-if HAVE_PYTHON2 +- $(PYTHON2) setup.py clean -a +-endif +-if HAVE_PYTHON3 +- $(PYTHON3) setup.py clean -a +-endif +- + + _preludedb.cxx preludedb.py: $(top_srcdir)/bindings/c++/include/*.hxx $(top_srcdir)/bindings/libpreludedbcpp.i libpreludedbcpp-python.i + if HAVE_SWIG diff --git a/dev-libs/libpreludedb/libpreludedb-3.0.0.ebuild b/dev-libs/libpreludedb/libpreludedb-3.0.0.ebuild new file mode 100644 index 000000000000..a42260295921 --- /dev/null +++ b/dev-libs/libpreludedb/libpreludedb-3.0.0.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_{4,5}} ) + +inherit autotools eutils python-r1 + +DESCRIPTION="Framework to easy access to the Prelude database" +HOMEPAGE="https://www.prelude-siem.org" +SRC_URI="https://www.prelude-siem.org/pkg/src/3.0.0/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc python mysql postgres sqlite" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND="dev-libs/libgcrypt:0= + net-libs/gnutls + dev-libs/libprelude + python? ( ${PYTHON_DEPS} ) + mysql? ( virtual/libmysqlclient ) + postgres? ( dev-db/postgresql:* ) + sqlite? ( dev-db/sqlite:3 )" + +DEPEND="${RDEPEND} + doc? ( dev-util/gtk-doc ) + sys-devel/flex + virtual/yacc + >=dev-lang/swig-3.0.7 + virtual/pkgconfig" + +src_prepare() { + default_src_prepare + + mv "${S}/configure.in" "${S}/configure.ac" || die "mv failed" + + eautoreconf +} + +src_configure() { + local python2_configure=--without-python2 + local python3_configure=--without-python3 + + chk_python() { + if [[ ${EPYTHON} == python2* ]]; then + python2_configure=--with-python2 + elif [[ ${EPYTHON} == python3* ]]; then + python3_configure=--with-python3 + fi + } + + if use python; then + python_foreach_impl chk_python + fi + + econf \ + --enable-easy-bindings \ + --with-swig \ + $(use_enable doc gtk-doc) \ + ${python2_configure} \ + ${python3_configure} \ + $(use_with mysql) \ + $(use_with postgres postgresql) \ + $(use_with sqlite sqlite3) +} + +src_install() { + default_src_install + prune_libtool_files --modules +} diff --git a/dev-libs/libpreludedb/libpreludedb-3.1.0.ebuild b/dev-libs/libpreludedb/libpreludedb-3.1.0.ebuild new file mode 100644 index 000000000000..5e0f91c827eb --- /dev/null +++ b/dev-libs/libpreludedb/libpreludedb-3.1.0.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_{4,5}} ) + +inherit autotools python-r1 + +DESCRIPTION="Framework to easy access to the Prelude database" +HOMEPAGE="https://www.prelude-siem.org" +SRC_URI="https://www.prelude-siem.org/pkg/src/${PV}/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc python mysql postgres sqlite" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND="dev-libs/libgcrypt:0= + net-libs/gnutls:= + ~dev-libs/libprelude-${PV} + python? ( ${PYTHON_DEPS} ) + mysql? ( virtual/libmysqlclient ) + postgres? ( dev-db/postgresql:* ) + sqlite? ( dev-db/sqlite:3 )" + +DEPEND="${RDEPEND} + doc? ( dev-util/gtk-doc ) + sys-devel/flex + virtual/yacc + >=dev-lang/swig-3.0.7 + virtual/pkgconfig" + +src_prepare() { + default + + eautoreconf +} + +src_configure() { + local python2_configure=--without-python2 + local python3_configure=--without-python3 + + chk_python() { + if [[ ${EPYTHON} == python2* ]]; then + python2_configure=--with-python2 + elif [[ ${EPYTHON} == python3* ]]; then + python3_configure=--with-python3 + fi + } + + if use python; then + python_foreach_impl chk_python + fi + + econf \ + --enable-easy-bindings \ + --with-swig \ + $(use_enable doc gtk-doc) \ + ${python2_configure} \ + ${python3_configure} \ + $(use_with mysql) \ + $(use_with postgres postgresql) \ + $(use_with sqlite sqlite3) +} + +src_install() { + default + find "${D}" -name '*.la' -delete || die +} diff --git a/dev-libs/libpreludedb/libpreludedb-4.0.0.ebuild b/dev-libs/libpreludedb/libpreludedb-4.0.0.ebuild new file mode 100644 index 000000000000..2fb7ad0e091e --- /dev/null +++ b/dev-libs/libpreludedb/libpreludedb-4.0.0.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python{2_7,3_{4,5,6}} ) +USE_RUBY="ruby21 ruby22 ruby23 ruby24" +DISTUTILS_OPTIONAL=1 + +inherit autotools distutils-r1 ruby-single + +DESCRIPTION="Framework to easy access to the Prelude database" +HOMEPAGE="https://www.prelude-siem.org" +SRC_URI="https://www.prelude-siem.org/pkg/src/${PV}/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="mysql postgres python sqlite" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND="~dev-libs/libprelude-${PV} + net-libs/gnutls:= + mysql? ( virtual/libmysqlclient ) + postgres? ( dev-db/postgresql:* ) + python? ( ${PYTHON_DEPS} ) + sqlite? ( dev-db/sqlite:3 )" + +DEPEND="${RDEPEND} + >=dev-lang/swig-3.0.7 + dev-util/gtk-doc-am + sys-devel/flex + virtual/pkgconfig + virtual/yacc" + +PATCHES=( + "${FILESDIR}/${P}-fix-python-bindings.patch" +) + +src_prepare() { + default + + eautoreconf + + if use python; then + cd bindings/python || die + distutils-r1_src_prepare + fi +} + +src_configure() { + local myconf=( + --enable-easy-bindings + --with-swig + $(use_with mysql) + $(use_with postgres postgresql) + $(use_with sqlite sqlite3) + ) + + if use python; then + python_setup + if python_is_python3; then + myconf+=(--without-python2 --with-python3="${EPYTHON}") + else + myconf+=(--without-python3 --with-python2="${EPYTHON}") + fi + else + myconf+=(--without-python2 --without-python3) + fi + + econf "${myconf[@]}" +} + +src_compile() { + default + if use python; then + cd bindings/python || die + distutils-r1_src_compile + fi +} + +src_install() { + default + find "${D}" -name '*.la' -delete || die + if use python; then + cd bindings/python || die + distutils-r1_src_install + fi +} diff --git a/dev-libs/libpreludedb/metadata.xml b/dev-libs/libpreludedb/metadata.xml new file mode 100644 index 000000000000..c342084aa9be --- /dev/null +++ b/dev-libs/libpreludedb/metadata.xml @@ -0,0 +1,19 @@ + + + + + thomas.andrejak@gmail.com + Thomas Andrejak + + + proxy-maint@gentoo.org + Proxy Maintainers + + + The PreludeDB Library provides an abstraction layer upon the type and the + format of the database used to store IDMEF alerts. It allows developers + to use the Prelude IDMEF database easily and efficiently without + worrying about SQL, and to access the database independently of the + type/format of the database. + + -- cgit v1.2.3