pkgsrc/www/logswan/Makefile

22 lines
539 B
Makefile
Raw Normal View History

2017-08-16 22:21:03 +02:00
# $NetBSD: Makefile,v 1.10 2017/08/16 20:21:16 wiz Exp $
DISTNAME= logswan-1.07
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_GITHUB:=fcambus/}
MAINTAINER= pkgsrc-users@NetBSD.org
2017-08-16 22:21:03 +02:00
HOMEPAGE= https://www.logswan.org/
COMMENT= Fast Web log analyzer using probabilistic data structures
LICENSE= 2-clause-bsd
USE_CMAKE= yes
Update www/logswan to 1.04 Package changes: - follow upstream with the rule what's installed of the files - use newly added -DGEOIPDIR in the place of older string replace function - stop installing an example output as a configuration file Upstream changelog: Logswan 1.04 (2016-01-10) - Moving global variables into main - Using 'size_t' instead of 'int' for array indexes in for loops - Using 'uint32_t' for all non 'uint64_t' integers - Do not increment hits and processed lines counter for each parsed line, compute total only once when everything is parsed - Setting 'CMAKE_BUILD_TYPE' to 'Release' and formatting fixes - Sanitize CMake script to build under NetBSD (Thanks Kamil Rytarowski) - Initializing some uninitialized variables - Renaming 'DATADIR' variables to 'GEOIPDIR' Logswan 1.03 (2016-01-01) - Remove header display and do not print name of processed file - Print results to stderr instead of stdout - Output JSON data to stdout instead of creating a new file - Define GeoIP databases path in CMakeLists.txt - Adding log file name in the JSON output - Removing some hardcoded values and replacing them with constants defined in config.h - Breaking the loop when a match is found in the request parser - Using enumeration constants instead of macros - Process GeoIP continent information - Re-ordering protocols and methods with more common occurences on top of the list, allowing to break earlier when iterating through the array - Adding support for reading logs from standard input - Renaming 'definitions' files to 'config' - Increasing countries array size, as an attempt to be future-proof - Initial support for using pledge() on OpenBSD - Documentation updates (HLL precision, Features list, GeoIP databases) - Updated JSON output example - Added a manual page Logswan 1.02 (2015-11-02) - Renaming 'resource' variable to 'request' in the 'logLine' struct - Do not attempt to parse empty date tokens - Do not attempt to parse empty request tokens (Thanks Brian Carpenter for reporting the issue)
2016-01-11 08:11:20 +01:00
CMAKE_ARGS+= -DGEOIPDIR=${PREFIX}/share/GeoIP
do-test:
logswan ${WRKSRC}/examples/logswan.json
.include "../../textproc/jansson/buildlink3.mk"
.include "../../net/GeoIP/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"