# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # ebizzy # ebizzy/pkg-descr # ebizzy/Makefile # ebizzy/distinfo # ebizzy/files # ebizzy/files/patch-configure # ebizzy/files/patch-ebizzy.c # echo c - ebizzy mkdir -p ebizzy > /dev/null 2>&1 echo x - ebizzy/pkg-descr sed 's/^X//' >ebizzy/pkg-descr << 'END-of-ebizzy/pkg-descr' Xebizzy is designed to generate a workload resembling common web Xapplication server workloads. It is highly threaded, has a large Xin-memory working set, and allocates and deallocates memory Xfrequently. X XWWW: http://sourceforge.net/projects/ebizzy/ END-of-ebizzy/pkg-descr echo x - ebizzy/Makefile sed 's/^X//' >ebizzy/Makefile << 'END-of-ebizzy/Makefile' X# New ports collection makefile for: ebizzy X# Date created: 2007-08-29 X# Whom: Edward Tomasz Napierala X# X# $FreeBSD$ X# X XPORTNAME= ebizzy XPORTVERSION= 0.2 XCATEGORIES= benchmarks XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE} XMASTER_SITE_SUBDIR= ebizzy X XMAINTAINER= trasz@FreeBSD.org XCOMMENT= Benchmark designed to generate a workload resembling common web application server workloads X XGNU_CONFIGURE= yes XUSE_GMAKE= yes X XPLIST_FILES= bin/ebizzy XPORTDOCS= README X Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/ebizzy ${PREFIX}/bin X.if !defined(NOPORTDOCS) X ${MKDIR} ${DOCSDIR} X ${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR} X.endif X X.include END-of-ebizzy/Makefile echo x - ebizzy/distinfo sed 's/^X//' >ebizzy/distinfo << 'END-of-ebizzy/distinfo' XMD5 (ebizzy-0.2.tar.gz) = 90af3cb5c4a779550d438621dc242cd9 XSHA256 (ebizzy-0.2.tar.gz) = dacb2aa41745b5a6791f260574b343c860408b08bdf887d1c8a2681a47d73417 XSIZE (ebizzy-0.2.tar.gz) = 11954 END-of-ebizzy/distinfo echo c - ebizzy/files mkdir -p ebizzy/files > /dev/null 2>&1 echo x - ebizzy/files/patch-configure sed 's/^X//' >ebizzy/files/patch-configure << 'END-of-ebizzy/files/patch-configure' X--- configure.orig 2007-08-29 10:08:06.000000000 +0200 X+++ configure 2007-08-29 10:09:18.000000000 +0200 X@@ -1,7 +1,7 @@ X-#!/bin/bash X+#!/bin/sh X X-if [ "`uname -s`" != "Linux" ] && [ "`uname -s`" != "SunOS" ]; then X- echo "Only Linux or Solaris supported" X+if [ "`uname -s`" != "Linux" ] && [ "`uname -s`" != "SunOS" ] && [ "`uname -s`" != "FreeBSD" ]; then X+ echo "Only Linux, Solaris and FreeBSD supported" X exit 1 X fi X X@@ -17,7 +17,7 @@ X all: ebizzy X X ebizzy: ebizzy.c X- gcc -Wall -Wshadow ${LIBS} ${FLAGS} -o ebizzy ebizzy.c X+ ${CC} -Wall -Wshadow ${LIBS} ${CFLAGS} ${FLAGS} -o ebizzy ebizzy.c X X clean: X rm -f ebizzy *~ END-of-ebizzy/files/patch-configure echo x - ebizzy/files/patch-ebizzy.c sed 's/^X//' >ebizzy/files/patch-ebizzy.c << 'END-of-ebizzy/files/patch-ebizzy.c' X--- ebizzy.c.orig 2007-08-15 20:35:20.000000000 +0200 X+++ ebizzy.c 2007-08-29 10:16:01.000000000 +0200 X@@ -43,7 +43,6 @@ X #include X #include X #include X-#include X #include X #include X #include X@@ -52,14 +51,18 @@ X #include X X /* X- * Solaris compatibility stuff X+ * Solaris and FreeBSD compatibility stuff X */ X X-#ifdef _solaris X+#ifdef _solaris X #define MMAP_ANONYMOUS MMAP_ANON X #define M_MMAP_MAX (-4) X #endif X X+#ifdef __FreeBSD__ X+#define MAP_ANONYMOUS MAP_ANON X+#endif X+ X /* X * Command line options X */ X@@ -221,8 +224,10 @@ X usage(); X } X X+#ifndef __FreeBSD__ X if (never_mmap) X mallopt(M_MMAP_MAX, 0); X+#endif X X if (chunk_size < record_size) { X fprintf(stderr, "Chunk size %u smaller than record size %u\n", END-of-ebizzy/files/patch-ebizzy.c exit