diff options
Diffstat (limited to 'testing/siege')
-rw-r--r-- | testing/siege/APKBUILD | 51 | ||||
-rw-r--r-- | testing/siege/siege-2.72-good.patch | 62 |
2 files changed, 113 insertions, 0 deletions
diff --git a/testing/siege/APKBUILD b/testing/siege/APKBUILD new file mode 100644 index 0000000000..58c4b9c1a8 --- /dev/null +++ b/testing/siege/APKBUILD @@ -0,0 +1,51 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=siege +pkgver=2.74 +pkgrel=0 +pkgdesc="HTTP regression testing and benchmarking utility" +url="http://www.joedog.org/JoeDog/Siege" +arch="all" +license="GPL2+" +depends="" +depends_dev="" +makedepends="openssl-dev" +install="" +subpackages="$pkgname-doc" +source="http://www.joedog.org/pub/siege/$pkgname-$pkgver.tar.gz + siege-2.72-good.patch" + +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done + sed -i.orig doc/siegerc.in -e 's/^# logfile = *$/logfile = ${HOME}\/siege.log/' +} + +build() { + cd "$_builddir" + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +md5sums="a23c8670d69f4b78f534095921c90969 siege-2.74.tar.gz +6b1d2956e8cba62cdd44a4faaacbe4cd siege-2.72-good.patch" +sha256sums="cdd686a5695f1c953caab3914c722f7eb81a616102ffb36bb39eb8bcb5ebc802 siege-2.74.tar.gz +15ceaf81547f80d0cbfd947458129e2b7c3c3fe49dbcb37f6444b53f414c91ca siege-2.72-good.patch" +sha512sums="cd551beb79ac69c97b89b7ba4603dfe41190f0a65befbea53c096161e74dff33ea8f41a3d383d75fbec9535fcc229542da91a80c89a50beb7526a0748558835d siege-2.74.tar.gz +a32b459b23e72af06095911905ef58e365a22a9d7c0c7fac13897ce9440484b41c86505da19cbcabb25432aabe60986ffb2b013c75ac22382ce1c8b4a9f28393 siege-2.72-good.patch" diff --git a/testing/siege/siege-2.72-good.patch b/testing/siege/siege-2.72-good.patch new file mode 100644 index 0000000000..93da6b6eb5 --- /dev/null +++ b/testing/siege/siege-2.72-good.patch @@ -0,0 +1,62 @@ +diff -up siege-2.69/doc/Makefile.in.good siege-2.69/doc/Makefile.in +--- siege-2.69/doc/Makefile.in.good 2009-07-04 11:12:24.411980518 -0300 ++++ siege-2.69/doc/Makefile.in 2009-07-04 11:13:19.914733285 -0300 +@@ -498,32 +498,32 @@ uninstall-man: uninstall-man1 uninstall- + + + install-exec-hook: +- @if test -f $(SIEGERC); then \ +- if cmp -s $(srcdir)/siegerc $(SIEGERC); then echo ""; \ +- else \ +- echo ' $(INSTALL_DATA) $(srcdir)/siegerc $(SIEGERC).new'; \ +- $(INSTALL_DATA) $(srcdir)/siegerc $(SIEGERC).new; \ +- echo "#####################################################"; \ +- echo "WARNING: File $(SIEGERC) already exists."; \ +- echo " A new resource file has been installed as"; \ +- echo " $(SIEGERC).new. You may want to"; \ +- echo " consider using the newer version in order to"; \ +- echo " take advantage of any new features."; \ +- echo "#####################################################"; \ +- fi; \ +- else \ +- $(INSTALL_DATA) $(srcdir)/siegerc $(SIEGERC); \ +- fi +- @if test -f $(URLSTXT); then \ +- if cmp -s $(srcdir)/siegerc $(URLSTXT); then echo ""; \ +- else \ +- echo "WARNING: File $(URLSTXT) already exists."; \ +- echo " It was NOT replaced with this installation."; \ +- fi; \ +- else \ +- $(mkinstalldirs) $(sysconfdir); \ +- $(INSTALL_DATA) $(srcdir)/urls.txt $(URLSTXT); \ +- fi ++ #@if test -f $(SIEGERC); then \ ++ # if cmp -s $(srcdir)/siegerc $(SIEGERC); then echo ""; \ ++ # else \ ++ # echo ' $(INSTALL_DATA) $(srcdir)/siegerc $(SIEGERC).new'; \ ++ # $(INSTALL_DATA) $(srcdir)/siegerc $(SIEGERC).new; \ ++ # echo "#####################################################"; \ ++ # echo "WARNING: File $(SIEGERC) already exists."; \ ++ # echo " A new resource file has been installed as"; \ ++ # echo " $(SIEGERC).new. You may want to"; \ ++ # echo " consider using the newer version in order to"; \ ++ # echo " take advantage of any new features."; \ ++ # echo "#####################################################"; \ ++ # fi; \ ++ #else \ ++ # $(INSTALL_DATA) $(srcdir)/siegerc $(SIEGERC); \ ++ #fi ++ #@if test -f $(URLSTXT); then \ ++ # if cmp -s $(srcdir)/siegerc $(URLSTXT); then echo ""; \ ++ # else \ ++ # echo "WARNING: File $(URLSTXT) already exists."; \ ++ # echo " It was NOT replaced with this installation."; \ ++ # fi; \ ++ #else \ ++ # $(mkinstalldirs) $(sysconfdir); \ ++ # $(INSTALL_DATA) $(srcdir)/urls.txt $(URLSTXT); \ ++ #fi + + uninstall: + rm -f $(SIEGERC) |