net-analyzer/AS-Stats: New ebuild

Package-Manager: Portage-2.3.99, Repoman-2.3.22
This commit is contained in:
Alarig Le Lay 2020-05-21 14:46:02 +02:00
parent 166505d275
commit 02e41ed021
Signed by: alarig
GPG key ID: 7AFE62C6DF8BCDEC
2 changed files with 56 additions and 0 deletions

View file

@ -0,0 +1,44 @@
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit git-r3 webapp
DESCRIPTION="A simple tool to generate per-AS traffic graphs from NetFlow/sFlow records"
HOMEPAGE="https://github.com/manuelkasper/AS-Stats"
EGIT_REPO_URI="https://github.com/manuelkasper/AS-Stats.git"
LICENSE="BSD-2"
KEYWORDS=""
IUSE="+as-stat-gui +ip2as"
DEPEND="
as-stat-gui? ( www-misc/as-stats-gui )
dev-lang/php:*[sqlite]
dev-perl/DBD-SQLite
dev-perl/File-Find-Rule
dev-perl/JSON-XS
dev-perl/Net-Patricia
dev-perl/Net-sFlow
ip2as? ( dev-perl/ip2as )
net-analyzer/rrdtool[perl]
"
RDEPEND="${DEPEND}"
BDEPEND=""
src_install() {
webapp_src_preinst
dodoc README.md
rm -f README.md
insinto "${MY_HTDOCSDIR}/"
doins -r .
use as-stat-gui && \
rm -rf www && \
ln -s "${PREFIX}"/usr/share/as-stat-gui www
webapp_src_install
}

View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<name>Alarig Le Lay</name>
<email>alarig@swordarmor.fr</email>
</maintainer>
<use>
<flag name="as-stat-gui">Use the improved webUI</flag>
<flag name="ip2as">Use the perl module ip2as.pm</flag>
</use>
</pkgmetadata>