diff options
Diffstat (limited to 'main/ntop/APKBUILD')
-rw-r--r-- | main/ntop/APKBUILD | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/main/ntop/APKBUILD b/main/ntop/APKBUILD new file mode 100644 index 0000000000..caec386033 --- /dev/null +++ b/main/ntop/APKBUILD @@ -0,0 +1,55 @@ +# Contributor: +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=ntop +pkgver=4.0.3 +pkgrel=2 +pkgdesc="Network traffic probe" +url="http://www.ntop.org" +arch="all" +license="GPL" +depends= +makedepends="autoconf automake freetype-dev gdbm-dev geoip-dev libart-lgpl-dev + libevent-dev libpcap-dev libpng-dev libtool libxml2-dev lua-dev + openssl-dev python-dev rrdtool-dev wget zlib-dev" +install="$pkgname.post-install" +subpackages="$pkgname-dev $pkgname-doc" +source="http://downloads.sourceforge.net/project/$pkgname/$pkgname/Stable/$pkgname-$pkgver.tgz + ntop.initd + ntop.confd + ntop-update-geoip-db" + +_builddir="$srcdir"/$pkgname-$pkgver + +prepare() { + cd "$_builddir" + return 0 +} + +build() { + cd "$_builddir" + ./autogen.sh --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --disable-snmp + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm "$pkgdir"/usr/lib/*.la + + 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 + mkdir -p $pkgdir/var/lib/ntop +} + +md5sums="f064393a2090e5bda102cd49c2707789 ntop-4.0.3.tgz +7fd4edf07305e0f52867256c946a5747 ntop.initd +1303915a8435560acf27748ea0cea484 ntop.confd +080de490aeed421775e6f2472d86cb94 ntop-update-geoip-db" |