[csw-devel] SF.net SVN: gar:[8977] csw/mgar/pkg

skayser at users.sourceforge.net skayser at users.sourceforge.net
Thu Mar 4 22:52:06 CET 2010


Revision: 8977
          http://gar.svn.sourceforge.net/gar/?rev=8977&view=rev
Author:   skayser
Date:     2010-03-04 21:52:06 +0000 (Thu, 04 Mar 2010)

Log Message:
-----------
autobench: initial commit

Added Paths:
-----------
    csw/mgar/pkg/autobench/
    csw/mgar/pkg/autobench/branches/
    csw/mgar/pkg/autobench/tags/
    csw/mgar/pkg/autobench/trunk/
    csw/mgar/pkg/autobench/trunk/Makefile
    csw/mgar/pkg/autobench/trunk/checksums
    csw/mgar/pkg/autobench/trunk/files/
    csw/mgar/pkg/autobench/trunk/files/0001-Makefile-only-set-defaults-if-not-explicitly-given.patch
    csw/mgar/pkg/autobench/trunk/files/0002-man-pages-adjust-default-conf-location.patch
    csw/mgar/pkg/autobench/trunk/files/changelog.CSW


Property changes on: csw/mgar/pkg/autobench/trunk
___________________________________________________________________
Added: svn:ignore
   + cookies
download
work


Added: svn:externals
   + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2


Added: csw/mgar/pkg/autobench/trunk/Makefile
===================================================================
--- csw/mgar/pkg/autobench/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/autobench/trunk/Makefile	2010-03-04 21:52:06 UTC (rev 8977)
@@ -0,0 +1,56 @@
+GARNAME = autobench
+GARVERSION = 2.1.2
+CATEGORIES = apps
+
+DESCRIPTION = Wrapper around httperf which automates the benchmarking process
+define BLURB
+  Autobench is a simple Perl script for automating the process of
+  benchmarking a web server (or for conducting a comparative test of two
+  different web servers). The script is a wrapper around  httperf.
+  Autobench runs httperf a number of times against each host, increasing
+  the number of requested connections per second on each iteration, and
+  extracts the significant data from the httperf output, delivering a CSV
+  or TSV format file which can be imported directly into a spreadsheet for
+  analysis/graphing. 
+endef
+
+VENDOR_URL   = http://www.xenoclast.org/autobench/
+MASTER_SITES = http://www.xenoclast.org/autobench/downloads/
+DISTFILES    = $(GARNAME)-$(GARVERSION).tar.gz
+UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz
+
+LICENSE = LICENCE
+
+# Make the Makefile honor our defaults
+PATCHFILES  = 0001-Makefile-only-set-defaults-if-not-explicitly-given.patch
+# Adjust config file location paths
+PATCHFILES += 0002-man-pages-adjust-default-conf-location.patch
+
+CONFIGURE_SCRIPTS =
+TEST_SCRIPTS =
+
+# Override the /usr/local installation defaults, the config is only used
+# to pre-populate a user config, so we move it to examples
+BINDIR=$(DESTDIR)$(bindir)
+MANDIR=$(DESTDIR)$(mandir)/man1
+ETCDIR=$(DESTDIR)$(docdir)/$(GARNAME)/examples
+INSTALL_EXPORTS=BINDIR MANDIR ETCDIR 
+
+EXTRA_PAX_ARGS = '-s,ChangeLog$$,changelog,p'
+
+include gar/category.mk
+
+# See above, config is only used as a template
+pre-install-modulated:
+	gsed -i -e 's,/etc/autobench.conf,$(ETCDIR)/autobench.conf,' \
+		$(WORKSRC)/autobench \
+		$(WORKSRC)/autobench_admin
+	@$(MAKECOOKIE)
+
+post-install-modulated: DOCDEST=$(DESTDIR)$(docdir)/$(GARNAME)
+post-install-modulated: DOCS=ChangeLog
+post-install-modulated:
+	mkdir -p $(DOCDEST)
+	cp $(addprefix $(WORKSRC)/,$(DOCS)) $(DOCDEST)
+	cp $(FILEDIR)/changelog.CSW $(DOCDEST)
+	@$(MAKECOOKIE)

Added: csw/mgar/pkg/autobench/trunk/checksums
===================================================================
--- csw/mgar/pkg/autobench/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/autobench/trunk/checksums	2010-03-04 21:52:06 UTC (rev 8977)
@@ -0,0 +1,3 @@
+6687489b7b1c249b622ba6a3d0100fa0  0001-Makefile-only-set-defaults-if-not-explicitly-given.patch
+dbf7db26670e07cdcb4ffd2b70bd9451  0002-man-pages-adjust-default-conf-location.patch
+dbd00818840ed8d3c3d35734f0353cff  autobench-2.1.2.tar.gz

Added: csw/mgar/pkg/autobench/trunk/files/0001-Makefile-only-set-defaults-if-not-explicitly-given.patch
===================================================================
--- csw/mgar/pkg/autobench/trunk/files/0001-Makefile-only-set-defaults-if-not-explicitly-given.patch	                        (rev 0)
+++ csw/mgar/pkg/autobench/trunk/files/0001-Makefile-only-set-defaults-if-not-explicitly-given.patch	2010-03-04 21:52:06 UTC (rev 8977)
@@ -0,0 +1,50 @@
+From c4d419358421a3d6c54adc1d9a4118b4245581e1 Mon Sep 17 00:00:00 2001
+From: Sebastian Kayser <skayser at opencsw.org>
+Date: Thu, 4 Mar 2010 22:07:10 +0100
+Subject: [PATCH 1/2] Makefile: only set defaults if not explicitly given
+
+---
+ Makefile |   14 +++++++-------
+ 1 files changed, 7 insertions(+), 7 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index b0e9539..eaf2323 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,6 +1,6 @@
+ # Makefile for autobench scripts
+ VERSION = 2.1.2
+-PREFIX = /usr/local
++PREFIX ?= /usr/local
+ 
+ # Automatically set correct paths for building Debian packages
+ ifdef DEB_BUILD_ARCH
+@@ -9,9 +9,9 @@ ifdef DEB_BUILD_ARCH
+   PREFIX = $(DESTDIR)
+ endif
+ 
+-BINDIR = $(PREFIX)$(ROOTBIN_PREFIX)/bin
+-MANDIR = $(PREFIX)$(ROOTMAN_PREFIX)/man/man1
+-ETCDIR = $(PREFIX)/etc
++BINDIR ?= $(PREFIX)$(ROOTBIN_PREFIX)/bin
++MANDIR ?= $(PREFIX)$(ROOTMAN_PREFIX)/man/man1
++ETCDIR ?= $(PREFIX)/etc
+ 
+ ifdef DEB_BUILD_ARCH
+   export AB_CFG = /etc/autobench.conf
+@@ -20,9 +20,9 @@ else
+ endif
+ 
+ # Compiler & flags
+-CC=gcc
+-CFLAGS=-O2 -Wall
+-DEBUG_FLAGS=-Wall -g
++CC?=gcc
++CFLAGS?=-O2 -Wall
++DEBUG_FLAGS?=-Wall -g
+ 
+ #---------------------------------------------------------------------------
+ # Release related 
+-- 
+1.6.6
+

Added: csw/mgar/pkg/autobench/trunk/files/0002-man-pages-adjust-default-conf-location.patch
===================================================================
--- csw/mgar/pkg/autobench/trunk/files/0002-man-pages-adjust-default-conf-location.patch	                        (rev 0)
+++ csw/mgar/pkg/autobench/trunk/files/0002-man-pages-adjust-default-conf-location.patch	2010-03-04 21:52:06 UTC (rev 8977)
@@ -0,0 +1,56 @@
+From 2dcc550bd0c7eaa94c7dee745898121b180afcf3 Mon Sep 17 00:00:00 2001
+From: Sebastian Kayser <skayser at opencsw.org>
+Date: Thu, 4 Mar 2010 22:45:36 +0100
+Subject: [PATCH 2/2] man pages: adjust default conf location
+
+---
+ autobench.1       |    6 ++----
+ autobench_admin.1 |    8 +++-----
+ 2 files changed, 5 insertions(+), 9 deletions(-)
+
+diff --git a/autobench.1 b/autobench.1
+index 335ca58..55b30b3 100644
+--- a/autobench.1
++++ b/autobench.1
+@@ -150,14 +150,12 @@ httperf_print-reply = body
+ httperf_print-request = header
+ .SH FILES
+ .TP 
+-.I [/usr/local]/etc/autobench.conf
++.I /opt/csw/share/doc/autobench/examples/autobench.conf
+ Default configuration file, copied into the user's home directory when
+ .B autobench 
+ or
+ .B autobench_admin
+-is first run.  Defaults to \fI/etc/autobench.conf\fR if
+-autobench was installed from the Debian package,
+-\fI/usr/local/etc/autobench.conf\fR otherwise.
++is first run.
+ .TP
+ .I $HOME/.autobench.conf
+ The active autobench configuration file.
+diff --git a/autobench_admin.1 b/autobench_admin.1
+index aa5b74b..30ed6c8 100644
+--- a/autobench_admin.1
++++ b/autobench_admin.1
+@@ -148,14 +148,12 @@ httperf_print-reply = body
+ httperf_print-request = header
+ .SH FILES
+ .TP 
+-.I [/usr/local]/etc/autobench.conf
++.I /opt/csw/share/doc/autobench/examples/autobench.conf
+ Default configuration file, copied into the user's home directory when
+-.B autobench 
++.B autobench
+ or
+ .B autobench_admin
+-is first run.  Defaults to \fI/etc/autobench.conf\fR if
+-autobench was installed from the Debian package,
+-\fI/usr/local/etc/autobench.conf\fR otherwise.
++is first run.
+ .TP
+ .I $HOME/.autobench.conf
+ The active autobench configuration file.
+-- 
+1.6.6
+

Added: csw/mgar/pkg/autobench/trunk/files/changelog.CSW
===================================================================
--- csw/mgar/pkg/autobench/trunk/files/changelog.CSW	                        (rev 0)
+++ csw/mgar/pkg/autobench/trunk/files/changelog.CSW	2010-03-04 21:52:06 UTC (rev 8977)
@@ -0,0 +1,5 @@
+autobench (2.1.2,REV=2010.03.04)
+
+  * Initial release.
+
+ -- Sebastian Kayser <skayser at opencsw.org>  Thu,  4 Mar 2010 22:14:24 +0100


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list