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.
Created attachment 10703 [details] new: awstats is a webserver statistics program
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
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? :-)
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.
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.
FYI: Version 5.7 is out...
*** Bug 28052 has been marked as a duplicate of this bug. ***
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
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
Created attachment 18080 [details] awstats-5.8 updated ebuild: awstats-2.8.ebuild
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?
*** Bug 17840 has been marked as a duplicate of this bug. ***
hostname -f prints out full domain how about adding this in ebuild to automatic copy the config file ?
cp -R ${S}/wwwroot/icon/* ${D}/${HTTPD_ROOT} change this into cp -a ${S}/wwwroot/icon ${D}/${HTTPD_ROOT}
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
*** Bug 35330 has been marked as a duplicate of this bug. ***
*** Bug 35486 has been marked as a duplicate of this bug. ***
Created attachment 21953 [details] awstats-5.9.ebuild New ebuild for new awstats (awstats-5.9) version.
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.
Created attachment 22527 [details] ebuild for awstats-6.0 devel ebuild for version 6.0 (devel). only works with apache2 till now
Created attachment 22528 [details, diff] gentoo configuration patch this patches /tools/configure.pl to work with gentoo paths
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.
Created attachment 22906 [details, diff] updated gentoo configuration patch changed patch to work with the latest (2003/12/29) version of tools/configure.pl
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
Why this great program not present in portage ??? And also Last stable version is 6.0 - 2004-01-16 12:42
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.
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.
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...
nice. Lets hope this will finally be added to portage... :-)
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.
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
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.
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
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.
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...
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
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
Added thanks for all of your work guys.