diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-05-30 20:39:07 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-05-30 20:39:07 +0200 |
commit | ba3359722cbf8aa7b0ed39e1f81d1d74ec88fecd (patch) | |
tree | 10c726d162bc0ded85eb7aeacf8f246bd39ad63a /package/gatling | |
parent | bbd610f15a71b27c955175cb98392b114717fd47 (diff) |
optimize ipkg package management
- generate ipkg control file from PKG_* variables
- automatically install init scripts from ./files/*.init
set #PKG pkgname to set the binary package
- rename FWINIT -> INIT
- move postinst and conffiles meta data to ./files
- update the packages to the latest upstream version
- remove some unready or unused package (strongswan,..)
more cleanups needed after allmodconfig
Diffstat (limited to 'package/gatling')
-rw-r--r-- | package/gatling/Makefile | 12 | ||||
-rw-r--r-- | package/gatling/ipkg/gatling.control | 5 | ||||
-rw-r--r-- | package/gatling/patches/patch-gatling_c | 73 |
3 files changed, 8 insertions, 82 deletions
diff --git a/package/gatling/Makefile b/package/gatling/Makefile index 003013138..7e6b40763 100644 --- a/package/gatling/Makefile +++ b/package/gatling/Makefile @@ -6,16 +6,20 @@ include ${TOPDIR}/rules.mk PKG_NAME= gatling -PKG_VERSION= 0.8 +PKG_VERSION= 0.10 PKG_RELEASE= 1 -PKG_MD5SUM= 75e04c0821622ac7c35236bb2a50c31c +PKG_MD5SUM= 04e8434156d91657c77a8a038c5b27cf +PKG_DESCR:= small non-forking webserver +PKG_SECTION:= net +PKG_DEPENDS:= libiconv +PKG_URL:= http://www.fefe.de/gatling +PKG_SITES= http://dl.fefe.de/ -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})) +$(eval $(call PKG_template,GATLING,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) BUILD_STYLE= auto MAKE_FILE= GNUmakefile diff --git a/package/gatling/ipkg/gatling.control b/package/gatling/ipkg/gatling.control deleted file mode 100644 index 13bd592c6..000000000 --- a/package/gatling/ipkg/gatling.control +++ /dev/null @@ -1,5 +0,0 @@ -Package: gatling -Priority: optional -Section: net -Description: non-forking webserver -Depends: libiconv diff --git a/package/gatling/patches/patch-gatling_c b/package/gatling/patches/patch-gatling_c deleted file mode 100644 index cd70416de..000000000 --- a/package/gatling/patches/patch-gatling_c +++ /dev/null @@ -1,73 +0,0 @@ -$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 <sys/time.h> - #include <sys/resource.h> - #include <sys/socket.h> -+#include <crypt.h> - #include <unistd.h> - #include <stdlib.h> - #include <errno.h> -@@ -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<len; ++i) { -- if (!issafe(s[i])) { -- if (dest) { -- dest[written]='%'; -- dest[written+1]=fmt_tohex(s[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<j) { -- unsigned long dl; -+ size_t dl; - remoteuser=alloca(20+k-j); - i=fmt_str(remoteuser,"REMOTE_USER="); - scan_base64(x+k+1,remoteuser+i,&dl); |