summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornils <nils@pkgsrc.org>2015-11-27 16:20:31 +0000
committernils <nils@pkgsrc.org>2015-11-27 16:20:31 +0000
commit69a659121578925fc7fe2a32913b48e20a0dd3e5 (patch)
tree526797acd16aba26d1b213a9bc5c5c3e3469ce54
parent7b782643911b4166310272476646e124c68fb780 (diff)
downloadpkgsrc-69a659121578925fc7fe2a32913b48e20a0dd3e5.tar.gz
Initial import of siege, version 3.1.2.
Siege is an http regression testing and benchmarking utility. It was designed to let web developers measure the performance of their code under duress, to see how it will stand up to load on the internet. Siege supports basic authentication, cookies, HTTP and HTTPS protocols. It allows the user hit a web server with a configurable number of concurrent simulated users. Those users place the webserver "under siege."
-rw-r--r--www/siege/DESCR7
-rw-r--r--www/siege/Makefile62
-rw-r--r--www/siege/PLIST24
-rw-r--r--www/siege/distinfo6
-rw-r--r--www/siege/options.mk14
5 files changed, 113 insertions, 0 deletions
diff --git a/www/siege/DESCR b/www/siege/DESCR
new file mode 100644
index 00000000000..985c935c372
--- /dev/null
+++ b/www/siege/DESCR
@@ -0,0 +1,7 @@
+Siege is an http regression testing and benchmarking utility. It was
+designed to let web developers measure the performance of their code
+under duress, to see how it will stand up to load on the internet.
+
+Siege supports basic authentication, cookies, HTTP and HTTPS protocols.
+It allows the user hit a web server with a configurable number of
+concurrent simulated users. Those users place the webserver "under siege."
diff --git a/www/siege/Makefile b/www/siege/Makefile
new file mode 100644
index 00000000000..87a10d5083e
--- /dev/null
+++ b/www/siege/Makefile
@@ -0,0 +1,62 @@
+# $NetBSD: Makefile,v 1.1 2015/11/27 16:20:31 nils Exp $
+#
+
+DISTNAME= siege-3.1.2
+CATEGORIES= www
+MASTER_SITES= http://download.joedog.org/siege/
+
+MAINTAINER= nils@NetBSD.org
+HOMEPAGE= http://www.joedog.org/JoeDog/Siege
+COMMENT= Website/webserver regression testing utility
+LICENSE= gnu-gpl-v2
+
+GNU_CONFIGURE= yes
+
+USE_TOOLS+= autoconf
+
+.include "options.mk"
+
+BUILD_DEFS+= VARBASE
+PKG_SYSCONFSUBDIR= siege
+EGDIR= ${PREFIX}/share/examples/siege
+DOCDIR= ${PREFIX}/share/doc/siege
+CONF_FILES= ${EGDIR}/urls.txt ${PKG_SYSCONFDIR}/urls.txt
+CONF_FILES+= ${EGDIR}/siegerc ${PKG_SYSCONFDIR}/siegerc
+
+SUBST_CLASSES+= siege
+SUBST_STAGE.siege= post-patch
+SUBST_FILES.siege= doc/Makefile.am doc/Makefile.in
+SUBST_SED.siege+= -e "s|@EGDIR@|${EGDIR}|g"
+
+SUBST_CLASSES+= install
+SUBST_STAGE.install= pre-install
+SUBST_MESSAGE.install= correcting installation path
+SUBST_FILES.install= ${WRKSRC}/doc/Makefile
+SUBST_SED.install= -e 's,${PREFIX}/etc,${EGDIR},g'
+
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+= --localstatedir=${VARBASE}/log/
+CONFIGURE_ENV+= PERL=${PERL5:Q}
+
+INSTALLATION_DIRS+= ${EGDIR} ${DOCDIR}
+NOT_FOR_PLATFORM+= SunOS-*-*
+
+pre-configure:
+ cd ${WRKSRC} && autoconf
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/doc/urls.txt ${DESTDIR}${EGDIR}/urls.txt
+ ${INSTALL_DATA} ${WRKSRC}/doc/siegerc ${DESTDIR}${EGDIR}/siegerc
+ ${INSTALL_DATA} ${WRKSRC}/AUTHORS ${DESTDIR}${DOCDIR}/AUTHORS
+ ${INSTALL_DATA} ${WRKSRC}/COPYING ${DESTDIR}${DOCDIR}/COPYING
+ ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DESTDIR}${DOCDIR}/ChangeLog
+ ${INSTALL_DATA} ${WRKSRC}/INSTALL ${DESTDIR}${DOCDIR}/INSTALL
+ ${INSTALL_DATA} ${WRKSRC}/KNOWNBUGS ${DESTDIR}${DOCDIR}/KNOWNBUGS
+ #${INSTALL_DATA} ${WRKSRC}/MACHINES ${DESTDIR}${DOCDIR}/MACHINES
+ ${INSTALL_DATA} ${WRKSRC}/NEWS ${DESTDIR}${DOCDIR}/NEWS
+ ${INSTALL_DATA} ${WRKSRC}/PLATFORM ${DESTDIR}${DOCDIR}/PLATFORM
+ ${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${DOCDIR}/README.md
+ ${INSTALL_DATA} ${WRKSRC}/README.https ${DESTDIR}${DOCDIR}/README.https
+ #${INSTALL_DATA} ${WRKSRC}/README.solaris ${DESTDIR}${DOCDIR}/README.solaris
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/siege/PLIST b/www/siege/PLIST
new file mode 100644
index 00000000000..1090cc257d9
--- /dev/null
+++ b/www/siege/PLIST
@@ -0,0 +1,24 @@
+@comment $NetBSD: PLIST,v 1.1 2015/11/27 16:20:31 nils Exp $
+bin/bombardment
+bin/siege
+bin/siege.config
+bin/siege2csv.pl
+man/man1/bombardment.1
+man/man1/siege.1
+man/man1/siege.config.1
+man/man1/siege2csv.1
+man/man5/urls_txt.5
+man/man7/layingsiege.7
+share/doc/siege/AUTHORS
+share/doc/siege/COPYING
+share/doc/siege/ChangeLog
+share/doc/siege/INSTALL
+share/doc/siege/KNOWNBUGS
+share/doc/siege/NEWS
+share/doc/siege/PLATFORM
+share/doc/siege/README.https
+share/doc/siege/README.md
+share/examples/siege/siege/siegerc
+share/examples/siege/siege/urls.txt
+share/examples/siege/siegerc
+share/examples/siege/urls.txt
diff --git a/www/siege/distinfo b/www/siege/distinfo
new file mode 100644
index 00000000000..24621d5af85
--- /dev/null
+++ b/www/siege/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2015/11/27 16:20:31 nils Exp $
+
+SHA1 (siege-3.1.2.tar.gz) = 29562e621536a54ea3a710847b7299039fd43e42
+RMD160 (siege-3.1.2.tar.gz) = 5c7d5771a76c38ba0c67961cd13ef4422dc01ae0
+SHA512 (siege-3.1.2.tar.gz) = 3ec3e861d56b8a75c83ddf2c971fda01b0981568d30deeeeaf22f34324308bf67244f3045366d63d20aacb946f968244a295b048f40250429b509f7f466fdf6f
+Size (siege-3.1.2.tar.gz) = 527365 bytes
diff --git a/www/siege/options.mk b/www/siege/options.mk
new file mode 100644
index 00000000000..dab487b6830
--- /dev/null
+++ b/www/siege/options.mk
@@ -0,0 +1,14 @@
+# $NetBSD: options.mk,v 1.1 2015/11/27 16:20:31 nils Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.siege
+PKG_SUPPORTED_OPTIONS= ssl
+PKG_SUGGESTED_OPTIONS= ssl
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mssl)
+CONFIGURE_ARGS+= --with-ssl=${SSLBASE:Q}
+. include "../../security/openssl/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-ssl
+.endif