blob: 9881018a7fb77a0b36e6720512526a389d355be6 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Maintainer: jackos2500 <jackos1998 at gmail dot com>
pkgname=ntopng-git
_pkgname=ntopng
pkgver=3.0.r307.gc4789741
pkgrel=1
pkgdesc='The next generation version of the original ntop, a network traffic probe that shows the network usage'
arch=('x86_64' 'i686' 'armv7h')
url='http://www.ntop.org/'
license=('GPL3')
depends=('redis' 'geoip' 'libmariadbclient' 'json-c')
makedepends=('git' 'glib2' 'automake' 'libtool' 'geoip' 'libpcap' 'wget' 'libxml2' 'sqlite' 'curl' 'libmariadbclient')
provides=('ntopng')
conflicts=('ntopng')
source=("git+https://github.com/ntop/nDPI" "git+https://github.com/ntop/ntopng" "ntopng.service" "ntopng.conf")
sha256sums=('SKIP'
'SKIP'
'f2269843460307ef58037fa1a194c26650ced0f1d194fb9af6817917b109fe8c'
'8ec08499b1783c3e933429a3a9a4d0d32fb903bbd0b7c3fef82f0233748e3737')
pkgver() {
cd "$srcdir/$_pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/nDPI"
./autogen.sh
make
cd "$srcdir/$_pkgname"
./autogen.sh
./configure --prefix=/usr
make geoip
make
}
package() {
cd "$srcdir/$_pkgname"
make DESTDIR="$pkgdir" install
mv $pkgdir/usr/man $pkgdir/usr/share/
mkdir -p $pkgdir/usr/lib/systemd/system
install -m644 "$srcdir/ntopng.service" "$pkgdir/usr/lib/systemd/system"
mkdir -p $pkgdir/etc
install -m644 "$srcdir/ntopng.conf" "$pkgdir/etc"
}
|