From 71deace00d1a2b091313fe137ab7092418c6f87c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 10 Feb 2020 21:05:55 +0000 Subject: gentoo resync : 10.02.2020 --- net-libs/nfqueue-bindings/Manifest | 4 +- .../nfqueue-bindings/nfqueue-bindings-0.5.ebuild | 6 +- .../nfqueue-bindings-0.6-r1.ebuild | 69 ++++++++++++++++++++++ .../nfqueue-bindings/nfqueue-bindings-0.6.ebuild | 67 --------------------- 4 files changed, 75 insertions(+), 71 deletions(-) create mode 100644 net-libs/nfqueue-bindings/nfqueue-bindings-0.6-r1.ebuild delete mode 100644 net-libs/nfqueue-bindings/nfqueue-bindings-0.6.ebuild (limited to 'net-libs/nfqueue-bindings') diff --git a/net-libs/nfqueue-bindings/Manifest b/net-libs/nfqueue-bindings/Manifest index 40e027c17b9b..0c63694e99a9 100644 --- a/net-libs/nfqueue-bindings/Manifest +++ b/net-libs/nfqueue-bindings/Manifest @@ -1,5 +1,5 @@ DIST nfqueue-bindings-0.5.tar.gz 22385 BLAKE2B dd14df558dcc3f811f7f649f0e4ef305025f863d850deceae0dba308974865150265899d3cee43d2a279d6c6d6237dd4df6b01b72c39b6a96819d25fa4413dbe SHA512 c88ef6997b8e4b3ae2c2eb6c1002b74f39979c73b4dc3a4da428aa4eeb6eedeeaff1cbc27c0740e8b29fb8b6a6f98af326be0b4fbc6ed3e432a9884febb3f7a6 DIST nfqueue-bindings-0.6.tar.gz 22425 BLAKE2B e338268a41e29cbab9a5dc2e891caa78a75d7849439fd9afc8eb105c965e8d201d854f95460d337dc60249ee2c90d88582075a14bc321bf5b952e5a8b648ed0e SHA512 6ee31b01377c0e4b6aa2d2f2e14b34d4d432f04d0e813f90a9d7e52ea9c8483044f7a36b48220887d658c80ca07bfefc88f8aa92309cff30619ec8fb9f52ab43 -EBUILD nfqueue-bindings-0.5.ebuild 1983 BLAKE2B ba1f4bc6a61f198560d0a415202972d32e896a62aae7a88ca11938ddad49f58011801a1260977b77092c05a48f59fa02e3bb9c801c7e384b26fed57561196c33 SHA512 6fcecd6297f2f4d2e6778c7263e87e910a8ba51a526ddc35ea328379018ce069df6d9b9c5a8ba6a7936ac7781bda8da06ae8089214e8339ddde834a38955651d -EBUILD nfqueue-bindings-0.6.ebuild 1959 BLAKE2B c6ab4990c06d9904704d102490fdf1b1b01e3e4a916b6c93144c4730cafbe1d5c1f3cc0570eda16df729b0c0dd2267f41e82b16b9aa0bca1a0ccc4be5fe92991 SHA512 13b245b2fbcf98569a37d50e24cd481d24c8ad92f3deaa1999bb5b058b766816dcc53ffcdc238f4580a93bde932305690c07d3f2777bfa28b8ab60deecc46fa5 +EBUILD nfqueue-bindings-0.5.ebuild 2021 BLAKE2B fe6ecd4d9a92f1e3a69b812240701156db89f41d3796bd9a5fc8d2a69d276d7d00d3c10dbe2d64d7b09fc7921952ae0431f032045fe1d09d59cd63d841842878 SHA512 c683a51c9151adbba9a8d482b6a9915dee3773032a747de5b8e8cd242e9f1e3f039427e10d2d04d878f24207da0bd86c3756ca7966dfa0a037022031f5790809 +EBUILD nfqueue-bindings-0.6-r1.ebuild 1997 BLAKE2B f302f0ffffaf1f03aa7d487037a6b5c03647b73b9b85492e0b803046c90017dda12289a7a9877f957e478acfd86ab344132db4b91165b709a66796b59ba64923 SHA512 e9ec990f1274bf78715a22e603d0f31e1fb91cd98f7e7aacb331cd94db833211c08475cf6a87dd03074c3fd353804924ece20e9dcc64bd7df12aea671e06c7a6 MISC metadata.xml 389 BLAKE2B 7d33c22b26e297b9cf696712e893a908f0dc1e6db264d9dfe39eaed7e5fea809c1e0d5bf5661a50783192c75cd414f92e3450da533aa9087f8e94fa016bd891a SHA512 93f27dce7f495f0e0bb277938e5133cc8a2ca33fe8d6b822da48dede56b94dfb35c471a77679cee6e8cd08dbca41f7459440b21ca1c6a1f02368ad5bd8c91d96 diff --git a/net-libs/nfqueue-bindings/nfqueue-bindings-0.5.ebuild b/net-libs/nfqueue-bindings/nfqueue-bindings-0.5.ebuild index 208daba1fd23..97d6ee2d4ac5 100644 --- a/net-libs/nfqueue-bindings/nfqueue-bindings-0.5.ebuild +++ b/net-libs/nfqueue-bindings/nfqueue-bindings-0.5.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=5 @@ -19,7 +19,9 @@ REQUIRED_USE="|| ( perl python ) python? ( ${PYTHON_REQUIRED_USE} )" RDEPEND=" python? ( - dev-python/dpkt[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/dpkt[${PYTHON_MULTI_USEDEP}] + ') ${PYTHON_DEPS} )" DEPEND="${RDEPEND} diff --git a/net-libs/nfqueue-bindings/nfqueue-bindings-0.6-r1.ebuild b/net-libs/nfqueue-bindings/nfqueue-bindings-0.6-r1.ebuild new file mode 100644 index 000000000000..56b6ed038b47 --- /dev/null +++ b/net-libs/nfqueue-bindings/nfqueue-bindings-0.6-r1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit cmake-utils perl-module linux-info python-single-r1 + +DESCRIPTION="High-level language bindings for libnetfilter_queue" +HOMEPAGE="https://github.com/chifflier/nfqueue-bindings" +SRC_URI="https://github.com/chifflier/nfqueue-bindings/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +KEYWORDS="~amd64 ~x86" +SLOT="0" +LICENSE="GPL-3" +IUSE="perl python examples" +REQUIRED_USE="|| ( perl python ) python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + python? ( + $(python_gen_cond_dep ' + dev-python/dpkt[${PYTHON_MULTI_USEDEP}] + ') + ${PYTHON_DEPS} + )" +DEPEND="${RDEPEND} + perl? ( dev-lang/perl ) + net-libs/libnetfilter_queue + dev-lang/swig" + +pkg_setup() { + use python && python-single-r1_pkg_setup + # At least one of Python or Perl must be selected + use python || useq perl || die "At least one supported language must be selected." + # Check kernel configuration for NFQUEUE + if linux_config_exists; then + ebegin "Checking NETFILTER_NETLINK_QUEUE support" + linux_chkconfig_present NETFILTER_NETLINK_QUEUE + eend $? || \ + eerror 'Netfilter NFQUEUE over NFNETLINK interface support not found!' + ebegin "Checking NETFILTER_XT_TARGET_NFQUEUE support" + linux_chkconfig_present NETFILTER_XT_TARGET_NFQUEUE + eend $? || \ + eerror '"NFQUEUE" target Support not found!' + fi +} + +src_prepare() { + if use perl; then + # Fix Perl destination directory + perl_set_version + sed -i "s|\${LIB_INSTALL_DIR}/perl\${PERL_VERSION}/|${VENDOR_ARCH}|" perl/CMakeLists.txt || die + else + sed -i 's|ADD_SUBDIRECTORY(perl)||' CMakeLists.txt || die + fi + + if use python; then + sed -i "s|\${LIB_INSTALL_DIR}/python\${PYTHON_VERSION}/dist-packages/|$(python_get_sitedir)|" python/CMakeLists.txt || die + else + sed -i 's|ADD_SUBDIRECTORY(python)||' CMakeLists.txt || die + fi +} + +src_install() { + emake DESTDIR="${D}" install PREFIX=/usr + docinto examples + use examples && dodoc examples/* +} diff --git a/net-libs/nfqueue-bindings/nfqueue-bindings-0.6.ebuild b/net-libs/nfqueue-bindings/nfqueue-bindings-0.6.ebuild deleted file mode 100644 index fb8f566b9270..000000000000 --- a/net-libs/nfqueue-bindings/nfqueue-bindings-0.6.ebuild +++ /dev/null @@ -1,67 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -PYTHON_COMPAT=( python2_7 ) - -inherit cmake-utils perl-module linux-info python-single-r1 - -DESCRIPTION="High-level language bindings for libnetfilter_queue" -HOMEPAGE="https://github.com/chifflier/nfqueue-bindings" -SRC_URI="https://github.com/chifflier/nfqueue-bindings/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -KEYWORDS="~amd64 ~x86" -SLOT="0" -LICENSE="GPL-3" -IUSE="perl python examples" -REQUIRED_USE="|| ( perl python ) python? ( ${PYTHON_REQUIRED_USE} )" - -RDEPEND=" - python? ( - dev-python/dpkt[${PYTHON_USEDEP}] - ${PYTHON_DEPS} - )" -DEPEND="${RDEPEND} - perl? ( dev-lang/perl ) - net-libs/libnetfilter_queue - dev-lang/swig" - -pkg_setup() { - use python && python-single-r1_pkg_setup - # At least one of Python or Perl must be selected - use python || useq perl || die "At least one supported language must be selected." - # Check kernel configuration for NFQUEUE - if linux_config_exists; then - ebegin "Checking NETFILTER_NETLINK_QUEUE support" - linux_chkconfig_present NETFILTER_NETLINK_QUEUE - eend $? || \ - eerror 'Netfilter NFQUEUE over NFNETLINK interface support not found!' - ebegin "Checking NETFILTER_XT_TARGET_NFQUEUE support" - linux_chkconfig_present NETFILTER_XT_TARGET_NFQUEUE - eend $? || \ - eerror '"NFQUEUE" target Support not found!' - fi -} - -src_prepare() { - if use perl; then - # Fix Perl destination directory - perl_set_version - sed -i "s|\${LIB_INSTALL_DIR}/perl\${PERL_VERSION}/|${VENDOR_ARCH}|" perl/CMakeLists.txt || die - else - sed -i 's|ADD_SUBDIRECTORY(perl)||' CMakeLists.txt || die - fi - - if use python; then - sed -i "s|\${LIB_INSTALL_DIR}/python\${PYTHON_VERSION}/dist-packages/|$(python_get_sitedir)|" python/CMakeLists.txt || die - else - sed -i 's|ADD_SUBDIRECTORY(python)||' CMakeLists.txt || die - fi -} - -src_install() { - emake DESTDIR="${D}" install PREFIX=/usr - docinto examples - use examples && dodoc examples/* -} -- cgit v1.2.3