summaryrefslogtreecommitdiff
path: root/www/logswan
diff options
context:
space:
mode:
authorkamil <kamil@pkgsrc.org>2015-09-28 22:33:43 +0000
committerkamil <kamil@pkgsrc.org>2015-09-28 22:33:43 +0000
commit7b08203c4b71c8029de3f0a3b19588535dd0aec5 (patch)
treea29a4b649c8f0e9349b9e718b6aba11fe751a97b /www/logswan
parent6b87516eea88a4da6c14f6c6cb25b992db39baa3 (diff)
downloadpkgsrc-7b08203c4b71c8029de3f0a3b19588535dd0aec5.tar.gz
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 simple - It does not split results per day, but log files can be split prior to being processed
Diffstat (limited to 'www/logswan')
-rw-r--r--www/logswan/DESCR15
-rw-r--r--www/logswan/Makefile35
-rw-r--r--www/logswan/PLIST7
-rw-r--r--www/logswan/distinfo5
4 files changed, 62 insertions, 0 deletions
diff --git a/www/logswan/DESCR b/www/logswan/DESCR
new file mode 100644
index 00000000000..b67fc8b7124
--- /dev/null
+++ b/www/logswan/DESCR
@@ -0,0 +1,15 @@
+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
+ simple
+ - It does not split results per day, but log files can be split prior to being
+ processed
diff --git a/www/logswan/Makefile b/www/logswan/Makefile
new file mode 100644
index 00000000000..a81cd378bc8
--- /dev/null
+++ b/www/logswan/Makefile
@@ -0,0 +1,35 @@
+# $NetBSD: Makefile,v 1.1 2015/09/28 22:33:43 kamil Exp $
+
+DISTNAME= logswan-1.00
+CATEGORIES= www
+MASTER_SITES= ${MASTER_SITE_GITHUB:=fcambus/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= ${MASTER_SITE_GITHUB:=fcambus/logswan/}
+COMMENT= Fast Web log analyzer using probabilistic data structures
+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}
+
+.include "../../textproc/jansson/buildlink3.mk"
+.include "../../net/GeoIP/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/logswan/PLIST b/www/logswan/PLIST
new file mode 100644
index 00000000000..cd392d14bf7
--- /dev/null
+++ b/www/logswan/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1 2015/09/28 22:33:43 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
diff --git a/www/logswan/distinfo b/www/logswan/distinfo
new file mode 100644
index 00000000000..9108aefafe9
--- /dev/null
+++ b/www/logswan/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2015/09/28 22:33:43 kamil Exp $
+
+SHA1 (logswan-1.00.tar.gz) = c0676c41d87d768d6cc0d30aae1526f8e87e75e2
+RMD160 (logswan-1.00.tar.gz) = ad781c80f91fee577bb814ed70204cc28e89c31b
+Size (logswan-1.00.tar.gz) = 14571 bytes