diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /www-misc/awstats |
reinit the tree, so we can have metadata
Diffstat (limited to 'www-misc/awstats')
-rw-r--r-- | www-misc/awstats/Manifest | 11 | ||||
-rw-r--r-- | www-misc/awstats/awstats-7.1_p20121017.ebuild | 110 | ||||
-rw-r--r-- | www-misc/awstats/awstats-7.4.ebuild | 111 | ||||
-rw-r--r-- | www-misc/awstats/awstats-7.5.ebuild | 115 | ||||
-rw-r--r-- | www-misc/awstats/files/awstats-7.1-gentoo.diff | 21 | ||||
-rw-r--r-- | www-misc/awstats/files/awstats-perl-5.22.patch | 45 | ||||
-rw-r--r-- | www-misc/awstats/metadata.xml | 8 |
7 files changed, 421 insertions, 0 deletions
diff --git a/www-misc/awstats/Manifest b/www-misc/awstats/Manifest new file mode 100644 index 000000000000..21a22240826e --- /dev/null +++ b/www-misc/awstats/Manifest @@ -0,0 +1,11 @@ +AUX awstats-7.1-gentoo.diff 795 SHA256 528b9c8608824dcadbd5e1f76f6a4e4931186c4dfb87b33820c27d9ca20f6bca SHA512 09e46f32b31389cd1d98465c8b2578c37d5d4d601baf58eb8ed6811875743c3b19819d6820977a9aaace8d8f8c97be8f798fcbaa10f7ed0cb950a2f7f843754c WHIRLPOOL 953e133ff9110cd051728544033bab4eb631a7ad800a2626531d21513c0e9c6c0cd6a2cadd4f38e604fc91ee0ff147045343e8c355155f4d5f062295cb99e901 +AUX awstats-perl-5.22.patch 1981 SHA256 75424c92f8adb1be955b6562377de2af1851cd26397151dea08e14e815d9ee59 SHA512 9b0b4768583e40a55635b5c81c608798ee3036779359747d91cf12d96757d62b79fc8abbe43dbf322f9958616fafcd99d122fcd5c8234f2e6b871173da769800 WHIRLPOOL 30714b9f69f9338a53388d46c566c40424e2700abf6496a814b8356e9e6ebf1bdad82e04885723a848eb32314891d450e1e16110cdb16741e77478900e87cba5 +DIST awstats-7.1_p20121017.tar.gz 1258135 SHA256 262364b77d825096fee088b207f9f6c3d986dddd89645fca53fe09aa8c1fd850 SHA512 171ff3118955c8b73c968a23983885d967632d2c6e95a45f71e5f6fea74afe34d869c9cc901e2e739419068babc96385d7d7df1e8ca10074be7388fbe5c51f53 WHIRLPOOL 678bd6e36634ae2bdee46f42df6d2239a260a188fb1ae07199ef9043a0ad3b54baca7152032873848fabd42f94ef6a92da623e1eb9439d2dbcff15411679f207 +DIST awstats-7.4.tar.gz 2936102 SHA256 43abfe7341c2be64f55bb89557347475640ca7ba4473ff30412a3d44358dab55 SHA512 5bce97c71aabeab35e4ff5e5168531e4955d7c1474322c7b4a47d1d06e06ebd0e74d1def73826498e6253f24aeca99309777617b7a914685c927bb6e1c020e1a WHIRLPOOL 8e6872672ec31c73492764414bfbc17ad4b3e295753f301d199d72ccac6df93fcf8969aa792a2de188f20d89a9e4e368f429aa6c9ed38f31ca3415c8fe7899a9 +DIST awstats-7.5.tar.gz 2936644 SHA256 83c34bdeab9c277c14bea348c2d320f4a1e808388264139821c6bd6dfd1394f8 SHA512 d69a66b5ef94d8a7378ece0453a3617f71ad030d81c45cff926fae1319eacdcdcbe2e68513153cd7444d77cbb950827964b0157ce74c04be76781c071f016a35 WHIRLPOOL 07ed909caecc1fb5c313e0edc1f3f8b9b9ec582131532aff941327966beae1b2948fc83c32865df9712a31b824cb76301153436dcaaa21cf324ed473a72ab0fc +EBUILD awstats-7.1_p20121017.ebuild 3345 SHA256 860dd72d79b7685d19ce74d7c21d29c20f03f3264e11fc8228b74ca41415201c SHA512 ffc8cb30424bde66392ac433b589b6f1b7374c3006e63c96e85456ea99a8d9c6f00092f5c885c65b134186c8f99066c824190b2e82c2547859240196b63e692a WHIRLPOOL e54d23c2d2a15693b35ba3591c19c6bfbee973bf71f4103d01a546c9e12e2c38744e6253efebc06c73c17e00c11a171be50b12597019a596532e8009b3c8c297 +EBUILD awstats-7.4.ebuild 3388 SHA256 7cd87e1e901cdc88bfce0f791f5e4e0be9e9c326c4807d423d67ebc2a811ec02 SHA512 44ba5a936f9176537e90706e3d529bff573f1cfbffed83e3ceb75735701abca921fa51c97fd6f5d1ed01477195dd7f0c3af83d0e9610cdc445ae8a5c151e4650 WHIRLPOOL 90ea424e70cc90a599aedcd41daee6218af614fbd729b4f951a9a2945861c93ba34ffb842fc2c42c94f7f8e57a48f0e33eee7e7348074919eb93f85cfa82b091 +EBUILD awstats-7.5.ebuild 3378 SHA256 cf0b9cd2024d1774cdf9f82ec4b93bb2ebe86f55c7f8f5e32fbe36a7ed879469 SHA512 b63153954625ecd184951ee0cfaa092c82b7c5508adbf9bd6e344c6f6d58349c56118f44cf92a09c049fba008ec65ec5313f1da2b7affc8b73135a081c08f8db WHIRLPOOL e625c9359607d415a40754690e9744bf9c3dac163938f97aa3ca551d35762d25624418c928e93d41ed053c457884d0158b5ef45f78a04f48e149845322aec5d3 +MISC ChangeLog 3438 SHA256 2de1baf781d0644d94b11d007fa130550e7ce7517abdc13eafb2ba119c9fb57f SHA512 5edcc6b09b2072918d2d96cba15dcc57e4406811c1a461eb2c66c099f4b570a00ea5e70f2d7cb992e5e59eaaa300cedf869a754a2ab7d13d98d647d017bb7dcb WHIRLPOOL 0528d41d3426b8d9e6cdb63c63755300e31b2ecd12068357f7e6eef5cad328510b8757c200cdf0a1b56a94f049d1bb27275c801fb331c623d7aecb8a21234397 +MISC ChangeLog-2015 16360 SHA256 cf9f5d22c62df3e71dfb60de21b59e75d385f664f715ee421c219560295953bf SHA512 35464c9e3c0b63eeb3ed4a0d9f26ef99df0c43dd2871ce5dfd294a993a078f52b1070eaa9d64cc67bea8174bf4cb19b16fce2d5954cf4a0938e868a5f66defca WHIRLPOOL 3f2136d2d4c80e6ed591badc54225980e5358f4cbec9d869d824abd3c98a914133ac71a86b00c8bd59eab2ce615a93f461a34d684291b9b82e28bdd79e45dfb7 +MISC metadata.xml 254 SHA256 505bbe1dda85e72f5fc88df19d80870b6c8afa7399b0cfd6cdca6eb006606526 SHA512 b4674c7f9d0dc24c25846b3fe716415b648a61099b8d2f7eb099cf14f9a8f4670af4638349f953fe1b32b9d357911e533b72eaf4bbf14f54827512fd9bbb0ee8 WHIRLPOOL 7fc3bad9398937e998517aa35693607fbcde33d68a3727ba226147840e1a9adf71d459cc8a5f035600193bdb14e259c417cfd6155b5532d03ead8c9321a9abe9 diff --git a/www-misc/awstats/awstats-7.1_p20121017.ebuild b/www-misc/awstats/awstats-7.1_p20121017.ebuild new file mode 100644 index 000000000000..225a3d04175a --- /dev/null +++ b/www-misc/awstats/awstats-7.1_p20121017.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit eutils + +MY_P=${PN}-${PV%_p*} + +DESCRIPTION="AWStats is short for Advanced Web Statistics" +HOMEPAGE="http://www.awstats.org/" + +if [ ${MY_P} != ${P} ]; then + SRC_URI="https://dev.gentoo.org/~flameeyes/awstats/${P}.tar.gz" + # The following SRC_URI is useful only when fetching for the first time + # after bump; upstream does not bump the version when they change it, so + # we rename it to include the date and upload to our mirrors instead. + #SRC_URI="http://www.awstats.org/files/${MY_P}.tar.gz -> ${P}.tar.gz" +else + SRC_URI="http://www.awstats.org/files/${P}.tar.gz" +fi + +S=${WORKDIR}/${MY_P} + +LICENSE="GPL-2" +KEYWORDS="~alpha amd64 hppa ppc ~sparc x86 ~x86-fbsd" +IUSE="geoip ipv6" + +SLOT="0" + +RDEPEND=">=dev-lang/perl-5.6.1 + virtual/perl-Time-Local + dev-perl/URI + geoip? ( dev-perl/Geo-IP ) + ipv6? ( dev-perl/Net-IP dev-perl/Net-DNS )" +DEPEND="" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-7.1-gentoo.diff + + # change default installation directory + find . -type f -exec sed \ + -e "s#/usr/local/awstats/wwwroot#/usr/share/awstats/wwwroot#g" \ + -e '/PossibleLibDir/s:(.*):("/usr/share/awstats/wwwroot/cgi-bin/lib"):' \ + -i {} + || die "find/sed failed" + + # set default values for directories; use apache log as an example + sed \ + -e "s|^\(LogFile=\).*$|\1\"/var/log/apache2/access_log\"|" \ + -e "s|^\(SiteDomain=\).*$|\1\"localhost\"|" \ + -e "s|^\(DirIcons=\).*$|\1\"/awstats/icon\"|" \ + -i "${S}"/wwwroot/cgi-bin/awstats.model.conf || die "sed failed" + + # enable plugins + + if use ipv6; then + sed -e "s|^#\(LoadPlugin=\"ipv6\"\)$|\1|" \ + -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" + fi + + find "${S}" '(' -type f -not -name '*.pl' ')' -exec chmod -x {} + || die +} + +src_install() { + dohtml -r docs/* + dodoc README.TXT + newdoc wwwroot/cgi-bin/plugins/example/example.pm example_plugin.pm + dodoc -r tools/xslt + + keepdir /var/lib/awstats + + insinto /etc/awstats + doins "${S}"/wwwroot/cgi-bin/awstats.model.conf + + # remove extra content that we don't want to install + rm -r "${S}"/wwwroot/cgi-bin/awstats.model.conf \ + "${S}"/wwwroot/classes/src || die + + insinto /usr/share/awstats + doins -r wwwroot + chmod +x "${D}"/usr/share/awstats/wwwroot/cgi-bin/*.pl + + cd "${S}"/tools + dobin awstats_buildstaticpages.pl awstats_exportlib.pl \ + awstats_updateall.pl + newbin logresolvemerge.pl awstats_logresolvemerge.pl + newbin maillogconvert.pl awstats_maillogconvert.pl + newbin urlaliasbuilder.pl awstats_urlaliasbuilder.pl + + dosym ../share/awstats/wwwroot/cgi-bin/awstats.pl /usr/bin/awstats.pl || die +} + +pkg_postinst() { + elog "The AWStats-Manual is available either inside" + elog "the /usr/share/doc/${PF} - folder, or at" + elog "http://awstats.sourceforge.net/docs/index.html ." + elog + elog "Copy the /etc/awstats/awstats.model.conf to" + elog "/etc/awstats/awstats.<yourdomain>.conf and edit it." + elog "" + 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" +} diff --git a/www-misc/awstats/awstats-7.4.ebuild b/www-misc/awstats/awstats-7.4.ebuild new file mode 100644 index 000000000000..3e8cf18c8f75 --- /dev/null +++ b/www-misc/awstats/awstats-7.4.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit eutils + +MY_P=${PN}-${PV%_p*} + +DESCRIPTION="AWStats is short for Advanced Web Statistics" +HOMEPAGE="http://www.awstats.org/" + +if [ ${MY_P} != ${P} ]; then + SRC_URI="https://dev.gentoo.org/~flameeyes/awstats/${P}.tar.gz" + # The following SRC_URI is useful only when fetching for the first time + # after bump; upstream does not bump the version when they change it, so + # we rename it to include the date and upload to our mirrors instead. + #SRC_URI="http://www.awstats.org/files/${MY_P}.tar.gz -> ${P}.tar.gz" +else + SRC_URI="http://www.awstats.org/files/${P}.tar.gz" +fi + +S=${WORKDIR}/${MY_P} + +LICENSE="GPL-3" +KEYWORDS="~alpha amd64 hppa ppc ~sparc x86 ~x86-fbsd" +IUSE="geoip ipv6" + +SLOT="0" + +RDEPEND=">=dev-lang/perl-5.6.1 + virtual/perl-Time-Local + dev-perl/URI + geoip? ( dev-perl/Geo-IP ) + ipv6? ( dev-perl/Net-IP dev-perl/Net-DNS )" +DEPEND="" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-7.1-gentoo.diff + epatch "${FILESDIR}"/${PN}-perl-5.22.patch + + # change default installation directory + find . -type f -exec sed \ + -e "s#/usr/local/awstats/wwwroot#/usr/share/awstats/wwwroot#g" \ + -e '/PossibleLibDir/s:(.*):("/usr/share/awstats/wwwroot/cgi-bin/lib"):' \ + -i {} + || die "find/sed failed" + + # set default values for directories; use apache log as an example + sed \ + -e "s|^\(LogFile=\).*$|\1\"/var/log/apache2/access_log\"|" \ + -e "s|^\(SiteDomain=\).*$|\1\"localhost\"|" \ + -e "s|^\(DirIcons=\).*$|\1\"/awstats/icon\"|" \ + -i "${S}"/wwwroot/cgi-bin/awstats.model.conf || die "sed failed" + + # enable plugins + + if use ipv6; then + sed -e "s|^#\(LoadPlugin=\"ipv6\"\)$|\1|" \ + -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" + fi + + find "${S}" '(' -type f -not -name '*.pl' ')' -exec chmod -x {} + || die +} + +src_install() { + dohtml -r docs/* + dodoc README.md + newdoc wwwroot/cgi-bin/plugins/example/example.pm example_plugin.pm + dodoc -r tools/xslt + + keepdir /var/lib/awstats + + insinto /etc/awstats + doins "${S}"/wwwroot/cgi-bin/awstats.model.conf + + # remove extra content that we don't want to install + rm -r "${S}"/wwwroot/cgi-bin/awstats.model.conf \ + "${S}"/wwwroot/classes/src || die + + insinto /usr/share/awstats + doins -r wwwroot + chmod +x "${D}"/usr/share/awstats/wwwroot/cgi-bin/*.pl + + cd "${S}"/tools + dobin awstats_buildstaticpages.pl awstats_exportlib.pl \ + awstats_updateall.pl + newbin logresolvemerge.pl awstats_logresolvemerge.pl + newbin maillogconvert.pl awstats_maillogconvert.pl + newbin urlaliasbuilder.pl awstats_urlaliasbuilder.pl + + dosym ../share/awstats/wwwroot/cgi-bin/awstats.pl /usr/bin/awstats.pl || die +} + +pkg_postinst() { + elog "The AWStats-Manual is available either inside" + elog "the /usr/share/doc/${PF} - folder, or at" + elog "http://awstats.sourceforge.net/docs/index.html ." + elog + elog "Copy the /etc/awstats/awstats.model.conf to" + elog "/etc/awstats/awstats.<yourdomain>.conf and edit it." + elog "" + 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" +} diff --git a/www-misc/awstats/awstats-7.5.ebuild b/www-misc/awstats/awstats-7.5.ebuild new file mode 100644 index 000000000000..537b396cee01 --- /dev/null +++ b/www-misc/awstats/awstats-7.5.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils + +MY_P=${PN}-${PV%_p*} + +DESCRIPTION="AWStats is short for Advanced Web Statistics" +HOMEPAGE="http://www.awstats.org/" + +if [ ${MY_P} != ${P} ]; then + SRC_URI="https://dev.gentoo.org/~flameeyes/awstats/${P}.tar.gz" + # The following SRC_URI is useful only when fetching for the first time + # after bump; upstream does not bump the version when they change it, so + # we rename it to include the date and upload to our mirrors instead. + #SRC_URI="http://www.awstats.org/files/${MY_P}.tar.gz -> ${P}.tar.gz" +else + SRC_URI="http://www.awstats.org/files/${P}.tar.gz" +fi + +S=${WORKDIR}/${MY_P} + +LICENSE="GPL-3" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86 ~x86-fbsd" +IUSE="geoip ipv6" + +SLOT="0" + +RDEPEND=">=dev-lang/perl-5.6.1 + virtual/perl-Time-Local + dev-perl/URI + geoip? ( dev-perl/Geo-IP ) + ipv6? ( dev-perl/Net-IP dev-perl/Net-DNS )" +DEPEND="" + +src_prepare() { + eapply "${FILESDIR}"/${PN}-7.1-gentoo.diff + + # change default installation directory + find . -type f -exec sed \ + -e "s#/usr/local/awstats/wwwroot#/usr/share/awstats/wwwroot#g" \ + -e '/PossibleLibDir/s:(.*):("/usr/share/awstats/wwwroot/cgi-bin/lib"):' \ + -i {} + || die "find/sed failed" + + # set default values for directories; use apache log as an example + sed \ + -e "s|^\(LogFile=\).*$|\1\"/var/log/apache2/access_log\"|" \ + -e "s|^\(SiteDomain=\).*$|\1\"localhost\"|" \ + -e "s|^\(DirIcons=\).*$|\1\"/awstats/icon\"|" \ + -i "${S}"/wwwroot/cgi-bin/awstats.model.conf || die "sed failed" + + # enable plugins + + if use ipv6; then + sed -e "s|^#\(LoadPlugin=\"ipv6\"\)$|\1|" \ + -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" + fi + + find "${S}" '(' -type f -not -name '*.pl' ')' -exec chmod -x {} + || die + + eapply_user +} + +HTML_DOCS="docs/" +DOCS="README.md" + +src_install() { + einstalldocs + + newdoc wwwroot/cgi-bin/plugins/example/example.pm example_plugin.pm + dodoc -r tools/xslt + + keepdir /var/lib/awstats + + insinto /etc/awstats + doins "${S}"/wwwroot/cgi-bin/awstats.model.conf + + # remove extra content that we don't want to install + rm -r "${S}"/wwwroot/cgi-bin/awstats.model.conf \ + "${S}"/wwwroot/classes/src || die + + insinto /usr/share/awstats + doins -r wwwroot + chmod +x "${D}"/usr/share/awstats/wwwroot/cgi-bin/*.pl + + cd "${S}"/tools + dobin awstats_buildstaticpages.pl awstats_exportlib.pl \ + awstats_updateall.pl + newbin logresolvemerge.pl awstats_logresolvemerge.pl + newbin maillogconvert.pl awstats_maillogconvert.pl + newbin urlaliasbuilder.pl awstats_urlaliasbuilder.pl + + dosym ../share/awstats/wwwroot/cgi-bin/awstats.pl /usr/bin/awstats.pl || die +} + +pkg_postinst() { + elog "The AWStats-Manual is available either inside" + elog "the /usr/share/doc/${PF} - folder, or at" + elog "http://awstats.sourceforge.net/docs/index.html ." + elog + elog "Copy the /etc/awstats/awstats.model.conf to" + elog "/etc/awstats/awstats.<yourdomain>.conf and edit it." + elog "" + 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" +} diff --git a/www-misc/awstats/files/awstats-7.1-gentoo.diff b/www-misc/awstats/files/awstats-7.1-gentoo.diff new file mode 100644 index 000000000000..a58ed48bd548 --- /dev/null +++ b/www-misc/awstats/files/awstats-7.1-gentoo.diff @@ -0,0 +1,21 @@ +--- 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"; diff --git a/www-misc/awstats/files/awstats-perl-5.22.patch b/www-misc/awstats/files/awstats-perl-5.22.patch new file mode 100644 index 000000000000..8f4e1cac2c0b --- /dev/null +++ b/www-misc/awstats/files/awstats-perl-5.22.patch @@ -0,0 +1,45 @@ +From 6ca56baf8e5819787c128e5ccd741701cb84bfdd Mon Sep 17 00:00:00 2001 +From: Laurent Destailleur <eldy@destailleur.fr> +Date: Tue, 18 Aug 2015 20:41:20 +0200 +Subject: [PATCH] Compatibility with Perl 5.22 + +--- + docs/awstats_changelog.txt | 1 + + wwwroot/cgi-bin/awstats.pl | 12 ++++++------ + 2 files changed, 7 insertions(+), 6 deletions(-) + +diff --git a/docs/awstats_changelog.txt b/docs/awstats_changelog.txt +index 1fcca7f..1b5e342 100644 +--- a/docs/awstats_changelog.txt ++++ b/docs/awstats_changelog.txt +@@ -8,6 +8,7 @@ New features: + option nboflastupdatelookuptosave on command line. + - #199 Added geoip6 plugin with support for IPv4 AND IPv6. + - Work with Amazon AWS log files (using %time5 tag). ++- Compatibility with Perl 5.22 + + Fixes: + - Fixes permission on some .pl scripts. +diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl +index c9dcee9..eb14fc0 100755 +--- a/wwwroot/cgi-bin/awstats.pl ++++ b/wwwroot/cgi-bin/awstats.pl +@@ -9040,12 +9040,12 @@ sub DefinePerlParsingFormat { + $LogFormatString =~ s/%>s/%code/g; + $LogFormatString =~ s/%b(\s)/%bytesd$1/g; + $LogFormatString =~ s/%b$/%bytesd/g; +- $LogFormatString =~ s/\"%{Referer}i\"/%refererquot/g; +- $LogFormatString =~ s/\"%{User-Agent}i\"/%uaquot/g; +- $LogFormatString =~ s/%{mod_gzip_input_size}n/%gzipin/g; +- $LogFormatString =~ s/%{mod_gzip_output_size}n/%gzipout/g; +- $LogFormatString =~ s/%{mod_gzip_compression_ratio}n/%gzipratio/g; +- $LogFormatString =~ s/\(%{ratio}n\)/%deflateratio/g; ++ $LogFormatString =~ s/\"%\{Referer}i\"/%refererquot/g; ++ $LogFormatString =~ s/\"%\{User-Agent}i\"/%uaquot/g; ++ $LogFormatString =~ s/%\{mod_gzip_input_size}n/%gzipin/g; ++ $LogFormatString =~ s/%\{mod_gzip_output_size}n/%gzipout/g; ++ $LogFormatString =~ s/%\{mod_gzip_compression_ratio}n/%gzipratio/g; ++ $LogFormatString =~ s/\(%\{ratio}n\)/%deflateratio/g; + + # Replacement for a IIS and ISA format string + $LogFormatString =~ s/cs-uri-query/%query/g; # Must be before cs-uri diff --git a/www-misc/awstats/metadata.xml b/www-misc/awstats/metadata.xml new file mode 100644 index 000000000000..3adf7af8a01b --- /dev/null +++ b/www-misc/awstats/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>web-apps@gentoo.org</email> + <name>Gentoo Webapps</name> + </maintainer> +</pkgmetadata> |