summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wallace <jason.r.wallace@gmail.com>2011-05-09 16:44:36 +0000
committerJason Wallace <jason.r.wallace@gmail.com>2011-05-09 16:44:36 +0000
commit18ced296956f1d0329375bab0867594cc15ab5ca (patch)
tree8ea7ad2262e4e0eed552d7dfa311744e4d83b337 /net-analyzer
parentmedia-sound/mixxx: Developer approved builds. Previous commit was premeture ... (diff)
downloadsunrise-18ced296956f1d0329375bab0867594cc15ab5ca.tar.gz
sunrise-18ced296956f1d0329375bab0867594cc15ab5ca.tar.bz2
sunrise-18ced296956f1d0329375bab0867594cc15ab5ca.zip
net-analyzer/pf_ring-kmod: New Ebuild for bug 366609
svn path=/sunrise/; revision=12049
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/pf_ring-kmod/ChangeLog9
-rw-r--r--net-analyzer/pf_ring-kmod/Manifest6
-rw-r--r--net-analyzer/pf_ring-kmod/files/README.module_options35
-rw-r--r--net-analyzer/pf_ring-kmod/files/pf_ring.conf2
-rw-r--r--net-analyzer/pf_ring-kmod/metadata.xml10
-rw-r--r--net-analyzer/pf_ring-kmod/pf_ring-kmod-4.6.3.ebuild44
6 files changed, 106 insertions, 0 deletions
diff --git a/net-analyzer/pf_ring-kmod/ChangeLog b/net-analyzer/pf_ring-kmod/ChangeLog
new file mode 100644
index 000000000..b1d393592
--- /dev/null
+++ b/net-analyzer/pf_ring-kmod/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for net-analyzer/pf_ring-kmod
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 09 May 2011; Jason Wallace <jason.r.wallace@gmail.com>
+ +pf_ring-kmod-4.6.3.ebuild, +files/README.module_options,
+ +files/pf_ring.conf, +metadata.xml:
+ New Ebuild for bug 366609
+
diff --git a/net-analyzer/pf_ring-kmod/Manifest b/net-analyzer/pf_ring-kmod/Manifest
new file mode 100644
index 000000000..654dd3494
--- /dev/null
+++ b/net-analyzer/pf_ring-kmod/Manifest
@@ -0,0 +1,6 @@
+AUX README.module_options 1122 RMD160 3bd226014602f49c3904ed3ec7bd300fb2bdf314 SHA1 61ed60fc28f4356d4a3098d23298e18730197c00 SHA256 4bf82903cf3dcde56a693b19d224ca18a425151c5f183d90a90859494b6d382f
+AUX pf_ring.conf 144 RMD160 cafdc5fe181570e1256eb977d3cee484bec5f165 SHA1 c8826dbacbe5e51c46c3f90b41737b0978d101b6 SHA256 5927c2a42b67bbd30db2e1f33ad25dd799aeb1f4af1b749483256b971dde1227
+DIST PF_RING-4.6.3.tar.gz 9756709 RMD160 2e4bb05a4cfc8587b6d102dba6dab7fd9def31ac SHA1 11964c8f3463b2d055eaa775bba0ad7f1fbec36e SHA256 6fe932471c4e8ef3ad00ddb36dd6559a4fddd3ae07f66b032fee31035f2aa37b
+EBUILD pf_ring-kmod-4.6.3.ebuild 1209 RMD160 d92c87f376094923aa64f3062fcbfc24b252552e SHA1 4db610e91f15534f7debd2bf6e6b0e72369bf3a7 SHA256 c27f08c24e584b6766025ba8744dd7cf41796608d18e294345d2e177f57ea627
+MISC ChangeLog 310 RMD160 6aad8ecbed96288180a243c13d72d27fa24a31c3 SHA1 9e46783929073ce770783acbf1e24a0b2ff1c4fc SHA256 9661944575167d04e408b03a66d787a57e7dc736e19f9219ccba9d22524603ad
+MISC metadata.xml 377 RMD160 89018da09ed4b0355e33ff3563213ff6b8aeca6b SHA1 c1500b73ed3e6d91a2ebb8299294cb597fcb7036 SHA256 6b23438650bc06c075d4a336c24a1117fbcd38e53f13fd762ed4098eeefa8ea7
diff --git a/net-analyzer/pf_ring-kmod/files/README.module_options b/net-analyzer/pf_ring-kmod/files/README.module_options
new file mode 100644
index 000000000..e326a593b
--- /dev/null
+++ b/net-analyzer/pf_ring-kmod/files/README.module_options
@@ -0,0 +1,35 @@
+# Please see http://www.ntop.org/PF_RING.html for more information
+#
+#
+#Options: [transparent_mode=0|1|2] [ min_num_slots=x] [ enable_tx_capture=1|0] [ enable_ip_defrag=1|0]
+#
+# Transparent_mode parameters:
+#
+# * transparent_mode=0 (default)
+# Packets are received via the standard Linux interface. Any driver can use
+# this mode.
+#
+# * transparent_mode=1 (Both vanilla and PF_RING-aware drivers)
+# Packets are memcpy() to PF_RING and also to the standard Linux path
+#
+# * transparent_mode=2 (PF_RING -aware drivers only)
+# Packets are ONLY memcpy() to PF_RING and not to the standard Linux path
+# (i.e. tcpdump won't see anything)
+#
+# Other parameters:
+#
+# * min_num_slots
+# Min number of ring slots (default . 4096)
+#
+# * enable_tx_capture
+# Set to 1 to capture outgoing packets, set to 0 to disable capture outgoing
+# packets (default . RX+TX)
+#
+# * enable_ip_defrag
+# Set to 1 to enable IP defragmentation, only rx traffic is
+# defragmented
+#
+# Once loaded, performance and configuration information for the pf_ring
+# module can be found via the files located in:
+#
+# /proc/net/pf_ring/
diff --git a/net-analyzer/pf_ring-kmod/files/pf_ring.conf b/net-analyzer/pf_ring-kmod/files/pf_ring.conf
new file mode 100644
index 000000000..62262b30d
--- /dev/null
+++ b/net-analyzer/pf_ring-kmod/files/pf_ring.conf
@@ -0,0 +1,2 @@
+# See DOCDIR for an explanation of these options
+options pf_ring transparent_mode=0 min_num_slots=4096 enable_tx_capture=0 enable_ip_defrag=0
diff --git a/net-analyzer/pf_ring-kmod/metadata.xml b/net-analyzer/pf_ring-kmod/metadata.xml
new file mode 100644
index 000000000..1bfe59e4d
--- /dev/null
+++ b/net-analyzer/pf_ring-kmod/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <longdescription lang="en">
+ PF_RING is a new type of network socket that dramatically improves the
+ packet capture speed.
+ </longdescription>
+ <maintainer><email>maintainer-wanted@gentoo.org</email></maintainer>
+</pkgmetadata>
diff --git a/net-analyzer/pf_ring-kmod/pf_ring-kmod-4.6.3.ebuild b/net-analyzer/pf_ring-kmod/pf_ring-kmod-4.6.3.ebuild
new file mode 100644
index 000000000..a5615870a
--- /dev/null
+++ b/net-analyzer/pf_ring-kmod/pf_ring-kmod-4.6.3.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+inherit linux-mod linux-info
+
+DESCRIPTION="A new type of network socket that improves packet capture speed."
+HOMEPAGE="http://www.ntop.org/PF_RING.html"
+SRC_URI="http://sourceforge.net/projects/ntop/files/PF_RING/PF_RING-${PV}.tar.gz/download -> PF_RING-4.6.3.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+S="${WORKDIR}/PF_RING-${PV}/kernel"
+
+MODULE_NAMES="pf_ring(net/pf_ring:${S}:${S})"
+CONFIG_CHECK="NET"
+ERROR_NET="PF_RING-${PV} requires CONFIG_NET=y set in the kernel."
+BUILD_TARGETS="modules"
+
+pkg_setup() {
+ linux-mod_pkg_setup
+ BUILD_PARAMS="-C ${KV_DIR} SUBDIRS=${S} EXTRA_CFLAGS='-I${S}'"
+}
+
+src_install() {
+ linux-mod_src_install
+ insinto /usr/include/linux
+ doins linux/pf_ring.h || die
+ insinto /etc/modprobe.d
+ doins "${FILESDIR}"/pf_ring.conf || die
+ sed -i -e 's:DOCDIR:/usr/share/doc/'${PF}'/README.module_options:g' \
+ "${D}etc/modprobe.d/pf_ring.conf" || die
+ dodoc "${FILESDIR}"/README.module_options || die
+}
+
+pkg_postinst() {
+ einfo "Please see /usr/share/doc/${PF}/README.module_options for configuration options."
+ linux-mod_pkg_postinst
+}