aboutsummaryrefslogtreecommitdiffstats
path: root/www/cherokee-devel
diff options
context:
space:
mode:
authorshaun <shaun@FreeBSD.org>2006-11-16 10:43:44 +0800
committershaun <shaun@FreeBSD.org>2006-11-16 10:43:44 +0800
commit1a2c5ac2192f3f78a7c397504cc0d9ed7055fcf9 (patch)
tree20b84e4f11a7b060266b142c79ddb4a614a97224 /www/cherokee-devel
parentfc218e48c52d7f548e86a971fc9cccf28d5a7741 (diff)
downloadfreebsd-ports-gnome-1a2c5ac2192f3f78a7c397504cc0d9ed7055fcf9.tar.gz
freebsd-ports-gnome-1a2c5ac2192f3f78a7c397504cc0d9ed7055fcf9.tar.zst
freebsd-ports-gnome-1a2c5ac2192f3f78a7c397504cc0d9ed7055fcf9.zip
Fix port - it compiled, but the daemon failed to start completely.
Reported by: Beech Rintoul <beech@alaskaparadise.com> (maintainer)
Diffstat (limited to 'www/cherokee-devel')
-rw-r--r--www/cherokee-devel/Makefile2
-rw-r--r--www/cherokee-devel/files/patch-cherokee-connection.c17
-rw-r--r--www/cherokee-devel/files/patch-cherokee-handler_cgi_base.c6
3 files changed, 11 insertions, 14 deletions
diff --git a/www/cherokee-devel/Makefile b/www/cherokee-devel/Makefile
index 84d70334fd17..769bc30ae37a 100644
--- a/www/cherokee-devel/Makefile
+++ b/www/cherokee-devel/Makefile
@@ -7,7 +7,7 @@
PORTNAME= cherokee
PORTVERSION= 0.5.5
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= http://www.cherokee-project.com/download/%SUBDIR%/ \
http://www.alaskaparadise.com/freebsd/
diff --git a/www/cherokee-devel/files/patch-cherokee-connection.c b/www/cherokee-devel/files/patch-cherokee-connection.c
index 2a36cb00bae4..dbf057093582 100644
--- a/www/cherokee-devel/files/patch-cherokee-connection.c
+++ b/www/cherokee-devel/files/patch-cherokee-connection.c
@@ -1,33 +1,30 @@
---- cherokee/connection.c.orig Wed Sep 20 21:17:53 2006
-+++ cherokee/connection.c Wed Sep 20 21:17:53 2006
-@@ -33,6 +33,12 @@
+--- cherokee/connection.c.orig Wed Aug 30 17:12:13 2006
++++ cherokee/connection.c Thu Nov 16 00:41:26 2006
+@@ -33,6 +33,9 @@
#include <time.h>
#include <sys/types.h>
-+#undef fr_atoll
-+#define fr_atoll(nptr) strtoll(nptr, (char **)NULL, 10)
-+
+#include <stdlib.h>
+#include <limits.h>
+
#ifdef HAVE_PWD_H
# include <pwd.h>
#endif
-@@ -1210,7 +1216,7 @@
+@@ -1210,7 +1213,7 @@
}
tmp[num_len] = '\0';
if (num_len != 0) {
- cnt->range_start = atoll (tmp);
-+ cnt->range_start = fr_atoll (tmp);
++ cnt->range_start = strtoll(tmp, (char **)NULL, 10);
if (cnt->range_start < 0) {
return ret_error;
}
-@@ -1236,7 +1242,7 @@
+@@ -1236,7 +1239,7 @@
num_len++;
}
tmp[num_len] = '\0';
- cnt->range_end = atoll (tmp);
-+ cnt->range_end = fr_atoll (tmp);
++ cnt->range_end = strtoll(tmp, (char **)NULL, 10);
if (cnt->range_end < 1){
return ret_error;
}
diff --git a/www/cherokee-devel/files/patch-cherokee-handler_cgi_base.c b/www/cherokee-devel/files/patch-cherokee-handler_cgi_base.c
index 7270ff234a64..f929a12f7e9f 100644
--- a/www/cherokee-devel/files/patch-cherokee-handler_cgi_base.c
+++ b/www/cherokee-devel/files/patch-cherokee-handler_cgi_base.c
@@ -1,5 +1,5 @@
---- cherokee/handler_cgi_base.c.orig Wed Sep 20 21:17:09 2006
-+++ cherokee/handler_cgi_base.c Wed Sep 20 21:17:09 2006
+--- cherokee/handler_cgi_base.c.orig Fri Aug 18 15:21:03 2006
++++ cherokee/handler_cgi_base.c Thu Nov 16 00:42:03 2006
@@ -21,6 +21,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
@@ -14,7 +14,7 @@
cherokee_buffer_add (&tmp, begin+16, end - (begin+16));
- cgi->content_length = atoll (tmp.buf);
-+ cgi->content_length = fr_atoll (tmp.buf);
++ cgi->content_length = strtoll(tmp.buf, (char **)NULL, 10);
cherokee_buffer_mrproper (&tmp);
cherokee_buffer_remove_chunk (buffer, begin - buffer->buf, end2 - begin);