net-analyzer/AS-Stats: New ebuild
Package-Manager: Portage-2.3.99, Repoman-2.3.22
This commit is contained in:
parent
166505d275
commit
02e41ed021
44
net-analyzer/AS-Stats/AS-Stats-9999.ebuild
Normal file
44
net-analyzer/AS-Stats/AS-Stats-9999.ebuild
Normal 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
|
||||
}
|
12
net-analyzer/AS-Stats/metadata.xml
Normal file
12
net-analyzer/AS-Stats/metadata.xml
Normal 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>
|
Loading…
Reference in a new issue