Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19382 - NEW: awstats - a webserver statistics program
Summary: NEW: awstats - a webserver statistics program
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords: EBUILD
: 17840 28052 35330 35486 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-04-15 17:08 UTC by Brian Arledge
Modified: 2020-05-01 15:22 UTC (History)
16 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
new: awstats is a webserver statistics program (awstats-5.4-r1.ebuild,1.17 KB, text/plain)
2003-04-15 17:10 UTC, Brian Arledge
Details
awstats-5.6 ebuild (awstats-5.6.ebuild,1.12 KB, text/plain)
2003-07-06 07:05 UTC, Daniel Seyffer
Details
Patch (awstat-ebuild.sugesstions,1.57 KB, patch)
2003-09-07 07:24 UTC, Chuck Short (RETIRED)
Details | Diff
awstats-5.8 (awstats-5.8.ebuild,1.24 KB, text/plain)
2003-09-21 09:31 UTC, Daniel Seyffer
Details
awstats-5.9.ebuild (awstats-5.9.ebuild,1.01 KB, text/plain)
2003-12-09 15:48 UTC, Federico Moro
Details
ebuild for awstats-6.0 devel (awstats-6.0.ebuild,2.16 KB, text/plain)
2003-12-21 18:10 UTC, Markus Luisser
Details
gentoo configuration patch (gentoo-config.patch,2.06 KB, patch)
2003-12-21 18:13 UTC, Markus Luisser
Details | Diff
updated gentoo configuration patch (gentoo-config-r1.patch,1.96 KB, patch)
2003-12-31 04:56 UTC, Markus Luisser
Details | Diff
Updated config patch for 6.0 (gentoo-config.patch,1.93 KB, patch)
2004-01-27 13:04 UTC, Richard Freeman
Details | Diff
Rewrote the awstats-6.0 - ebuild (awstats-6.0.ebuild,3.28 KB, text/plain)
2004-02-14 06:52 UTC, Michael Schmid
Details
Rewritten awstats-6.0.ebuild - Update (awstats-6.0.diff,5.75 KB, patch)
2004-02-23 20:50 UTC, Michael Schmid
Details | Diff
New awstats 6.1beta-ebuild (awstats-6.1.ebuild,4.39 KB, application/octet-stream)
2004-04-08 18:54 UTC, Michael Schmid
Details
awstats-6.1-r1.ebuild.tar.gz (awstats-6.1-r1.ebuild.tar.gz,3.64 KB, application/gzip)
2004-05-18 05:29 UTC, Perolo Silantico
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Arledge 2003-04-15 17:08:29 UTC
http://awstats.sourceforge.net

awstats generates advanced web (but also ftp or mail) server access statistics
graphically. This log analyzer works as a CGI or from command line and shows you
all possible information your log contains, in few graphical web pages. 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Brian Arledge 2003-04-15 17:10:37 UTC
Created attachment 10703 [details]
new: awstats is a webserver statistics program
Comment 2 Frantz Dhin 2003-04-15 23:32:54 UTC
Nice ebuild I must say.
I can see though that you assume apache documents are served from /home/httpd/htdocs. Maybe this is not so good? Even if the default install of apache does indeed create this folder it does not mean it is making active use of it. Maybe a better approach would be to grep document root out of the apache conf file? Just my humble $.02
Comment 3 Daniel Seyffer 2003-07-06 07:03:46 UTC
This works like a charm (well, except maybe assuming /home/httpd/... as already 
mentioned.) I did use this ebuild already a few months ago on another computer. 
Really nice - why isn't this already in portage? :-) 
Comment 4 Daniel Seyffer 2003-07-06 07:05:18 UTC
Created attachment 14195 [details]
awstats-5.6 ebuild

I did a trivial update on the ebuild (really trivial - in fact its just a
rename *g*) to get the current stable version 5.6.
Comment 5 Donny Davies (RETIRED) gentoo-dev 2003-08-21 22:02:10 UTC
im sorry i havent had and dont have time to process this.  since somebody else might like the opportunity to work with it, i return it to wranglers.
Comment 6 Daniel Seyffer 2003-09-06 10:06:51 UTC
FYI: Version 5.7 is out... 
Comment 7 Chuck Short (RETIRED) gentoo-dev 2003-09-07 07:01:25 UTC
*** Bug 28052 has been marked as a duplicate of this bug. ***
Comment 8 Chuck Short (RETIRED) gentoo-dev 2003-09-07 07:24:51 UTC
Created attachment 17221 [details, diff]
Patch

Hi,

I had a look at the ebuild and it was not bad, you were missing a couple of
things	 such as an IUSE and the license was wrong. I changed your ebuild so it
uses the webapp-apache eclass so the DocumentRoot is not hardcoded. If you make
these changes in the ebuild I will ad the ebuild to cvs.

Regards,
Chuck
Comment 9 Daniel Seyffer 2003-09-21 09:30:44 UTC
Hi. 
Since no one else seems to care, I just merged your patch, Chuck, and also did a version bump to current stable (which is 5.8). ;-)
Regards,
Daniel
Comment 10 Daniel Seyffer 2003-09-21 09:31:45 UTC
Created attachment 18080 [details]
awstats-5.8

updated ebuild: awstats-2.8.ebuild
Comment 11 Daniel Seyffer 2003-09-21 09:39:31 UTC
Request for Comments: 
Hm. Another thing that just came to my mind. How about putting awstats folder (i.e. icons/ and such) not directly in wwwroot but in a subfolder (awstats)? 
This would keep wwwroot a bit cleaner. :)
Drawback is that then one would probably also have to patch and update awstats.model.conf (i.e. DirIcons="/icon") to reflect the changed dir structure...
Comments?
Comment 12 Martin Holzer (RETIRED) gentoo-dev 2003-09-21 13:00:55 UTC
*** Bug 17840 has been marked as a duplicate of this bug. ***
Comment 13 Martin Holzer (RETIRED) gentoo-dev 2003-09-21 13:05:51 UTC
hostname -f prints out full domain
how about adding this in ebuild to automatic copy the config file ?
Comment 14 Martin Holzer (RETIRED) gentoo-dev 2003-09-21 13:14:38 UTC
cp -R ${S}/wwwroot/icon/* ${D}/${HTTPD_ROOT}
change this into
cp -a ${S}/wwwroot/icon ${D}/${HTTPD_ROOT}
Comment 15 Stuart Herbert (RETIRED) gentoo-dev 2003-10-04 07:56:30 UTC
Hi,

The web-apps herd is currently working on delivering some important changes
to the way that web-based applications are installed and managed on Gentoo
Linux.  Until this work is complete, we're not commiting ebuilds for new
web-based packages.

I've marked this bug as 'LATER'.  As soon as we are able to, we will come
back to this bug and help you convert your ebuild to our new approach.

Many thanks for your patience,
Stu
Comment 16 SpanKY gentoo-dev 2003-12-08 06:48:20 UTC
*** Bug 35330 has been marked as a duplicate of this bug. ***
Comment 17 SpanKY gentoo-dev 2003-12-09 15:43:09 UTC
*** Bug 35486 has been marked as a duplicate of this bug. ***
Comment 18 Federico Moro 2003-12-09 15:48:03 UTC
Created attachment 21953 [details]
awstats-5.9.ebuild

New ebuild for new awstats (awstats-5.9) version.
Comment 19 solar (RETIRED) gentoo-dev 2003-12-09 15:57:50 UTC
Stuart,
Re: comment #15

These changes have gone in portage and it would seem like now 
would be a good time to reopen this bug.
Comment 20 Markus Luisser 2003-12-21 18:10:45 UTC
Created attachment 22527 [details]
ebuild for awstats-6.0 devel

ebuild for version 6.0 (devel). only works with apache2 till now
Comment 21 Markus Luisser 2003-12-21 18:13:17 UTC
Created attachment 22528 [details, diff]
gentoo configuration patch

this patches /tools/configure.pl to work with gentoo paths
Comment 22 Markus Luisser 2003-12-21 18:23:56 UTC
changes in 6.0:

-ebuild installs docs (dodoc/dohtml)

-/tools/configure.pl is patched to work with gentoo and apache2

-config files is installed in /etc/awstats

-the tools subdir is installed in cgi-bin/awstats/tools - might be better to put them into sbin.

-updated the sed changes applied to the configfile. they are partly overwritten when configure.pl is executed because the script works over aliases in apache.conf. i kept them so the user has the option to configure with the script or by hand.
Comment 23 Markus Luisser 2003-12-31 04:56:20 UTC
Created attachment 22906 [details, diff]
updated gentoo configuration patch

changed patch to work with the latest (2003/12/29) version of
tools/configure.pl
Comment 24 Donovan Long 2004-01-07 21:33:39 UTC
This program is great, better than webalizer in my opinion, by far.  The ebuild request is offically about eight months old, it would be great to get this sweet package into portage for Apache 1 and 2 users!  :D
Comment 25 Sergiy Borodych 2004-01-23 13:44:42 UTC
Why this great program not present in portage ???
And also
Last stable version is 6.0 - 2004-01-16 12:42
Comment 26 Richard Freeman gentoo-dev 2004-01-27 13:04:55 UTC
Created attachment 24498 [details, diff]
Updated config patch for 6.0

I have an updated patch - changes to the 6.0 source broke the previous patch.
Comment 27 Derk-Jan Hartman 2004-01-27 23:19:09 UTC
A real shame that this still isn't in portage.
It's quite useless for large webservers i guess, but a beautiful analyzer for my very small personal webserver.
Comment 28 Michael Schmid 2004-02-14 06:52:15 UTC
Created attachment 25590 [details]
Rewrote the awstats-6.0 - ebuild

I re-wrote (and even reformatted) many parts of the ebuild to make it easier to
maintain. The code still needs to be beautified, though...
Comment 29 Daniel Seyffer 2004-02-14 06:56:34 UTC
nice. Lets hope this will finally be added to portage... :-)
Comment 30 Michael Schmid 2004-02-14 06:56:58 UTC
Comment on attachment 25590 [details]
Rewrote the awstats-6.0 - ebuild

I rewrote (-and even reformatted) the awstats-6.0 - ebuild to make it easier to
maintain. Hope it helps.
Comment 31 Cedar McKay 2004-02-23 16:46:39 UTC
Regarding Michael Schmid's 6.0 ebuild. I'm giving it a shot. After emerging which went smoothly I see this help text:

* cat /var/www/localhost/cgi-bin/awstats/tools/httpd_conf >> /etc/apache2/conf/commonapache2.conf
 *  to make awstats-6.0's default target directory for statistics accessible on your webserver.

If I go and take a look at /var/www/localhost/cgi-bin/awstats/tools/httpd_conf I see this:


#
# Directives to add to your Apache conf file to allow use of AWStats as a CGI.
# Note that path "/usr/local/awstats/" must reflect your AWStats install path.
#
Alias /awstatsclasses "/usr/local/awstats/wwwroot/classes/"
Alias /awstatscss "/usr/local/awstats/wwwroot/css/"
Alias /awstatsicons "/usr/local/awstats/wwwroot/icon/"
ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/"

#
# This is to permit URL access to scripts/files in AWStats directory.
#
<Directory "/usr/local/awstats/wwwroot">
    Options None
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>


As you can see, this file is as if stuff is installed into /usr/local  However, it looks like the ebuild
actually puts everything in /var/www/localhost/htdocs

so if I followed the advice of the ebuild and did the recomened cat step that would be unhelpful:
Rather than the gentoo default location it seems to be using the awstats' authors default location.

thanks,
Cedar
Comment 32 Michael Schmid 2004-02-23 20:50:08 UTC
Created attachment 26227 [details, diff]
Rewritten awstats-6.0.ebuild - Update

In response to Comment #31. Thanks for the report!

Also includes a few corrections to strings with typos that replace some other
strings inside configure.pl on using ebuild config.
Comment 33 Cedar McKay 2004-02-24 18:43:55 UTC
No problem, Michael. A couple of other little things:

1)You might mention in the post install text that the user needs to go through /etc/awstats 
awstats.conf manually to configure things. I don't think this is one of those packages that just works without configuring once installed.

2) /etc/awstats/awstats.conf seems to have some parameters "gentooified" by the ebuild One of these is the entry:
LogFile="/var/log/apache/access_log"
for people using apache2 this will not work.

3) in /etc/awstats/awstats.conf I find:
DirData="." 
Which I believe will cause awstats to use whatever directory awstats.pl is in ( I think /var/www/localhost/cgi-bin/awstats/) as the data directory. I'm not sure this is desireable behavior. I created my
 own DirData and set it to be to be DirData="/var/www/localhost/awstats_data_dir"

I'm not in love with that location either, but I think it would be nice not to have datafiles and temp files comingled with all the awstats core files.

thanks,
Cedar
Comment 34 Michael Schmid 2004-02-29 04:45:29 UTC
 Response to comment #33:
1) I think we can and should get AWStats to work out-of-the-box! (Well- at least after GLEP 11 is released, or so I hope...). But let's add that hint anyways, though then it's probably needed to pause for a moment so ppl can read all these hints.
How about: "Even in the case the automatic configuration works properly (this cannot be guaranteed yet!), you'll still have to read the manual in order not to miss out on all kinds of useful features, and, MORE IMPORANTLY, to invoke the actual logfile generation process!"?
Please make comments/corrections if you think something's wrong with the content or my english!

2) I thought with USE="apache2", it works. Only after a fresh install and then "configure", though- maybe this should be changed so it ALWAYS updates that particular line...

3) You're right- leaving the datafiles where they are right now is not such a good idea. But personally, I would prefer not to open yet another directory for awstats and just put it into a "datadir" - subfolder inside htdocs/awstats or cgi-bin/awstats.
Comment 35 Michael Schmid 2004-04-08 18:54:49 UTC
Created attachment 28925 [details]
New awstats 6.1beta-ebuild

Updated the ebuild for the new awstats 6.1 beta. A few minor changes were done
to the ebuild as well...
Comment 36 Stuart Herbert (RETIRED) gentoo-dev 2004-04-23 00:48:45 UTC
Hi,

Sorry for the delay in replying.  We've been very busy putting a new
framework in place for ebuilds for web-based applications.  This has
now been added to Portage.

We need you to update your ebuild to use the new framework before we
can accept your ebuild.

Please emerge net-www/webapp-config (make sure you get version 1.2 or
later), and update your ebuild to work with this new tool.  You can
use 'man 5 webapp.eclass', 'man 5 webapp-config' and 'man 8 webapp-config'
to learn more about how your ebuild needs to work.

You can find an example ebuild, for phpmyadmin, in

	/usr/share/doc/webapp-config-1.2/
	
If you encounter any difficulties with the new framework (and we
apologise, but there are sure to be a few at first), please let us know
and we'll do our best to help you.

Best regards,
Stu
Comment 37 Perolo Silantico 2004-05-18 05:29:40 UTC
Created attachment 31651 [details]
awstats-6.1-r1.ebuild.tar.gz

complete ebuild with digest and config patch.
ebuild is based on the new ebuil.class of webapp-config: Please test compliance
and add to ebuild if everything is OK.

awstats is installed in the webapp-conf based directories. But the command line
tools are installed in /usr/bin. 

Yours
  Perolo
Comment 38 Chuck Short (RETIRED) gentoo-dev 2004-05-21 09:11:17 UTC
Added thanks for all of your work guys.