summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2009-04-09 19:18:04 +0000
committerUlrich Müller <ulm@gentoo.org>2009-04-09 19:18:04 +0000
commiteb8968e8c0ac13c07483c89741111d36bc8d6547 (patch)
tree7777260149b56d6109e8317358f34c8fe7038386 /www-misc/awstats
parentPackage move awstats to www-misc. (diff)
downloadgentoo-2-eb8968e8c0ac13c07483c89741111d36bc8d6547.tar.gz
gentoo-2-eb8968e8c0ac13c07483c89741111d36bc8d6547.tar.bz2
gentoo-2-eb8968e8c0ac13c07483c89741111d36bc8d6547.zip
Fix previous commit.
(Portage version: 2.2_rc28/cvs/Linux i686)
Diffstat (limited to 'www-misc/awstats')
-rw-r--r--www-misc/awstats/ChangeLog5
-rw-r--r--www-misc/awstats/files/awstats-6.3-gentoo.diff32
-rw-r--r--www-misc/awstats/files/postinst-en-r1.txt67
3 files changed, 102 insertions, 2 deletions
diff --git a/www-misc/awstats/ChangeLog b/www-misc/awstats/ChangeLog
index 31faedc4170b..9b5523b94b0f 100644
--- a/www-misc/awstats/ChangeLog
+++ b/www-misc/awstats/ChangeLog
@@ -1,8 +1,9 @@
# ChangeLog for www-misc/awstats
# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-misc/awstats/ChangeLog,v 1.1 2009/04/09 19:00:55 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-misc/awstats/ChangeLog,v 1.2 2009/04/09 19:18:04 ulm Exp $
- 09 Apr 2009; Ulrich Mueller <ulm@gentoo.org> +metadata.xml,
+ 09 Apr 2009; Ulrich Mueller <ulm@gentoo.org>
+ +files/awstats-6.3-gentoo.diff, +files/postinst-en-r1.txt, +metadata.xml,
+awstats-6.9-r1.ebuild:
Package moved from net-www to www-misc, bug 265569.
diff --git a/www-misc/awstats/files/awstats-6.3-gentoo.diff b/www-misc/awstats/files/awstats-6.3-gentoo.diff
new file mode 100644
index 000000000000..ec3b115afa4f
--- /dev/null
+++ b/www-misc/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/www-misc/awstats/files/postinst-en-r1.txt b/www-misc/awstats/files/postinst-en-r1.txt
new file mode 100644
index 000000000000..94a36aa10e05
--- /dev/null
+++ b/www-misc/awstats/files/postinst-en-r1.txt
@@ -0,0 +1,67 @@
+###
+# INSTRUCTIONS:
+#
+# If you would like to require authentication to access AWStats, then use ONE
+# of the example configurations below. There are many other modules and
+# options for authentication which will not be discussed here.
+#
+# 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 (apache 2.0) or mod_auth_basic
+# (apache 2.2) to work. Make sure you have installed and enabled it in
+# /etc/apache2/httpd.conf
+#
+# 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...
+###
+
+#<Location "/cgi-bin/awstats.pl">
+# AuthType Basic
+# AuthName "AWStats authenticated zone"
+# AuthUserFile /etc/awstats/.htpasswd
+# Require valid-user
+#</Location>
+
+###
+# SECTION II - Digest Authentication
+#
+# The following example requires mod_auth_digest to work. Make sure you have
+# installed and enabled it in /etc/apache2/httpd.conf
+#
+# 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...
+###
+
+#<Location "/cgi-bin/awstats.pl">
+# 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>