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