From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-libs/libpreludedb/Manifest | 9 +++ .../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, 302 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..c57aab28e087 --- /dev/null +++ b/dev-libs/libpreludedb/Manifest @@ -0,0 +1,9 @@ +AUX libpreludedb-4.0.0-fix-python-bindings.patch 1075 SHA256 00f6bef9d5e77d66ed0067bd87bf6e16672fd2ee7a6d69c4f195ee9b22c831df SHA512 61309ae2d68aeeca5321fb2592f7d01e57b00b10ed04e63d1c011aa96115855087abd0fb4687f09d04b01b488dda840bef08cc9c1d0ec714064c1322f9589a2e WHIRLPOOL c8d47b1495d6fa4d61df5847a29fb2d312beb32fec4c556e9084a6b4754a447922a6f8ab90496cd56accd084a93a8182523bafb121e8187ff3dc17beaa395b26 +DIST libpreludedb-3.0.0.tar.gz 1269937 SHA256 608afa449388b2fcc25dc6aa2ad74ab2f22fd03ca3a0c0cdb2588d794f82d3ca SHA512 9d80e01be8cf028b8a843e68e45eeb84c561ff37e688fe5b8156e717f337b1db4d3de983f37a0544bf018238bec07580dce0c7208df005113efbba0aab34b981 WHIRLPOOL 1c700c34d05c5ba42fae40ff2597bf3f951bb49674eebfbb6ce80824bd59880f5a1402d786f00e4a5560da94c515968c11f9d84e67e88b1eedbfa02e364abd35 +DIST libpreludedb-3.1.0.tar.gz 1291186 SHA256 3ac2adade778941249fc87adcaebf39ef3acf17844632f690c66fb50dd48d857 SHA512 dcb98eff2521979c2956bdd6f3b661c346c0f6748ef820a75d77c948e426a996de26c7fc6b6c2abddc93277db3820eb2f44b61c87feb86483e720cf9b0e0124c WHIRLPOOL 85d0a79be0cd0f638368317ebb0020a60670a6fb1093868accfe3755bcf04988d2263775959732a32ae5b33e0169e95d215dc4af547780fc3bc1c0ad5054c3f0 +DIST libpreludedb-4.0.0.tar.gz 1325812 SHA256 be7f86a37517df05c6aaa9b9e8d1dce1c1f6ea3f8c6a46333b1fe72858d1aaf2 SHA512 13f5dbcfa6af965f2075d60c645ebb19cbd6b18807b26f4f13a7a05f1cf552996f9846e856728a4e1dc621efda693016e82623d4a3cbf74849b3e7114f19faca WHIRLPOOL 973b2d63b9f12f93f81c5fdd2a8847610442e43fb65544c0a80f82650ede3880bb1fc9d98d1c7ac00da05d6607d6abf8cc7b970395ae607fd55cc0789bfd6234 +EBUILD libpreludedb-3.0.0.ebuild 1572 SHA256 c6327bc9be94bb8334a6575e15d598beeb04cfe61b13003a4c977d74b490f45f SHA512 8b8b5dbf1b1a5aabaab7b1191f79353aa197254b39ae8517f5f9b230ea8b7f946ec29395e7d7b5429bc542aabbb4a7b61ac8a611823f49d6eab356f432e450d6 WHIRLPOOL b436b908e725aa304f98694b7527bc363bc4174d3d098a676b1459593a6e8695bf52613fff01bec10041f07ac95a743cc54e99fa2f02cdce704939c52162bf3a +EBUILD libpreludedb-3.1.0.ebuild 1496 SHA256 67ad207c18248142143818a472a13f0fad3b9c4fd66ebcfaea9ed91cd5cca68d SHA512 86eb7b065814b5a07e5908e57a2952ee82d61441dfd748afcff4d2c052c4353c4aae866e98520de84b76a63ee50e39f3bdb33e224d9456e48fe55f704b6842fa WHIRLPOOL 1f8e23f661b356afdde193d2e83aee877efb02c84d02853fc616389b9fcef885c3b2c63848f27aec6dfc2dfd8e8616d9fdf57ad1fbe3eec5f0f919a4001606e0 +EBUILD libpreludedb-4.0.0.ebuild 1741 SHA256 af6aa582c7a56d30102164833c95c75c6d204b547ffbefc6bde8841efbf54a5f SHA512 f3f59361adb1907fbef8ca5d88755d4ef85b02ee2a4e1f7712c5bf13b1d2f6dbcfa472eb73e06cc54db86348c482df2a641517752924382a639ff15abb246b68 WHIRLPOOL 897c57da63af523ef7a26867f5e8b4ad6e173d8fd36f7ad24c2ebe736953ad031c9ec5f4dbeff7cdb73e3d5b1c5fc4902f84563932965014fb9b180c3d7a255b +MISC ChangeLog 692 SHA256 0e89ed77e27be876763dcce98bf49666f51eb9f086a5745a50b1bbc8fc4d1841 SHA512 5c4076a7fa5f194400089cc8803ffef8b8e6d8d2d9487128fe4bad62b39880dc88502a586446cc581d2f0af0f01aad1dd61b2b622d85496ae48d266ea5c86051 WHIRLPOOL 746815a676872e12a7a6b121b857b2be97178c04e7f6beadc946ff31f6caf7f867640568c4994aaa567d9e4193324ee512b6a88b31f6faa34b51e6c6e7874a15 +MISC metadata.xml 740 SHA256 307fa2705b81718e0563860f90fad72087dae0172d6e7399da8b6ec70829224e SHA512 336a155dddb152697e44246184aaf0cfa928f1a3acd226c3f048aaeca81e96e1c5c7bceaee2bcc5e6ff731b59de1eadb02698e01c3e9443e6d9a37859da8e973 WHIRLPOOL c5b0b8fd02799af0459bba271e6743970b4a92e2b66fd906c2c9cc084b38f0904a9aed7a4cf0f7adbed1b10470ea99e4c5bd27196a8dc66be96882e89d2bd818 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