diff options
Diffstat (limited to 'community/ntop')
-rw-r--r-- | community/ntop/PKGBUILD | 11 | ||||
-rw-r--r-- | community/ntop/ntop | 38 | ||||
-rw-r--r-- | community/ntop/ntop.conf.d | 5 |
3 files changed, 2 insertions, 52 deletions
diff --git a/community/ntop/PKGBUILD b/community/ntop/PKGBUILD index cd2b88464..c30bc8a73 100644 --- a/community/ntop/PKGBUILD +++ b/community/ntop/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 81126 2012-12-12 00:49:38Z eric $ +# $Id: PKGBUILD 92109 2013-05-31 15:39:41Z foutrelis $ # Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de> # Contributor: Douglas Soares de Andrade <douglas@archlinux.org> pkgname=ntop pkgver=5.0.1 -pkgrel=2 +pkgrel=3 pkgdesc='A network traffic probe that shows the network usage.' arch=('i686' 'x86_64' 'mips64el') url='http://www.ntop.org/' @@ -14,12 +14,8 @@ makedepends=('subversion' 'wget' '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' 'ntop.service') md5sums=('01710b6925a8a5ffe1a41b8b512ebd69' - '7b0d7bb57432e768ff387e9f7236f87c' - '6a9371de1dcf31d8ef13a4cf349c02b3' '0e149d20f881600e8387d850ac268483') build() { @@ -37,9 +33,6 @@ package() { install -dm0755 -o nobody -g nobody "${pkgdir}/var/lib/ntop" install -dm0755 -o nobody -g nobody "${pkgdir}/var/lib/ntop/rrd" - install -Dm0755 "${srcdir}/ntop" "${pkgdir}/etc/rc.d/ntop" - install -Dm0644 "${srcdir}/ntop.conf.d" "${pkgdir}/etc/conf.d/ntop" - for _f in "${pkgdir}/usr/lib/ntop/plugins/"*.so; do _plug="$(basename ${_f})" ln -sf "../../lib${_plug}" "${_f}" diff --git a/community/ntop/ntop b/community/ntop/ntop deleted file mode 100644 index 2f0dbcbdd..000000000 --- a/community/ntop/ntop +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash - -. /etc/rc.conf -. /etc/rc.d/functions - -# source application-specific settings -[ -f /etc/conf.d/ntop ] && . /etc/conf.d/ntop - -case "$1" in - start) - stat_busy "Starting ntop daemon" - /usr/bin/ntop -d ${NTOP_ARGS} 2>&1 >> ${NTOP_LOG} - if [ $? -gt 0 ]; then - stat_fail - else - add_daemon ntop - stat_done - fi - ;; - stop) - stat_busy "Stopping ntop daemon" - killall /usr/bin/ntop &> /dev/null - if [ $? -gt 0 ]; then - stat_fail - else - rm_daemon ntop - stat_done - fi - ;; - restart) - $0 stop - sleep 1 - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" -esac -exit 0 diff --git a/community/ntop/ntop.conf.d b/community/ntop/ntop.conf.d deleted file mode 100644 index 28e2a3166..000000000 --- a/community/ntop/ntop.conf.d +++ /dev/null @@ -1,5 +0,0 @@ -# Parameters to be passed to ntop. -NTOP_ARGS="-i eth0 -w 3000" - -# Location of the log file. -NTOP_LOG="/var/log/ntop.log" |