summaryrefslogtreecommitdiff
path: root/net-www/awstats
diff options
context:
space:
mode:
authorBertrand Jacquin <beber@meleeweb.net>2007-08-15 00:12:29 +0200
committerBertrand Jacquin <beber@meleeweb.net>2007-08-15 00:12:29 +0200
commit6d31f3be48c0ca2e1799a144196e88c7e0c7c47d (patch)
treeb4141fe8120a272030efb8937499778e645b340a /net-www/awstats
parentapache: delete, not used anymore on meleeweb (diff)
downloadportage-6d31f3be48c0ca2e1799a144196e88c7e0c7c47d.tar.xz
awstats: make it non apache depends
Diffstat (limited to 'net-www/awstats')
-rw-r--r--net-www/awstats/Manifest20
-rw-r--r--net-www/awstats/awstats-6.5-r1.ebuild123
-rw-r--r--net-www/awstats/files/awstats-6.3-gentoo.diff32
-rw-r--r--net-www/awstats/files/awstats-6.5-CVE-2006-2237-CVE-2006-1945.diff143
-rw-r--r--net-www/awstats/files/digest-awstats-6.5-r13
-rw-r--r--net-www/awstats/files/postinst-en.txt159
6 files changed, 480 insertions, 0 deletions
diff --git a/net-www/awstats/Manifest b/net-www/awstats/Manifest
new file mode 100644
index 00000000..b99c6b82
--- /dev/null
+++ b/net-www/awstats/Manifest
@@ -0,0 +1,20 @@
+AUX awstats-6.3-gentoo.diff 1219 RMD160 8c6ea2a093c231043674f8f14bc4332cfeeee930 SHA1 8a1971c0e710cec05004a7e94461f83f77b2fd1a SHA256 0de073550f021a93d883c307f999b4b6ead1abf3a587118e2e01578907d15814
+MD5 7a52d3f65ff7220a519056716d460ecd files/awstats-6.3-gentoo.diff 1219
+RMD160 8c6ea2a093c231043674f8f14bc4332cfeeee930 files/awstats-6.3-gentoo.diff 1219
+SHA256 0de073550f021a93d883c307f999b4b6ead1abf3a587118e2e01578907d15814 files/awstats-6.3-gentoo.diff 1219
+AUX awstats-6.5-CVE-2006-2237-CVE-2006-1945.diff 5768 RMD160 caabac08750825dc78c74a2977aa13673d17b691 SHA1 ed5e5cd94c8aa75335e8eb408c8dc4be0e57ae3e SHA256 5e05aa52338a56068f781c695b3d40c85853a44ef60f2f895f680103a31e26a6
+MD5 0adb6df6c9805ff727f95e68b9ecb35f files/awstats-6.5-CVE-2006-2237-CVE-2006-1945.diff 5768
+RMD160 caabac08750825dc78c74a2977aa13673d17b691 files/awstats-6.5-CVE-2006-2237-CVE-2006-1945.diff 5768
+SHA256 5e05aa52338a56068f781c695b3d40c85853a44ef60f2f895f680103a31e26a6 files/awstats-6.5-CVE-2006-2237-CVE-2006-1945.diff 5768
+AUX postinst-en.txt 5049 RMD160 e95456f3254699bb14a27d20ae766fbd46147507 SHA1 fcce691131df0316a2ad1dc4c33e30a2dd82bfd7 SHA256 95bbc8d3ef9d7376fe743de4d8cb7aae3206550811a9ea4ea47513f34d578c1f
+MD5 f881494a979cdea82d58e31b589d9a97 files/postinst-en.txt 5049
+RMD160 e95456f3254699bb14a27d20ae766fbd46147507 files/postinst-en.txt 5049
+SHA256 95bbc8d3ef9d7376fe743de4d8cb7aae3206550811a9ea4ea47513f34d578c1f files/postinst-en.txt 5049
+DIST awstats-6.5.tar.gz 972275 RMD160 f5bac64fe43a0629474203f4846a863a439416cf SHA1 24ef0caf9ed47d8e30880721d2ce5a6d5c8e199d SHA256 2d536fac86e97b4ba22fc811753536a0081823136b3a337f5833a6ad04b6f7f1
+EBUILD awstats-6.5-r1.ebuild 3585 RMD160 c30b6b153b6c2a74ce78924a3246aab1bfb542e9 SHA1 5a6684b23450f51517d0ef26961db3bb1edd2595 SHA256 7563f63ffabd1e1774ddf910cbca879babf1d74fef7a7b83b24ad0ee8a0718cf
+MD5 d3152cece654c335ed0829cd70d78233 awstats-6.5-r1.ebuild 3585
+RMD160 c30b6b153b6c2a74ce78924a3246aab1bfb542e9 awstats-6.5-r1.ebuild 3585
+SHA256 7563f63ffabd1e1774ddf910cbca879babf1d74fef7a7b83b24ad0ee8a0718cf awstats-6.5-r1.ebuild 3585
+MD5 1203937f6de452d6ae4ba8465234ad36 files/digest-awstats-6.5-r1 235
+RMD160 90bdedc189c5aed52a424d277f85e6d233ac1082 files/digest-awstats-6.5-r1 235
+SHA256 1439cd174fa0bd63e3aa15cb6dc5e88beb6d126707730253d4dee65d948898dc files/digest-awstats-6.5-r1 235
diff --git a/net-www/awstats/awstats-6.5-r1.ebuild b/net-www/awstats/awstats-6.5-r1.ebuild
new file mode 100644
index 00000000..1e5912da
--- /dev/null
+++ b/net-www/awstats/awstats-6.5-r1.ebuild
@@ -0,0 +1,123 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/awstats/awstats-6.5-r1.ebuild,v 1.7 2007/07/29 17:05:59 phreak Exp $
+
+inherit eutils webapp versionator
+
+DESCRIPTION="AWStats is short for Advanced Web Statistics."
+HOMEPAGE="http://awstats.sourceforge.net/"
+#SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+SRC_URI="http://awstats.sourceforge.net/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="alpha amd64 ~hppa ~mips ppc ~sparc x86 ~x86-fbsd"
+IUSE=""
+
+SLOT="0"
+WEBAPP_MANUAL_SLOT="yes"
+
+RDEPEND=">=dev-lang/perl-5.6.1
+ >=media-libs/libpng-1.2
+ virtual/perl-Time-Local
+ dev-perl/URI"
+DEPEND="${RDEPEND}
+ >=sys-apps/sed-4"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ # Fix security bug #130487
+ epatch ${FILESDIR}/${PN}-6.5-CVE-2006-2237-CVE-2006-1945.diff
+
+ epatch ${FILESDIR}/${PN}-6.3-gentoo.diff
+
+ # change AWStats default installation directory to installation directory of Gentoo
+ for file in tools/* wwwroot/cgi-bin/*; do
+ if [[ -f "$file" ]]; then
+ sed -i -e "s#/usr/local/awstats/wwwroot/cgi-bin#${MY_CGIBINDIR}#g" \
+ -e "s#/usr/local/awstats/wwwroot/icon#${MY_HTDOCSDIR}/icon#g" \
+ -e "s#/usr/local/awstats/wwwroot/plugins#${MY_HOSTROOTDIR}/plugins#g" \
+ -e "s#/usr/local/awstats/wwwroot/classes#${MY_HTDOCSDIR}/classes#g" \
+ -e "s#/usr/local/awstats/wwwroot#${MY_HTDOCSDIR}#g" \
+ $file || die "sed $file failed"
+ fi
+ done
+
+ # set version in postinst-en.txt
+ sed -e "s/PVR/${PVR}/g" \
+ ${FILESDIR}/postinst-en.txt > ${WORKDIR}/postinst-en.txt || die
+}
+
+src_install() {
+ webapp_src_preinst
+
+ # handle documentation files
+ #
+ # NOTE that doc files go into /usr/share/doc as normal; they do NOT
+ # get installed per vhost!
+
+ dohtml -r docs/*.html docs/*.xml docs/*.css docs/*.js docs/images
+ dodoc README.TXT docs/COPYING.TXT docs/LICENSE.TXT
+ newdoc wwwroot/cgi-bin/plugins/example/example.pm example_plugin.pm
+ docinto xslt
+ dodoc tools/xslt/*
+
+ webapp_postinst_txt en ${WORKDIR}/postinst-en.txt
+
+ keepdir /var/lib/awstats
+
+ # Copy the app's main files
+ exeinto ${MY_CGIBINDIR}
+ doexe ${S}/wwwroot/cgi-bin/*.pl
+
+ exeinto ${MY_HTDOCSDIR}/classes
+ doexe ${S}/wwwroot/classes/*.jar
+
+ # install language files, libraries and plugins
+ mkdir -p ${D}${MY_CGIBINDIR}
+ for dir in lang lib plugins; do
+ cp -R ${S}/wwwroot/cgi-bin/${dir} ${D}${MY_CGIBINDIR}
+ chmod 0755 ${D}${MY_CGIBINDIR}/${dir}
+ done
+
+ # install the app's www files
+ mkdir -p ${D}${MY_HTDOCSDIR}
+ for dir in icon css js; do
+ cp -R ${S}/wwwroot/${dir} ${D}${MY_HTDOCSDIR}
+ chmod 0755 ${D}${MY_HTDOCSDIR}/${dir}
+ done
+
+ # copy configuration file
+ insinto /etc/awstats
+ doins ${S}/wwwroot/cgi-bin/awstats.model.conf
+
+ # create the data directory for awstats
+ mkdir -p ${D}/${MY_HOSTROOTDIR}/datadir
+
+ # install command line tools
+ cd ${S}/tools
+ dobin awstats_buildstaticpages.pl awstats_exportlib.pl \
+ awstats_updateall.pl logresolvemerge.pl \
+ maillogconvert.pl awstats_configure.pl
+ newbin urlaliasbuilder.pl awstats_urlaliasbuilder.pl
+
+ # all done
+ #
+ # now we let the eclass strut its stuff ;-)
+
+ webapp_src_install
+}
+
+pkg_postinst() {
+ elog
+ 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
+ ewarn "Copy the /etc/awstats/awstats.model.conf to"
+ ewarn "/etc/awstats/awstats.<yourdomain>.conf and edit."
+ ewarn "use the command"
+ ewarn " webapp-config"
+ ewarn "to install awstats for each virtual host. See proper man page."
+}
diff --git a/net-www/awstats/files/awstats-6.3-gentoo.diff b/net-www/awstats/files/awstats-6.3-gentoo.diff
new file mode 100644
index 00000000..ec3b115a
--- /dev/null
+++ b/net-www/awstats/files/awstats-6.3-gentoo.diff
@@ -0,0 +1,32 @@
+diff -urN awstats-6.3.orig/tools/awstats_configure.pl awstats-6.3/tools/awstats_configure.pl
+--- 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,13 +658,27 @@
+ print "\n-----> Restart Web server with '$command'\n";
+ my $ret=`$command`;
+ print "$ret";
++ } elsif (-f "/etc/gentoo-release") {
++ my $command;
++ if (-x "/usr/sbin/apache2ctl") {
++ $command="/usr/sbin/apache2ctl graceful";
++ } elsif (-x "/usr/sbin/apachectl") {
++ $command="/usr/sbin/apachectl 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";
+ print "\n-----> Restart Web server with '$command'\n";
+ my $ret=`$command`;
+ print "$ret";
+- } else {
++ } else {
+ print "\n-----> Don't forget to restart manually your web server\n";
+ }
+ }
diff --git a/net-www/awstats/files/awstats-6.5-CVE-2006-2237-CVE-2006-1945.diff b/net-www/awstats/files/awstats-6.5-CVE-2006-2237-CVE-2006-1945.diff
new file mode 100644
index 00000000..9a82f4ed
--- /dev/null
+++ b/net-www/awstats/files/awstats-6.5-CVE-2006-2237-CVE-2006-1945.diff
@@ -0,0 +1,143 @@
+--- awstats-6.5.orig/wwwroot/cgi-bin/awstats.pl 2005-11-24 15:11:19.000000000 -0500
++++ awstats-6.5/wwwroot/cgi-bin/awstats.pl 2006-05-06 17:34:13.000000000 -0400
+@@ -5534,7 +5534,7 @@
+ $QueryString =~ s/&/&amp;/g;
+ }
+
+- $QueryString = CleanFromCSSA($QueryString);
++ $QueryString = CleanFromCSSA(&DecodeEncodedString($QueryString));
+
+ # Security test
+ if ($QueryString =~ /LogFile=([^&]+)/i) { error("Logfile parameter can't be overwritten when AWStats is used from a CGI"); }
+@@ -5542,7 +5542,7 @@
+ # No update but report by default when run from a browser
+ $UpdateStats=($QueryString=~/update=1/i?1:0);
+
+- if ($QueryString =~ /config=([^&]+)/i) { $SiteConfig=&DecodeEncodedString("$1"); }
++ if ($QueryString =~ /config=([^&]+)/i) { $SiteConfig=&Sanitize(&DecodeEncodedString("$1")); }
+ if ($QueryString =~ /diricons=([^&]+)/i) { $DirIcons=&DecodeEncodedString("$1"); }
+ if ($QueryString =~ /pluginmode=([^&]+)/i) { $PluginMode=&Sanitize(&DecodeEncodedString("$1"),1); }
+ if ($QueryString =~ /configdir=([^&]+)/i) { $DirConfig=&Sanitize(&DecodeEncodedString("$1")); }
+@@ -5561,7 +5561,7 @@
+
+ # If migrate
+ if ($QueryString =~ /(^|-|&|&amp;)migrate=([^&]+)/i) {
+- $MigrateStats=&DecodeEncodedString("$2");
++ $MigrateStats=&Sanitize(&DecodeEncodedString("$2"));
+ $MigrateStats =~ /^(.*)$PROG(\d{0,2})(\d\d)(\d\d\d\d)(.*)\.txt$/;
+ $SiteConfig=$5?$5:'xxx'; $SiteConfig =~ s/^\.//; # SiteConfig is used to find config file
+ }
+@@ -5591,7 +5591,7 @@
+ # Update with no report by default when run from command line
+ $UpdateStats=1;
+
+- if ($QueryString =~ /config=([^&]+)/i) { $SiteConfig="$1"; }
++ if ($QueryString =~ /config=([^&]+)/i) { $SiteConfig=&Sanitize("$1"); }
+ if ($QueryString =~ /diricons=([^&]+)/i) { $DirIcons="$1"; }
+ if ($QueryString =~ /pluginmode=([^&]+)/i) { $PluginMode=&Sanitize("$1",1); }
+ if ($QueryString =~ /configdir=([^&]+)/i) { $DirConfig=&Sanitize("$1"); }
+Index: awstats-6.5/wwwroot/cgi-bin/awstats.pl
+===================================================================
+--- awstats-6.5.orig/wwwroot/cgi-bin/awstats.pl 2006-05-05 16:43:12.000000000 -0400
++++ awstats-6.5/wwwroot/cgi-bin/awstats.pl 2006-05-06 17:26:10.000000000 -0400
+@@ -1131,7 +1131,7 @@
+ my $configdir=shift;
+ my @PossibleConfigDir=();
+
+- if ($configdir) { @PossibleConfigDir=("$configdir"); }
++ if ($configdir && $ENV{"AWSTATS_ENABLE_CONFIG_DIR"}) { @PossibleConfigDir=("$configdir"); }
+ else { @PossibleConfigDir=("$DIR","/etc/awstats","/usr/local/etc/awstats","/etc","/etc/opt/awstats"); }
+
+ # Open config file
+diff -urN awstats-6.5.orig/tools/awstats_buildstaticpages.pl awstats-6.5/tools/awstats_buildstaticpages.pl
+--- awstats-6.5.orig/tools/awstats_buildstaticpages.pl 2005-08-23 15:56:35.000000000 -0400
++++ awstats-6.5/tools/awstats_buildstaticpages.pl 2006-01-04 00:58:20.490613529 -0500
+@@ -75,7 +75,7 @@
+ # Return: None
+ #------------------------------------------------------------------------------
+ sub error {
+- print "Error: $_[0].\n";
++ print STDERR "Error: $_[0].\n";
+ exit 1;
+ }
+
+@@ -95,7 +95,7 @@
+ # print "$messagestring<br />\n";
+ # }
+ # else {
+- print "$messagestring\n";
++ print STDERR "$messagestring\n";
+ # }
+ # }
+ }
+diff -urN awstats-6.5.orig/tools/awstats_configure.pl awstats-6.5/tools/awstats_configure.pl
+--- awstats-6.5.orig/tools/awstats_configure.pl 2005-04-22 13:34:05.000000000 -0400
++++ awstats-6.5/tools/awstats_configure.pl 2006-01-04 00:58:24.987002812 -0500
+@@ -87,7 +87,7 @@
+ # error
+ #-------------------------------------------------------
+ sub error {
+- print "Error: $_[0].\n";
++ print STDERR "Error: $_[0].\n";
+ exit 1;
+ }
+
+diff -urN awstats-6.5.orig/tools/awstats_exportlib.pl awstats-6.5/tools/awstats_exportlib.pl
+--- awstats-6.5.orig/tools/awstats_exportlib.pl 2003-12-05 18:53:38.000000000 -0500
++++ awstats-6.5/tools/awstats_exportlib.pl 2006-01-04 00:58:30.769217454 -0500
+@@ -93,8 +93,8 @@
+ my $thirdmessage=shift||"";
+ my $donotshowsetupinfo=shift||0;
+ if ($Debug) { debug("$message $secondmessage $thirdmessage",1); }
+- print "$message";
+- print "\n";
++ print STDERR "$message";
++ print STDERR "\n";
+ exit 1;
+ }
+
+diff -urN awstats-6.5.orig/tools/awstats_updateall.pl awstats/tools/awstats_updateall.pl
+--- awstats-6.5.orig/tools/awstats_updateall.pl 2005-04-22 13:34:05.000000000 -0400
++++ awstats-6.5/tools/awstats_updateall.pl 2006-01-04 00:58:34.910654953 -0500
+@@ -36,7 +36,7 @@
+ # Return: None
+ #------------------------------------------------------------------------------
+ sub error {
+- print "Error: $_[0].\n";
++ print STDERR "Error: $_[0].\n";
+ exit 1;
+ }
+
+diff -urN awstats-6.5.orig/tools/logresolvemerge.pl awstats-6.5/tools/logresolvemerge.pl
+--- awstats-6.5.orig/tools/logresolvemerge.pl 2005-12-04 16:10:46.000000000 -0500
++++ awstats-6.5/tools/logresolvemerge.pl 2006-01-04 00:58:38.552160356 -0500
+@@ -104,7 +104,7 @@
+ # Return: None
+ #------------------------------------------------------------------------------
+ sub error {
+- print "Error: $_[0].\n";
++ print STDERR "Error: $_[0].\n";
+ exit 1;
+ }
+
+@@ -133,7 +133,7 @@
+ sub warning {
+ my $messagestring=shift;
+ if ($Debug) { debug("$messagestring",1); }
+- print "$messagestring\n";
++ print STDERR "$messagestring\n";
+ }
+
+ #-----------------------------------------------------------------------------
+diff -urN awstats-6.5.orig/tools/maillogconvert.pl awstats-6.5/tools/maillogconvert.pl
+--- awstats-6.5.orig/tools/maillogconvert.pl 2005-04-22 13:34:05.000000000 -0400
++++ awstats-6.5/tools/maillogconvert.pl 2006-01-04 00:58:42.465628823 -0500
+@@ -56,7 +56,7 @@
+ #-------------------------------------------------------
+
+ sub error {
+- print "Error: $_[0].\n";
++ print STDERR "Error: $_[0].\n";
+ exit 1;
+ }
+
diff --git a/net-www/awstats/files/digest-awstats-6.5-r1 b/net-www/awstats/files/digest-awstats-6.5-r1
new file mode 100644
index 00000000..b326ee29
--- /dev/null
+++ b/net-www/awstats/files/digest-awstats-6.5-r1
@@ -0,0 +1,3 @@
+MD5 f323e197f78934c66b3bf4cb07422606 awstats-6.5.tar.gz 972275
+RMD160 f5bac64fe43a0629474203f4846a863a439416cf awstats-6.5.tar.gz 972275
+SHA256 2d536fac86e97b4ba22fc811753536a0081823136b3a337f5833a6ad04b6f7f1 awstats-6.5.tar.gz 972275
diff --git a/net-www/awstats/files/postinst-en.txt b/net-www/awstats/files/postinst-en.txt
new file mode 100644
index 00000000..f95caeaf
--- /dev/null
+++ b/net-www/awstats/files/postinst-en.txt
@@ -0,0 +1,159 @@
+Alias /awstats/classes "/usr/share/webapps/awstats/PVR/htdocs/classes/"
+Alias /awstats/css "/usr/share/webapps/awstats/PVR/htdocs/css/"
+Alias /awstats/icons "/usr/share/webapps/awstats/PVR/htdocs/icon/"
+ScriptAlias /awstats/ "/usr/share/webapps/awstats/PVR/hostroot/cgi-bin/"
+ScriptAlias /awstats "/usr/share/webapps/awstats/PVR/hostroot/cgi-bin/awstats.pl"
+ScriptAlias /awstats.pl "/usr/share/webapps/awstats/PVR/hostroot/cgi-bin/awstats.pl"
+
+<Directory "/usr/share/webapps/awstats/PVR/htdocs">
+ Options None
+ AllowOverride None
+ <IfModule mod_access.c>
+ Order allow,deny
+ Allow from all
+ </IfModule>
+</Directory>
+
+<Directory "/usr/share/webapps/awstats/PVR/hostroot/cgi-bin">
+ Options ExecCGI
+ AllowOverride None
+ <IfModule mod_access.c>
+ Order allow,deny
+ Allow from all
+ </IfModule>
+</Directory>
+
+###
+# NOTE: The following sections are strictly optional. Please read
+# and follow carefully all the instructions before uncommenting
+# any lines. Examples shown below are for Apache 2.0.x ONLY.
+###
+
+###
+# INSTRUCTIONS:
+#
+# If you would like to require authentication to access AWStats,
+# then uncomment ONE of the example Directory sections below.
+#
+# NOTE: Related AWStats configuration directives are:
+#
+# AllowAccessFromWebToAuthenticatedUsersOnly=1
+# AllowAccessFromWebToFollowingAuthenticatedUsers="user1 [user2 ...]"
+#
+# You can use these to set a per-domain user access when needed
+# for virtual hosting. That means: only the selected user(s) will have
+# access to stats for the particular domain. All other users
+# will not be allowed to see the domain stats even though they
+# have authenticated successfully.
+###
+
+###
+# SECTION I - Basic Authentication
+#
+# The following example requires mod_auth to work.
+# You need to uncomment the following line in apache2.conf
+# and restart Apache to get the module loaded:
+#
+# LoadModule auth_module modules/mod_auth.so
+#
+# Add your AWStats users to /etc/awstats/.htpasswd file.
+# Please see 'man htpasswd2' for more details if you need.
+#
+# htpasswd2 -c /etc/awstats/.htpasswd username1
+# htpasswd2 /etc/awstats/.htpasswd username2
+# etc...
+###
+
+#<IfModule mod_auth.c>
+#<Directory "/usr/share/webapps/awstats/PVR/hostroot">
+# Options None
+# AllowOverride None
+# Order allow,deny
+# Allow from all
+#
+# AuthType Basic
+# AuthName "AWStats authenticated zone"
+# AuthUserFile /etc/awstats/.htpasswd
+# Require valid-user
+#
+#</Directory>
+#</IfModule>
+
+###
+# SECTION II - Digest Authentication
+#
+# The following example requires mod_auth_digest to work.
+# You need to uncomment the following line in apache2.conf
+# and restart Apache to get the module loaded:
+#
+# LoadModule auth_digest_module modules/mod_auth_digest.so
+#
+# Do not forget to replace www.example.com as appropriate. You can also add
+# as many domains as you need to this line.
+#
+# Add your AWStats users to /etc/awstats/.htdigest file. Please see
+# 'man htdigest2' and http://httpd.apache.org/docs-2.0/mod/mod_auth_digest.html
+# for more details if you need.
+#
+# htdigest2 -c /etc/awstats/.htdigest "AWStats authenticated zone" username1
+# htdigest2 /etc/awstats/.htdigest "AWStats authenticated zone" username2
+# etc...
+###
+
+#<IfModule mod_auth_digest.c>
+#<Directory "/usr/share/webapps/awstats/PVR/hostroot">
+# Options None
+# AllowOverride None
+# Order allow,deny
+# Allow from all
+
+# AuthType Digest
+# AuthName "AWStats authenticated zone"
+# AuthDigestFile /etc/awstats/.htdigest
+# AuthDigestDomain http://www.example.com https://www.example.com
+# require valid-user
+# # The following line is REQUIRED to work around a bug in MSIE.
+# # See http://httpd.apache.org/docs-2.0/mod/mod_auth_digest.html
+# BrowserMatch "MSIE" AuthDigestEnableQueryStringHack=On
+#</Directory>
+#</IfModule>
+
+###
+# SECTION III - MySQL Authentication
+#
+# The following example requires mod_auth_mysql to work.
+# Emerge mod_auth_mysql and follow the instructions in
+# 12_mod_auth_mysql.conf to create MySQL database required
+# for authentication. After you finished adding users, add
+# '-D AUTH_MYSQL' to your /etc/conf.d/apache2 APACHE2_OPTS
+# setting and restart Apache to get the module loaded.
+###
+
+#<IfModule mod_auth_mysql.c>
+#<Directory "/usr/share/webapps/awstats/PVR/hostroot">
+# Options None
+# AllowOverride None
+# Order allow,deny
+# Allow from all
+
+# AuthName "AWStats MySQL authenticated zone"
+# AuthType Basic
+# AuthMySQLUser authuser
+# AuthMySQLPassword PaSsW0Rd
+# AuthMySQLDB auth
+# AuthMySQLUserTable users
+# AuthMySQLNameField user_name
+# AuthMySQLPasswordField user_passwd
+# # Uncomment the two lines below ONLY if you have
+# # the required table for group-based MySQL authentication
+# # in your MySQL database.
+# #AuthMySQLGroupTable groups
+# #AuthMySQLGroupField user_group
+#
+# # Uncomment one of the following directives according
+# # to the database structure you have chosen.
+# #require valid-user
+# #require group your_group_name_here
+
+#</Directory>
+#</IfModule>