diff options
author | vanilla <vanilla@FreeBSD.org> | 2002-11-21 23:45:50 +0800 |
---|---|---|
committer | vanilla <vanilla@FreeBSD.org> | 2002-11-21 23:45:50 +0800 |
commit | 47ba8112c4891a84219ff4029343e8a40907c3ac (patch) | |
tree | 33360b8874d56502917288ef7d50996fc0d19a68 /sysutils | |
parent | 0fa7ccdc1f353b9a5bcc02b056317028acdb3efe (diff) | |
download | freebsd-ports-gnome-47ba8112c4891a84219ff4029343e8a40907c3ac.tar.gz freebsd-ports-gnome-47ba8112c4891a84219ff4029343e8a40907c3ac.tar.zst freebsd-ports-gnome-47ba8112c4891a84219ff4029343e8a40907c3ac.zip |
Add hammerhead,
it's a stress testing tool designed to test out your web server and web site.
PR: ports/45485
Submitted by: John Von Essen <john@essenz.com>
Somepart by: me
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/hammerhead/Makefile | 26 | ||||
-rw-r--r-- | sysutils/hammerhead/distinfo | 1 | ||||
-rw-r--r-- | sysutils/hammerhead/files/patch-Makefile.in | 33 | ||||
-rw-r--r-- | sysutils/hammerhead/files/patch-src::Makefile | 17 | ||||
-rw-r--r-- | sysutils/hammerhead/pkg-comment | 1 | ||||
-rw-r--r-- | sysutils/hammerhead/pkg-descr | 11 | ||||
-rw-r--r-- | sysutils/hammerhead/pkg-plist | 5 |
8 files changed, 95 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index b6a3b445a3ab..aea8c3886484 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -100,6 +100,7 @@ SUBDIR += gtoaster SUBDIR += gtop SUBDIR += gupsc + SUBDIR += hammerhead SUBDIR += healthd SUBDIR += httplog SUBDIR += idled diff --git a/sysutils/hammerhead/Makefile b/sysutils/hammerhead/Makefile new file mode 100644 index 000000000000..9bff568ba56f --- /dev/null +++ b/sysutils/hammerhead/Makefile @@ -0,0 +1,26 @@ +# New ports collection makefile for: hammerhead +# Date created: 14 November 2002 +# Whom: John von Essen +# +# $FreeBSD$ +# + +PORTNAME= hammerhead +PORTVERSION= 2.1.2 +CATEGORIES= sysutils +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= john@essenz.com + +GNU_CONFIGURE= yes +USE_GMAKE= yes +USE_REINPLACE= yes + +post-patch: + @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' \ + ${WRKSRC}/src/Makefile + +MAN1= hammerhead.1 + +.include <bsd.port.mk> diff --git a/sysutils/hammerhead/distinfo b/sysutils/hammerhead/distinfo new file mode 100644 index 000000000000..cbe378efd502 --- /dev/null +++ b/sysutils/hammerhead/distinfo @@ -0,0 +1 @@ +MD5 (hammerhead-2.1.2.tar.gz) = 879f47d16ccb7ba59eb475e2f4e2436b diff --git a/sysutils/hammerhead/files/patch-Makefile.in b/sysutils/hammerhead/files/patch-Makefile.in new file mode 100644 index 000000000000..560632bea6f4 --- /dev/null +++ b/sysutils/hammerhead/files/patch-Makefile.in @@ -0,0 +1,33 @@ +--- Makefile.in.orig Wed Nov 13 19:40:14 2002 ++++ Makefile.in Thu Nov 21 00:36:01 2002 +@@ -55,6 +55,8 @@ + + install: .PHONY + cd src; $(MAKE) install ++ -mkdir -p $(mandir)/man1 ++ -$(INSTALL) doc/hammerhead.1 $(mandir)/man1/ + + src: .PHONY + cd src; $(MAKE) +@@ -67,20 +69,10 @@ + # Should be fixed to ignore CVS directories on build + # (perhaps use a Manifest) + # +-package: veryclean +- -cd ..; mv hammerhead hammerhead-$(HAMMER_VSN); tar --exclude CVS -cf - hammerhead-$(HAMMER_VSN) | gzip -c > /tmp/hammerhead-$(HAMMER_VSN).tar.gz; mv hammerhead-$(HAMMER_VSN) hammerhead +- -mv /tmp/hammerhead-$(HAMMER_VSN).tar.gz . + + clean: .PHONY +- -rm config.log config.status ++ -rm config.cache Makefile hammer.mk + cd src; $(MAKE) clean + +-veryclean: clean +- -rm -f config.cache config.h hammerhead-$(HAMMER_VSN).tar.gz hammer.mk Makefile +- -rm -f $(BINPATH)hammerhead $(BINPATH)convertLog $(COBJ) $(HOBJ) $(JOBJ) $(PUREOBJ) +- +-install-doc: .PHONY +- -mkdir -p $(mandir)/man1 +- -$(INSTALL) -m 0644 doc/hammerhead.1 $(mandir)/man1/hammerhead.1 + .PHONY: + diff --git a/sysutils/hammerhead/files/patch-src::Makefile b/sysutils/hammerhead/files/patch-src::Makefile new file mode 100644 index 000000000000..81a28e1c2a91 --- /dev/null +++ b/sysutils/hammerhead/files/patch-src::Makefile @@ -0,0 +1,17 @@ +--- src/Makefile.orig Wed Nov 13 19:40:15 2002 ++++ src/Makefile Thu Nov 21 00:38:20 2002 +@@ -90,10 +90,10 @@ + + install: $(TARGET) + $(INSTALL) -m 0755 $(TARGET) $(BINDIR) +- -mkdir -p /etc/hammerhead +- -$(INSTALL) -m 0644 ../doc/test.conf /etc/hammerhead/hh.conf +- -$(INSTALL) -m 0644 ../doc/root.scn /etc/hammerhead/root.scn +- -$(INSTALL) -m 0644 ../doc/post.scn /etc/hammerhead/post.scn ++ -mkdir -p %%PREFIX%%/etc/hammerhead ++ -$(INSTALL) -m 0644 ../doc/test.conf %%PREFIX%%/etc/hammerhead/hh.conf ++ -$(INSTALL) -m 0644 ../doc/root.scn %%PREFIX%%/etc/hammerhead/root.scn ++ -$(INSTALL) -m 0644 ../doc/post.scn %%PREFIX%%/etc/hammerhead/post.scn + + $(TARGET): $(HOBJ) + $(CC) $(PROF) -o $(TARGET) $(DEFS) $(CFLAGS) $^ $(LIBS) diff --git a/sysutils/hammerhead/pkg-comment b/sysutils/hammerhead/pkg-comment new file mode 100644 index 000000000000..5ea5207fedb5 --- /dev/null +++ b/sysutils/hammerhead/pkg-comment @@ -0,0 +1 @@ +A webserver stressing tool diff --git a/sysutils/hammerhead/pkg-descr b/sysutils/hammerhead/pkg-descr new file mode 100644 index 000000000000..6d54f9c23cd5 --- /dev/null +++ b/sysutils/hammerhead/pkg-descr @@ -0,0 +1,11 @@ +Hammerhead 2 is a stress testing tool designed to test out your web server +and web site. It can initiate multiple connections from IP aliases and +simulated numerous (256+) users at any given time. The rate at which +Hammerhead 2 attempts to pound your site is fully configurable, there are +numerous other options for trying to create problems with a web site (so you +can fix them). It can be used to test the behaviour of the port under load, +or the ability of the port to service a set of requests. Warning: Hammerhead +can destroy a web site very quickly. It should only be used to generate heavy +loads on local web sites for testing purposes. + +WWW: http://hammerhead.sourceforge.net/ diff --git a/sysutils/hammerhead/pkg-plist b/sysutils/hammerhead/pkg-plist new file mode 100644 index 000000000000..52b3a9d0acbf --- /dev/null +++ b/sysutils/hammerhead/pkg-plist @@ -0,0 +1,5 @@ +bin/hammerhead +etc/hammerhead/hh.conf +etc/hammerhead/root.scn +etc/hammerhead/post.scn +@dirrm etc/hammerhead |