pf_ring-kmod-7.8.0_p20210421.ebuild

This commit is contained in:
Anton Bolshakov 2021-04-25 13:16:42 +08:00
parent b06d0b00a9
commit dcbb2284f0
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
6 changed files with 74 additions and 110 deletions

View file

@ -1,3 +1,2 @@
DIST PF_RING-6.0.3.tar.gz 8865818 BLAKE2B 2ac4f5559c6f186066da3bcc92f6ae267d90fe4b040a0cd388c8f844c530d4bf881e59a0be53b6e8101c63cbb76309f1e34953ac56f52bd2c3b079c6cae9e630 SHA512 75bf48f08a4f872fe02bf4fc8afe1031560558ff238c7aa32ccc1c4e9596031193df7edd2a3d4a4ae12b08642970266f4b46141340faacdfb09992793569a16d
DIST PF_RING-7.0.0.tar.gz 10240232 BLAKE2B 7b2eb51f9322df1bf72bcba35e092e9e256651d0ea5ca7be13e9a5769661c3e92df8dd7deb7a381a24696c530fabdcc3fed962354d9362b6ceba5a1d24a0b472 SHA512 715844c4d18680228e1f722f624ebb6c35c756d4bbd5df4641047420ad9d8912cb3977c237a832cc37ce51cb857c9237939efb89d26163ea39f9a7710adbe6da
DIST pf_ring-kmod-6.6.0.tar.gz 8632362 BLAKE2B e384ba3aeb40e62a02ed6e77bd56f6303cc95069671faeabc745f9b6a0cec5340b719a72a8735cf6f934c7e2339af1bded0deac81c8242958909951d8be56f7f SHA512 3308f1bf3a26ff7bc7a4c85d311b5213635a563383809564aa9c9e56cf54477e44d22225c6a229a6aee2d0e8dd480e3aa49ca8c3f5cb70e1538b7098f82f0a75
DIST PF_RING-7.8.0_p20210421.tar.gz 23403065 BLAKE2B c65f886ab9d51a6733a22ff081963e5f72012c546151df812b40c2b6cd1f046b0db33429e462dcd00c23257a7b4a32eba35e9612e301526f6ba702b42b464e65 SHA512 6cbe7c994a8ee3b0ba5b25a4ed059d9d37ad17b56c85664001cddfb9e4ef7aca0a804381d39e32c0df1e94164c69c6a305b39c8cd1e8e88c7a23f242481e1f18

View file

@ -0,0 +1,21 @@
From 5b45b695bbe9455f9c4dd518aa0f2a2a5b60033f Mon Sep 17 00:00:00 2001
From: Anton Bolshakov <blshkv@users.noreply.github.com>
Date: Sun, 25 Apr 2021 13:09:17 +0800
Subject: [PATCH] Update pf_ring.c
---
kernel/pf_ring.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/pf_ring.c b/kernel/pf_ring.c
index 50d478a65..e44bd9199 100644
--- a/kernel/pf_ring.c
+++ b/kernel/pf_ring.c
@@ -96,6 +96,7 @@
#include <linux/list.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
+#include <linux/ethtool.h>
#include <linux/proc_fs.h>
#include <linux/if_arp.h>
#include <linux/if_vlan.h>

View file

@ -1,52 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit linux-mod linux-info eutils
MY_P="PF_RING-${PV}"
DESCRIPTION="A new type of network socket that improves packet capture speed."
HOMEPAGE="http://www.ntop.org/products/pf_ring/"
SRC_URI="mirror://sourceforge/ntop/PF_RING/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
S="${WORKDIR}/${MY_P}"
MODULE_NAMES="pf_ring(net/pf_ring:${S}/kernel:${S}/kernel)"
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
# kernel_is -ge 3 10 && die "kernel 3.10.0 or higher is not supported by this version"
BUILD_PARAMS="-C ${KV_DIR} SUBDIRS=${S}/kernel EXTRA_CFLAGS='-I${S}/kernel'"
}
#src_prepare() {
# epatch "${FILESDIR}"/pf_ring-kernel3_9.patch
#}
src_install() {
linux-mod_src_install
insinto /usr/include/linux
doins kernel/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
}
pkg_postinst() {
einfo "Please see /usr/share/doc/${PF}/README.module_options for configuration options"
linux-mod_pkg_postinst
}

View file

@ -1,49 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit linux-mod linux-info eutils
MY_P="PF_RING-${PV}"
DESCRIPTION="A new type of network socket that improves packet capture speed."
HOMEPAGE="http://www.ntop.org/products/pf_ring/"
#SRC_URI="mirror://sourceforge/ntop/PF_RING/${MY_P}.tar.gz"
SRC_URI="https://github.com/ntop/PF_RING/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
S="${WORKDIR}/${MY_P}"
MODULE_NAMES="pf_ring(net/pf_ring:${S}/kernel:${S}/kernel)"
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
# kernel_is -ge 3 10 && die "kernel 3.10.0 or higher is not supported by this version"
BUILD_PARAMS="-C ${KV_DIR} SUBDIRS=${S}/kernel EXTRA_CFLAGS='-I${S}/kernel'"
}
src_install() {
linux-mod_src_install
insinto /usr/include/linux
doins kernel/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
}
pkg_postinst() {
einfo "Please see /usr/share/doc/${PF}/README.module_options for configuration options"
linux-mod_pkg_postinst
}

View file

@ -1,21 +1,20 @@
# Copyright 1999-2017 Gentoo Foundation
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
EAPI=7
inherit linux-mod linux-info eutils
inherit linux-mod linux-info
MY_P="PF_RING-${PV}"
DESCRIPTION="A new type of network socket that improves packet capture speed."
HOMEPAGE="http://www.ntop.org/products/pf_ring/"
DESCRIPTION="High-speed packet processing framework (kernel modules for)"
HOMEPAGE="http://www.ntop.org/products/packet-capture/pf_ring/"
SRC_URI="https://github.com/ntop/PF_RING/archive/${PV}.tar.gz -> ${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~arm ~arm64"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE=""
S="${WORKDIR}/${MY_P}"

View file

@ -0,0 +1,46 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit linux-mod linux-info
DESCRIPTION="High-speed packet processing framework (kernel modules for)"
HOMEPAGE="http://www.ntop.org/products/packet-capture/pf_ring/"
HASH_COMMIT="52df3a378c908682c290844344ae3b89904f8e01"
SRC_URI="https://github.com/ntop/PF_RING/archive/${HASH_COMMIT}.tar.gz -> PF_RING-${PV}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="virtual/linux-sources"
RDEPEND="${DEPEND}"
S="${WORKDIR}/PF_RING-${HASH_COMMIT}/kernel"
MODULE_NAMES="pf_ring(net/pf_ring:${S}:${S})"
CONFIG_CHECK="NET"
ERROR_NET="PF_RING requires CONFIG_NET=y set in the kernel."
BUILD_TARGETS="modules"
pkg_setup() {
linux-mod_pkg_setup
BUILD_PARAMS="-C ${KV_DIR} M=${S}"
}
src_prepare() {
eapply -p2 "${FILESDIR}/710.patch"
eapply_user
}
src_install() {
linux-mod_src_install
insinto /usr/include/linux
doins linux/pf_ring.h || die
}
pkg_postinst() {
linux-mod_pkg_postinst
}