summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter (peter23) <peter@ptm.pp.ru>2010-11-22 07:05:19 +0000
committerPeter (peter23) <peter@ptm.pp.ru>2010-11-22 07:05:19 +0000
commit5858bd0e9665b858ce326623eb66c424f37db4aa (patch)
tree3b6803f38bb4d3e9422e20279a9ef9129fc80e8f /net-firewall
parentsys-fs/ntfs3g-ar: version bump (diff)
downloadsunrise-reviewed-5858bd0e9665b858ce326623eb66c424f37db4aa.tar.gz
sunrise-reviewed-5858bd0e9665b858ce326623eb66c424f37db4aa.tar.bz2
sunrise-reviewed-5858bd0e9665b858ce326623eb66c424f37db4aa.zip
net-firewall/opendpi-netfilter-wrapper: New Ebuild for bug 345287
svn path=/sunrise/; revision=11566
Diffstat (limited to 'net-firewall')
-rw-r--r--net-firewall/opendpi-netfilter-wrapper/ChangeLog9
-rw-r--r--net-firewall/opendpi-netfilter-wrapper/Manifest6
-rw-r--r--net-firewall/opendpi-netfilter-wrapper/files/opendpi-netfilter-wrapper-1.1_2.6.35_v2.patch.gzbin0 -> 860 bytes
-rw-r--r--net-firewall/opendpi-netfilter-wrapper/metadata.xml6
-rw-r--r--net-firewall/opendpi-netfilter-wrapper/opendpi-netfilter-wrapper-1.1.ebuild61
5 files changed, 82 insertions, 0 deletions
diff --git a/net-firewall/opendpi-netfilter-wrapper/ChangeLog b/net-firewall/opendpi-netfilter-wrapper/ChangeLog
new file mode 100644
index 000000000..224b5709f
--- /dev/null
+++ b/net-firewall/opendpi-netfilter-wrapper/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for net-firewall/opendpi-netfilter-wrapper
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 22 Nov 2010; Peter (peter23) <peter@ptm.pp.ru>
+ +opendpi-netfilter-wrapper-1.1.ebuild,
+ +files/opendpi-netfilter-wrapper-1.1_2.6.35_v2.patch.gz, +metadata.xml:
+ New Ebuild for bug 345287
+
diff --git a/net-firewall/opendpi-netfilter-wrapper/Manifest b/net-firewall/opendpi-netfilter-wrapper/Manifest
new file mode 100644
index 000000000..27854c078
--- /dev/null
+++ b/net-firewall/opendpi-netfilter-wrapper/Manifest
@@ -0,0 +1,6 @@
+AUX opendpi-netfilter-wrapper-1.1_2.6.35_v2.patch.gz 860 RMD160 85d137face72748ea341287ff55ebb51d3ffced3 SHA1 31f4ba23549adb1285ecf660f6576ee5fbf6fa24 SHA256 e4f5472d048ba0b06b4c3ba9c089e4b623f2f27ab41427400adbbeb296ea6df9
+DIST opendpi-1.2.0.tar.gz 394399 RMD160 d60d79ddf59c0b69f6b67a54d60bf5d6022b74eb SHA1 ec802b6182d9dad41d4fa89fbf12512dedfcaab3 SHA256 1b9391031ebce4689c298a54f58f7c41728c8cbae277dcd7932668df1c72582f
+DIST opendpi-netfilter-wrapper-1.1.tar.gz 15977 RMD160 f090b7d4057f81cecf1617b7862e4c9bed45a8c0 SHA1 2e8eeeb28a68c2b5f94a85c42d5dd7fcef4cfb3e SHA256 4d5d654860117c85ee1efb80773bd28e883f8ec70a3004d43160fdab8d32819f
+EBUILD opendpi-netfilter-wrapper-1.1.ebuild 1507 RMD160 961c7b8a6d050a3faaaca4a75d1dabe6a5b6b714 SHA1 1207041282cde641edfbfa73ca3cab1db1ad8745 SHA256 06c7a0f5b4c5231afbd7a300ef70029b3dc88798cc88a05295898d747f2a40cb
+MISC ChangeLog 332 RMD160 e379e640ebb2e1cd626f36e4af3b87fe00ebb07c SHA1 b201785147068dd04f047498fecfc337c9aea50d SHA256 12e767df8b9602395c4df967bccffcac4b6c0da415ded22389bbb62cf0dac7b9
+MISC metadata.xml 229 RMD160 f0f6417bec31ce8baba6d476664f7210c8c84c98 SHA1 e5f94f5caadc6f843fc90bb7959570cd503676fd SHA256 3b08fca3c878bdfc4e7639f477dd542d55a4ab5dce39a475e82633071d13eb3f
diff --git a/net-firewall/opendpi-netfilter-wrapper/files/opendpi-netfilter-wrapper-1.1_2.6.35_v2.patch.gz b/net-firewall/opendpi-netfilter-wrapper/files/opendpi-netfilter-wrapper-1.1_2.6.35_v2.patch.gz
new file mode 100644
index 000000000..47abbbc83
--- /dev/null
+++ b/net-firewall/opendpi-netfilter-wrapper/files/opendpi-netfilter-wrapper-1.1_2.6.35_v2.patch.gz
Binary files differ
diff --git a/net-firewall/opendpi-netfilter-wrapper/metadata.xml b/net-firewall/opendpi-netfilter-wrapper/metadata.xml
new file mode 100644
index 000000000..e6233b5dc
--- /dev/null
+++ b/net-firewall/opendpi-netfilter-wrapper/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer><email>maintainer-wanted@gentoo.org</email></maintainer>
+</pkgmetadata>
diff --git a/net-firewall/opendpi-netfilter-wrapper/opendpi-netfilter-wrapper-1.1.ebuild b/net-firewall/opendpi-netfilter-wrapper/opendpi-netfilter-wrapper-1.1.ebuild
new file mode 100644
index 000000000..0bdfb3024
--- /dev/null
+++ b/net-firewall/opendpi-netfilter-wrapper/opendpi-netfilter-wrapper-1.1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit eutils linux-mod
+
+OPENDPI_VER="opendpi-1.2.0"
+DESCRIPTION="Netfilter wrapper for OpenDPI library."
+HOMEPAGE="http://opendpi.org/"
+SRC_URI="http://opendpi.googlecode.com/files/${P}.tar.gz
+ http://opendpi.googlecode.com/files/${OPENDPI_VER}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=net-firewall/iptables-1.4.1"
+DEPEND="${RDEPEND}"
+
+S="${S}/wrapper"
+
+MODULE_NAMES="xt_opendpi(extra:${S}:${S}/src)"
+BUILD_TARGETS=" "
+
+CONFIG_CHECK="NETFILTER NF_CONNTRACK_EVENTS !NF_CT_NETLINK"
+ERROR_NETFILTER="${PN} requires Netfilter support in your kernel."
+ERROR_NF_CONNTRACK_EVENTS="${PN} requires Connection tracking events support in your kernel."
+ERROR_NF_CT_NETLINK="${PN} requires disabled Connection tracking netlink interface option in your kernel."
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}_2.6.35_v2.patch.gz"
+
+ cd "${WORKDIR}/${OPENDPI_VER}" || die
+ epatch "${WORKDIR}/${P}/ipq_main.h.diff"
+ epatch "${WORKDIR}/${P}/ipq_protocols.h.diff"
+}
+
+src_compile() {
+ export OPENDPI_PATH="${WORKDIR}/${OPENDPI_VER}"
+ linux-mod_src_compile
+}
+
+src_install() {
+ exeinto "/$(get_libdir)/xtables"
+ doexe "ipt/libxt_opendpi.so" || die
+
+ linux-mod_src_install
+
+ dodoc README INSTALL AUTHORS || die
+}
+
+pkg_postinst() {
+ linux-mod_pkg_postinst
+
+ elog
+ elog "See output of 'iptables -m opendpi --help' for help on using and the options available."
+ elog
+}