summaryrefslogtreecommitdiff
path: root/net-libs/nfqueue-bindings
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-libs/nfqueue-bindings
reinit the tree, so we can have metadata
Diffstat (limited to 'net-libs/nfqueue-bindings')
-rw-r--r--net-libs/nfqueue-bindings/Manifest7
-rw-r--r--net-libs/nfqueue-bindings/metadata.xml13
-rw-r--r--net-libs/nfqueue-bindings/nfqueue-bindings-0.5.ebuild69
-rw-r--r--net-libs/nfqueue-bindings/nfqueue-bindings-0.6.ebuild67
4 files changed, 156 insertions, 0 deletions
diff --git a/net-libs/nfqueue-bindings/Manifest b/net-libs/nfqueue-bindings/Manifest
new file mode 100644
index 000000000000..d72855886028
--- /dev/null
+++ b/net-libs/nfqueue-bindings/Manifest
@@ -0,0 +1,7 @@
+DIST nfqueue-bindings-0.5.tar.gz 22385 SHA256 98ce420e2f9c95e6ee961f3a7c8b92fd6da6939bef3847f5090f1e2429f2394d SHA512 c88ef6997b8e4b3ae2c2eb6c1002b74f39979c73b4dc3a4da428aa4eeb6eedeeaff1cbc27c0740e8b29fb8b6a6f98af326be0b4fbc6ed3e432a9884febb3f7a6 WHIRLPOOL 11c70ebd63c0f2970dab3d2747ca8ac585b8c831b7326ebba37be72ab058a7a65049f1833a1d7117c150e91e6c6163f95e001d1eb3453ec6577723a4db811aa6
+DIST nfqueue-bindings-0.6.tar.gz 22425 SHA256 37cf8607baaf1459119c1745a6b3a9d6196fee1e7103ff84250e64ac71156dbb SHA512 6ee31b01377c0e4b6aa2d2f2e14b34d4d432f04d0e813f90a9d7e52ea9c8483044f7a36b48220887d658c80ca07bfefc88f8aa92309cff30619ec8fb9f52ab43 WHIRLPOOL 2f5a45e7e68ade56c8f008effcf8488b3db629d6f0f98ec2f938bf389ec3d97a5934085390e768b461a44fa04a207364fb2b2ba4cb8dffe4d97fc53ae5f3c6c1
+EBUILD nfqueue-bindings-0.5.ebuild 1993 SHA256 7879159bb293177e06ad0db32bcaf20818f3c4647d5d72715c7a06f004873a42 SHA512 39191872a802c3327535bd7770fa325f38654d857e9ce16b5f9a33c3fdc7b397412ab8232a1d1178a3c6b21a6b2aff2ad1d55c24b1f7af0c1cab8bd7be1857a3 WHIRLPOOL 7005eb93d04ee8e94a8ad743c8a386748455afc793698842bafea8d533b03c7185a0acfe9198c2ca352b1a9894ab6030c8b0eb39b0c52f8de988ad7eb5ab4af4
+EBUILD nfqueue-bindings-0.6.ebuild 1969 SHA256 75d4694e5c80095cb44b3663c70d907d076c98d3d1613ee3f390fe113fdf1f6b SHA512 fefc50e4a4cae4481b74a095a16fcefd7cc8e8c61a148ef81ffe5a3ddaf64631a92557f52ecdde9f168696488856807183d3c985648d990f2883276d7e776f9d WHIRLPOOL 67ece07985bc8e29d11df77252aa1c0fb89a8675c975ca2bc86f0183881d1ff95f28280e81d8670309247fea7fe45236895aa7e3d128f85f33fa58211884427a
+MISC ChangeLog 2643 SHA256 3da13ea698e4fe6b9cad8c12903cf3e86b3899f2ed316041b5f4591eea6d4325 SHA512 6bac8491b174021bf2e1dcce14510bec793b5da51e692d017ec75c1e50e4b52f50a61464f2f491046fb84d9e2d2955b56fb75f4fbec7c87597615c25157a2737 WHIRLPOOL 5758954f63cbd3ebe6fc07e4621956003dd3e42edb623425b6ab53799e2f1f7f1e6fda5aca405601b2b4e6df1b6c6306dd3b45c14ffe3e908eeb67f625a23e77
+MISC ChangeLog-2015 449 SHA256 15afabc4dbe8ebde85145b21a63eec549f3c7451d5d145499ccfa0faa478b94d SHA512 f33bfcbe05c39c450a3b5879d0f5b01b101b50b809f26924c9535a38e86a9716525c849cba136a5c5a66cba1c929edbf4bf00819f7c4de863648f5e09cb68a39 WHIRLPOOL dfff5661af1d32f343b1d70b6feb69615ff5c32b6bd66d4cb9643f6e4b58f55be3659e7327fe04ec4dad227471e93d48faa91ba1205aaaefe18f884ebbb330c8
+MISC metadata.xml 389 SHA256 92da0f2e7e2cf51816449a524ec9b6f820b6c0014516ad353043ae427fadae6f SHA512 93f27dce7f495f0e0bb277938e5133cc8a2ca33fe8d6b822da48dede56b94dfb35c471a77679cee6e8cd08dbca41f7459440b21ca1c6a1f02368ad5bd8c91d96 WHIRLPOOL faaca142966efb03945f64d7c9d2757ac615d711027483020c16b1d8ce2ea6a543d9df2082dcdc13cf28c6f7cc18ef9f55dbc7142f78d11c32ea80cb989e8fe9
diff --git a/net-libs/nfqueue-bindings/metadata.xml b/net-libs/nfqueue-bindings/metadata.xml
new file mode 100644
index 000000000000..96c116c350b6
--- /dev/null
+++ b/net-libs/nfqueue-bindings/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zmedico@gentoo.org</email>
+ </maintainer>
+ <maintainer type="person">
+ <email>chutzpah@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">chifflier/nfqueue-bindings</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-libs/nfqueue-bindings/nfqueue-bindings-0.5.ebuild b/net-libs/nfqueue-bindings/nfqueue-bindings-0.5.ebuild
new file mode 100644
index 000000000000..864546a6d190
--- /dev/null
+++ b/net-libs/nfqueue-bindings/nfqueue-bindings-0.5.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2017 Gentoo Foundation
+# 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/nfqueue-bindings-0.5.tar.gz"
+
+KEYWORDS="~x86 ~amd64"
+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"
+
+S=${WORKDIR}/${PN}-${P}
+
+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 || die
+ 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
new file mode 100644
index 000000000000..6c7f4afc4a1c
--- /dev/null
+++ b/net-libs/nfqueue-bindings/nfqueue-bindings-0.6.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2017 Gentoo Foundation
+# 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="~x86 ~amd64"
+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 || die
+ docinto examples
+ use examples && dodoc examples/*
+}