diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2019-01-02 10:06:06 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-01-02 10:06:06 +0000 |
commit | 7c6239b112238719c308c1640f9cf50fcf44a148 (patch) | |
tree | 211cd3a4cb82eaaaae51d3ba900f6cbff0952c2a /testing | |
parent | 8567007f74e878fb8abc7c43b0f887f4fda372b7 (diff) | |
download | aports-7c6239b112238719c308c1640f9cf50fcf44a148.tar.bz2 aports-7c6239b112238719c308c1640f9cf50fcf44a148.tar.xz |
testing/ntopng: move to unmaintained
Diffstat (limited to 'testing')
-rw-r--r-- | testing/ntopng/APKBUILD | 66 | ||||
-rw-r--r-- | testing/ntopng/ntopng-update-geoip-db | 25 | ||||
-rw-r--r-- | testing/ntopng/ntopng.confd | 8 | ||||
-rw-r--r-- | testing/ntopng/ntopng.initd | 26 | ||||
-rwxr-xr-x | testing/ntopng/ntopng.pre-install | 6 |
5 files changed, 0 insertions, 131 deletions
diff --git a/testing/ntopng/APKBUILD b/testing/ntopng/APKBUILD deleted file mode 100644 index 5a984c6ab4..0000000000 --- a/testing/ntopng/APKBUILD +++ /dev/null @@ -1,66 +0,0 @@ -# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> -pkgname=ntopng -pkgver=2.4 -pkgrel=4 -pkgdesc="ntop next-generation" -url="http://www.ntop.org" -# luajit is not available for disabled arches -arch="all !s390x" -license="GPL" -depends= -pkgusers="ntop" -pkggroups="ntop" -makedepends="autoconf automake curl-dev geoip-dev glib-dev hiredis-dev - libpcap-dev libtool libxml2-dev lua-dev luajit-dev lua-redis libressl-dev - paxmark rrdtool-dev sqlite-dev wget zeromq-dev zlib-dev - linux-headers mariadb-connector-c-dev" -install="$pkgname.pre-install" -#subpackages="$pkgname-doc" -source="https://downloads.sourceforge.net/project/ntop/$pkgname/$pkgname-$pkgver-stable.tar.gz - $pkgname.initd - $pkgname.confd - ntopng-update-geoip-db - - " - -_builddir="$srcdir"/$pkgname-$pkgver-stable - -prepare() { - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} - -build() { - cd "$_builddir" - ./autogen.sh - ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var/lib \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info - make all || return 1 -} - -package() { - cd "$_builddir" - make DESTDIR="$pkgdir" MAN_DIR="$pkgdir/usr/share" install || return 1 - - 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"/ntopng-update-geoip-db \ - "$pkgdir"/usr/bin/ntopng-update-geoip-db - # ntop internal db dir - install -d -o ntop -g ntop -m755 "$pkgdir"/var/lib/ntopng/geoip || return 1 - install -d -o ntop -g ntop -m755 "$pkgdir"/var/run/ntopng || return 1 - # need to disable PAX mprotect protection for luajit - paxmark -m "$pkgdir"/usr/bin/$pkgname || return 1 -} - -sha512sums="515dd7889ae3aaf2482371bb2c55ab7300cf4207fe07f37029b7529bfb710379c19a54f58cf6df87e42454c0c99d15291af334adff676252301d9edd0acf3c7a ntopng-2.4-stable.tar.gz -b7924953953470971e67e463260514c30a4a3038ecbb642aec1ad66d12b5af76bdda56c99de675a1fbb106664fa0e3779a4f35fdeedc94d65af486053b7650e1 ntopng.initd -bbe7a15e0aec59f12264f39bf33abb67a12b76adac3a6554fcf1e21849aea06fce1e0c0d9831836bd46105a5cc4b3eb780866934d8711386e1cb1218dbdbbe8b ntopng.confd -de509706c36e895159b4e57b5fe53f1fa8f32167416aad5fa391ac107f0e7e1a06fa5ce6d92816ef7cb13bf98bb74cb99fa482d03f77a6beb38eafe1d53d2deb ntopng-update-geoip-db" diff --git a/testing/ntopng/ntopng-update-geoip-db b/testing/ntopng/ntopng-update-geoip-db deleted file mode 100644 index 1ac05bc0e0..0000000000 --- a/testing/ntopng/ntopng-update-geoip-db +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -BASE_URL=http://geolite.maxmind.com/download/geoip/database - -echo "Updating NTOP GeoIP databases..." - -cd /usr/share/ntopng/geoip || exit - -for u in \ - asnum/GeoIPASNum.dat.gz \ - asnum/GeoIPASNumv6.dat.gz \ - GeoLiteCity.dat.gz \ - GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz; do - FILE_GZ=${u#*/} - FILE=${FILE_GZ%.gz} - wget -O ${FILE_GZ} ${BASE_URL}/${u} && - gunzip < ${FILE_GZ} > .${FILE} && - mv -f .${FILE} ${FILE} && - rm -f ${FILE_GZ} || - exit -done - -rc-service ntopng status && rc-service ntopng restart - -echo "NTOP GeoIP databases were successfully updated" diff --git a/testing/ntopng/ntopng.confd b/testing/ntopng/ntopng.confd deleted file mode 100644 index 4d11cffe8a..0000000000 --- a/testing/ntopng/ntopng.confd +++ /dev/null @@ -1,8 +0,0 @@ -### Default options for ntopng - -# pidfile="/var/run/ntopng/ntopng.pid" -# exec_user=ntop -# command_args="--daemon --data-dir /var/lib/ntopng --httpdocs-dir /usr/share/ntopng/httpdocs --pid $pidfile -U $exec_user" - -### Additional options here -NTOPNG_OPTS="" diff --git a/testing/ntopng/ntopng.initd b/testing/ntopng/ntopng.initd deleted file mode 100644 index c625b2ca46..0000000000 --- a/testing/ntopng/ntopng.initd +++ /dev/null @@ -1,26 +0,0 @@ -#!/sbin/openrc-run - -depend() { - need net - use redis -} - -command="/usr/bin/ntopng" -pidfile="/var/run/ntopng/ntopng.pid" -: ${exec_user:=ntop} -: ${command_args:="--daemon --data-dir /var/lib/ntopng --httpdocs-dir /usr/share/ntopng/httpdocs --pid $pidfile -U $exec_user $NTOPNG_OPTS"} - -checkconfig() { - if [ ! -e /usr/share/ntopng/httpdocs/geoip/GeoIPASNum.dat ] || \ - [ ! -e /usr/share/ntopng/httpdocs/geoip/GeoLiteCity.dat ]; then - eerror "You need download the GeoIP database" - eerror "ntopng-update-geoip-db" - return 1 - fi -} - -prestart() { - checkconfig || return 1 - eend $? -} - diff --git a/testing/ntopng/ntopng.pre-install b/testing/ntopng/ntopng.pre-install deleted file mode 100755 index 0fea81baa7..0000000000 --- a/testing/ntopng/ntopng.pre-install +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -addgroup -S ntop 2>/dev/null -adduser -S -D -H -h /var/lib/ntop -s /sbin/nologin -G ntop -g ntop ntop 2>/dev/null - -exit 0 |