# New ports collection makefile for: awstats # Date created: May 13, 2002 # Whom: Munish Chopra # # $FreeBSD$ # PORTNAME= awstats-devel PORTVERSION= 6.6 PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://awstats.sourceforge.net/files/ DISTNAME= awstats-${PORTVERSION} MAINTAINER= farrokhi@FreeBSD.org COMMENT= Free real-time logfile analyzer to get advanced web statistics RUN_DEPENDS= ${SITE_PERL}/Net/XWhois.pm:${PORTSDIR}/net/p5-Net-XWhois NO_BUILD= yes USE_PERL5_RUN= yes USE_DOS2UNIX= tools/logresolvemerge.pl SUB_FILES= pkg-message AWSTATS?= www/awstats PLIST_SUB= AWSTATS=${AWSTATS} CONFLICTS= awstats-6.* LATEST_LINK= awstats-devel OPTIONS= IPV6 "Enable IPV6 for use with IPv6 Plugin" Off .include .if defined(WITH_IPV6) RUN_DEPENDS+= ${SITE_PERL}/Net/IP.pm:${PORTSDIR}/net-mgmt/p5-Net-IP RUN_DEPENDS+= ${SITE_PERL}/mach/Net/DNS.pm:${PORTSDIR}/dns/p5-Net-DNS .endif .if ${PERL_LEVEL} < 500800 RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable .endif post-patch: @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/tools/awstats_buildstaticpages.pl @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/tools/awstats_configure.pl @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/tools/awstats_updateall.pl @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/wwwroot/cgi-bin/awstats.pl @${FIND} ${WRKSRC} -name '*.orig' -delete @${FIND} ${WRKSRC} -name '*.bak' -delete do-install: @${MKDIR} ${PREFIX}/${AWSTATS} @${MKDIR} ${PREFIX}/${AWSTATS}/tools @${MV} ${WRKSRC}/wwwroot/icon ${WRKSRC}/wwwroot/icons @${CP} -R ${WRKSRC}/wwwroot/* ${PREFIX}/${AWSTATS} @${CP} -R ${WRKSRC}/tools/* ${PREFIX}/${AWSTATS}/tools @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${AWSTATS} @${ECHO_CMD} "" @${ECHO_CMD} "* Rename ${PREFIX}/www/awstats/cgi-bin/awstats.model.conf to awstats.site.conf to setup awstats" @${ECHO_CMD} "* Documentation has been installed in ${PREFIX}/share/doc/awstats" @${ECHO_CMD} "" .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR}/images ${INSTALL_DATA} ${WRKSRC}/docs/images/* ${DOCSDIR}/images ${INSTALL_DATA} ${WRKSRC}/docs/*.* ${DOCSDIR} .endif post-install: .if !defined(BATCH) @${CAT} ${PKGMESSAGE} .endif .include