mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
New port http-analyze
http-analyze analyzes the logfile of a web server and creates a summary of the server's access load and the efficiency of caching mechanisms in o tabular o graphical o and three-dimensional form. http-analyze recognizes logfiles in Common Logfile Format and has been highly optimized for processing huge logfiles in short update-intervals. See: http://www.netstore.de/Supply/http-analyze/index.html Hint: should be used by freefall and cdrom.com ;-))
This commit is contained in:
parent
180c315742
commit
f70e751ccc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=7285
25
www/http-analyze/Makefile
Normal file
25
www/http-analyze/Makefile
Normal file
@ -0,0 +1,25 @@
|
||||
# New ports collection makefile for: http-analyze
|
||||
# Version required: 1.9e
|
||||
# Date created: Fri Jul 11 06:11:41 CEST 1997
|
||||
# Whom: Andreas Klemm <andreas@klemm.gtn.com>
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
||||
DISTNAME= http-analyze1.9e
|
||||
PKGNAME= http-analyze-1.9
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= ftp://ftp.rent-a-guru.de/pub/
|
||||
|
||||
BUILD_DEPENDS= ${PREFIX}/lib/libgd.a:${PORTSDIR}/graphics/gd
|
||||
|
||||
MAINTAINER= andreas@FreeBSD.ORG
|
||||
|
||||
MAN1= http-analyze.1
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/http-analyze ${PREFIX}/bin
|
||||
${INSTALL_DATA} ${WRKSRC}/http-analyze.man \
|
||||
${PREFIX}/man/man1/http-analyze.1
|
||||
|
||||
.include <bsd.port.mk>
|
1
www/http-analyze/distinfo
Normal file
1
www/http-analyze/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (http-analyze1.9e.tar.gz) = 8c7619a19c7e9dc2d5fb4c9787e758f4
|
36
www/http-analyze/files/patch-aa
Normal file
36
www/http-analyze/files/patch-aa
Normal file
@ -0,0 +1,36 @@
|
||||
--- Makefile.orig Sun Sep 22 15:59:18 1996
|
||||
+++ Makefile Fri Jul 11 06:31:20 1997
|
||||
@@ -16,8 +16,8 @@
|
||||
#COMPRESS = compress
|
||||
|
||||
# where your gd library and include files reside
|
||||
-GDLIB = /usr/local/lib/libgd.a
|
||||
-GDINC = /usr/local/include/gd
|
||||
+GDLIB = ${PREFIX}/lib/libgd.a
|
||||
+GDINC = ${PREFIX}/include/gd
|
||||
|
||||
# Customization
|
||||
#
|
||||
@@ -62,7 +62,8 @@
|
||||
#
|
||||
|
||||
#DEFINES = -DCOUNT_EXTRA_BYTES -DUSER_AGENT -DUSE_GETHOSTNAME -DUSE_FGETS
|
||||
-DEFINES = -DUSE_GETHOSTNAME
|
||||
+DEFINES = -DNS_FASTTRACK -DCOUNT_EXTRA_BYTES -DUSER_AGENT -DUSE_GETHOSTNAME \
|
||||
+ -DTIME_STATS
|
||||
|
||||
VERSION = -DVERSION=\"1.9e\"
|
||||
|
||||
@@ -71,10 +72,10 @@
|
||||
TARGETS = http-analyze http-analyze.1
|
||||
|
||||
# Compiler flags
|
||||
-CC = cc
|
||||
+#CC = cc
|
||||
#CFLAGS = -O -xansi -fullwarn -wlint,-pui -woff 827,828 $(DEFINES) $(VERSION)
|
||||
#CFLAGS = -O $(DEFINES) $(VERSION) -DTIME_STATS
|
||||
-CFLAGS = -O $(DEFINES) $(VERSION)
|
||||
+CFLAGS += $(DEFINES) $(VERSION)
|
||||
LDFLAGS =
|
||||
LINT = lint -u
|
||||
LIBS = -lm
|
64
www/http-analyze/files/patch-ab
Normal file
64
www/http-analyze/files/patch-ab
Normal file
@ -0,0 +1,64 @@
|
||||
--- http-analyze.c.orig Sun Sep 22 15:59:19 1996
|
||||
+++ http-analyze.c Fri Jul 11 06:35:28 1997
|
||||
@@ -466,8 +466,12 @@
|
||||
struct timeval tvs, tve;
|
||||
u_long asec = 0L, rsec = 0L;
|
||||
|
||||
+#ifdef __FreeBSD__
|
||||
+ (void) gettimeofday(&tvs, NULL); /* measure execution time */
|
||||
+#else
|
||||
(void) gettimeofday(&tvs); /* measure execution time */
|
||||
#endif
|
||||
+#endif
|
||||
now = time(NULL); /* get current time */
|
||||
|
||||
if ((progname = strrchr(argv[0], '/')) != NULL)
|
||||
@@ -679,7 +683,11 @@
|
||||
}
|
||||
#if defined(TIME_STATS)
|
||||
if (timestats) {
|
||||
+#ifdef __FreeBSD__
|
||||
+ (void) gettimeofday(&tve, NULL);
|
||||
+#else
|
||||
(void) gettimeofday(&tve);
|
||||
+#endif
|
||||
rsec += (tve.tv_sec-tvs.tv_sec) * TICKS_PER_MSEC;
|
||||
rsec -= tvs.tv_usec/TICKS_PER_MSEC;
|
||||
rsec += tve.tv_usec/TICKS_PER_MSEC;
|
||||
@@ -714,7 +722,11 @@
|
||||
mkdtab(&tstart);
|
||||
#if defined(TIME_STATS)
|
||||
if (timestats) {
|
||||
+#ifdef __FreeBSD__
|
||||
+ (void) gettimeofday(&tvs, NULL);
|
||||
+#else
|
||||
(void) gettimeofday(&tvs);
|
||||
+#endif
|
||||
asec += (tvs.tv_sec-tve.tv_sec) * TICKS_PER_MSEC;
|
||||
asec -= tve.tv_usec/TICKS_PER_MSEC;
|
||||
asec += tvs.tv_usec/TICKS_PER_MSEC;
|
||||
@@ -844,7 +856,11 @@
|
||||
|
||||
#if defined(TIME_STATS)
|
||||
if (timestats) {
|
||||
+#ifdef __FreeBSD__
|
||||
+ (void) gettimeofday(&tve, NULL);
|
||||
+#else
|
||||
(void) gettimeofday(&tve);
|
||||
+#endif
|
||||
rsec += (tve.tv_sec-tvs.tv_sec) * TICKS_PER_MSEC;
|
||||
rsec -= tvs.tv_usec/TICKS_PER_MSEC;
|
||||
rsec += tve.tv_usec/TICKS_PER_MSEC;
|
||||
@@ -882,7 +898,11 @@
|
||||
|
||||
#if defined(TIME_STATS)
|
||||
if (timestats) {
|
||||
- (void) gettimeofday(&tvs); /* measure execution time */
|
||||
+#ifdef __FreeBSD__
|
||||
+ (void) gettimeofday(&tvs, NULL);/* measure execution time */
|
||||
+#else
|
||||
+ (void) gettimeofday(&tvs); /* measure execution time */
|
||||
+#endif
|
||||
asec += (tvs.tv_sec-tve.tv_sec) * TICKS_PER_MSEC;
|
||||
asec -= tve.tv_usec/TICKS_PER_MSEC;
|
||||
asec += tvs.tv_usec/TICKS_PER_MSEC;
|
1
www/http-analyze/pkg-comment
Normal file
1
www/http-analyze/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
A fast Log-Analyzer for web servers
|
13
www/http-analyze/pkg-descr
Normal file
13
www/http-analyze/pkg-descr
Normal file
@ -0,0 +1,13 @@
|
||||
http-analyze analyzes the logfile of a web server and creates
|
||||
a summary of the server's access load and the efficiency of
|
||||
caching mechanisms in
|
||||
|
||||
o tabular
|
||||
o graphical
|
||||
o and three-dimensional form.
|
||||
|
||||
http-analyze recognizes logfiles in Common Logfile Format and has
|
||||
been highly optimized for processing huge logfiles in short
|
||||
update-intervals.
|
||||
|
||||
And the best of all: http-analyze is absolutely free!
|
2
www/http-analyze/pkg-plist
Normal file
2
www/http-analyze/pkg-plist
Normal file
@ -0,0 +1,2 @@
|
||||
bin/http-analyze
|
||||
man/man1/http-analyze.1.gz
|
Loading…
Reference in New Issue
Block a user