summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Lambiris2016-09-29 16:34:10 -0400
committerTony Lambiris2016-09-29 16:34:10 -0400
commita04fd61e4c6a16180b20ae61f90905e88669e0ce (patch)
tree807f1524c7fdfdcb87378be017699585ca0fcc8b
downloadaur-a04fd61e4c6a16180b20ae61f90905e88669e0ce.tar.gz
pfring kernel module compiled against dev branch
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD33
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..96b708ff2f4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = pfring-kmod-dev-git
+ pkgdesc = High-speed packet processing framework (dev branch)
+ pkgver = v6.4.0.r192.g08749c2
+ pkgrel = 1
+ url = http://www.ntop.org
+ arch = x86_64
+ arch = i686
+ license = GPL
+ makedepends = linux-headers
+ makedepends = make
+ makedepends = binutils
+ makedepends = flex
+ makedepends = bison
+ makedepends = git
+ depends = numactl
+ provides = pfring-kmod
+ conflicts = pfring-kmod
+ source = git+https://github.com/ntop/PF_RING.git#branch=dev
+ md5sums = SKIP
+
+pkgname = pfring-kmod-dev-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..65b8999ce0a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Tony Lambiris <tony@criticalstack.com>
+pkgname=pfring-kmod-dev-git
+pkgver=v6.4.0.r192.g08749c2
+_pkgname=PF_RING
+pkgrel=1
+pkgdesc="High-speed packet processing framework (dev branch)"
+url="http://www.ntop.org"
+arch=('x86_64' 'i686')
+license=('GPL')
+depends=('numactl')
+makedepends=('linux-headers' 'make' 'binutils' 'flex' 'bison' 'git')
+conflicts=('pfring-kmod')
+provides=('pfring-kmod')
+source=("git+https://github.com/ntop/PF_RING.git#branch=dev")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$_pkgname"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "${srcdir}/${_pkgname}/kernel"
+ ./configure --prefix=/usr
+ sed -i "s/INSTDIR\ \:=\ \$(DESTDIR)/INSTDIR := \$(DESTDIR)\/usr/g" Makefile
+ make
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}/kernel"
+ mkdir -p ${pkgdir}/usr/include/linux
+ make DESTDIR="${pkgdir}" install
+}