From 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 Mon Sep 17 00:00:00 2001 From: wbx Date: Sun, 17 May 2009 14:41:34 +0200 Subject: Initial import --- package/gatling/Config.in | 10 +++++ package/gatling/Makefile | 32 ++++++++++++++ package/gatling/ipkg/gatling.control | 5 +++ package/gatling/patches/patch-GNUmakefile | 15 +++++++ package/gatling/patches/patch-gatling_c | 73 +++++++++++++++++++++++++++++++ 5 files changed, 135 insertions(+) create mode 100644 package/gatling/Config.in create mode 100644 package/gatling/Makefile create mode 100644 package/gatling/ipkg/gatling.control create mode 100644 package/gatling/patches/patch-GNUmakefile create mode 100644 package/gatling/patches/patch-gatling_c (limited to 'package/gatling') diff --git a/package/gatling/Config.in b/package/gatling/Config.in new file mode 100644 index 000000000..715887855 --- /dev/null +++ b/package/gatling/Config.in @@ -0,0 +1,10 @@ +config ADK_PACKAGE_GATLING + prompt "gatling........................... non-forking FAST webserver" + tristate + default n + select ADK_COMPILE_LIBOWFAT + select ADK_PACKAGE_LIBICONV + help + gatling is a high-performance non-forking small webserver. + + http://www.fefe.de/gatling/ diff --git a/package/gatling/Makefile b/package/gatling/Makefile new file mode 100644 index 000000000..cac5c6ee0 --- /dev/null +++ b/package/gatling/Makefile @@ -0,0 +1,32 @@ +# $Id$ +#- +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${TOPDIR}/rules.mk + +PKG_NAME= gatling +PKG_VERSION= 0.8 +PKG_RELEASE= 1 +PKG_MD5SUM= 75e04c0821622ac7c35236bb2a50c31c + +MASTER_SITES= http://dl.fefe.de/ +DISTFILES= ${PKG_NAME}-${PKG_VERSION}.tar.bz2 + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,GATLING,gatling,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) + +BUILD_STYLE= auto +MAKE_FILE= GNUmakefile +ALL_TARGET= gatling +TCPPFLAGS+= -I${STAGING_DIR}/usr/include/owfat +XAKE_FLAGS+= CC='${TARGET_CC}' \ + CFLAGS='${TCPPFLAGS} ${TCFLAGS}' \ + ZLIB=0 DIET= prefix='${WRKINST}/usr' + +do-install: + ${INSTALL_DIR} ${IDIR_GATLING}/usr/sbin + ${INSTALL_BIN} ${WRKBUILD}/gatling ${IDIR_GATLING}/usr/sbin/ + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/gatling/ipkg/gatling.control b/package/gatling/ipkg/gatling.control new file mode 100644 index 000000000..13bd592c6 --- /dev/null +++ b/package/gatling/ipkg/gatling.control @@ -0,0 +1,5 @@ +Package: gatling +Priority: optional +Section: net +Description: non-forking webserver +Depends: libiconv diff --git a/package/gatling/patches/patch-GNUmakefile b/package/gatling/patches/patch-GNUmakefile new file mode 100644 index 000000000..d95051e6e --- /dev/null +++ b/package/gatling/patches/patch-GNUmakefile @@ -0,0 +1,15 @@ +$Id$ +--- gatling-0.8.orig/GNUmakefile Thu May 19 05:30:26 2005 ++++ gatling-0.8/GNUmakefile Mon Jul 9 11:52:58 2007 +@@ -96,9 +96,10 @@ libiconv: tryiconv.c + dummy.c: + touch $@ + ++RANLIB?=ranlib + libsocketkludge.a: libsocket libiconv dummy.o + ar q $@ dummy.o +- -ranlib $@ ++ -${RANLIB} $@ + + LDLIBS+=`cat libsocket libiconv` + diff --git a/package/gatling/patches/patch-gatling_c b/package/gatling/patches/patch-gatling_c new file mode 100644 index 000000000..cd70416de --- /dev/null +++ b/package/gatling/patches/patch-gatling_c @@ -0,0 +1,73 @@ +$Id$ +--- gatling-0.8.orig/gatling.c 2005-05-20 17:32:27.000000000 +0200 ++++ gatling-0.8/gatling.c 2007-07-06 17:55:56.000000000 +0200 +@@ -34,6 +34,7 @@ + #include + #include + #include ++#include + #include + #include + #include +@@ -865,24 +866,6 @@ static inline int issafe(unsigned char c + return (c!='"' && c!='%' && c>=' ' && c!='+'); + } + +-unsigned long fmt_urlencoded(char* dest,const char* src,unsigned long len) { +- register const unsigned char* s=(const unsigned char*) src; +- unsigned long written=0,i; +- for (i=0; i>4); +- dest[written+2]=fmt_tohex(s[i]&15); +- } +- written+=3; +- } else { +- if (dest) dest[written]=s[i]; ++written; +- } +- } +- return written; +-} +- + void catencoded(array* a,char* s) { + unsigned int len=str_len(s); + char* buf=alloca(fmt_urlencoded(0,s,len)); +@@ -1011,7 +994,7 @@ username2:password2 + * authentication was OK or -1 if authentication is needed (the HTTP + * response was then already written to the iob). */ + int http_dohtaccess(struct http_data* h) { +- unsigned long filesize; ++ size_t filesize; + char* map; + char* s; + char* auth; +@@ -1031,7 +1014,8 @@ int http_dohtaccess(struct http_data* h) + char* username,* password; + char* decoded; + int i; +- unsigned long l,dl,ul; ++ unsigned long l,ul; ++ size_t dl; + auth+=6; + while (*auth==' ' || *auth=='\t') ++auth; + i=str_chr(auth,'\n'); +@@ -1103,7 +1087,7 @@ int64 http_openfile(struct http_data* h, + char* dir=0; + char* s; + char* args; +- unsigned long i; ++ size_t i; + int64 fd; + int doesgzip,doesbzip2; + +@@ -2948,7 +2932,7 @@ void forkslave(int fd,buffer* in) { + j=str_chr(x,'\n'); if (j && x[j-1]=='\r') { --j; } + k=str_chr(x,' '); + if (k