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 $
|
1998-11-07 14:22:53 +01:00
|
|
|
#
|
|
|
|
|
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
|
1998-11-07 14:22:53 +01:00
|
|
|
CATEGORIES= www
|
2002-02-24 15:55:59 +01:00
|
|
|
MASTER_SITES= ftp://ftp.mrunix.net/pub/webalizer/ \
|
1999-08-26 22:25:43 +02:00
|
|
|
http://gd.tuwien.ac.at/infosys/logeval/webalizer/
|
2000-10-18 18:41:23 +02:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
1998-11-07 14:22:53 +01:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
1998-11-07 14:22:53 +01:00
|
|
|
HOMEPAGE= http://www.mrunix.net/webalizer/
|
2001-02-17 18:21:28 +01:00
|
|
|
COMMENT= Web server log file analysis program
|
1998-11-07 14:22:53 +01:00
|
|
|
|
2004-04-09 02:39:20 +02:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//}
|
2007-02-22 20:26:05 +01:00
|
|
|
GNU_CONFIGURE= YES
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --with-etcdir=${PKG_SYSCONFDIR:Q}
|
2001-12-01 16:08:02 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-dns
|
2002-08-25 23:50:52 +02:00
|
|
|
CONFIGURE_ENV+= ac_cv_GDLIB=${BUILDLINK_PREFIX.gd}/include
|
1999-08-26 22:25:43 +02:00
|
|
|
|
2001-12-01 16:08:02 +01:00
|
|
|
EGDIR= ${PREFIX}/share/examples
|
|
|
|
CONF_FILES= ${EGDIR}/webalizer.conf.sample ${PKG_SYSCONFDIR}/webalizer.conf
|
2005-10-23 21:50:55 +02:00
|
|
|
_DOC_SUBDIR= share/doc/webalizer
|
|
|
|
_DOCDIR= ${PREFIX}/${_DOC_SUBDIR}
|
|
|
|
_DOCFILES= CHANGES Copyright DNS.README README README.FIRST
|
1998-11-07 14:22:53 +01:00
|
|
|
|
2005-10-23 21:50:55 +02:00
|
|
|
PLIST_ADD= ${WRKSRC}/.PLIST_ADD
|
|
|
|
PLIST_SRC= ${PKGDIR}/PLIST ${PLIST_ADD}
|
|
|
|
|
2007-01-07 10:13:46 +01:00
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/examples ${_DOC_SUBDIR}
|
2005-10-23 21:50:55 +02:00
|
|
|
|
|
|
|
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
|
2007-02-22 20:26:05 +01:00
|
|
|
PKG_SUPPORTED_OPTIONS= geoip
|
2005-10-23 21:50:55 +02:00
|
|
|
.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};
|
2004-04-09 02:39:20 +02:00
|
|
|
|
2007-11-16 12:50:48 +01:00
|
|
|
BDB_ACCEPTED=db1 db2
|
|
|
|
.include "../../mk/bdb.buildlink3.mk"
|
2004-12-28 09:02:33 +01:00
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
|
|
.include "../../graphics/freetype2/buildlink3.mk"
|
|
|
|
.include "../../graphics/gd/buildlink3.mk"
|
1998-11-07 14:22:53 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|