Index: head/sysutils/goaccess/Makefile =================================================================== --- head/sysutils/goaccess/Makefile (revision 541973) +++ head/sysutils/goaccess/Makefile (revision 541974) @@ -1,58 +1,61 @@ # Created by: Sofian Brabez # $FreeBSD$ PORTNAME= goaccess PORTVERSION= 1.3 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= sysutils MASTER_SITES= http://tar.goaccess.io/ 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 USES= alias compiler:c11 pkgconfig ncurses +USE_RC_SUBR= goaccess +INSTALL_TARGET= install-strip +GNU_CONFIGURE= yes + CFLAGS+= -I${NCURSESINC} -I${LOCALBASE}/include LDFLAGS+= -L${NCURSESLIB} -L${LOCALBASE}/lib PORTDOCS= AUTHORS COPYING ChangeLog NEWS README TODO -OPTIONS_DEFINE= DOCS DEBUG GEOIP2 NLS UTF8 -OPTIONS_DEFAULT= GEOIP2 UTF8 +OPTIONS_DEFINE= DOCS DEBUG GEOIP2 NLS SSL UTF8 +OPTIONS_DEFAULT= GEOIP2 SSL UTF8 OPTIONS_RADIO= TOKYOCABINET OPTIONS_RADIO_TOKYOCABINET= TOKYOCABINET_BTREE TOKYOCABINET_MHASH OPTIONS_SUB= yes - DEBUG_CONFIGURE_ON= --enable-debug NLS_CONFIGURE_ENABLE= nls NLS_USES= gettext-runtime UTF8_CONFIGURE_ON= --enable-utf8 GEOIP2_DESC= IP location support GEOIP2_CONFIGURE_ON= --enable-geoip=mmdb GEOIP2_LIB_DEPENDS= libmaxminddb.so:net/libmaxminddb + +SSL_DESC= Use SSL for WebSocket +SSL_CONFIGURE_ON= --with-openssl TOKYOCABINET_DESC= Tokyo Cabinet support 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_BTREE_LIB_DEPENDS= libtokyocabinet.so:databases/tokyocabinet TOKYOCABINET_MHASH_LIB_DEPENDS= libtokyocabinet.so:databases/tokyocabinet do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} post-install: ${MV} ${STAGEDIR}${ETCDIR}/${PORTNAME}.conf \ ${STAGEDIR}${ETCDIR}/${PORTNAME}.conf.sample .include Index: head/sysutils/goaccess/files/goaccess.in =================================================================== --- head/sysutils/goaccess/files/goaccess.in (nonexistent) +++ head/sysutils/goaccess/files/goaccess.in (revision 541974) @@ -0,0 +1,45 @@ +#!/bin/sh + +# $FreeBSD$ +# +# PROVIDE: goaccess +# REQUIRE: LOGIN +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf to enable goaccess. +# +# goaccess_html (path): Set to /var/run/goaccess/goaccess.html +# by default. +# goaccess_log (path): Set to /var/log/httpd-access.log +# by default. +# goaccess_config (str): Set to %%PREFIX%%/etc/goaccess.conf +# by default. Only used if the file exists. + +. /etc/rc.subr + +name=goaccess +rcvar=goaccess_enable + +load_rc_config $name + +: ${goaccess_html:=/var/run/goaccess/goaccess.html} +: ${goaccess_log:=/var/log/httpd-access.log} +: ${goaccess_config:=%%PREFIX%%/etc/goaccess/goaccess.conf} + +command=/usr/local/bin/${name} +pidfile=/var/run/${name}.pid + +# This is done to allow Directory be used for when configuring Apache +# as Files does not allow for a full path. +start_precmd=start_precmd +start_precmd() +{ + if [ $goaccess_html = /var/run/goaccess/goaccess.html ]; then + if [ ! -d /var/run/goaccess ]; then + mkdir /var/run/goaccess + fi + fi +} + +command_args="--daemonize --real-time-html --pid-file=$pidfile -p $goaccess_config -o $goaccess_html" +run_rc_command "$1" Property changes on: head/sysutils/goaccess/files/goaccess.in ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property