summaryrefslogtreecommitdiff
path: root/www/logswan/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/logswan/Makefile')
-rw-r--r--www/logswan/Makefile35
1 files changed, 35 insertions, 0 deletions
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"