View | Details | Raw Unified | Return to bug 234652
Collapse All | Expand All

(-)Makefile (-5 / +9 lines)
Lines 13-30 Link Here
13
LICENSE=	MIT
13
LICENSE=	MIT
14
LICENSE_FILE=	${WRKSRC}/COPYING
14
LICENSE_FILE=	${WRKSRC}/COPYING
15
15
16
GNU_CONFIGURE=	yes
16
USES=		alias pkgconfig ncurses
17
INSTALL_TARGET=	install-strip
18
USE_LDCONFIG=	yes
17
USE_LDCONFIG=	yes
19
USES=		alias pkgconfig ncurses
18
USE_RC_SUBR=	goaccess
20
19
20
INSTALL_TARGET=	install-strip
21
GNU_CONFIGURE=	yes
22
21
CFLAGS+=	-I${NCURSESINC} -I${LOCALBASE}/include
23
CFLAGS+=	-I${NCURSESINC} -I${LOCALBASE}/include
22
LDFLAGS+=	-L${NCURSESLIB} -L${LOCALBASE}/lib
24
LDFLAGS+=	-L${NCURSESLIB} -L${LOCALBASE}/lib
23
25
24
PORTDOCS=	AUTHORS COPYING ChangeLog NEWS README TODO
26
PORTDOCS=	AUTHORS COPYING ChangeLog NEWS README TODO
25
27
26
OPTIONS_DEFINE=	DOCS DEBUG NLS UTF8
28
OPTIONS_DEFINE=	DOCS DEBUG NLS UTF8 SSL
27
OPTIONS_DEFAULT=	GEOIP UTF8
29
OPTIONS_DEFAULT=	GEOIP UTF8 SSL
28
OPTIONS_RADIO=	GEOIPDB TOKYOCABINET
30
OPTIONS_RADIO=	GEOIPDB TOKYOCABINET
29
OPTIONS_RADIO_GEOIPDB=	GEOIP GEOIP2
31
OPTIONS_RADIO_GEOIPDB=	GEOIP GEOIP2
30
OPTIONS_RADIO_TOKYOCABINET=	TOKYOCABINET_BTREE TOKYOCABINET_MHASH
32
OPTIONS_RADIO_TOKYOCABINET=	TOKYOCABINET_BTREE TOKYOCABINET_MHASH
Lines 31-36 Link Here
31
OPTIONS_SUB=	yes
33
OPTIONS_SUB=	yes
32
34
33
GEOIPDB_DESC=	GeoIP IP location support
35
GEOIPDB_DESC=	GeoIP IP location support
36
SSL_DESC=	Use SSL for WebSocket
34
GEOIP_DESC=	Legacy/free database format
37
GEOIP_DESC=	Legacy/free database format
35
GEOIP2_DESC=	New/paid database format
38
GEOIP2_DESC=	New/paid database format
36
39
Lines 43-48 Link Here
43
GEOIP_LIB_DEPENDS=	libGeoIP.so:net/GeoIP
46
GEOIP_LIB_DEPENDS=	libGeoIP.so:net/GeoIP
44
GEOIP2_CONFIGURE_ON=	--enable-geoip=mmdb
47
GEOIP2_CONFIGURE_ON=	--enable-geoip=mmdb
45
GEOIP2_LIB_DEPENDS=	libmaxminddb.so:net/libmaxminddb
48
GEOIP2_LIB_DEPENDS=	libmaxminddb.so:net/libmaxminddb
49
SSL_CONFIGURE_ON=	--with-openssl
46
50
47
TOKYOCABINET_DESC=	Tokyo Cabinet support
51
TOKYOCABINET_DESC=	Tokyo Cabinet support
48
TOKYOCABINET_BTREE_DESC=	Storage using on-disk B+ Tree
52
TOKYOCABINET_BTREE_DESC=	Storage using on-disk B+ Tree
(-)files/goaccess.in (+45 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
# $FreeBSD$
4
#
5
# PROVIDE: goaccess
6
# REQUIRE: LOGIN
7
# KEYWORD: shutdown
8
#
9
# Add the following lines to /etc/rc.conf to enable goaccess.
10
#
11
# goaccess_html (path):		Set to /var/run/goaccess/goaccess.html
12
#				by default.
13
# goaccess_log (path):		Set to /var/log/httpd-access.log
14
#				by default.
15
# goaccess_config (str):	Set to %%PREFIX%%/etc/goaccess.conf
16
#				by default. Only used if the file exists.
17
18
. /etc/rc.subr
19
20
name=goaccess
21
rcvar=goaccess_enable
22
23
load_rc_config $name
24
25
: ${goaccess_html:=/var/run/goaccess/goaccess.html}
26
: ${goaccess_log:=/var/log/httpd-access.log}
27
: ${goaccess_config:=%%PREFIX%%/etc/goaccess/goaccess.conf}
28
29
command=/usr/local/bin/${name}
30
pidfile=/var/run/${name}.pid
31
32
# This is done to allow Directory be used for when configuring Apache
33
# as Files does not allow for a full path.
34
start_precmd=start_precmd
35
start_precmd()
36
{
37
    if [ $goaccess_html = /var/run/goaccess/goaccess.html ]; then
38
	if [ ! -d /var/run/goaccess ]; then
39
	    mkdir /var/run/goaccess
40
	fi
41
    fi
42
}
43
44
command_args="--daemonize --real-time-html --pid-file=$pidfile -p $goaccess_config -o $goaccess_html"
45
run_rc_command "$1"

Return to bug 234652