2005-08-20 16:28:03 +02:00
|
|
|
# $NetBSD: Makefile,v 1.19 2005/08/20 14:28:03 adrianp Exp $
|
2003-07-31 05:18:20 +02:00
|
|
|
#
|
|
|
|
|
2005-08-14 17:33:44 +02:00
|
|
|
DISTNAME= awstats-6.4
|
2005-08-20 16:28:03 +02:00
|
|
|
PKGREVISION= 1
|
2003-07-31 05:18:20 +02:00
|
|
|
CATEGORIES= www
|
2005-01-18 14:37:26 +01:00
|
|
|
MASTER_SITES= http://awstats.sourceforge.net/files/
|
2003-07-31 05:18:20 +02:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2004-12-29 11:22:27 +01:00
|
|
|
MAINTAINER= minskim@NetBSD.org
|
2003-07-31 05:18:20 +02:00
|
|
|
HOMEPAGE= http://awstats.sourceforge.net/
|
|
|
|
COMMENT= Free real-time logfile analyzer to get advanced web statistics
|
|
|
|
|
2005-01-26 16:55:41 +01:00
|
|
|
DIST_SUBDIR= ${PKGNAME}
|
2003-07-31 05:18:20 +02:00
|
|
|
NO_BUILD= YES
|
|
|
|
|
2005-07-16 03:19:06 +02:00
|
|
|
USE_TOOLS+= perl:run
|
2004-01-13 00:58:43 +01:00
|
|
|
REPLACE_PERL= tools/*.pl \
|
|
|
|
wwwroot/cgi-bin/*.pl
|
2003-07-31 05:18:20 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/awstats
|
2005-01-18 14:37:26 +01:00
|
|
|
${INSTALL_SCRIPT_DIR} ${PREFIX}/awstats/bin
|
2005-01-19 13:49:33 +01:00
|
|
|
${INSTALL_SCRIPT_DIR} ${PREFIX}/awstats/cgi-bin
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/awstats/cgi-bin/plugins
|
2003-07-31 05:18:20 +02:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/awstats
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/awstats
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tools/*.pl ${PREFIX}/awstats/bin
|
2005-01-19 13:49:33 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/wwwroot/cgi-bin/*.pl \
|
|
|
|
${PREFIX}/awstats/cgi-bin
|
2003-07-31 05:18:20 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/awstats.model.conf \
|
|
|
|
${PREFIX}/share/examples/awstats/awstats.conf
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/plugins/example/example.pm \
|
|
|
|
${PREFIX}/share/examples/awstats/example.pm
|
2005-01-19 13:49:33 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/plugins/*.pm \
|
|
|
|
${PREFIX}/awstats/cgi-bin/plugins
|
|
|
|
.for d in lang lib
|
|
|
|
cd ${WRKSRC}/wwwroot/cgi-bin \
|
|
|
|
&& ${PAX} -rwpppm $d ${PREFIX}/awstats/cgi-bin/
|
|
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/awstats/cgi-bin/$d
|
|
|
|
${FIND} ${PREFIX}/awstats/cgi-bin/$d -type d -print \
|
|
|
|
| ${XARGS} ${CHMOD} ${PKGDIRMODE}
|
|
|
|
${FIND} ${PREFIX}/awstats/cgi-bin/$d -type f -print \
|
|
|
|
| ${XARGS} ${CHMOD} ${SHAREMODE}
|
|
|
|
.endfor
|
|
|
|
.for d in classes css icon js
|
|
|
|
cd ${WRKSRC}/wwwroot && ${PAX} -rwpppm $d ${PREFIX}/awstats/
|
|
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/awstats/$d
|
|
|
|
${FIND} ${PREFIX}/awstats/$d -type d -print \
|
|
|
|
| ${XARGS} ${CHMOD} ${PKGDIRMODE}
|
|
|
|
${FIND} ${PREFIX}/awstats/$d -type f -print \
|
|
|
|
| ${XARGS} ${CHMOD} ${SHAREMODE}
|
|
|
|
.endfor
|
2004-01-13 00:53:50 +01:00
|
|
|
cd ${WRKSRC}/docs && ${PAX} -rwpppm . ${PREFIX}/share/doc/html/awstats/
|
2005-01-19 13:49:33 +01:00
|
|
|
${CHOWN} -R ${DOCOWN}:${DOCGRP} ${PREFIX}/share/doc/html/awstats/
|
|
|
|
${FIND} ${PREFIX}/share/doc/html/awstats/ -type d -print \
|
|
|
|
| ${XARGS} ${CHMOD} ${PKGDIRMODE}
|
|
|
|
${FIND} ${PREFIX}/share/doc/html/awstats/ -type f -print \
|
|
|
|
| ${XARGS} ${CHMOD} ${DOCMODE}
|
2003-07-31 05:18:20 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|