# Maintainer: Leonardo Arena pkgname=ntop pkgver=5.0.1 pkgrel=12 pkgdesc="Network traffic probe" url="http://www.ntop.org" arch="all" license="GPL" depends= pkgusers="ntop" pkggroups="ntop" makedepends="autoconf automake freetype-dev gdbm-dev geoip-dev libart-lgpl-dev libevent-dev libpcap-dev libpng-dev libtool libxml2-dev lua-dev libressl-dev python2-dev rrdtool-dev subversion wget zlib-dev linux-headers" install="$pkgname.pre-install" subpackages="$pkgname-dev $pkgname-doc" source="https://sourceforge.net/projects/$pkgname/files/$pkgname/Stable/$pkgname-$pkgver.tar.gz include-sys-types.h.patch automake.patch ntop-rrdtool-1.6.0.patch ntop.initd ntop.confd ntop-update-geoip-db" builddir="$srcdir"/$pkgname-$pkgver build() { cd "$builddir" update_config_guess || return 1 ./autogen.sh --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var/lib \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --disable-snmp make || return 1 } package() { cd "$builddir" make DESTDIR="$pkgdir" install || return 1 install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname install -m755 -D "$srcdir"/ntop-update-geoip-db \ "$pkgdir"/usr/bin/ntop-update-geoip-db # ntop internal db dir install -d -o ntop -g ntop -m755 "$pkgdir"/var/lib/ntop chown -R ntop.ntop "$pkgdir"/usr/share/ntop } sha512sums="f52c40e6c00c8d2f46b68078c5f9aef8ed78670f92a0a81f66f2f44c71d41bc4c001b4550f19b71c546f7c07cbbed15e0aa1ee13873ac63a11678bf2b8483f2a ntop-5.0.1.tar.gz b67705152cd8723ba3e1c340ca55267134dddae04dd281fae262d07ce273a78d24bf40c297fe61ea7f70deb9cb7d59445e8a3ce360ed7810497e63052e1a9214 include-sys-types.h.patch ce284679f9ecf589139b6cfdba95a76df5205f5292a5ff88b7cdeb39fe01b4fef27fb097a6a594017aa015a2474fea6c5729917423398a911e1732329ec1504a automake.patch 3532acc6e54a1abdefeba42b3adb68cba1a0d1d2d6422e5b33fb9823b48481bb83696f097e65288c5811a6dd65ce20bff6d285d152776156b0690610d4026245 ntop-rrdtool-1.6.0.patch 22b61d88e1fc30106d07ee87701ff46b7f63f1ee2aa7bb5666d9cb5cb6251c583f793c80a5d799ac27fcb63650e7ecacb37e7992feb8aa8cbc2d326b36b05a8f ntop.initd 8693050cab03eeb29b59e0a7b173c7791625e8cd6bc33eaa5d74a50ab3ecf435577d7918626cfe3963a0d23d4522a737737b2b9fd8335df29784858a6191813d ntop.confd 7b5ae8dbd7d5d084c7278af1deb64a903b106663c3195df70acead3e8d7e14fbd996e69d5132c0ddac9147b3e70892c91695d834ab7b22fec2569efcd52df5f6 ntop-update-geoip-db"