aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2010-10-26 09:40:33 +0000
committerLeonardo Arena <rnalrd@gmail.com>2010-10-26 09:40:33 +0000
commit6d260f6fcc07a1b0ae6b34a0c07d1668fcf08556 (patch)
tree9af4cf760b25189dd9aac1119b9b02adbc98b09d /testing
parenteb4656448c5960be15d07fd4e6da8fc0899a6367 (diff)
downloadaports-6d260f6fcc07a1b0ae6b34a0c07d1668fcf08556.tar.bz2
aports-6d260f6fcc07a1b0ae6b34a0c07d1668fcf08556.tar.xz
testing/ntop: moved to main
Diffstat (limited to 'testing')
-rw-r--r--testing/ntop/APKBUILD52
-rw-r--r--testing/ntop/ntop-update-geoip-db21
-rw-r--r--testing/ntop/ntop.confd9
-rw-r--r--testing/ntop/ntop.initd30
-rwxr-xr-xtesting/ntop/ntop.post-install3
5 files changed, 0 insertions, 115 deletions
diff --git a/testing/ntop/APKBUILD b/testing/ntop/APKBUILD
deleted file mode 100644
index cfcee710d1..0000000000
--- a/testing/ntop/APKBUILD
+++ /dev/null
@@ -1,52 +0,0 @@
-# Contributor:
-# Maintainer: Leonardo Arena <rnalrd@gmail.com>
-pkgname=ntop
-pkgver=4.0
-pkgrel=1
-pkgdesc="Network traffic probe"
-url="http://www.ntop.org"
-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/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz
- ntop.initd
- ntop.confd
- ntop-update-geoip-db"
-
-_builddir="$srcdir"/$pkgname-$pkgver
-
-prepare() {
- cd "$_builddir"
- # apply patches here
-}
-
-build() {
- cd "$_builddir"
- ./autogen.sh --prefix=/usr \
- --sysconfdir=/etc \
- --mandir=/usr/share/man \
- --infodir=/usr/share/info \
- --disable-snmp
- make || return 1
-}
-
-package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install
-
- 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="c5fc7863d8ba08654ef7b4d88ff860f4 ntop-4.0.tar.gz
-7fd4edf07305e0f52867256c946a5747 ntop.initd
-1303915a8435560acf27748ea0cea484 ntop.confd
-080de490aeed421775e6f2472d86cb94 ntop-update-geoip-db"
diff --git a/testing/ntop/ntop-update-geoip-db b/testing/ntop/ntop-update-geoip-db
deleted file mode 100644
index 2bf3faaf68..0000000000
--- a/testing/ntop/ntop-update-geoip-db
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-
-BASE_URL=http://geolite.maxmind.com/download/geoip/database
-
-echo "Updating NTOP GeoIP databases..."
-
-cd /var/lib/ntop || exit
-
-for u in asnum/GeoIPASNum.dat.gz GeoLiteCity.dat.gz ; do
- FILE_GZ=${u#*/}
- FILE=${FILE_GZ%.gz}
- wget -nv -O ${FILE_GZ} ${BASE_URL}/${u} &&
- gunzip < ${FILE_GZ} > .${FILE} &&
- mv -f .${FILE} ${FILE} &&
- rm -f ${FILE_GZ} ||
- exit
-done
-
-/etc/init.d/ntop --quiet status && /etc/init.d/ntop restart
-
-echo "NTOP GeoIP databases were successfully updated"
diff --git a/testing/ntop/ntop.confd b/testing/ntop/ntop.confd
deleted file mode 100644
index 352a26fa9b..0000000000
--- a/testing/ntop/ntop.confd
+++ /dev/null
@@ -1,9 +0,0 @@
-# Config file for /etc/init.d/ntop
-
-# Set preferred options here
-#NTOP_OPTS="--http-server 3000 --https-server 0 --interface eth0"
-
-# suggestions from bug #136983 (use it in case you experience ntop hangs)
-#NTOP_OPTS="u ntop -P /var/lib/ntop --disable-schedyield --http-server 3000 --https-server 3001"
-
-NTOP_OPTS="-u ntop -P /var/lib/ntop"
diff --git a/testing/ntop/ntop.initd b/testing/ntop/ntop.initd
deleted file mode 100644
index ffc2923790..0000000000
--- a/testing/ntop/ntop.initd
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-depend() {
- need net
-}
-
-checkconfig() {
- if [ ! -e /var/lib/ntop/ntop_pw.db ]; then
- eerror "You need to set a password first by running"
- eerror "ntop --set-admin-password"
- return 1
- fi
-}
-
-start() {
- checkconfig || return 1
- ebegin "Starting ntop"
- export LC_ALL=C # apparently doesn't work with some locales (#191576 and #205382)
- export GDFONTPATH=/usr/share/fonts/corefonts # apparently the only font that works (#231705)
- start-stop-daemon --start --exec /usr/bin/ntop -- -d -L ${NTOP_OPTS}
- eend $?
-}
-
-stop() {
- ebegin "Stopping ntop"
- start-stop-daemon --stop --retry 30 --pidfile /var/run/ntop.pid
- eend $?
-}
diff --git a/testing/ntop/ntop.post-install b/testing/ntop/ntop.post-install
deleted file mode 100755
index ede8a22f3c..0000000000
--- a/testing/ntop/ntop.post-install
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-adduser -h /var/lib/ntop -s /bin/false -S -H -D ntop &>/dev/null
-chown ntop /var/lib/ntop