diff options
author | Chris Larson <clarson@kergoth.com> | 2004-12-09 09:47:41 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2004-12-09 09:47:41 +0000 |
commit | 2c5b8ec6d95cf68650265941530e5ce38c8dd6d9 (patch) | |
tree | bf879bea7ef8517ba8c3d1286ef300401d3d484c /boa | |
parent | 101e2f1623def0a355d20aacb8bd93810703e834 (diff) |
Merge oe-devel@oe-devel.bkbits.net:openembedded
into hyperion.kergoth.com:/home/kergoth/code/openembedded
2004/12/09 03:39:39-06:00 kergoth.com!kergoth
Break people's builds again.. this time moving the packages into a packages/ subdir to clean things up a bit.
BKrev: 41b81f3dvlp3rU7_8MUXLcI8LDdDoA
Diffstat (limited to 'boa')
-rw-r--r-- | boa/boa-0.94.13/debian-patch.diff | 243 | ||||
-rw-r--r-- | boa/boa_0.94.13.bb | 0 | ||||
-rw-r--r-- | boa/files/boa.conf | 0 | ||||
-rw-r--r-- | boa/files/boa.init | 57 |
4 files changed, 0 insertions, 300 deletions
diff --git a/boa/boa-0.94.13/debian-patch.diff b/boa/boa-0.94.13/debian-patch.diff deleted file mode 100644 index b77c55bb09..0000000000 --- a/boa/boa-0.94.13/debian-patch.diff +++ /dev/null @@ -1,243 +0,0 @@ -diff -urN boa-0.94.13.orig/src/boa.c boa-0.94.13/src/boa.c ---- boa-0.94.13.orig/src/boa.c 2002-07-23 17:50:29.000000000 +0200 -+++ boa-0.94.13/src/boa.c 2004-09-01 20:00:36.000000000 +0200 -@@ -208,10 +208,11 @@ - struct passwd *passwdbuf; - passwdbuf = getpwuid(server_uid); - if (passwdbuf == NULL) { -- DIE("getpwuid"); -- } -+ WARN("getpwuid - will not initgroups"); -+ } else { - if (initgroups(passwdbuf->pw_name, passwdbuf->pw_gid) == -1) { -- DIE("initgroups"); -+ WARN("initgroups"); -+ } - } - if (setgid(server_gid) == -1) { - DIE("setgid"); -diff -urN boa-0.94.13.orig/src/boa.h boa-0.94.13/src/boa.h ---- boa-0.94.13.orig/src/boa.h 2002-07-26 05:03:44.000000000 +0200 -+++ boa-0.94.13/src/boa.h 2004-09-01 20:00:36.000000000 +0200 -@@ -149,8 +149,9 @@ - void clean_pathname(char *pathname); - char *get_commonlog_time(void); - void rfc822_time_buf(char *buf, time_t s); --char *simple_itoa(unsigned int i); -+char *simple_itoa(long long int i); - int boa_atoi(char *s); -+long long int boa_atoll(char *s); - char *escape_string(char *inp, char *buf); - int month2int(char *month); - int modified_since(time_t * mtime, char *if_modified_since); -diff -urN boa-0.94.13.orig/src/boa_grammar.y boa-0.94.13/src/boa_grammar.y ---- boa-0.94.13.orig/src/boa_grammar.y 1999-10-12 16:49:07.000000000 +0200 -+++ boa-0.94.13/src/boa_grammar.y 2004-09-01 20:00:36.000000000 +0200 -@@ -20,7 +20,7 @@ - * - */ - --/* $Id$*/ -+/* $Id$ */ - - #include <string.h> - #include <stdio.h> -diff -urN boa-0.94.13.orig/src/compat.h boa-0.94.13/src/compat.h ---- boa-0.94.13.orig/src/compat.h 2002-06-06 07:02:28.000000000 +0200 -+++ boa-0.94.13/src/compat.h 2004-09-01 20:00:36.000000000 +0200 -@@ -117,7 +117,7 @@ - #endif - - #ifdef HAVE_TM_GMTOFF --#define TIMEZONE_OFFSET(foo) foo##->tm_gmtoff -+#define TIMEZONE_OFFSET(foo) foo->tm_gmtoff - #else - #define TIMEZONE_OFFSET(foo) timezone - #endif -diff -urN boa-0.94.13.orig/src/get.c boa-0.94.13/src/get.c ---- boa-0.94.13.orig/src/get.c 2002-07-26 05:05:59.000000000 +0200 -+++ boa-0.94.13/src/get.c 2004-09-01 20:00:36.000000000 +0200 -@@ -43,7 +43,7 @@ - struct stat statbuf; - volatile int bytes; - -- data_fd = open(req->pathname, O_RDONLY); -+ data_fd = open(req->pathname, O_RDONLY | O_LARGEFILE); - saved_errno = errno; /* might not get used */ - - #ifdef GUNZIP -@@ -58,7 +58,7 @@ - memcpy(gzip_pathname, req->pathname, len); - memcpy(gzip_pathname + len, ".gz", 3); - gzip_pathname[len + 3] = '\0'; -- data_fd = open(gzip_pathname, O_RDONLY); -+ data_fd = open(gzip_pathname, O_RDONLY | O_LARGEFILE); - if (data_fd != -1) { - close(data_fd); - -@@ -313,7 +313,7 @@ - sprintf(pathname_with_index, "%s%s", req->pathname, directory_index); - */ - -- data_fd = open(pathname_with_index, O_RDONLY); -+ data_fd = open(pathname_with_index, O_RDONLY | O_LARGEFILE); - - if (data_fd != -1) { /* user's index file */ - strcpy(req->request_uri, directory_index); /* for mimetype */ -@@ -334,7 +334,7 @@ - * try index.html.gz - */ - strcat(pathname_with_index, ".gz"); -- data_fd = open(pathname_with_index, O_RDONLY); -+ data_fd = open(pathname_with_index, O_RDONLY | O_LARGEFILE); - if (data_fd != -1) { /* user's index file */ - close(data_fd); - -@@ -399,9 +399,9 @@ - time_t real_dir_mtime; - - real_dir_mtime = statbuf->st_mtime; -- sprintf(pathname_with_index, "%s/dir.%d.%ld", -+ sprintf(pathname_with_index, "%s/dir.%d.%lld", - cachedir, (int) statbuf->st_dev, statbuf->st_ino); -- data_fd = open(pathname_with_index, O_RDONLY); -+ data_fd = open(pathname_with_index, O_RDONLY | O_LARGEFILE); - - if (data_fd != -1) { /* index cache */ - -@@ -417,7 +417,7 @@ - if (index_directory(req, pathname_with_index) == -1) - return -1; - -- data_fd = open(pathname_with_index, O_RDONLY); /* Last chance */ -+ data_fd = open(pathname_with_index, O_RDONLY | O_LARGEFILE); /* Last chance */ - if (data_fd != -1) { - strcpy(req->request_uri, directory_index); /* for mimetype */ - fstat(data_fd, statbuf); -diff -urN boa-0.94.13.orig/src/globals.h boa-0.94.13/src/globals.h ---- boa-0.94.13.orig/src/globals.h 2002-07-24 05:03:59.000000000 +0200 -+++ boa-0.94.13/src/globals.h 2004-09-01 20:00:36.000000000 +0200 -@@ -54,8 +54,8 @@ - int kacount; /* keepalive count */ - - int data_fd; /* fd of data */ -- unsigned long filesize; /* filesize */ -- unsigned long filepos; /* position in file */ -+ unsigned long long filesize; /* filesize */ -+ unsigned long long filepos; /* position in file */ - char *data_mem; /* mmapped/malloced char array */ - int method; /* M_GET, M_POST, etc. */ - -diff -urN boa-0.94.13.orig/src/index_dir.c boa-0.94.13/src/index_dir.c ---- boa-0.94.13.orig/src/index_dir.c 2002-01-30 04:41:45.000000000 +0100 -+++ boa-0.94.13/src/index_dir.c 2004-09-01 20:00:36.000000000 +0200 -@@ -240,10 +240,10 @@ - printf("<tr>" - "<td width=\"40%%\"><a href=\"%s/\">%s/</a></td>" - "<td align=right>%s</td>" -- "<td align=right>%ld bytes</td>" -+ "<td align=right>%lld bytes</td>" - "</tr>\n", - http_filename, html_filename, -- ctime(&statbuf.st_mtime), (long) statbuf.st_size); -+ ctime(&statbuf.st_mtime), (long long) statbuf.st_size); - } - - printf -@@ -281,19 +281,19 @@ - "<td width=\"40%%\"><a href=\"%s\">%s</a> " - "<a href=\"%s.gz\">(.gz)</a></td>" - "<td align=right>%s</td>" -- "<td align=right>%ld bytes</td>" -+ "<td align=right>%lld bytes</td>" - "</tr>\n", - http_filename, html_filename, http_filename, -- ctime(&statbuf.st_mtime), (long) statbuf.st_size); -+ ctime(&statbuf.st_mtime), (long long) statbuf.st_size); - } else { - #endif - printf("<tr>" - "<td width=\"40%%\"><a href=\"%s\">%s</a></td>" - "<td align=right>%s</td>" -- "<td align=right>%ld bytes</td>" -+ "<td align=right>%lld bytes</td>" - "</tr>\n", - http_filename, html_filename, -- ctime(&statbuf.st_mtime), (long) statbuf.st_size); -+ ctime(&statbuf.st_mtime), (long long) statbuf.st_size); - #ifdef GUNZIP - } - #endif -diff -urN boa-0.94.13.orig/src/log.c boa-0.94.13/src/log.c ---- boa-0.94.13.orig/src/log.c 2002-07-26 05:04:48.000000000 +0200 -+++ boa-0.94.13/src/log.c 2004-09-01 20:00:36.000000000 +0200 -@@ -142,7 +142,7 @@ - if (access_log) { - if (virtualhost) - fprintf(access_log, "%s ", req->local_ip_addr); -- fprintf(access_log, "%s - - %s\"%s\" %d %ld \"%s\" \"%s\"\n", -+ fprintf(access_log, "%s - - %s\"%s\" %d %lld \"%s\" \"%s\"\n", - req->remote_ip_addr, - get_commonlog_time(), - req->logline, -diff -urN boa-0.94.13.orig/src/mmap_cache.c boa-0.94.13/src/mmap_cache.c ---- boa-0.94.13.orig/src/mmap_cache.c 2002-03-24 23:35:34.000000000 +0100 -+++ boa-0.94.13/src/mmap_cache.c 2004-09-01 20:00:36.000000000 +0200 -@@ -104,7 +104,7 @@ - int data_fd; - struct stat statbuf; - struct mmap_entry *e; -- data_fd = open(fname, O_RDONLY); -+ data_fd = open(fname, O_RDONLY | O_LARGEFILE); - if (data_fd == -1) { - perror(fname); - return NULL; -diff -urN boa-0.94.13.orig/src/read.c boa-0.94.13/src/read.c ---- boa-0.94.13.orig/src/read.c 2002-03-18 02:53:48.000000000 +0100 -+++ boa-0.94.13/src/read.c 2004-09-01 20:00:36.000000000 +0200 -@@ -157,7 +157,7 @@ - if (req->content_length) { - int content_length; - -- content_length = boa_atoi(req->content_length); -+ content_length = boa_atoll(req->content_length); - /* Is a content-length of 0 legal? */ - if (content_length <= 0) { - log_error_time(); -diff -urN boa-0.94.13.orig/src/util.c boa-0.94.13/src/util.c ---- boa-0.94.13.orig/src/util.c 2002-07-08 01:22:18.000000000 +0200 -+++ boa-0.94.13/src/util.c 2004-09-01 20:00:36.000000000 +0200 -@@ -386,7 +386,7 @@ - memcpy(p, day_tab + t->tm_wday * 4, 4); - } - --char *simple_itoa(unsigned int i) -+char *simple_itoa(long long int i) - { - /* 21 digits plus null terminator, good for 64-bit or smaller ints - * for bigger ints, use a bigger buffer! -@@ -427,6 +427,24 @@ - return retval; - } - -+/* I don't "do" negative conversions -+ * Therefore, -1 indicates error -+ */ -+ -+long long int boa_atoll(char *s) -+{ -+ long long int retval; -+ -+ if (!isdigit(*s)) -+ return -1; -+ -+ retval = atoll(s); -+ if (retval < 0) -+ return -1; -+ -+ return retval; -+} -+ - int create_temporary_file(short want_unlink, char *storage, int size) - { - static char boa_tempfile[MAX_PATH_LENGTH + 1]; diff --git a/boa/boa_0.94.13.bb b/boa/boa_0.94.13.bb deleted file mode 100644 index e69de29bb2..0000000000 --- a/boa/boa_0.94.13.bb +++ /dev/null diff --git a/boa/files/boa.conf b/boa/files/boa.conf deleted file mode 100644 index e69de29bb2..0000000000 --- a/boa/files/boa.conf +++ /dev/null diff --git a/boa/files/boa.init b/boa/files/boa.init deleted file mode 100644 index 9c05c5ada3..0000000000 --- a/boa/files/boa.init +++ /dev/null @@ -1,57 +0,0 @@ -#! /bin/sh -# -# Written by Miquel van Smoorenburg <miquels@cistron.nl>. -# Modified for Debian GNU/Linux -# by Ian Murdock <imurdock@gnu.ai.mit.edu>. -# Modified for boa by Bill Allombert <ballombe@debian.org>. - -PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin -DAEMON=/usr/sbin/boa -NAME=boa -DESC="HTTP server" -LOGDIR="/var/log/$NAME" - -test -x $DAEMON || exit 0 - -set -e - -case "$1" in - start) - echo -n "Starting $DESC: $NAME" - if [ ! -d $LOGDIR ]; then - mkdir -p $LOGDIR - fi - start-stop-daemon --start --quiet --exec $DAEMON - echo "." - ;; - stop) - echo -n "Stopping $DESC: $NAME" - start-stop-daemon --stop --quiet --oknodo --exec $DAEMON - echo "." - ;; - restart) - echo -n "Restarting $DESC: $NAME" - start-stop-daemon --stop --signal HUP --quiet --oknodo --exec $DAEMON - echo "done." - ;; - reload) - # - # If the daemon can reload its config files on the fly - # for example by sending it SIGHUP, do it here. - # - # If the daemon responds to changes in its config file - # directly anyway, make this a do-nothing entry. - # - echo -n "Reloading $DESC configuration..." - start-stop-daemon --stop --signal 1 --quiet --oknodo --exec $DAEMON - echo "done." - ;; - *) - N=/etc/init.d/$NAME - # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 - echo "Usage: $N {start|stop|restart|reload}" >&2 - exit 1 - ;; -esac - -exit 0 |