aboutsummaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorSofian Brabez <sbz@FreeBSD.org>2016-11-29 17:14:45 +0000
committerSofian Brabez <sbz@FreeBSD.org>2016-11-29 17:14:45 +0000
commitf2237c5e7f5c26a4168485d8b29011efac5722d7 (patch)
tree32efd5b349890904a9ccfe4c58541165444ac485 /sysutils
parent391faaf00587e569a2456b639b3aa3cfb1603482 (diff)
downloadports-f2237c5e7f5c26a4168485d8b29011efac5722d7.tar.gz
ports-f2237c5e7f5c26a4168485d8b29011efac5722d7.zip
Notes
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/goaccess/Makefile30
-rw-r--r--sysutils/goaccess/pkg-plist11
2 files changed, 28 insertions, 13 deletions
diff --git a/sysutils/goaccess/Makefile b/sysutils/goaccess/Makefile
index 39dbd3f7e49b..57d08c18fe42 100644
--- a/sysutils/goaccess/Makefile
+++ b/sysutils/goaccess/Makefile
@@ -3,6 +3,7 @@
PORTNAME= goaccess
PORTVERSION= 1.1.1
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://tar.goaccess.io/
@@ -10,39 +11,42 @@ MAINTAINER= sbz@FreeBSD.org
COMMENT= Real-time Apache web log analyzer
LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/COPYING
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
-USE_GNOME= glib20
USES= pkgconfig
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-PLIST_FILES= bin/${PORTNAME} \
- man/man1/${PORTNAME}.1.gz
-
-CONFIGURE_ARGS= --enable-utf8
-
PORTDOCS= AUTHORS COPYING ChangeLog NEWS README TODO
-OPTIONS_DEFINE= DOCS GEOIP TOKYOCABINET
-OPTIONS_DEFAULT= GEOIP
+OPTIONS_DEFINE= DOCS DEBUG GEOIP UTF8
+OPTIONS_DEFAULT= GEOIP UTF8
+OPTIONS_RADIO= TOKYOCABINET
+OPTIONS_RADIO_TOKYOCABINET= TOKYOCABINET_BTREE TOKYOCABINET_MHASH
+
+DEBUG_CONFIGURE_ON= --enable-debug
+UTF8_CONFIGURE_ON= --enable-utf8
GEOIP_CONFIGURE_ON= --enable-geoip
GEOIP_LIB_DEPENDS= libGeoIP.so:net/GeoIP
TOKYOCABINET_DESC= Tokyo Cabinet support
-TOKYOCABINET_CONFIGURE_ON= --enable-tcb=btree
+TOKYOCABINET_BTREE_DESC= Storage using on-disk B+ Tree
+TOKYOCABINET_MHASH_DESC= Storage using on-memory hash database
+TOKYOCABINET_BTREE_CONFIGURE_ON= --enable-tcb=btree
+TOKYOCABINET_MHASH_CONFIGURE_ON= --enable-tcb=memhash
TOKYOCABINET_LIB_DEPENDS= libtokyocabinet.so:databases/tokyocabinet
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/man/man1
-
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+post-install:
+ ${MV} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf \
+ ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
+
.include <bsd.port.mk>
diff --git a/sysutils/goaccess/pkg-plist b/sysutils/goaccess/pkg-plist
new file mode 100644
index 000000000000..4278a4668521
--- /dev/null
+++ b/sysutils/goaccess/pkg-plist
@@ -0,0 +1,11 @@
+bin/goaccess
+@sample etc/goaccess.conf.sample
+man/man1/goaccess.1.gz
+%%PORTDOCS%%%%DOCSDIR%%/app.css
+%%PORTDOCS%%%%DOCSDIR%%/app.js
+%%PORTDOCS%%%%DOCSDIR%%/bootstrap.min.css
+%%PORTDOCS%%%%DOCSDIR%%/charts.js
+%%PORTDOCS%%%%DOCSDIR%%/d3.v3.min.js
+%%PORTDOCS%%%%DOCSDIR%%/fa.min.css
+%%PORTDOCS%%%%DOCSDIR%%/hogan.min.js
+%%PORTDOCS%%%%DOCSDIR%%/tpls.html