[www-misc/awstats] bump

This commit is contained in:
2025-10-27 20:42:07 +01:00
parent bb3c564868
commit 66adfd38a0
4 changed files with 28 additions and 43 deletions

View File

@@ -1 +1 @@
DIST awstats-7.9.tar.gz 2948602 BLAKE2B becee5c19ca761ff306abe10906af84e53cb04f774721194df17b2d88326d7dbfdc19da29cf7c510384fc15026be7b29cdcd66b976afead5e1dda3ab59b73ce6 SHA512 1270c7486a5558a54abc7b43cd92ffcea356ff4c00271bb824758ef4f5736eff559dd38eb7bc7bff8d45efa970a60ddcc5771762a3c3a32f003b0e39c55814d9
DIST awstats-8.0.tar.gz 2946651 BLAKE2B 974f8aa1ef07169829631844c5f7c33f8ee18b22a40c7331a0a6baefc1a53e1b40a3406f5612b4db95619e0010e7c1cf44bb9309921f56a68de5c5378678aec4 SHA512 91b975c4a71f6fb4117bdb8914ad7be30b2dbafd8cf3fb9198ceca52b6a801f5a42b8b2d6239e7228782cbb97afd056eeda4eac8cccd8d4e673278d90932ce68

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -6,31 +6,32 @@ EAPI=8
MY_P=${PN}-${PV%_p*}
DESCRIPTION="AWStats is short for Advanced Web Statistics"
HOMEPAGE="https://www.awstats.org/"
HOMEPAGE="https://www.awstats.org/ https://github.com/eldy/AWStats"
SRC_URI="https://www.awstats.org/files/${P}.tar.gz"
S=${WORKDIR}/${MY_P}
LICENSE="GPL-3"
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86"
IUSE="geoip ipv6"
SLOT="0"
KEYWORDS="~amd64 ~riscv ~x86"
IUSE="geoip2 ipv6"
RDEPEND="
>=dev-lang/perl-5.6.1
dev-perl/URI
virtual/perl-Time-Local
geoip? (
dev-perl/Geo-IP
geoip2? (
dev-perl/GeoIP2
)
ipv6? (
dev-perl/Net-DNS
dev-perl/Net-IP
)
"
DEPEND=""
HTML_DOCS="docs/"
DOCS="README.md"
src_prepare() {
eapply "${FILESDIR}"/${PN}-7.1-gentoo.diff
default
# change default installation directory
find . -type f -exec sed \
@@ -49,12 +50,14 @@ src_prepare() {
if use ipv6; then
sed -e "s|^#\(LoadPlugin=\"ipv6\"\)$|\1|" \
-i "${S}"/wwwroot/cgi-bin/awstats.model.conf || die "sed failed"
-i "${S}"/wwwroot/cgi-bin/awstats.model.conf || die "sed failed"
fi
if use geoip; then
sed -e '/LoadPlugin="geoip /aLoadPlugin="geoip GEOIP_STANDARD /usr/share/GeoIP/GeoIP.dat"' \
-i "${S}"/wwwroot/cgi-bin/awstats.model.conf || die "sed failed"
if use geoip2; then
sed -e '/LoadPlugin="geoip2_country /aLoadPlugin="geoip2_country /usr/share/GeoIP/GeoLite2-Country.mmdb"' \
-i "${S}"/wwwroot/cgi-bin/awstats.model.conf || die "sed failed"
sed -e '/LoadPlugin="geoip2_city /aLoadPlugin="geoip2_city /usr/share/GeoIP/GeoLite2-City.mmdb"' \
-i "${S}"/wwwroot/cgi-bin/awstats.model.conf || die "sed failed"
fi
find "${S}" '(' -type f -not -name '*.pl' ')' -exec chmod -x {} + || die
@@ -62,9 +65,6 @@ src_prepare() {
eapply_user
}
HTML_DOCS="docs/"
DOCS="README.md"
src_install() {
einstalldocs
@@ -105,5 +105,5 @@ pkg_postinst() {
ewarn "This ebuild does no longer use webapp-config to install"
ewarn "instead you should point your configuration to the stable"
ewarn "directory tree in the following path:"
ewarn " /usr/share/awstats"
ewarn " /usr/share/awstats"
}

View File

@@ -1,21 +0,0 @@
--- awstats-6.3.orig/tools/awstats_configure.pl 2005-01-24 09:28:43.980923725 -0500
+++ awstats-6.3/tools/awstats_configure.pl 2005-01-24 09:28:52.034571769 -0500
@@ -658,6 +658,18 @@
print "\n-----> Restart Web server with '$command'\n";
my $ret=`$command`;
print "$ret";
+ } elsif (-f "/etc/gentoo-release") {
+ my $command;
+ if (-x "/etc/init.d/apache2") {
+ $command="/etc/init.d/apache2 graceful";
+ } else {
+ print "\n-----> Don't forget to restart manually your web server\n";
+ }
+ if ($command != "") {
+ print "\n-----> Restart Web server with '$command'\n";
+ my $ret=`$command`;
+ print "$ret";
+ }
} elsif (-x "/sbin/service") {
# We are not on debian
my $command="/sbin/service httpd restart";

View File

@@ -1,8 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>web-apps@gentoo.org</email>
<name>Gentoo Webapps</name>
</maintainer>
<maintainer type="project" proxied="proxy">
<email>web-apps@gentoo.org</email>
<name>Gentoo Webapps</name>
</maintainer>
<use>
<flag name="geoip2">Enable GeoIP2 API from MaxMind</flag>
</use>
<upstream>
<remote-id type="github">eldy/AWStats</remote-id>
</upstream>
</pkgmetadata>