pkgsrc/www/webalizer/Makefile

80 lines
2.4 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.40 2006/04/17 13:46:52 wiz Exp $
#
DISTNAME= webalizer-2.01-10-src
PKGNAME= webalizer-2.1.10
PKGREVISION= 6
CATEGORIES= www
MASTER_SITES= ftp://ftp.mrunix.net/pub/webalizer/ \
http://gd.tuwien.ac.at/infosys/logeval/webalizer/
Updated to 2.01.06. Changes include: o Fixed possible segfault condition in MangleAgent code on some malformed user agent names. o Fixed DNS to prevent hangs on blank and malformed hostnames. o Fixed problem calculating visits. o Fixed hostname lowercase problem (wasn't) when using DNS lookups. o Fixed problem with incremental datafile which could cause a read error under certain circumstances o Fixed problem with hash table node creation o Fixed problem where country graph could be produced incorrectly o Found and fixed a problem with a possible 32-bit wrap around o Added DailyGraph and DailyStats configuration options o Improved visit calculation logic to reduce 'false' counts o Added reverse DNS lookup capability. o Added ability to dump Sites, URL's, Referrers, User Agents, Usernames and Search Strings to tab delimited files o Added username analysis, based on usernames found in the log, o Added the ability to display ALL sites, URL's, Referrers, User Agents and Search Strings on a seperate HTML page o Added support for squid proxy logs o Completely modified the way the various TOP tables are handled and sorted o Added the ability to group domains automatically o Added user configurable search engine specification o Changed code to use the latest version of GD which supports PNG o Added ability to override log file to STDIN by use of '-' o Added gzipped logfile support. o Minor changes to search string code to increase accuracy. o Minor changes to URL parse code to allow additional characters. o Major changes to hash table node format for reduced memory usage.
2000-10-18 18:41:23 +02:00
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.mrunix.net/webalizer/
COMMENT= Web server log file analysis program
PKG_INSTALLATION_TYPES= overwrite pkgviews
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//}
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --with-etcdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+= --enable-dns
CONFIGURE_ENV+= ac_cv_GDLIB=${BUILDLINK_PREFIX.gd}/include
EGDIR= ${PREFIX}/share/examples
CONF_FILES= ${EGDIR}/webalizer.conf.sample ${PKG_SYSCONFDIR}/webalizer.conf
_DOC_SUBDIR= share/doc/webalizer
_DOCDIR= ${PREFIX}/${_DOC_SUBDIR}
_DOCFILES= CHANGES Copyright DNS.README README README.FIRST
PLIST_ADD= ${WRKSRC}/.PLIST_ADD
PLIST_SRC= ${PKGDIR}/PLIST ${PLIST_ADD}
INSTALLATION_DIRS= bin man/man1 share/examples ${_DOC_SUBDIR}
SUBST_CLASSES+= webalizer
SUBST_STAGE.webalizer= post-build
SUBST_FILES.webalizer= sample.conf webalizer.1
SUBST_SED.webalizer= -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g"
PKG_OPTIONS_VAR= PKG_OPTIONS.webalizer
PKG_SUPPORTED_OPTIONS= geoip
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mgeoip)
# we want the patch archive extracted...
_GEOPATCH= geolizer_2.01-10-patch
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
DISTFILES+= ${_GEOPATCH}.20050520.tar.gz
# ... _and_ the patch applied automatically
PATCHFILES= ${_GEOPATCH}.20050520.tar.gz
PATCH_SITES= http://sysd.org/proj/
PATCH_DIST_CAT= ${GZCAT} $$patchfile | ${TAR} -Oxf - "geolizer*/geolizer.patch"
PATCH_DIST_STRIP= -p1
CONFIGURE_ARGS+= --enable-geoip
_DOCFILES+= GeoIP.README GeoIP.INSTALL
post-extract:
cd ${WRKDIR}/${_GEOPATCH} && \
${MV} INSTALL ${WRKSRC}/GeoIP.INSTALL &&\
${MV} GeoIP.README ${WRKSRC}
. include "../../net/GeoIP/buildlink3.mk"
.endif # option geoip
post-install:
@${TEST} -r ${PLIST_ADD} && ${RM} ${PLIST_ADD} ; :
@cd ${WRKSRC}; \
for f in ${_DOCFILES}; do \
${INSTALL_DATA} $$f ${_DOCDIR}/$$f; \
${ECHO} "${_DOC_SUBDIR}/$$f" >> ${PLIST_ADD}; \
done;
@${ECHO} "@dirrm ${_DOC_SUBDIR}" >> ${PLIST_ADD};
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/gd/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"