summaryrefslogtreecommitdiff
path: root/www/apachetop
diff options
context:
space:
mode:
authorsketch <sketch@pkgsrc.org>2003-12-08 16:28:38 +0000
committersketch <sketch@pkgsrc.org>2003-12-08 16:28:38 +0000
commit2dbfddea5cd2806d108b732784fb6f1ff4e3f18c (patch)
treed985dc503605b2338ce2e81d773c012437914b5f /www/apachetop
parentc65d264167e6f41691df73ba527045339ad0f94f (diff)
downloadpkgsrc-2dbfddea5cd2806d108b732784fb6f1ff4e3f18c.tar.gz
Initial import of apachetop-0.8.2 into the NetBSD Packages Collection.
ApacheTop provides a realtime display of Apache logfile statistics in a similar manner to top(1).
Diffstat (limited to 'www/apachetop')
-rw-r--r--www/apachetop/DESCR3
-rw-r--r--www/apachetop/Makefile21
-rw-r--r--www/apachetop/PLIST3
-rw-r--r--www/apachetop/distinfo7
-rw-r--r--www/apachetop/patches/patch-aa12
-rw-r--r--www/apachetop/patches/patch-ab123
-rw-r--r--www/apachetop/patches/patch-ac13
7 files changed, 182 insertions, 0 deletions
diff --git a/www/apachetop/DESCR b/www/apachetop/DESCR
new file mode 100644
index 00000000000..0e7efda8fb4
--- /dev/null
+++ b/www/apachetop/DESCR
@@ -0,0 +1,3 @@
+ApacheTop watches a logfile generated by Apache (in standard common or
+combined logformat, although it doesn't (yet) make use of any of the extra
+fields in combined) and generates human-parsable output in realtime.
diff --git a/www/apachetop/Makefile b/www/apachetop/Makefile
new file mode 100644
index 00000000000..4868ce9dd4b
--- /dev/null
+++ b/www/apachetop/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/12/08 16:28:38 sketch Exp $
+#
+
+DISTNAME= apachetop-0.8.2
+CATEGORIES= sysutils www
+MASTER_SITES= http://clueful.shagged.org/apachetop/files/
+
+MAINTAINER= sketch@NetBSD.org
+HOMEPAGE= http://clueful.shagged.org/apachetop/
+COMMENT= Real time apache log display
+
+USE_BUILDLINK2= YES
+GNU_CONFIGURE= YES
+
+# NetBSD releases which do not include wattr_on() et al.
+INCOMPAT_CURSES= NetBSD-1.5*-*
+INCOMPAT_CURSES= NetBSD-1.6-* NetBSD-1.6.*-* NetBSD-1.6[A-Q]-*
+
+.include "../../devel/ncurses/buildlink2.mk"
+.include "../../mk/pthread.buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/apachetop/PLIST b/www/apachetop/PLIST
new file mode 100644
index 00000000000..45156e144b5
--- /dev/null
+++ b/www/apachetop/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/12/08 16:28:38 sketch Exp $
+man/man1/apachetop.1
+bin/apachetop
diff --git a/www/apachetop/distinfo b/www/apachetop/distinfo
new file mode 100644
index 00000000000..7782147830c
--- /dev/null
+++ b/www/apachetop/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/12/08 16:28:38 sketch Exp $
+
+SHA1 (apachetop-0.8.2.tar.gz) = fc9e4b40061f5d01663d832c011c59e41be561b9
+Size (apachetop-0.8.2.tar.gz) = 94779 bytes
+SHA1 (patch-aa) = 8a7d6e2c3b32cffe46e57ee41a145bdbfa35ad48
+SHA1 (patch-ab) = 90e3a2faa5a136f2d65812c4d40b8895e4a2f228
+SHA1 (patch-ac) = ae903e7f5e90158c72be74079540bc6c409c59c7
diff --git a/www/apachetop/patches/patch-aa b/www/apachetop/patches/patch-aa
new file mode 100644
index 00000000000..40a991fd02b
--- /dev/null
+++ b/www/apachetop/patches/patch-aa
@@ -0,0 +1,12 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/12/08 16:28:38 sketch Exp $
+
+--- src/Makefile.am.orig 2003-12-08 15:42:48.000000000 +0000
++++ src/Makefile.am 2003-12-08 15:43:09.000000000 +0000
+@@ -1,6 +1,6 @@
+ ## Process this file with automake to produce Makefile.in.
+
+-sbin_PROGRAMS = apachetop
++bin_PROGRAMS = apachetop
+
+ apachetop_SOURCES = apachetop.cc log.cc hashes.cc ohtbl.cc map.cc \
+ display.cc hits_circle.cc timed_circle.cc
diff --git a/www/apachetop/patches/patch-ab b/www/apachetop/patches/patch-ab
new file mode 100644
index 00000000000..d68a047fe75
--- /dev/null
+++ b/www/apachetop/patches/patch-ab
@@ -0,0 +1,123 @@
+$NetBSD: patch-ab,v 1.1.1.1 2003/12/08 16:28:39 sketch Exp $
+
+--- src/Makefile.in.orig 2003-12-08 15:42:42.000000000 +0000
++++ src/Makefile.in 2003-12-08 15:43:56.000000000 +0000
+@@ -105,12 +105,12 @@
+ oldincludedir = @oldincludedir@
+ prefix = @prefix@
+ program_transform_name = @program_transform_name@
+-sbindir = @sbindir@
++bindir = @bindir@
+ sharedstatedir = @sharedstatedir@
+ sysconfdir = @sysconfdir@
+ target_alias = @target_alias@
+
+-sbin_PROGRAMS = apachetop
++bin_PROGRAMS = apachetop
+
+ apachetop_SOURCES = apachetop.cc log.cc hashes.cc ohtbl.cc map.cc \
+ display.cc hits_circle.cc timed_circle.cc
+@@ -126,8 +126,8 @@
+ mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
+ CONFIG_HEADER = $(top_builddir)/config.h
+ CONFIG_CLEAN_FILES =
+-sbin_PROGRAMS = apachetop$(EXEEXT)
+-PROGRAMS = $(sbin_PROGRAMS)
++bin_PROGRAMS = apachetop$(EXEEXT)
++PROGRAMS = $(bin_PROGRAMS)
+
+ am_apachetop_OBJECTS = apachetop.$(OBJEXT) log.$(OBJEXT) \
+ hashes.$(OBJEXT) ohtbl.$(OBJEXT) map.$(OBJEXT) \
+@@ -164,30 +164,30 @@
+ $(AUTOMAKE) --gnu src/Makefile
+ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
+-sbinPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
+-install-sbinPROGRAMS: $(sbin_PROGRAMS)
++binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
++install-binPROGRAMS: $(bin_PROGRAMS)
+ @$(NORMAL_INSTALL)
+- $(mkinstalldirs) $(DESTDIR)$(sbindir)
+- @list='$(sbin_PROGRAMS)'; for p in $$list; do \
++ $(mkinstalldirs) $(DESTDIR)$(bindir)
++ @list='$(bin_PROGRAMS)'; for p in $$list; do \
+ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+ if test -f $$p \
+ ; then \
+ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
+- echo " $(INSTALL_PROGRAM_ENV) $(sbinPROGRAMS_INSTALL) $$p $(DESTDIR)$(sbindir)/$$f"; \
+- $(INSTALL_PROGRAM_ENV) $(sbinPROGRAMS_INSTALL) $$p $(DESTDIR)$(sbindir)/$$f || exit 1; \
++ echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \
++ $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f || exit 1; \
+ else :; fi; \
+ done
+
+-uninstall-sbinPROGRAMS:
++uninstall-binPROGRAMS:
+ @$(NORMAL_UNINSTALL)
+- @list='$(sbin_PROGRAMS)'; for p in $$list; do \
++ @list='$(bin_PROGRAMS)'; for p in $$list; do \
+ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
+- echo " rm -f $(DESTDIR)$(sbindir)/$$f"; \
+- rm -f $(DESTDIR)$(sbindir)/$$f; \
++ echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
++ rm -f $(DESTDIR)$(bindir)/$$f; \
+ done
+
+-clean-sbinPROGRAMS:
+- -test -z "$(sbin_PROGRAMS)" || rm -f $(sbin_PROGRAMS)
++clean-binPROGRAMS:
++ -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
+ apachetop$(EXEEXT): $(apachetop_OBJECTS) $(apachetop_DEPENDENCIES)
+ @rm -f apachetop$(EXEEXT)
+ $(CXXLINK) $(apachetop_LDFLAGS) $(apachetop_OBJECTS) $(apachetop_LDADD) $(LIBS)
+@@ -320,7 +320,7 @@
+ all-am: Makefile $(PROGRAMS) $(HEADERS)
+
+ installdirs:
+- $(mkinstalldirs) $(DESTDIR)$(sbindir)
++ $(mkinstalldirs) $(DESTDIR)$(bindir)
+ install: install-am
+ install-exec: install-exec-am
+ install-data: install-data-am
+@@ -348,7 +348,7 @@
+ -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
+ clean: clean-am
+
+-clean-am: clean-generic clean-sbinPROGRAMS mostlyclean-am
++clean-am: clean-generic clean-binPROGRAMS mostlyclean-am
+
+ distclean: distclean-am
+ -rm -rf ./$(DEPDIR)
+@@ -366,7 +366,7 @@
+
+ install-data-am:
+
+-install-exec-am: install-sbinPROGRAMS
++install-exec-am: install-binPROGRAMS
+
+ install-info: install-info-am
+
+@@ -391,18 +391,18 @@
+
+ ps-am:
+
+-uninstall-am: uninstall-info-am uninstall-sbinPROGRAMS
++uninstall-am: uninstall-info-am uninstall-binPROGRAMS
+
+ .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
+- clean-sbinPROGRAMS ctags distclean distclean-compile \
++ clean-binPROGRAMS ctags distclean distclean-compile \
+ distclean-generic distclean-tags distdir dvi dvi-am info \
+ info-am install install-am install-data install-data-am \
+ install-exec install-exec-am install-info install-info-am \
+- install-man install-sbinPROGRAMS install-strip installcheck \
++ install-man install-binPROGRAMS install-strip installcheck \
+ installcheck-am installdirs maintainer-clean \
+ maintainer-clean-generic mostlyclean mostlyclean-compile \
+ mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \
+- uninstall-am uninstall-info-am uninstall-sbinPROGRAMS
++ uninstall-am uninstall-info-am uninstall-binPROGRAMS
+
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
diff --git a/www/apachetop/patches/patch-ac b/www/apachetop/patches/patch-ac
new file mode 100644
index 00000000000..8f9d7ba221f
--- /dev/null
+++ b/www/apachetop/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 2003/12/08 16:28:39 sketch Exp $
+
+--- src/apachetop.h.orig Fri Dec 5 09:49:21 2003
++++ src/apachetop.h Fri Dec 5 09:49:39 2003
+@@ -221,7 +221,7 @@
+ #define DEBUG_OUTPUT "/tmp/atop.debug"
+
+ #ifndef DEFAULT_LOGFILE
+-# define DEFAULT_LOGFILE "/var/httpd/apache_log"
++# define DEFAULT_LOGFILE "/var/log/httpd/access_log"
+ #endif
+ #define DEFAULT_CIRCLE_SIZE 30
+ #define DEFAULT_CIRCLE_MODE TIMED_CIRCLE