summaryrefslogtreecommitdiff
path: root/www/logswan
diff options
context:
space:
mode:
authorkamil <kamil@pkgsrc.org>2016-01-11 07:11:20 +0000
committerkamil <kamil@pkgsrc.org>2016-01-11 07:11:20 +0000
commit180fb6d4e5771d2672288ea653e21da43822a29f (patch)
treea3449644b1c10ae2d405235b84d527eefcf937b2 /www/logswan
parent84f355832f461eb651ef54fab6743e01d2ce8b51 (diff)
downloadpkgsrc-180fb6d4e5771d2672288ea653e21da43822a29f.tar.gz
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)
Diffstat (limited to 'www/logswan')
-rw-r--r--www/logswan/Makefile23
-rw-r--r--www/logswan/PLIST8
-rw-r--r--www/logswan/distinfo10
3 files changed, 10 insertions, 31 deletions
diff --git a/www/logswan/Makefile b/www/logswan/Makefile
index 0d010d6cb16..91f58c0ef5c 100644
--- a/www/logswan/Makefile
+++ b/www/logswan/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.3 2015/10/01 21:38:44 kamil Exp $
+# $NetBSD: Makefile,v 1.4 2016/01/11 07:11:20 kamil Exp $
-DISTNAME= logswan-1.01
+DISTNAME= logswan-1.04
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_GITHUB:=fcambus/}
@@ -11,24 +11,7 @@ LICENSE= modified-bsd
USE_CMAKE= yes
-SUBST_CLASSES+= geoip
-SUBST_STAGE.geoip= post-patch
-SUBST_FILES.geoip+= src/logswan.c
-SUBST_SED.geoip+= -e 's,/usr/local,${PREFIX},g'
-
-DOCDIR= share/doc/logswan
-EGDIR= share/examples/logswan
-
-CONF_FILES+= ${EGDIR}/logswan.json ${PKG_SYSCONFDIR}/logswan.json
-
-AUTO_MKDIRS= yes
-
-post-install:
-.for f in AUTHORS README.md THANKS TODO
- ${RUN}${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${DOCDIR}
-.endfor
- ${RUN}${INSTALL_DATA} ${WRKSRC}/examples/logswan.json \
- ${DESTDIR}${PREFIX}/${EGDIR}
+CMAKE_ARGS+= -DGEOIPDIR=${PREFIX}/share/GeoIP
.include "../../textproc/jansson/buildlink3.mk"
.include "../../net/GeoIP/buildlink3.mk"
diff --git a/www/logswan/PLIST b/www/logswan/PLIST
index cd392d14bf7..fe232e88079 100644
--- a/www/logswan/PLIST
+++ b/www/logswan/PLIST
@@ -1,7 +1,3 @@
-@comment $NetBSD: PLIST,v 1.1 2015/09/28 22:33:43 kamil Exp $
+@comment $NetBSD: PLIST,v 1.2 2016/01/11 07:11:20 kamil Exp $
bin/logswan
-share/doc/logswan/AUTHORS
-share/doc/logswan/README.md
-share/doc/logswan/THANKS
-share/doc/logswan/TODO
-share/examples/logswan/logswan.json
+man/man1/logswan.1
diff --git a/www/logswan/distinfo b/www/logswan/distinfo
index f9abdb457b5..c4c62afe32e 100644
--- a/www/logswan/distinfo
+++ b/www/logswan/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.3 2015/11/04 02:46:57 agc Exp $
+$NetBSD: distinfo,v 1.4 2016/01/11 07:11:20 kamil Exp $
-SHA1 (logswan-1.01.tar.gz) = 0b936d2900926926f2c9fd9742c69357ec56a813
-RMD160 (logswan-1.01.tar.gz) = 34705112dfd137a9c258fd6bf6c73db07763343b
-SHA512 (logswan-1.01.tar.gz) = cfdfc67cebc8a32fbe260e20867af4363e734c6890b3a5f0e4b9bba43d8caa10722171014dc6f2f2de17f4c4b03fb9eaadc935e1143b95afcbfeb9b83ccd1d80
-Size (logswan-1.01.tar.gz) = 14790 bytes
+SHA1 (logswan-1.04.tar.gz) = 2bb32ff700dfdc07dbbe4e7647aa2c680f0c4bf9
+RMD160 (logswan-1.04.tar.gz) = fb1c343ade88ac2ff2bc4f4c42a86bc3cc4969a0
+SHA512 (logswan-1.04.tar.gz) = af275158e768c46402ea03544593f217ebfeeec9ff428faf002221f05e6cb204c5ecfc4c7f5e527b224c595c77c40a06de68a578759a3def892c54aafa70d78d
+Size (logswan-1.04.tar.gz) = 16913 bytes