From: | "Zac Medico (zmedico)" <zmedico@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-libs/nfqueue-bindings: nfqueue-bindings-0.5.ebuild metadata.xml ChangeLog |
Date: | Wed, 01 Jul 2015 22:40:06 |
Message-Id: | 20150701223958.2D0A074C@oystercatcher.gentoo.org |
1 | zmedico 15/07/01 22:39:58 |
2 | |
3 | Added: nfqueue-bindings-0.5.ebuild metadata.xml ChangeLog |
4 | Log: |
5 | Add nfqueue-bindings, thanks to Tony Cheneau <tony.cheneau@××××××××.org> from bug 318559. |
6 | |
7 | (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key FDE8EF85AE5719A3) |
8 | |
9 | Revision Changes Path |
10 | 1.1 net-libs/nfqueue-bindings/nfqueue-bindings-0.5.ebuild |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nfqueue-bindings/nfqueue-bindings-0.5.ebuild?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nfqueue-bindings/nfqueue-bindings-0.5.ebuild?rev=1.1&content-type=text/plain |
14 | |
15 | Index: nfqueue-bindings-0.5.ebuild |
16 | =================================================================== |
17 | # Copyright 1999-2015 Gentoo Foundation |
18 | # Distributed under the terms of the GNU General Public License v2 |
19 | # $Header: /var/cvsroot/gentoo-x86/net-libs/nfqueue-bindings/nfqueue-bindings-0.5.ebuild,v 1.1 2015/07/01 22:39:58 zmedico Exp $ |
20 | |
21 | EAPI=5 |
22 | PYTHON_COMPAT=( python2_7 ) |
23 | inherit cmake-utils perl-module linux-info python-single-r1 |
24 | |
25 | DESCRIPTION="High-level language bindings for libnetfilter_queue" |
26 | HOMEPAGE="https://www.wzdftpd.net/redmine/projects/nfqueue-bindings/wiki/" |
27 | SRC_URI="https://www.wzdftpd.net/redmine/attachments/download/68/nfqueue-bindings-0.5.tar.xz" |
28 | |
29 | KEYWORDS="~x86 ~amd64" |
30 | SLOT="0" |
31 | LICENSE="GPL-3" |
32 | IUSE="perl python examples" |
33 | REQUIRED_USE="|| ( perl python )" |
34 | |
35 | DEPEND="python? ( |
36 | dev-python/dpkt[${PYTHON_USEDEP}] |
37 | ${PYTHON_DEPS} |
38 | ) |
39 | perl? ( dev-lang/perl ) |
40 | net-libs/libnetfilter_queue |
41 | dev-lang/swig" |
42 | |
43 | pkg_setup() { |
44 | use python && python-single-r1_pkg_setup |
45 | # At least one of Python or Perl must be selected |
46 | use python || useq perl || die "At least one supported language must be selected." |
47 | # Check kernel configuration for NFQUEUE |
48 | if linux_config_exists; then |
49 | ebegin "Checking NETFILTER_NETLINK_QUEUE support" |
50 | linux_chkconfig_present NETFILTER_NETLINK_QUEUE |
51 | eend $? || \ |
52 | eerror 'Netfilter NFQUEUE over NFNETLINK interface support not found!' |
53 | ebegin "Checking NETFILTER_XT_TARGET_NFQUEUE support" |
54 | linux_chkconfig_present NETFILTER_XT_TARGET_NFQUEUE |
55 | eend $? || \ |
56 | eerror '"NFQUEUE" target Support not found!' |
57 | fi |
58 | } |
59 | |
60 | src_prepare() { |
61 | # Fix Perl destination directory |
62 | perl_set_version |
63 | sed -i "s|\${LIB_INSTALL_DIR}/perl\${PERL_VERSION}/|${VENDOR_ARCH}|" perl/CMakeLists.txt || die |
64 | sed -i "s|\${LIB_INSTALL_DIR}/python\${PYTHON_VERSION}/dist-packages/|$(python_get_sitedir)|" python/CMakeLists.txt || die |
65 | # Disable Perl/Python from USE flags |
66 | use perl || sed -i 's|ADD_SUBDIRECTORY(perl)||' CMakeLists.txt || die |
67 | use python || sed -i 's|ADD_SUBDIRECTORY(python)||' CMakeLists.txt || die |
68 | } |
69 | |
70 | src_install() { |
71 | emake DESTDIR="${D}" install PREFIX=/usr || die |
72 | docinto examples |
73 | use examples && dodoc examples/* |
74 | } |
75 | |
76 | |
77 | |
78 | 1.1 net-libs/nfqueue-bindings/metadata.xml |
79 | |
80 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nfqueue-bindings/metadata.xml?rev=1.1&view=markup |
81 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nfqueue-bindings/metadata.xml?rev=1.1&content-type=text/plain |
82 | |
83 | Index: metadata.xml |
84 | =================================================================== |
85 | <?xml version="1.0" encoding="UTF-8"?> |
86 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
87 | <pkgmetadata> |
88 | <maintainer> |
89 | <email>zmedico@g.o</email> |
90 | </maintainer> |
91 | <maintainer> |
92 | <email>chutzpah@g.o</email> |
93 | </maintainer> |
94 | </pkgmetadata> |
95 | |
96 | |
97 | |
98 | 1.1 net-libs/nfqueue-bindings/ChangeLog |
99 | |
100 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nfqueue-bindings/ChangeLog?rev=1.1&view=markup |
101 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nfqueue-bindings/ChangeLog?rev=1.1&content-type=text/plain |
102 | |
103 | Index: ChangeLog |
104 | =================================================================== |
105 | # ChangeLog for net-libs/nfqueue-bindings |
106 | # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
107 | # $Header: /var/cvsroot/gentoo-x86/net-libs/nfqueue-bindings/ChangeLog,v 1.1 2015/07/01 22:39:58 zmedico Exp $ |
108 | |
109 | *nfqueue-bindings-0.5 (01 Jul 2015) |
110 | |
111 | 01 Jul 2015; Zac Medico <zmedico@g.o> +metadata.xml, |
112 | +nfqueue-bindings-0.5.ebuild: |
113 | Add nfqueue-bindings, thanks to Tony Cheneau <tony.cheneau@××××××××.org> from |
114 | bug 318559. |