summaryrefslogtreecommitdiff
path: root/community/ntop
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-08-19 00:04:07 +0000
committerroot <root@rshg054.dnsready.net>2012-08-19 00:04:07 +0000
commitc512f9eb344575ac6bce0b13729c05e1760cd094 (patch)
tree8d60a9bd559a941bba52a67170900c159d2024eb /community/ntop
parent948da5eabcbf8d74270e661d0730ba1c203913f5 (diff)
Sun Aug 19 00:04:07 UTC 2012
Diffstat (limited to 'community/ntop')
-rw-r--r--community/ntop/PKGBUILD23
-rw-r--r--community/ntop/ntop.service14
2 files changed, 30 insertions, 7 deletions
diff --git a/community/ntop/PKGBUILD b/community/ntop/PKGBUILD
index a44a800cd..98584e1ce 100644
--- a/community/ntop/PKGBUILD
+++ b/community/ntop/PKGBUILD
@@ -1,28 +1,35 @@
-# $Id: PKGBUILD 59714 2011-11-29 13:35:19Z stephane $
+# $Id: PKGBUILD 75281 2012-08-17 18:35:49Z lfleischer $
# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
# Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
pkgname=ntop
-pkgver=4.1.0
+pkgver=5.0
pkgrel=2
pkgdesc='A network traffic probe that shows the network usage.'
arch=('i686' 'x86_64')
url='http://www.ntop.org/'
license=('GPL')
-depends=('libevent' 'libpcap' 'gd' 'glib' 'libxml2' 'openssl' 'rrdtool' 'pcre' 'geoip' 'lua')
+depends=('libevent' 'libpcap' 'gd' 'glibc' 'libxml2' 'openssl' 'rrdtool' 'pcre' 'geoip' 'lua')
+makedepends=('subversion' 'ca-certificates')
options=('!libtool' '!makeflags')
install='ntop.install'
source=("http://sourceforge.net/projects/${pkgname}/files/${pkgname}/Stable/${pkgname}-${pkgver}.tar.gz"
'ntop'
- 'ntop.conf.d')
-md5sums=('116df99cf548431393991ea15443c52f'
+ 'ntop.conf.d'
+ 'ntop.service')
+md5sums=('e4115a6609fd2def2dce177772f9a789'
'7b0d7bb57432e768ff387e9f7236f87c'
- '6a9371de1dcf31d8ef13a4cf349c02b3')
+ '6a9371de1dcf31d8ef13a4cf349c02b3'
+ 'bcb2bcfb4b573babdee7d9321591e3e3')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
- ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib --disable-snmp
+ echo 't' | svn export -r 5614 'https://svn.ntop.org/svn/ntop/trunk/nDPI/'
+ tar -czvf nDPI-svn5614.tar.gz nDPI
+
+ ./autogen.sh --noconfig
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib --disable-snmp
make
}
@@ -41,4 +48,6 @@ package() {
_plug="$(basename ${_f})"
ln -sf "../../lib${_plug}" "${_f}"
done
+
+ install -Dm0644 "${srcdir}/ntop.service" "${pkgdir}/usr/lib/systemd/system/ntop.service"
}
diff --git a/community/ntop/ntop.service b/community/ntop/ntop.service
new file mode 100644
index 000000000..20a9c66f9
--- /dev/null
+++ b/community/ntop/ntop.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=A network traffic probe similar to the UNIX top command
+Requires=network.target
+ConditionPathExists=/var/lib/ntop/ntop_pw.db
+After=syslog.target network.target
+
+[Service]
+Environment=LANG=C
+ExecStart=/usr/sbin/ntop -i eth0 -w 3000
+Type=simple
+StandardError=syslog
+
+[Install]
+WantedBy=multi-user.target