added ntopng, #475960
authorSlawek Lis <slis@gentoo.org>
Tue, 3 Feb 2015 06:40:11 +0000 (06:40 +0000)
committerSlawek Lis <slis@gentoo.org>
Tue, 3 Feb 2015 06:40:11 +0000 (06:40 +0000)
Package-Manager: portage-2.2.15/cvs/Linux x86_64
Manifest-Sign-Key: 0x55265D89

net-analyzer/ntopng/Manifest
net-analyzer/ntopng/files/ntopng.conf.d [new file with mode: 0644]
net-analyzer/ntopng/files/ntopng.init.d [new file with mode: 0644]
net-analyzer/ntopng/metadata.xml [new file with mode: 0644]
net-analyzer/ntopng/ntopng-1.2.1.ebuild [new file with mode: 0644]

index 3ed6ed8a1c188de15628774d4265381a4854da17..b8987325928fe176868cc3cebab74d589ddfe353 100644 (file)
@@ -1,5 +1,20 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
 AUX ntopng.conf.d 117 SHA256 dcd657cfa0a4b5d9708e67fb6190448fe27a5e598f0b10564f2d812110a13b42 SHA512 bb66d11245ce099f9e09f97d830da60df910682242db0c5c7d17bcd800e84cf3bce6288fb75fc3a8f3e214a580dc0d076f7f69aa924d9ad3e4c8bff093252061 WHIRLPOOL 7dac08122c9b33db14914be6d3a26ce4eac33a41b2738112b470d22abdab1549c5515698f71102cfd0399717b6af9964808dbaf29928430b210dbff6b65e738f
-AUX ntopng.init.d 561 SHA256 e5c210d8c3f24fc3efa181df9e82dddc5954ef10566a89af3c18b4aa6d9920a8 SHA512 110beb2e18a33cbe2214aaf618cc7b2349d5425295a9de8f19639cebc47edd91282a87d1961adf3427b168bf9f9494cb7d52bd400c9fab0e44738d116654f8a7 WHIRLPOOL b6557b40dbc1eb7494c11058822bf5dd4573f0a2f65ab5940c1421d7d4014185b7a1269349335b2ec974f61874b727b750e2e9c05270249fbf28c68524202eda
+AUX ntopng.init.d 660 SHA256 e00998e517b51a31583800816c34306607194f1f19105d335e95c91186fa496f SHA512 08c30350f6cc4a68563108a1f1dc83e23f05a75a90f2dcf6aa7c89bb1df962b0f5fcfb0863a8de5b2fa621e45ded8f4e2be4ee7808787e210229150c8066f0f8 WHIRLPOOL 6969416784e065fab8085a7b2218a3e9703488b26c2ebcd9515b325d3188a0cdb7369e0f0d1f98358565de242dacd3ea9a2e9cdb82536f5434378aa120d23f2f
 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
+EBUILD ntopng-1.2.1.ebuild 1062 SHA256 8e75d48762fa3b645c455da4a72c092139b25cbd2bcb42f4e6076d0440aa5d7e SHA512 5b5abb0beeb714d98834df0a7cb68666d09a7f9ae20798ce1e6f9e50788ecae1d786a345303a3d543a0c433d5f3c6c69d58b5a97919ad340c9770c32c0ef08d8 WHIRLPOOL 503a8a527c8ddfdd50e373c41f2cf0793d077e33d1f8efab4de84452af2e41c51983ba0561b8f755379e28d7b3e9a88d5ee7a911e4570e5293d8e084c8581a30
+MISC ChangeLog 390 SHA256 b1a6bbc4b74f7b2ae785a2ccb678f63da428a14114c16a51bcc9e18c291cde40 SHA512 2bf1291dd4fd1b0647c935cf497f56fbcba5e777ed106b658ab044636f60b6a3fc75649dfcede93616be3446fa2eafd7c0da3d92d149f32ef540563f5e44d3f4 WHIRLPOOL 81b9b38f0c7901b24cc93cb8dedbeae7fa85117643a3e9d2f7a759b58bbc5c72872d74b255b44e637bf6852a44d266881b5e19fe824f8716352143bf9887429d
 MISC metadata.xml 205 SHA256 132e3db1188fcdf8aa6467bde8677e24fc63015666de6104a656a5b074932454 SHA512 e53c51c47b6f2ba5302d5fe6ee9524fe49c69d2b03d66aa0a3054185c7c0a83dedeec75ea15424afe22f1423d72c5bbc1c1e07c6bdbdd1912d8eb8e046a4ef58 WHIRLPOOL 5f4c6dfd2f9dae15971877f2eb53c1d9f6196a42dc62b2d95ffd2060f119d7e0794541b3d8ca565f9ca48479325d19864f74a85289c83d5a5e2396f9144d161c
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2
+
+iQEcBAEBCAAGBQJU0GyPAAoJEO1RxJ84ipLkkmcH/ibda/WD/pmsjgDWIwTktOwt
+/a3s1COTmudCW0CMwVyHeY7shT2onim/YeO5lj/VFBaJHYHvfon417KK2wUUB6/v
+x/7YBXew59qcuX/ciuyFOosAoktSntNul0gR+k3JFyZyH9/hvZejNCMIKGyWFYG/
+VZ85eKCwGO3QLr96tPyG85ZuZ3fgeC4zdy1y0ZlPIj8JVhJjhLBeZF8UltaajcLd
+QQTuIABjp6QZXacA00xYCHgJFIv9oK4/Efb2kAu0NRuHaNoOy/OPBGI/G63mxG0Z
+UeBgO5NQ/pPxacxkpYkG0VxuYLFvdWKRLCBbgVIrKBSURJTilyL1BAb+uH3CF5Y=
+=YxoP
+-----END PGP SIGNATURE-----
diff --git a/net-analyzer/ntopng/files/ntopng.conf.d b/net-analyzer/ntopng/files/ntopng.conf.d
new file mode 100644 (file)
index 0000000..b53f5d4
--- /dev/null
@@ -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 (file)
index 0000000..8a23669
--- /dev/null
@@ -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 (file)
index 0000000..1847f17
--- /dev/null
@@ -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 (file)
index 0000000..2a25663
--- /dev/null
@@ -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'"
+}