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" LICENSE="BSD-2"
KEYWORDS="" KEYWORDS=""
IUSE="+as-stat-gui +ip2as" IUSE="+as-stats-gui +ip2as"
DEPEND=" 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-lang/php:*[sqlite]
dev-perl/DBD-SQLite dev-perl/DBD-SQLite
dev-perl/File-Find-Rule dev-perl/File-Find-Rule
@ -27,6 +29,13 @@ DEPEND="
RDEPEND="${DEPEND}" RDEPEND="${DEPEND}"
BDEPEND="" BDEPEND=""
src_compile() {
if use as-stats-gui; then
rm -rf www
ln -s /usr/share/as-stats-gui www
fi
}
src_install() { src_install() {
webapp_src_preinst webapp_src_preinst
@ -36,9 +45,5 @@ src_install() {
insinto "${MY_HTDOCSDIR}/" insinto "${MY_HTDOCSDIR}/"
doins -r . doins -r .
use as-stat-gui && \
rm -rf www && \
ln -s "${PREFIX}"/usr/share/as-stat-gui www
webapp_src_install webapp_src_install
} }

View file

@ -6,7 +6,7 @@
<email>alarig@swordarmor.fr</email> <email>alarig@swordarmor.fr</email>
</maintainer> </maintainer>
<use> <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> <flag name="ip2as">Use the perl module ip2as.pm</flag>
</use> </use>
</pkgmetadata> </pkgmetadata>