From b397cba419f9a08528d37de262e7bc42bd474231 Mon Sep 17 00:00:00 2001 From: Alarig Le Lay Date: Thu, 21 May 2020 19:07:41 +0200 Subject: [PATCH] net-analyzer/AS-Stats: Package-Manager: Portage-2.3.99, Repoman-2.3.22 --- net-analyzer/AS-Stats/AS-Stats-9999.ebuild | 17 +++++++++++------ net-analyzer/AS-Stats/metadata.xml | 2 +- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/net-analyzer/AS-Stats/AS-Stats-9999.ebuild b/net-analyzer/AS-Stats/AS-Stats-9999.ebuild index d50a452..61a8c7f 100644 --- a/net-analyzer/AS-Stats/AS-Stats-9999.ebuild +++ b/net-analyzer/AS-Stats/AS-Stats-9999.ebuild @@ -11,10 +11,12 @@ EGIT_REPO_URI="https://github.com/manuelkasper/AS-Stats.git" LICENSE="BSD-2" KEYWORDS="" -IUSE="+as-stat-gui +ip2as" +IUSE="+as-stats-gui +ip2as" DEPEND=" - as-stat-gui? ( www-misc/as-stats-gui ) + acct-group/AS-Stats + acct-user/AS-Stats + as-stats-gui? ( www-misc/as-stats-gui ) dev-lang/php:*[sqlite] dev-perl/DBD-SQLite dev-perl/File-Find-Rule @@ -27,6 +29,13 @@ DEPEND=" RDEPEND="${DEPEND}" BDEPEND="" +src_compile() { + if use as-stats-gui; then + rm -rf www + ln -s /usr/share/as-stats-gui www + fi +} + src_install() { webapp_src_preinst @@ -36,9 +45,5 @@ src_install() { insinto "${MY_HTDOCSDIR}/" doins -r . - use as-stat-gui && \ - rm -rf www && \ - ln -s "${PREFIX}"/usr/share/as-stat-gui www - webapp_src_install } diff --git a/net-analyzer/AS-Stats/metadata.xml b/net-analyzer/AS-Stats/metadata.xml index ff4a2cc..7b1499d 100644 --- a/net-analyzer/AS-Stats/metadata.xml +++ b/net-analyzer/AS-Stats/metadata.xml @@ -6,7 +6,7 @@ alarig@swordarmor.fr - Use the improved webUI + Use the improved webUI Use the perl module ip2as.pm