pkgsrc/www/webalizer/Makefile

81 lines
2.4 KiB
Makefile
Raw Normal View History

Update webalizer to version 2.20-01. Other than 2.01-10, this version actually still exists. Changes since 2.01-10: * Fixed problem with timing totals. * Fixed referrer linking to avoid possible xss injection. * Fixed month change detection error that caused incorrect report dates when logs had a 'gap' longer than a year. * Fixed buffer overrun possibility in parsing code and user agent mangle logic. * Added symbolic link checks for file I/O to prevent possible privilege escalation exploits. Disallows reading from or writing to any file that is a symlink. Thanks to Julien Danjou. * Added code to preserve the history and incremental data files in the event of a crash before writing to them completely. Thanks to Robert Millan for the idea and initial code. * Added native geolocation services, which fully supports both IPv4 and IPv6 lookups. Adds the configuration keywords 'GeoDB' and 'GeoDBDatabase' along with the '-j' and '-J' command line options. * Added 'wcmgr', "The Webalizer (DNS) Cache file Manager" to the distribution to provide cache file maintenance. See the supplied man page for a description and usage information. * Changed history code and main index page to allow for more than 12 months of reports to be displayed. Added the config keywords 'IndexMonths' (-K command line option), 'GraphMonths' (-k command line option) and 'YearHeaders' to control how index is displayed. * Changed Berkeley DB code to use current 4.x APIs. * Added support for bzip2 compressed log files (.bz2) as a compile time option (--enable-bz2). If enabled, bzipped files will be decompressed automatically during processing. * Added support for W3C formatted logs. Based on code submitted by Klaus Reimer. * Added GeoIP support as compile time option (--enable-geoip). Adds 'GeoIP' and 'GeoIPDatabase' config keywords, '-w' and '-W' command line options. (http://www.maxmind.com/) * Added IPv6 support. Based on initial code by Jose Carlos Meneiros and modified to support Solaris and other problematic platforms. * Added 'CacheIPs' config option to allow saving unresolved addresses in the DNS cache. * Added 'CacheTTL' config option which allows the DNS cache time to live (TTL) value to be specified at run-time. * Added 'SearchCaseI' config option to specify if search strings should be treated as case insensitive or not. The default value, 'yes', causes search strings to be treated as case insensitive. * Added 'HTAccess' config option. Allows writing a default .htaccess file to the output directory. * Added ability to display flags in the top country table. Adds the config keywords 'CountryFlags' and 'FlagDir', and -z command line option. * Added 'StripCGI' config option to configure how CGI variables on the end of URLs are treated (can now be stripped or left in place). * Added 'DefaultIndex' config option to enable/disable the use of "index." as a default index name to be stripped from the end of URLs. * Added 'TrimSquidURL' config option to allow squid log URLs to be reduced in granularity by a user definable amount. Thanks to code submitted by Stuart Gall. * Added 'OmitPage' config option (and the '-O' command line switch) to prevent specified URLs from being counted as pages even if they otherwise would be. Thanks to code submitted by Adam Morton. * Added 'IgnoreState' config option (and the -b command line switch) to allow ignoring any existing incremental data file (similar to the IgnoreHist/-i option). * Changed logic to always generate summary report (index.html), even if no records were processed. * Added color support to allow changing graph colors. Based on the Webalizer-usecolor code submitted by Benoit Rouits. Adds 11 new config options, see the README file for complete descriptions. * Added language 'lang=' specification in generated HTML files. * Added 'LinkReferrer' config option to allow/disallow links in the top referrers table. * Added 'PagePrefix' config option to allow URL prefix matches to be counted as pages, regardless of file extension or type. Thanks to code submitted by Remco Van de Meent. * Enabled large file support (LFS) to support logs greater than 2Gb in size on systems that support LFS. Also increased the size of most internal counters to handle larger sites. * Minor changes to generated HTML output * Updated language files country codes for current IANA TLDs * Changed the meaning of the -v command line switch. It now causes verbose information to be displayed at run-time (Informational and Debug messages). * Changed Group* config options to allow a quoted string for the match string. This allows spaces to be embedded in the string. * Changed log record parsing logic to allow spaces in URLs. * Made configuration keywords, boolean configuration values (yes/no), and log file types case insensitive. Also fixed defaults for invalid values to reflect documented defaults. * Changed configure script to use --sysconfdir to specify the location of the default webalizer.conf configuration file. Also added support for DESTDIR during install to aid binary package builds.
2008-12-01 10:45:55 +01:00
# $NetBSD: Makefile,v 1.44 2008/12/01 09:45:55 tonnerre Exp $
#
Update webalizer to version 2.20-01. Other than 2.01-10, this version actually still exists. Changes since 2.01-10: * Fixed problem with timing totals. * Fixed referrer linking to avoid possible xss injection. * Fixed month change detection error that caused incorrect report dates when logs had a 'gap' longer than a year. * Fixed buffer overrun possibility in parsing code and user agent mangle logic. * Added symbolic link checks for file I/O to prevent possible privilege escalation exploits. Disallows reading from or writing to any file that is a symlink. Thanks to Julien Danjou. * Added code to preserve the history and incremental data files in the event of a crash before writing to them completely. Thanks to Robert Millan for the idea and initial code. * Added native geolocation services, which fully supports both IPv4 and IPv6 lookups. Adds the configuration keywords 'GeoDB' and 'GeoDBDatabase' along with the '-j' and '-J' command line options. * Added 'wcmgr', "The Webalizer (DNS) Cache file Manager" to the distribution to provide cache file maintenance. See the supplied man page for a description and usage information. * Changed history code and main index page to allow for more than 12 months of reports to be displayed. Added the config keywords 'IndexMonths' (-K command line option), 'GraphMonths' (-k command line option) and 'YearHeaders' to control how index is displayed. * Changed Berkeley DB code to use current 4.x APIs. * Added support for bzip2 compressed log files (.bz2) as a compile time option (--enable-bz2). If enabled, bzipped files will be decompressed automatically during processing. * Added support for W3C formatted logs. Based on code submitted by Klaus Reimer. * Added GeoIP support as compile time option (--enable-geoip). Adds 'GeoIP' and 'GeoIPDatabase' config keywords, '-w' and '-W' command line options. (http://www.maxmind.com/) * Added IPv6 support. Based on initial code by Jose Carlos Meneiros and modified to support Solaris and other problematic platforms. * Added 'CacheIPs' config option to allow saving unresolved addresses in the DNS cache. * Added 'CacheTTL' config option which allows the DNS cache time to live (TTL) value to be specified at run-time. * Added 'SearchCaseI' config option to specify if search strings should be treated as case insensitive or not. The default value, 'yes', causes search strings to be treated as case insensitive. * Added 'HTAccess' config option. Allows writing a default .htaccess file to the output directory. * Added ability to display flags in the top country table. Adds the config keywords 'CountryFlags' and 'FlagDir', and -z command line option. * Added 'StripCGI' config option to configure how CGI variables on the end of URLs are treated (can now be stripped or left in place). * Added 'DefaultIndex' config option to enable/disable the use of "index." as a default index name to be stripped from the end of URLs. * Added 'TrimSquidURL' config option to allow squid log URLs to be reduced in granularity by a user definable amount. Thanks to code submitted by Stuart Gall. * Added 'OmitPage' config option (and the '-O' command line switch) to prevent specified URLs from being counted as pages even if they otherwise would be. Thanks to code submitted by Adam Morton. * Added 'IgnoreState' config option (and the -b command line switch) to allow ignoring any existing incremental data file (similar to the IgnoreHist/-i option). * Changed logic to always generate summary report (index.html), even if no records were processed. * Added color support to allow changing graph colors. Based on the Webalizer-usecolor code submitted by Benoit Rouits. Adds 11 new config options, see the README file for complete descriptions. * Added language 'lang=' specification in generated HTML files. * Added 'LinkReferrer' config option to allow/disallow links in the top referrers table. * Added 'PagePrefix' config option to allow URL prefix matches to be counted as pages, regardless of file extension or type. Thanks to code submitted by Remco Van de Meent. * Enabled large file support (LFS) to support logs greater than 2Gb in size on systems that support LFS. Also increased the size of most internal counters to handle larger sites. * Minor changes to generated HTML output * Updated language files country codes for current IANA TLDs * Changed the meaning of the -v command line switch. It now causes verbose information to be displayed at run-time (Informational and Debug messages). * Changed Group* config options to allow a quoted string for the match string. This allows spaces to be embedded in the string. * Changed log record parsing logic to allow spaces in URLs. * Made configuration keywords, boolean configuration values (yes/no), and log file types case insensitive. Also fixed defaults for invalid values to reflect documented defaults. * Changed configure script to use --sysconfdir to specify the location of the default webalizer.conf configuration file. Also added support for DESTDIR during install to aid binary package builds.
2008-12-01 10:45:55 +01:00
DISTNAME= webalizer-2.20-01-src
PKGNAME= webalizer-2.20.1
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 ${PKGMANDIR}/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};
BDB_ACCEPTED=db1 db2
.include "../../mk/bdb.buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/gd/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"