summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlawek Lis <slis@gentoo.org>2015-02-03 06:40:01 +0000
committerSlawek Lis <slis@gentoo.org>2015-02-03 06:40:01 +0000
commit3aba562267a3408006ca32069cb63a1783ba7288 (patch)
tree52c40dfb293f779ee2a858043c24fd2aebf29f21 /net-analyzer/ntopng
parentVersion bump (diff)
downloadgentoo-2-3aba562267a3408006ca32069cb63a1783ba7288.tar.gz
gentoo-2-3aba562267a3408006ca32069cb63a1783ba7288.tar.bz2
gentoo-2-3aba562267a3408006ca32069cb63a1783ba7288.zip
added ntopng, #475960
(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 0x55265D89)
Diffstat (limited to 'net-analyzer/ntopng')
-rw-r--r--net-analyzer/ntopng/ChangeLog9
-rw-r--r--net-analyzer/ntopng/Manifest5
-rw-r--r--net-analyzer/ntopng/files/ntopng.conf.d3
-rw-r--r--net-analyzer/ntopng/files/ntopng.init.d20
-rw-r--r--net-analyzer/ntopng/metadata.xml7
-rw-r--r--net-analyzer/ntopng/ntopng-1.2.1.ebuild51
6 files changed, 95 insertions, 0 deletions
diff --git a/net-analyzer/ntopng/ChangeLog b/net-analyzer/ntopng/ChangeLog
new file mode 100644
index 000000000000..0adb37f9178f
--- /dev/null
+++ b/net-analyzer/ntopng/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for net-analyzer/ntopng
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ntopng/ChangeLog,v 1.1 2015/02/03 06:40:01 slis Exp $
+
+*ntopng-1.2.1 (03 Feb 2015)
+
+ 03 Feb 2015; Sławek Lis <slis@gentoo.org> +files/ntopng.conf.d,
+ +files/ntopng.init.d, +metadata.xml, +ntopng-1.2.1.ebuild:
+ added ntopng, #475960
diff --git a/net-analyzer/ntopng/Manifest b/net-analyzer/ntopng/Manifest
new file mode 100644
index 000000000000..3ed6ed8a1c18
--- /dev/null
+++ b/net-analyzer/ntopng/Manifest
@@ -0,0 +1,5 @@
+AUX ntopng.conf.d 117 SHA256 dcd657cfa0a4b5d9708e67fb6190448fe27a5e598f0b10564f2d812110a13b42 SHA512 bb66d11245ce099f9e09f97d830da60df910682242db0c5c7d17bcd800e84cf3bce6288fb75fc3a8f3e214a580dc0d076f7f69aa924d9ad3e4c8bff093252061 WHIRLPOOL 7dac08122c9b33db14914be6d3a26ce4eac33a41b2738112b470d22abdab1549c5515698f71102cfd0399717b6af9964808dbaf29928430b210dbff6b65e738f
+AUX ntopng.init.d 561 SHA256 e5c210d8c3f24fc3efa181df9e82dddc5954ef10566a89af3c18b4aa6d9920a8 SHA512 110beb2e18a33cbe2214aaf618cc7b2349d5425295a9de8f19639cebc47edd91282a87d1961adf3427b168bf9f9494cb7d52bd400c9fab0e44738d116654f8a7 WHIRLPOOL b6557b40dbc1eb7494c11058822bf5dd4573f0a2f65ab5940c1421d7d4014185b7a1269349335b2ec974f61874b727b750e2e9c05270249fbf28c68524202eda
+DIST ntopng-1.2.1.tgz 9381092 SHA256 9b98114358d350caad2dcdbacceb895288f958dbbbfddf21a23b921d1a1b68b5 SHA512 816d63807fc40bcd1851fe5969b4a7d47540052c696f227b26dd38f1621bea5c48bb25a1115bdae3ec4c529d9f291d3d615a760081a90d937154a6a487194ca5 WHIRLPOOL 672fbf53108691fa0b0154ea21240445474e2e89d75004d4cd455ab2f8b5a62c5d1386670ab8ab9e6bd0304e9fe89c29a380db6d7959b4df6474e55f69892b3f
+EBUILD ntopng-1.2.1.ebuild 963 SHA256 d8489cc671f607b0eae52a6a5b527b53aa9d55cf91dcbabf2de2dfbb29c4f1be SHA512 410cb5f64f3b5aa8ee4a9abd3674cdb3f9feb6d0d31741029c124fd37c5a228e6888a31e184ad204d65ba2833202b6a8a8d54a5dd08b0ad03836a7c0b3dda240 WHIRLPOOL 37beeec623da040473db8707528e7a7008cb33e499397f098c222afd64cd3c8da5dcd4c285dc21f9d13881219041c400dcf0b4dee27d58a0e57899b9ffedd9fd
+MISC metadata.xml 205 SHA256 132e3db1188fcdf8aa6467bde8677e24fc63015666de6104a656a5b074932454 SHA512 e53c51c47b6f2ba5302d5fe6ee9524fe49c69d2b03d66aa0a3054185c7c0a83dedeec75ea15424afe22f1423d72c5bbc1c1e07c6bdbdd1912d8eb8e046a4ef58 WHIRLPOOL 5f4c6dfd2f9dae15971877f2eb53c1d9f6196a42dc62b2d95ffd2060f119d7e0794541b3d8ca565f9ca48479325d19864f74a85289c83d5a5e2396f9144d161c
diff --git a/net-analyzer/ntopng/files/ntopng.conf.d b/net-analyzer/ntopng/files/ntopng.conf.d
new file mode 100644
index 000000000000..b53f5d4ed777
--- /dev/null
+++ b/net-analyzer/ntopng/files/ntopng.conf.d
@@ -0,0 +1,3 @@
+NTOPNG_OPTS="-i eth0"
+NTOPNG_OPTS="${NTOPNG_OPTS} -m 192.168.0.0/16"
+NTOPNG_OPTS="${NTOPNG_OPTS} -d /var/lib/ntopng"
diff --git a/net-analyzer/ntopng/files/ntopng.init.d b/net-analyzer/ntopng/files/ntopng.init.d
new file mode 100644
index 000000000000..8a236696250b
--- /dev/null
+++ b/net-analyzer/ntopng/files/ntopng.init.d
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ntopng/files/ntopng.init.d,v 1.1 2015/02/03 06:40:01 slis Exp $
+
+depend() {
+ need net redis
+}
+
+start() {
+ ebegin "Starting ntopng"
+ start-stop-daemon --start --exec /usr/bin/ntopng --pidfile /var/run/ntopng.pid --make-pidfile --background -e LUA_PATH='/usr/share/ntopng/scripts/lua/modules/?.lua' -- --user ntopng ${NTOPNG_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ntopng"
+ start-stop-daemon --stop --exec /usr/bin/ntopng --pidfile /var/run/ntopng.pid
+ eend $?
+}
diff --git a/net-analyzer/ntopng/metadata.xml b/net-analyzer/ntopng/metadata.xml
new file mode 100644
index 000000000000..1847f17d2266
--- /dev/null
+++ b/net-analyzer/ntopng/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>slis@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-analyzer/ntopng/ntopng-1.2.1.ebuild b/net-analyzer/ntopng/ntopng-1.2.1.ebuild
new file mode 100644
index 000000000000..2a256633be0d
--- /dev/null
+++ b/net-analyzer/ntopng/ntopng-1.2.1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ntopng/ntopng-1.2.1.ebuild,v 1.1 2015/02/03 06:40:01 slis Exp $
+
+EAPI=5
+inherit autotools user
+
+DESCRIPTION="Network traffic analyzer with web interface"
+HOMEPAGE="http://www.ntop.org/"
+SRC_URI="mirror://sourceforge/ntop/${PN}/${P}.tgz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-db/sqlite:3
+ dev-libs/geoip
+ dev-libs/glib"
+RDEPEND="${DEPEND}
+ dev-db/redis"
+
+src_prepare() {
+ eautoreconf
+}
+
+src_install() {
+ SHARE_NTOPNG_DIR="${EPREFIX}/usr/share/${PN}"
+ dodir ${SHARE_NTOPNG_DIR}
+ insinto ${SHARE_NTOPNG_DIR}
+ doins -r httpdocs
+ doins -r scripts
+
+ exeinto /usr/bin
+ doexe ${PN}
+ doman ${PN}.8
+
+ newinitd "${FILESDIR}/ntopng.init.d" ntopng
+ newconfd "${FILESDIR}/ntopng.conf.d" ntopng
+
+ dodir "/var/lib/ntopng"
+ fowners ntopng "${EPREFIX}/var/lib/ntopng"
+}
+
+pkg_setup() {
+ enewuser ntopng
+}
+
+pkg_postinst() {
+ elog "ntopng default creadential are user='admin' password='admin'"
+}