2014-05-30 01:35:13 +02:00
|
|
|
# $NetBSD: Makefile,v 1.55 2014/05/29 23:37:56 wiz Exp $
|
2003-07-31 05:18:20 +02:00
|
|
|
|
2014-02-01 12:38:48 +01:00
|
|
|
DISTNAME= awstats-7.3
|
2014-05-30 01:35:13 +02:00
|
|
|
PKGREVISION= 1
|
2003-07-31 05:18:20 +02:00
|
|
|
CATEGORIES= www
|
2012-07-20 16:11:04 +02:00
|
|
|
MASTER_SITES= http://www.awstats.org/files/
|
2003-07-31 05:18:20 +02:00
|
|
|
|
2004-12-29 11:22:27 +01:00
|
|
|
MAINTAINER= minskim@NetBSD.org
|
2012-07-20 16:11:04 +02:00
|
|
|
HOMEPAGE= http://www.awstats.org/
|
2003-07-31 05:18:20 +02:00
|
|
|
COMMENT= Free real-time logfile analyzer to get advanced web statistics
|
2013-08-06 17:36:09 +02:00
|
|
|
LICENSE= gnu-gpl-v3
|
2003-07-31 05:18:20 +02:00
|
|
|
|
2008-04-07 09:21:00 +02:00
|
|
|
NO_BUILD= yes
|
2003-07-31 05:18:20 +02:00
|
|
|
|
2008-05-25 23:42:20 +02:00
|
|
|
USE_TOOLS+= perl:run pax
|
2008-04-07 09:21:00 +02:00
|
|
|
REPLACE_PERL+= tools/*.pl
|
|
|
|
REPLACE_PERL+= wwwroot/cgi-bin/*.pl
|
|
|
|
REPLACE_PERL+= wwwroot/cgi-bin/plugins/*.pm
|
|
|
|
REPLACE_PERL+= wwwroot/classes/src/*.pl
|
2003-07-31 05:18:20 +02:00
|
|
|
|
2007-02-15 16:00:21 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2008-01-03 13:37:06 +01:00
|
|
|
.include "options.mk"
|
2007-02-15 16:00:21 +01:00
|
|
|
|
2005-08-26 22:22:56 +02:00
|
|
|
APACHE_USER?= www
|
|
|
|
APACHE_GROUP?= www
|
2007-07-04 22:54:31 +02:00
|
|
|
|
|
|
|
PKG_GROUPS_VARS+= APACHE_GROUP
|
2009-01-15 13:12:04 +01:00
|
|
|
PKG_USERS_VARS= APACHE_USER
|
2007-07-04 22:54:31 +02:00
|
|
|
BUILD_DEFS+= VARBASE
|
2005-08-26 22:22:56 +02:00
|
|
|
|
2012-07-20 16:11:04 +02:00
|
|
|
#OWN_DIRS= ${VARBASE}/awstats
|
2007-02-15 16:00:21 +01:00
|
|
|
OWN_DIRS_PERMS+= ${VARBASE}/awstats ${APACHE_USER} ${APACHE_GROUP} 0700
|
2005-08-26 22:22:56 +02:00
|
|
|
PKG_SYSCONFSUBDIR= awstats
|
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
SUBST_CLASSES+= conf
|
2006-06-13 19:02:04 +02:00
|
|
|
SUBST_STAGE.conf= pre-configure
|
2005-08-26 22:22:56 +02:00
|
|
|
SUBST_FILES.conf= tools/awstats_configure.pl \
|
2006-06-13 19:02:04 +02:00
|
|
|
tools/awstats_buildstaticpages.pl \
|
|
|
|
tools/awstats_updateall.pl \
|
2005-08-26 22:22:56 +02:00
|
|
|
wwwroot/cgi-bin/awstats.model.conf \
|
|
|
|
wwwroot/cgi-bin/awstats.pl
|
2006-05-16 20:13:55 +02:00
|
|
|
SUBST_SED.conf= -e "s|@PREFIX@|${PREFIX}|g"
|
|
|
|
SUBST_SED.conf+= -e "s|@VARBASE@|${VARBASE}|g"
|
|
|
|
SUBST_SED.conf+= -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g"
|
2006-06-13 19:02:04 +02:00
|
|
|
SUBST_SED.conf+= -e "s|\"/etc/awstats|\"${PKG_SYSCONFDIR}|g"
|
|
|
|
SUBST_SED.conf+= -e "s|\"/usr/local/awstats/wwwroot|\"${PREFIX}/awstats|g"
|
2006-05-16 20:13:55 +02:00
|
|
|
SUBST_SED.conf+= -e "s|/var/log/httpd/mylog.log|${VARBASE}/log/httpd/access_log|g"
|
2006-04-22 11:22:05 +02:00
|
|
|
SUBST_MESSAGE.conf= Fixing configuration files and scripts.
|
2005-08-26 22:22:56 +02:00
|
|
|
|
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/awstats/awstats.conf \
|
|
|
|
${PKG_SYSCONFDIR}/awstats.model.conf
|
|
|
|
|
2008-04-07 09:21:00 +02:00
|
|
|
INSTALLATION_DIRS+= awstats
|
|
|
|
INSTALLATION_DIRS+= awstats/bin
|
|
|
|
INSTALLATION_DIRS+= awstats/cgi-bin
|
|
|
|
INSTALLATION_DIRS+= awstats/cgi-bin/plugins
|
|
|
|
INSTALLATION_DIRS+= share/doc/awstats
|
|
|
|
INSTALLATION_DIRS+= share/examples/awstats
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
find ${WRKSRC} -name .cvsignore -exec rm {} \;
|
|
|
|
|
2003-07-31 05:18:20 +02:00
|
|
|
do-install:
|
2008-06-20 03:09:05 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tools/*.pl ${DESTDIR}${PREFIX}/awstats/bin
|
2009-09-19 02:05:02 +02:00
|
|
|
${FIND} ${WRKSRC}/wwwroot/cgi-bin -name \*.orig -exec ${RM} {} \;
|
2005-01-19 13:49:33 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/wwwroot/cgi-bin/*.pl \
|
2008-06-20 03:09:05 +02:00
|
|
|
${DESTDIR}${PREFIX}/awstats/cgi-bin
|
2003-07-31 05:18:20 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/awstats.model.conf \
|
2008-06-20 03:09:05 +02:00
|
|
|
${DESTDIR}${PREFIX}/share/examples/awstats/awstats.conf
|
2003-07-31 05:18:20 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/plugins/example/example.pm \
|
2008-06-20 03:09:05 +02:00
|
|
|
${DESTDIR}${PREFIX}/share/examples/awstats/example.pm
|
2005-01-19 13:49:33 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/plugins/*.pm \
|
2008-06-20 03:09:05 +02:00
|
|
|
${DESTDIR}${PREFIX}/awstats/cgi-bin/plugins
|
2005-01-19 13:49:33 +01:00
|
|
|
.for d in lang lib
|
|
|
|
cd ${WRKSRC}/wwwroot/cgi-bin \
|
2008-06-20 03:09:05 +02:00
|
|
|
&& pax -rwpppm ${d} ${DESTDIR}${PREFIX}/awstats/cgi-bin/
|
|
|
|
chown -R ${SHAREOWN}:${SHAREGRP} ${DESTDIR}${PREFIX}/awstats/cgi-bin/${d}
|
|
|
|
find ${DESTDIR}${PREFIX}/awstats/cgi-bin/${d} -type d -print \
|
2007-02-15 16:00:21 +01:00
|
|
|
| xargs chmod ${PKGDIRMODE}
|
2008-06-20 03:09:05 +02:00
|
|
|
find ${DESTDIR}${PREFIX}/awstats/cgi-bin/${d} -type f -print \
|
2007-02-15 16:00:21 +01:00
|
|
|
| xargs chmod ${SHAREMODE}
|
2005-01-19 13:49:33 +01:00
|
|
|
.endfor
|
|
|
|
.for d in classes css icon js
|
2008-06-20 03:09:05 +02:00
|
|
|
cd ${WRKSRC}/wwwroot && pax -rwpppm ${d} ${DESTDIR}${PREFIX}/awstats/
|
|
|
|
chown -R ${SHAREOWN}:${SHAREGRP} ${DESTDIR}${PREFIX}/awstats/${d}
|
|
|
|
find ${DESTDIR}${PREFIX}/awstats/${d} -type d -print \
|
2007-02-15 16:00:21 +01:00
|
|
|
| xargs chmod ${PKGDIRMODE}
|
2008-06-20 03:09:05 +02:00
|
|
|
find ${DESTDIR}${PREFIX}/awstats/${d} -type f -print \
|
2007-02-15 16:00:21 +01:00
|
|
|
| xargs chmod ${SHAREMODE}
|
2005-01-19 13:49:33 +01:00
|
|
|
.endfor
|
2008-06-20 03:09:05 +02:00
|
|
|
cd ${WRKSRC}/docs && pax -rwpppm . ${DESTDIR}${PREFIX}/share/doc/awstats/
|
|
|
|
chown -R ${DOCOWN}:${DOCGRP} ${DESTDIR}${PREFIX}/share/doc/awstats/
|
|
|
|
find ${DESTDIR}${PREFIX}/share/doc/awstats/ -type d -print \
|
2007-02-15 16:00:21 +01:00
|
|
|
| xargs chmod ${PKGDIRMODE}
|
2008-06-20 03:09:05 +02:00
|
|
|
find ${DESTDIR}${PREFIX}/share/doc/awstats/ -type f -print \
|
2007-02-15 16:00:21 +01:00
|
|
|
| xargs chmod ${DOCMODE}
|
2003-07-31 05:18:20 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|