Opened 19 years ago
Closed 19 years ago
#5212 closed defect (fixed)
NEW PORT: awstats
Reported by: | joe@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.0 |
Keywords: | Cc: | ||
Port: |
Description
Free real-time logfile analyzer to get advanced web statistics
Attachments (2)
Change History (7)
Changed 19 years ago by joe@…
comment:1 Changed 19 years ago by mww@…
the port tries to create /etc/awstats - is it possible to move this directory inside $prefix? And especially into $destroot?
comment:2 Changed 19 years ago by joe@…
(In reply to comment #2)
the port tries to create /etc/awstats - is it possible to move this directory inside $prefix? And especially into $destroot?
This was what I was originally aiming towards, but awstats looks for config files only within hard-coded certain paths, of which /opt/local/etc is not included. I suppose the software could be patched to add this path, but I figured this approach was easier. The FreeBSD port works the exactly same way.
comment:3 Changed 19 years ago by mww@…
how about adding: --- patch {
cd ${worksrcpath} reinplace "s|/usr/local|${prefix}" \
tools/awstats_buildstaticpages.pl tools/awstats_updateall.pl \ tools/httpd_conf tools/webmin/awstats-1.5.wbm \ wwwroot/cgi-bin/awstats.model.conf wwwroot/cgi-bin/awstats.pl
} --- to fix this issue - looks like /usr/local/etc/ is already a valid configuration directory, so make it use $prefix/etc instead this way. Haven't tested - these are just all files that contain /usr/local as a string.
comment:4 Changed 19 years ago by joe@…
attachments.isobsolete: | 0 → 1 |
---|
comment:5 Changed 19 years ago by mww@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
ok, thanks - commited!
Awstats 6.4 Portfile