[arch-commits] Commit in ntop/trunk (PKGBUILD ntop.confd ntop.install)
Eric Belanger
eric at archlinux.org
Sun Aug 3 02:24:35 UTC 2008
Date: Saturday, August 2, 2008 @ 22:24:34
Author: eric
Revision: 7568
upgpkg: ntop 3.3.6.svn3582-1
upstream update, corrected description, added post_install message and fixed default config (close FS#8221), disabled SMP build
Added:
ntop/trunk/ntop.install
Modified:
ntop/trunk/PKGBUILD
ntop/trunk/ntop.confd
--------------+
PKGBUILD | 30 +++++++++++++++++-------------
ntop.confd | 2 +-
ntop.install | 4 ++++
3 files changed, 22 insertions(+), 14 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2008-08-03 02:17:23 UTC (rev 7567)
+++ PKGBUILD 2008-08-03 02:24:34 UTC (rev 7568)
@@ -2,25 +2,29 @@
# Maintainer: Aaron Griffin <aaron at archlinux.org>
pkgname=ntop
-pkgver=3.3
-pkgrel=3.1
-pkgdesc="A network traffic probe that shows the network usage, similar to what the popular top Unix command does"
-arch=(i686 x86_64)
+pkgver=3.3.6.svn3582
+pkgrel=1
+pkgdesc="A network traffic probe that shows the network usage"
+arch=('i686' 'x86_64')
license=('GPL')
url="http://www.ntop.org"
depends=('libpcap>=0.9.8' 'gd' 'glib' 'libxml2' 'openssl' 'gdbm' 'rrdtool' 'pcre')
-source=(http://downloads.sourceforge.net/sourceforge/ntop/ntop-$pkgver.tar.gz
- ntop.confd ntop.rcd)
-options=(!libtool)
+options=('!libtool' '!makeflags')
+install=ntop.install
+# Switching to svn snapshot as the stable 3.3.6 release don't build with perl 5.10.0
+#source=(http://downloads.sourceforge.net/sourceforge/ntop/ntop-$pkgver.tar.gz ntop.confd ntop.rcd)
+source=(ftp://ftp.archlinux.org/other/ntop/${pkgname}-${pkgver}.tar.gz ntop.confd ntop.rcd)
+md5sums=('f72a5c316c02dbf3b2ef4eb54bd86cc1' 'b4ea63012f94c2988e767e78ac16a309'\
+ '76acde24cc5f428ff862d7c0815feb14')
build() {
- cd $startdir/src/$pkgname-$pkgver
+ cd ${srcdir}/${pkgname}
./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
- --disable-snmp
+ --disable-snmp || return 1
make || return 1
- make DESTDIR=$startdir/pkg install-recursive
- install -d -m755 --owner=nobody --group=nobody $startdir/pkg/var/ntop
+ make DESTDIR=${pkgdir} install-recursive || return 1
+ install -d -m755 --owner=nobody --group=nobody ${pkgdir}/var/ntop || return 1
- install -D -m755 $startdir/src/ntop.rcd $startdir/pkg/etc/rc.d/ntop
- install -D -m644 $startdir/src/ntop.confd $startdir/pkg/etc/conf.d/ntop
+ install -D -m755 ${srcdir}/ntop.rcd ${pkgdir}/etc/rc.d/ntop || return 1
+ install -D -m644 ${srcdir}/ntop.confd ${pkgdir}/etc/conf.d/ntop || return 1
}
Modified: ntop.confd
===================================================================
--- ntop.confd 2008-08-03 02:17:23 UTC (rev 7567)
+++ ntop.confd 2008-08-03 02:24:34 UTC (rev 7568)
@@ -8,7 +8,7 @@
# -i -- comma separated list of interfaces to monitor
# -w -- port to listen on (default 3000)
#
-NTOP_ARGS="-i eth1 -w 3000"
+NTOP_ARGS="-i eth0 -w 3000"
#
# Log file for ntop
Added: ntop.install
===================================================================
--- ntop.install (rev 0)
+++ ntop.install 2008-08-03 02:24:34 UTC (rev 7568)
@@ -0,0 +1,4 @@
+post_install() {
+ echo "==> Before running the daemon script for the first time, you need to run ntop as the root user to set an administrator password.
+==> If you attempt to run ntop as a daemon without setting a password, a FATAL ERROR message is generated and ntop stops."
+}
More information about the arch-commits
mailing list