net-analyzer/AS-Stats:

Package-Manager: Portage-2.3.99, Repoman-2.3.22
This commit is contained in:
Alarig Le Lay 2020-05-21 19:07:41 +02:00
parent 8200be5848
commit b397cba419
Signed by: alarig
GPG key ID: 7AFE62C6DF8BCDEC
2 changed files with 12 additions and 7 deletions

View file

@ -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
}

View file

@ -6,7 +6,7 @@
<email>alarig@swordarmor.fr</email>
</maintainer>
<use>
<flag name="as-stat-gui">Use the improved webUI</flag>
<flag name="as-stats-gui">Use the improved webUI</flag>
<flag name="ip2as">Use the perl module ip2as.pm</flag>
</use>
</pkgmetadata>