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)

Portfile (2.9 KB) - added by joe@… 19 years ago.
Awstats 6.4 Portfile
Portfile.2 (3.0 KB) - added by joe@… 19 years ago.
awstats 6.4

Download all attachments as: .zip

Change History (7)

Changed 19 years ago by joe@…

Attachment: Portfile added

Awstats 6.4 Portfile

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.

Changed 19 years ago by joe@…

Attachment: Portfile.2 added

awstats 6.4

comment:4 Changed 19 years ago by joe@…

attachments.isobsolete: 01

comment:5 Changed 19 years ago by mww@…

Resolution: fixed
Status: newclosed

ok, thanks - commited!

Note: See TracTickets for help on using tickets.