summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 779b8461d24130e66d62c40b0f649947e4f0196e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: Tony Lambiris <tony@criticalstack.com>
pkgname=pfring-kmod-dev-git
pkgver=v6.4.0.r614.g9d41e4a
_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
}