Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 103663 - net-www/awstats with geoip support
Summary: net-www/awstats with geoip support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-24 22:54 UTC by Jakub Moc (RETIRED)
Modified: 2007-05-29 00:21 UTC (History)
6 users (show)

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


Attachments
patch against net-www/awstats-6.5 ebuild (awstats-6.5.ebuild.diff,930 bytes, patch)
2005-08-24 22:55 UTC, Jakub Moc (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub Moc (RETIRED) gentoo-dev 2005-08-24 22:54:46 UTC
Browsing through the gentoo forums, I've found that many people don't know how
to enable Geo-IP plugin in awstats. Since there's a global "geoip" use flag, why
not use it? ;)



Reproducible: Always
Steps to Reproduce:




Dropped alpha, amd64, hppa and mips due to new dependencies. 

dev-perl/Geo-IP needs testing on alpha, amd64, hppa and mips and depends on
dev-libs/geoip, which needs testing on mips.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-08-24 22:55:50 UTC
Created attachment 66838 [details, diff]
patch against net-www/awstats-6.5 ebuild
Comment 2 Aaron Walker (RETIRED) gentoo-dev 2005-08-24 23:25:31 UTC
I can test on amd64, hppa, and mips.  CC'ing alpha@.
Comment 3 Fernando J. Pereda (RETIRED) gentoo-dev 2005-08-26 05:52:30 UTC
dev-perl/Geo-IP doesn't build on alpha... I'm trying to figure out why.

In case you were going to ask, use.mask'ing geoip in alpha is not a solution
since dev-libs/geoip works fine (I'm using it with webalizer)

Cheers,
Ferdy
Comment 4 Fernando J. Pereda (RETIRED) gentoo-dev 2005-09-22 07:39:48 UTC
dev-libs/geoip *should* 'append-flags -fPIC' that way everything works fine on
alpha. And follows the policy :)

Cheers,
Ferdy
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-09-22 08:00:48 UTC
netmon herd, could you please fix dev-libs/geoip ebuild per comment #4? Thanks.
Comment 6 Fernando J. Pereda (RETIRED) gentoo-dev 2005-10-30 04:20:48 UTC
Ok, just a ping here, this is a really important issue. Please netmon, fix geoip.
Comment 7 Daniel Black (RETIRED) gentoo-dev 2005-11-13 12:50:49 UTC
Sorry Ferdy - added -fPIC to  geoip-1.3.13.ebuild and geoip-1.3.14.ebuild 
 
I'll need to revisit this - I'm sure its an automake problem somewhere. 
  
  
Comment 8 Fernando J. Pereda (RETIRED) gentoo-dev 2005-11-26 04:14:36 UTC
Thanks for fixing that one.

I marked dev-perl/Geo-IP ~alpha. If we have to do something else, please CC us
again.

Cheers,
Ferdy
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2005-12-28 15:39:45 UTC
Just a post-Xmas ping :=)
Comment 10 Bob 2006-01-04 06:04:00 UTC
which Geo::IP ebuild should we be building for use with AWStats 6.5?  there are a few in portage:

dev-perl/Geo-IP
dev-libs/geoip
dev-python/geoip-python
dev-ruby/net-geoip

in my case, i installed using dev-libs/geoip and ran into a famous error:


<snip>
Error: Plugin load for plugin 'geoip' failed with return code: Error: Can't locate Geo/IP/PurePerl.pm in @INC (@INC contains: /etc/perl /usr/lib/perl5/site_perl/5.8.6/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.6/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.6/i586-linux-thread-multi /usr/lib/perl5/5.8.6 /usr/local/lib/site_perl . /usr/share/webapps/awstats/6.5/hostroot/cgi-bin/lib /usr/share/webapps/awstats/6.5/hostroot/cgi-bin/plugins) at (eval 3) line 1.

Setup ('/etc/awstats/awstats.ahrends.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).
</snip>

i ended up manually building GeoIP following the directions at maxmind.com.
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2006-01-04 13:30:24 UTC
(In reply to comment #10)
> which Geo::IP ebuild should we be building for use with AWStats 6.5?  there are

Why don't you see/use the ebuild patch in Comment #1?
Comment 12 Jesus de Santos Garcia 2006-02-03 09:57:24 UTC
Uncomenting the line

#LoadPlugin = "geoip GEOIP_STANDARD"

is not enough. You should add /usr/share/GeoIP/GeoIP.dat. I thinl that this should be added to the default conf too.

Comment 13 Jesus de Santos Garcia 2006-02-03 09:59:24 UTC
(In reply to comment #12)
> Uncomenting the line
> 
> #LoadPlugin = "geoip GEOIP_STANDARD"
> 
> is not enough. You should add /usr/share/GeoIP/GeoIP.dat. I thinl that this
> should be added to the default conf too.
> 

Oops. Sorry, I see that this change have been already submitted.

Comment 14 Kevin Bowling 2007-03-24 10:39:32 UTC
So, is the bug solved?  I'd be more than happy to take this one on if not.  Such a trivial merge should have taken place 2 years ago!
Comment 15 Luca Longinotti (RETIRED) gentoo-dev 2007-05-17 15:01:52 UTC
I'm not the maintainer of this and I don't use it...
Best regards, CHTEKK.
Comment 16 Renat Lumpau (RETIRED) gentoo-dev 2007-05-29 00:21:02 UTC
done in 6.6.  not sure why this took so long.