1 |
commit: 9123ec72622db68316e9babe4abb7a2da6f51c30 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 30 16:12:19 2016 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 30 16:12:19 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9123ec72 |
7 |
|
8 |
net-libs/nfqueue-bindings: version bump to 0.6 |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
net-libs/nfqueue-bindings/Manifest | 1 + |
13 |
.../nfqueue-bindings/nfqueue-bindings-0.6.ebuild | 58 ++++++++++++++++++++++ |
14 |
2 files changed, 59 insertions(+) |
15 |
|
16 |
diff --git a/net-libs/nfqueue-bindings/Manifest b/net-libs/nfqueue-bindings/Manifest |
17 |
index 148fac2..84b990a 100644 |
18 |
--- a/net-libs/nfqueue-bindings/Manifest |
19 |
+++ b/net-libs/nfqueue-bindings/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST nfqueue-bindings-0.5.tar.gz 22385 SHA256 98ce420e2f9c95e6ee961f3a7c8b92fd6da6939bef3847f5090f1e2429f2394d SHA512 c88ef6997b8e4b3ae2c2eb6c1002b74f39979c73b4dc3a4da428aa4eeb6eedeeaff1cbc27c0740e8b29fb8b6a6f98af326be0b4fbc6ed3e432a9884febb3f7a6 WHIRLPOOL 11c70ebd63c0f2970dab3d2747ca8ac585b8c831b7326ebba37be72ab058a7a65049f1833a1d7117c150e91e6c6163f95e001d1eb3453ec6577723a4db811aa6 |
22 |
+DIST nfqueue-bindings-0.6.tar.gz 22425 SHA256 37cf8607baaf1459119c1745a6b3a9d6196fee1e7103ff84250e64ac71156dbb SHA512 6ee31b01377c0e4b6aa2d2f2e14b34d4d432f04d0e813f90a9d7e52ea9c8483044f7a36b48220887d658c80ca07bfefc88f8aa92309cff30619ec8fb9f52ab43 WHIRLPOOL 2f5a45e7e68ade56c8f008effcf8488b3db629d6f0f98ec2f938bf389ec3d97a5934085390e768b461a44fa04a207364fb2b2ba4cb8dffe4d97fc53ae5f3c6c1 |
23 |
|
24 |
diff --git a/net-libs/nfqueue-bindings/nfqueue-bindings-0.6.ebuild b/net-libs/nfqueue-bindings/nfqueue-bindings-0.6.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000..b9acbe6 |
27 |
--- /dev/null |
28 |
+++ b/net-libs/nfqueue-bindings/nfqueue-bindings-0.6.ebuild |
29 |
@@ -0,0 +1,58 @@ |
30 |
+# Copyright 1999-2016 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Id$ |
33 |
+ |
34 |
+EAPI=5 |
35 |
+PYTHON_COMPAT=( python2_7 ) |
36 |
+inherit cmake-utils perl-module linux-info python-single-r1 |
37 |
+ |
38 |
+DESCRIPTION="High-level language bindings for libnetfilter_queue" |
39 |
+HOMEPAGE="https://github.com/chifflier/nfqueue-bindings" |
40 |
+SRC_URI="https://github.com/chifflier/nfqueue-bindings/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
41 |
+ |
42 |
+KEYWORDS="~x86 ~amd64" |
43 |
+SLOT="0" |
44 |
+LICENSE="GPL-3" |
45 |
+IUSE="perl python examples" |
46 |
+REQUIRED_USE="|| ( perl python )" |
47 |
+ |
48 |
+DEPEND="python? ( |
49 |
+ dev-python/dpkt[${PYTHON_USEDEP}] |
50 |
+ ${PYTHON_DEPS} |
51 |
+ ) |
52 |
+ perl? ( dev-lang/perl ) |
53 |
+ net-libs/libnetfilter_queue |
54 |
+ dev-lang/swig" |
55 |
+ |
56 |
+pkg_setup() { |
57 |
+ use python && python-single-r1_pkg_setup |
58 |
+ # At least one of Python or Perl must be selected |
59 |
+ use python || useq perl || die "At least one supported language must be selected." |
60 |
+ # Check kernel configuration for NFQUEUE |
61 |
+ if linux_config_exists; then |
62 |
+ ebegin "Checking NETFILTER_NETLINK_QUEUE support" |
63 |
+ linux_chkconfig_present NETFILTER_NETLINK_QUEUE |
64 |
+ eend $? || \ |
65 |
+ eerror 'Netfilter NFQUEUE over NFNETLINK interface support not found!' |
66 |
+ ebegin "Checking NETFILTER_XT_TARGET_NFQUEUE support" |
67 |
+ linux_chkconfig_present NETFILTER_XT_TARGET_NFQUEUE |
68 |
+ eend $? || \ |
69 |
+ eerror '"NFQUEUE" target Support not found!' |
70 |
+ fi |
71 |
+} |
72 |
+ |
73 |
+src_prepare() { |
74 |
+ # Fix Perl destination directory |
75 |
+ perl_set_version |
76 |
+ sed -i "s|\${LIB_INSTALL_DIR}/perl\${PERL_VERSION}/|${VENDOR_ARCH}|" perl/CMakeLists.txt || die |
77 |
+ sed -i "s|\${LIB_INSTALL_DIR}/python\${PYTHON_VERSION}/dist-packages/|$(python_get_sitedir)|" python/CMakeLists.txt || die |
78 |
+ # Disable Perl/Python from USE flags |
79 |
+ use perl || sed -i 's|ADD_SUBDIRECTORY(perl)||' CMakeLists.txt || die |
80 |
+ use python || sed -i 's|ADD_SUBDIRECTORY(python)||' CMakeLists.txt || die |
81 |
+} |
82 |
+ |
83 |
+src_install() { |
84 |
+ emake DESTDIR="${D}" install PREFIX=/usr || die |
85 |
+ docinto examples |
86 |
+ use examples && dodoc examples/* |
87 |
+} |