The NetBSD Project

CVS log for pkgsrc/www/logswan/Makefile

[BACK] Up to [] / pkgsrc / www / logswan

Request diff between arbitrary revisions

Default branch: MAIN

Revision 1.27 / (download) - annotate - [select for diffs], Thu Jul 28 22:17:29 2022 UTC (2 months ago) by fcambus
Branch: MAIN
CVS Tags: pkgsrc-2022Q3-base, pkgsrc-2022Q3, HEAD
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

logswan: update to 2.1.13.

Logswan 2.1.13 (2022-07-28)

- Remove useless backslashes in usage()
- Add entries with IPv6 remote hosts to exercise the IPv6 code paths
- Add an invalid.log log file with invalid lines, for testing purposes
- Add a few more test cases in CMakeLists.txt
- Also generate data for IPv6 addresses in the MMDB test database
- Regenerate the example MMDB database and JSON example output

Revision 1.26 / (download) - annotate - [select for diffs], Mon Jun 27 15:29:18 2022 UTC (3 months ago) by fcambus
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

*: drop maintainership for packages not related to toolchains and ELF.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Dec 2 10:39:17 2021 UTC (10 months ago) by fcambus
Branch: MAIN
CVS Tags: pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

logswan: update to 2.1.12.

Logswan 2.1.12 (2021-12-02)

- Fix a use-after-free (read) triggered by strcmp(3) calls.

  The parse_request() function didn't zero out the parsed_request struct
  between each call. Since the parsing loop was switched to using getline(3)
  instead of a fixed size buffer to process log lines, it could reference
  already freed memory in certain cases.

  Thanks to Brian Carpenter (@geeknik) for finding and reporting the issue.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Nov 21 07:18:19 2021 UTC (10 months, 1 week ago) by fcambus
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

logswan: update to 2.1.11.

Logswan 2.1.11 (2021-11-16)

- Bump CMake minimum required version to 2.8.12
- Add SPDX short license identifier in source files
- Use CMAKE_C_STANDARD instead of hardcoding compiler flags
- Switch to using getline(3) instead of fgets(3)
- Call hll_init() after doing getopt() processing

Revision 1.23 / (download) - annotate - [select for diffs], Mon Feb 15 13:14:05 2021 UTC (19 months, 2 weeks ago) by fcambus
Branch: MAIN
CVS Tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

logswan: update to 2.1.10.

Logswan 2.1.10 (2021-02-15)

- Only call MMDB_close if the GeoIP option was enabled. This fixes a
  crash on program exit on OpenBSD when running without the GeoIP
  option enabled.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Feb 15 12:06:50 2021 UTC (19 months, 2 weeks ago) by fcambus
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

logswan: update to 2.1.9.

Logswan 2.1.9 (2021-02-15)

- Stop forcing FORTIFY_SOURCE=2, it should be package builders decision
- Add link to Homebrew package in the README
- Remove unused countryId variable
- Remove dead increments for argc and argv
- Rename variables to get rid of all camelCase occurences
- Remove the measuring Logswan memory usage section from the README
- Try to harmonize usage information everywhere
- Rename the displayUsage() function to usage()
- Rename all the parse*() functions to use snake_case
- Get rid of global variables, move all declarations to main()

Revision 1.21 / (download) - annotate - [select for diffs], Tue Oct 20 13:08:13 2020 UTC (23 months, 1 week ago) by fcambus
Branch: MAIN
CVS Tags: pkgsrc-2020Q4-base, pkgsrc-2020Q4
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

logswan: update to 2.1.8.

Logswan 2.1.8 (2020-10-19)

- Make displayUsage() static
- Removing some leading whitespace characters
- Constify methods and protocols names array
- Constify countries and continents names and ID arrays
- Enable FORTIFY_SOURCE level 2
- Call memset() to set all entry_data struct fields to zero

Revision 1.20 / (download) - annotate - [select for diffs], Thu Sep 17 08:50:04 2020 UTC (2 years ago) by fcambus
Branch: MAIN
CVS Tags: pkgsrc-2020Q3-base, pkgsrc-2020Q3
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

logswan: update to 2.1.7.

Logswan 2.1.7 (2020-09-17)

- Add a Perl program to generate an example MMDB database for testing
- Add a new test case to exercise the IP geolocation codepaths
- Add support for seccomp on arm
- Add missing test for __NR_mmap, the mmap syscall doesn't exist on arm

Revision 1.19 / (download) - annotate - [select for diffs], Fri Jul 3 15:05:59 2020 UTC (2 years, 2 months ago) by fcambus
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

logswan: update to 2.1.6.

Logswan 2.1.6 (2020-07-03)

- Validate architectures for seccomp
- Minor code shuffling, for consistency with other codebases
- Add seccomp support on i386, tested on glibc and musl
- Remove entry for "Netherlands Antilles" in country table
- Swaziland was officially renamed to Eswatini in 2018
- Macedonia was officially renamed to North Macedonia in February 2019
- Rename Vatican City to Vatican to be consistent with GeoNames naming
- Rename Aland to Aland Islands to be consistent with GeoNames naming

Revision 1.18 / (download) - annotate - [select for diffs], Fri Jun 12 08:23:04 2020 UTC (2 years, 3 months ago) by fcambus
Branch: MAIN
CVS Tags: pkgsrc-2020Q2-base, pkgsrc-2020Q2
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

logswan: update to 2.1.5.

Logswan 2.1.5 (2020-06-12)

- Switch the GEOIP2DIR example to point to '/var/db/dbip'
- Use CLOCK_REALTIME if CLOCK_MONOTONIC is not available
- Remove unneeded <sys/select.h> and <sys/types.h> includes
- Add missing <stddef.h> include
- Remove useless _POSIX_SOURCE define
- Remove useless _POSIX_C_SOURCE 199309L define
- Define _GNU_SOURCE in CMakeLists.txt to avoid cluttering source files
- No need to set HAVE_SECCOMP to 1, defining it is enough
- Remove some unneeded seccomp related includes

Revision 1.17 / (download) - annotate - [select for diffs], Mon Mar 30 10:06:38 2020 UTC (2 years, 6 months ago) by fcambus
Branch: MAIN
Changes since 1.16: +5 -5 lines
Diff to previous 1.16 (colored)

logswan: update to 2.1.4.

pkgsrc changes:

- Added GITHUB_RELEASE directives to fetch release file
- Tweak CMAKE_ARGS to reflect upstream GEOIP2DIR changes
- Remove the 'do-test' target and switch to using upstream tests


Logswan 2.1.4 (2020-03-27)

- Move GEOIP2DB definition to CMakeLists.txt, allowing build time
- Display database path name in error message
- Remove direct link to GeoLite2 databases
- Add dependencies installation instruction for Fedora
- Change GEOIP2DB default value to "dbip-country-lite.mmdb"
- Change GEOIP2DIR default value to "${CMAKE_INSTALL_PREFIX}/share/dbip"
- Mention that DB-IP IP to Country Lite database is now the recommended option

Revision 1.16 / (download) - annotate - [select for diffs], Sun Jan 19 21:03:59 2020 UTC (2 years, 8 months ago) by fcambus
Branch: MAIN
CVS Tags: pkgsrc-2020Q1-base, pkgsrc-2020Q1
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

logswan: update to 2.1.3.

Logswan 2.1.3 (2020-01-17)

- Add a new test target, to test log processing
- Move printed statistics after the actual output
- Use OpenBSD style(9) for function prototypes and declarations
- Remove seccomp mention in README as it is currently disabled by default

Revision 1.15 / (download) - annotate - [select for diffs], Tue Nov 19 11:25:27 2019 UTC (2 years, 10 months ago) by fcambus
Branch: MAIN
CVS Tags: pkgsrc-2019Q4-base, pkgsrc-2019Q4
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

logswan: update to 2.1.2.

Logswan 2.1.2 (2019-11-19)

- Add ENABLE_SECCOMP build option, to allow building seccomp support
- Disable seccomp by default, it needs more testing on non !amd64 platforms
- Use ${CMAKE_INSTALL_BINDIR} instead of hardcoding 'bin'

Revision 1.14 / (download) - annotate - [select for diffs], Thu Oct 31 10:45:34 2019 UTC (2 years, 11 months ago) by fcambus
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

logswan: update to 2.1.1.

Logswan 2.1.1 (2019-10-30)

- Check if system has seccomp in CMakeLists.txt
- Use the HAVE_SECCOMP macro to check whether or not to enable seccomp
- Define and use a GEOIP2DB macro to specify GeoLite2 database name
- Add a switch (-d) to allow specifying path to a GeoIP2 database file
- Define and use a LOGSWAN_SYSCALL_ALLOW macro to make code more readable
- Adding missing #include guard in seccomp.h header file
- Use __NR_ instead of SYS_ prefix in LOGSWAN_SYSCALL_ALLOW
- Fix the build on aarch64 Linux, where the open() syscall does not exist
- Add error checking for both prctl() calls

Revision 1.13 / (download) - annotate - [select for diffs], Tue Oct 29 09:18:08 2019 UTC (2 years, 11 months ago) by fcambus
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

logswan: update to 2.1.0.


Logswan 2.1.0 (2019-10-23)

- Add FALLTHROUGH comments where appropriate
- Add support for parsing HTTP/3 requests
- Add initial seccomp support on Linux, tested on musl and glibc systems

Revision 1.12 / (download) - annotate - [select for diffs], Fri Aug 16 22:07:14 2019 UTC (3 years, 1 month ago) by fcambus
Branch: MAIN
CVS Tags: pkgsrc-2019Q3-base, pkgsrc-2019Q3
Changes since 1.11: +4 -4 lines
Diff to previous 1.11 (colored)

logswan: Update to 2.0.4.


Logswan 2.0.4 (2019-08-16)

- Adding #include guard in compat header file
- Add an example log file and regenerate output example
- Add dependencies installation instructions for NetBSD and FreeBSD
- Add final dots for options descriptions
- Add final dot when printing results summary
- Use EXIT_SUCCESS and EXIT_FAILURE macros for return values
- Add a trailing newline when printing JSON output

OK kamil@

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jan 17 21:56:09 2019 UTC (3 years, 8 months ago) by kamil
Branch: MAIN
CVS Tags: pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1
Changes since 1.10: +5 -5 lines
Diff to previous 1.10 (colored)

logswan: Update to 2.0.3

Update submitted by Frederic Cambus, the upstream developer of this package.

author's notes

Notable changes:

- Logswan now links against geography/libmaxminddb instead of net/GeoIP
- Take back MAINTAINER, as I'm upstream for this package

upstream changelog

Logswan 2.0.3 (2018-10-15)

- Use -std=c11, Logswan requires a C11 compiler for libmaxminddb
- Enable support for parsing HTTP/2.0 requests, for real this time
- Revert back to using INT64_MAX for strtonum() maxval, as maxval is long long
  and using UINT64_MAX caused bandwidth parsing to always fail (Thanks James Loh
  for reporting the issue)
- Move maps of countries and continents to separate files

Logswan 2.0.2 (2018-08-05)

- Use UINT64_MAX for strtonum() maxval
- Add missing headers and reorder includes
- Add support for HTTP/2.0

Logswan 2.0.1 (2018-06-27)

- Do not use -Werror by default
- Do not always call inet_pton two times per log line, this speeds things up
- Use bool types for isIPv4 and isIPv6
- Use the monotonic clock to determine runtime
- Move conditional includes for 'pledge' and 'strtonum' in compat.h

Logswan 2.0.0 (2018-03-16)

- Use type off_t for results struct member fileSize
- Reflect OpenBSD's pledge() changes
- Switch to using libmaxminddb and GeoIP2/GeoLite2 databases
- Add Antarctica to the list of continents

Revision 1.10 / (download) - annotate - [select for diffs], Wed Aug 16 20:21:16 2017 UTC (5 years, 1 month ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

Follow some http redirects.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Feb 15 20:51:57 2017 UTC (5 years, 7 months ago) by maya
Branch: MAIN
CVS Tags: pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1
Changes since 1.8: +5 -5 lines
Diff to previous 1.8 (colored)

logswan: update to 1.07. Add simple smoketest.

Changes since 1.06:
    Harmonize arrays names
    Remove array of months, it's currently unused and will likely remain so
    Simplify internal JSON array and object names
    Use OpenBSD style(9) for function prototypes and declarations
    Revert back to using strtok, at least for now
    Do not use EXIT_SUCCESS and EXIT_FAILURE macros anymore
    Fix implicit function declaration rrror on NetBSD (Thanks Maya Rashish)
    Remove now useless variables initialization and unnecessary includes
    Do not add an extra new line when displaying usage or version

Revision 1.8 / (download) - annotate - [select for diffs], Thu Jan 12 17:53:01 2017 UTC (5 years, 8 months ago) by maya
Branch: MAIN
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

Add note to drop hack next update, it was fixed upstream.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Dec 18 18:49:39 2016 UTC (5 years, 9 months ago) by maya
Branch: MAIN
CVS Tags: pkgsrc-2016Q4-base, pkgsrc-2016Q4
Changes since 1.6: +5 -3 lines
Diff to previous 1.6 (colored)

logswan: update to 1.06.

Changed license to 2-clause BSD (from 3-clause)
Minor code shuffling.

From fcambus (author)

Revision 1.6 / (download) - annotate - [select for diffs], Sun Sep 11 15:59:29 2016 UTC (6 years ago) by kamil
Branch: MAIN
CVS Tags: pkgsrc-2016Q3-base, pkgsrc-2016Q3
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Reset maintainer to

Change requested by Frederic Cambus.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jul 26 17:15:37 2016 UTC (6 years, 2 months ago) by kamil
Branch: MAIN
Changes since 1.4: +4 -4 lines
Diff to previous 1.4 (colored)

Update www/logswan to 1.05

Package changes:

- Trimmed package description
- Update MAINTAINER + added missing trailing slash for HOMEPAGE

Upstream ChangeLog:
Logswan 1.05 (2016-02-25)

- Documentation update (notes on measuring Logswan memory usage)
- Add additional include directories for compat functions + dependencies
  to avoid using relative path in includes
- Check that *lineBuffer is not NUL before attempting to parse log line
- Perform GeoIP lookup and HLL add in the same if block
- Increment IPv4 and IPv6 hits counters individually and conditionally
- Use CMake to check if the system has OpenBSD's pledge available and
  link pledge conditionally using a null implementation when compiled
  on non OpenBSD systems
- Adding an array of months, for the upcoming split log functionalities

Patch provided by the upstream developer Frederic Cambus

Revision 1.4 / (download) - annotate - [select for diffs], Mon Jan 11 07:11:20 2016 UTC (6 years, 8 months ago) by kamil
Branch: MAIN
CVS Tags: pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1
Changes since 1.3: +3 -20 lines
Diff to previous 1.3 (colored)

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)

Revision 1.3 / (download) - annotate - [select for diffs], Thu Oct 1 21:38:44 2015 UTC (7 years ago) by kamil
Branch: MAIN
CVS Tags: pkgsrc-2015Q4-base, pkgsrc-2015Q4
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

Use new official domain webpage.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Oct 1 21:32:00 2015 UTC (7 years ago) by kamil
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Upgrade www/logswan to logswan-1.01

Upstream changelog
Logswan 1.01 (2015-10-01)

- Documentation updates
- Fixing segfault when request data is empty or malformed (Thanks Jonathan
  Armani for reporting and proposing a fix)

Revision 1.1 / (download) - annotate - [select for diffs], Mon Sep 28 22:33:43 2015 UTC (7 years ago) by kamil
Branch: MAIN

Import logswan-1.00 as www/logswan

Logswan is a fast Web log analyzer using probabilistic data structures. It is
targeted at very large log files, typically APIs logs. It has constant memory
usage regardless of the log file size, and takes approximatively 4MB of RAM.

Unique visitors counting is performed using two HyperLogLog counters (one for
IPv4, and another one for IPv6), providing a relative accuracy of 0.10%.

Project design goals include : speed, memory-usage efficiency, and keeping the
code as simple as possible.

Logswan is opinionated software :
 - It only supports the Common Log Format, in order to keep the parsing code
 - It does not split results per day, but log files can be split prior to being

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

CVSweb <>