ports/69783: [NEW PORT] sysutils/snowlog: A webserver access log browser/analyzer
Cheng-Lung Sung
clsung at dragon2.net
Fri Jul 30 02:00:44 UTC 2004
>Number: 69783
>Category: ports
>Synopsis: [NEW PORT] sysutils/snowlog: A webserver access log browser/analyzer
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Jul 30 02:00:40 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Cheng-Lung Sung
>Release: FreeBSD 4.10-RELEASE i386
>Organization:
FreeBSD @ Taiwan
>Environment:
System: FreeBSD sungsung.csie.nctu.edu.tw 4.10-RELEASE FreeBSD 4.10-RELEASE #1: Wed Jun 9 11:27:45 CST
>Description:
Snowlog is a program that lets you browse your web server's access log files.
It does not generate static HTML status reports but instead shows you all
accesses in a list that you can filter, sort and search easily. It's a
console application and supposed to run on the server via ssh.
Filters that accept regular expressions can be applied.
WWW: http://home.kcore.de/~kiza/software/snowlog/
Generated with FreeBSD Port Tools 0.50
>How-To-Repeat:
>Fix:
--- snowlog-1.0.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# snowlog
# snowlog/Makefile
# snowlog/distinfo
# snowlog/pkg-descr
# snowlog/pkg-plist
# snowlog/files
# snowlog/files/patch-Makefile
# snowlog/pkg-message
#
echo c - snowlog
mkdir -p snowlog > /dev/null 2>&1
echo x - snowlog/Makefile
sed 's/^X//' >snowlog/Makefile << 'END-of-snowlog/Makefile'
X# ex:ts=8
X# New ports collection makefile for: snowlog
X# Date created: Jul 30 2004
X# Whom: Cheng-Lung Sung <clsung at dragon2.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME= snowlog
XPORTVERSION= 1.0
XCATEGORIES= sysutils
XMASTER_SITES= http://home.kcore.de/~kiza/software/snowlog/download/
X
XMAINTAINER= clsung at dragon2.net
XCOMMENT= A webserver access log browser/analyzer
X
XLIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre
X
XMAN1= snowlog.1
XDOCS= INSTALLATION doc/README doc/filters.example
XSHAREDOCS= referers.regexp useragents.regexp
X
X.include <bsd.port.pre.mk>
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X @${MKDIR} ${DATADIR}
X cd ${WRKSRC}/share && ${INSTALL_DATA} ${SHAREDOCS} ${DATADIR}
X @${MKDIR} ${DOCSDIR}
X cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
X.endif
X @${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-snowlog/Makefile
echo x - snowlog/distinfo
sed 's/^X//' >snowlog/distinfo << 'END-of-snowlog/distinfo'
XMD5 (snowlog-1.0.tar.gz) = 57c1f56f713aa9707d8f1a9a7c7109b4
XSIZE (snowlog-1.0.tar.gz) = 27065
END-of-snowlog/distinfo
echo x - snowlog/pkg-descr
sed 's/^X//' >snowlog/pkg-descr << 'END-of-snowlog/pkg-descr'
XSnowlog is a program that lets you browse your web server's access log files.
XIt does not generate static HTML status reports but instead shows you all
Xaccesses in a list that you can filter, sort and search easily. It's a
Xconsole application and supposed to run on the server via ssh.
X
XFilters that accept regular expressions can be applied.
X
XWWW: http://home.kcore.de/~kiza/software/snowlog/
END-of-snowlog/pkg-descr
echo x - snowlog/pkg-plist
sed 's/^X//' >snowlog/pkg-plist << 'END-of-snowlog/pkg-plist'
Xbin/snowlog
X%%PORTDOCS%%%%DOCSDIR%%/INSTALLATION
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%%%DOCSDIR%%/filters.example
X%%PORTDOCS%%%%DATADIR%%/referers.regexp
X%%PORTDOCS%%%%DATADIR%%/useragents.regexp
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X%%PORTDOCS%%@dirrm %%DATADIR%%
END-of-snowlog/pkg-plist
echo c - snowlog/files
mkdir -p snowlog/files > /dev/null 2>&1
echo x - snowlog/files/patch-Makefile
sed 's/^X//' >snowlog/files/patch-Makefile << 'END-of-snowlog/files/patch-Makefile'
X--- Makefile.orig Thu Jul 29 03:04:24 2004
X+++ Makefile Fri Jul 30 09:45:19 2004
X@@ -1,13 +1,10 @@
X-CC= gcc
X-MAKE= make
X INSTALL= install
X-PREFIX= /usr/local
X DATAPATH= $(PREFIX)/share
X LOCALEPATH= $(DATAPATH)/locale
X DOCPATH= $(DATAPATH)/doc
X
X-CFLAGS= -Wall -O2 -I/usr/local/include -DDATAPATH="\"$(DATAPATH)\"" -DVERSION=\"$(VERSION)\"
X-LDFLAGS= -L/usr/local/lib -lncurses -lpcre
X+CFLAGS+= -Wall -O2 -I$(LOCALBASE)/include -DDATAPATH="\"$(DATAPATH)\"" -DVERSION=\"$(VERSION)\"
X+LDFLAGS= -L$(LOCALBASE)/lib -lncurses -lpcre
X
X OBJFILES= main.o loadlog.o internals.o interface.o snowtk.o regexp.o filters.o setup.o
X
X@@ -27,7 +24,7 @@
X sed s#DATAPATH#$(DATAPATH)# | sed s#VERSION#$(VERSION)# \
X > doc/man/snowlog.1
X
X-install: install-bin install-data install-man install-doc
X+install: install-bin install-man
X
X install-bin: snowlog
X if [ ! -d "$(PREFIX)/bin" ]; then \
END-of-snowlog/files/patch-Makefile
echo x - snowlog/pkg-message
sed 's/^X//' >snowlog/pkg-message << 'END-of-snowlog/pkg-message'
X#########################################################
X
XTo use snowlog, adding this to httpd.conf
X
XLogFormat "%a\t%l\t%u\t%{%s}t\t%r\t%>s\t%X\t%{Content-Type}o\t%b\t%{Referer}i\t%{User-Agent}i\t%V\t%{LogHint}e" parsable
X
XNext, tell apache to make parsable logs:
X
XCustomLog /path/to/httpd_access_parsable.log parsable
X
X#########################################################
END-of-snowlog/pkg-message
exit
--- snowlog-1.0.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list