aboutsummaryrefslogtreecommitdiff
path: root/sysutils/hammerhead
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2002-11-21 15:45:50 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2002-11-21 15:45:50 +0000
commit9fa5d27ab0eea973dddbc254a2dbad842afb7adb (patch)
treecea881aeb96fef8ed1420f20cc7298e98ce473c8 /sysutils/hammerhead
parent7e6186cb1b555ce673f604b78b8fa4ccb357598e (diff)
downloadports-9fa5d27ab0eea973dddbc254a2dbad842afb7adb.tar.gz
ports-9fa5d27ab0eea973dddbc254a2dbad842afb7adb.zip
Notes
Diffstat (limited to 'sysutils/hammerhead')
-rw-r--r--sysutils/hammerhead/Makefile26
-rw-r--r--sysutils/hammerhead/distinfo1
-rw-r--r--sysutils/hammerhead/files/patch-Makefile.in33
-rw-r--r--sysutils/hammerhead/files/patch-src::Makefile17
-rw-r--r--sysutils/hammerhead/pkg-comment1
-rw-r--r--sysutils/hammerhead/pkg-descr11
-rw-r--r--sysutils/hammerhead/pkg-plist5
7 files changed, 94 insertions, 0 deletions
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