blob: a4ad1265ea8f934b077f21d64d0905ada2cf7158 (
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
34
|
# Maintainer: Can Celasun <can[at]dcc[dot]im>
pkgname=netsniff-ng-git
_gitname=netsniff-ng
pkgver=v0.6.9.6.gef302b8e
pkgrel=1
pkgdesc='High performance Linux network sniffer for packet inspection (git version).'
arch=('x86_64')
url='http://netsniff-ng.org/'
license=('GPL2')
provides=('netsniff-ng')
conflicts=('netsniff-ng')
depends=('glibc' 'ncurses' 'libncursesw.so' 'geoip' 'zlib' 'libnetfilter_conntrack'
'libpcap' 'libpcap.so' 'liburcu' 'libnl' 'libcli' 'libcli.so' 'libnet' 'libsodium')
makedepends=('cmake' 'flex' 'bison')
source=('git+https://github.com/netsniff-ng/netsniff-ng.git')
sha512sums=('SKIP')
pkgver() {
cd $_gitname
git describe --always | sed 's|-|.|g'
}
build() {
cd ${_gitname}
NACL_INC_DIR=/usr/include/sodium
NACL_LIB=sodium
./configure \
--prefix=/usr
make all Q= CFLAGS="${CFLAGS} ${CPPFLAGS}"
}
package() {
cd ${_gitname}
make PREFIX=/usr DESTDIR="${pkgdir}" SBINDIR=/usr/bin install_all -j1
}
|