Test on a SPARC5
Sevan Janiyan
Index: Makefile
===================================================================
RCS file: /cvs/ports/www/lighttpd/Makefile,v
retrieving revision 1.68
diff -u -r1.68 Makefile
--- Makefile 18 Apr 2010 08:24:31 -0000 1.68
+++ Makefile 6 Jul 2010 11:39:24 -0000
@@ -48,6 +48,9 @@
LIB_DEPENDS+= mysqlclient.>=10::databases/mysql
.endif
+post-patch:
+ @find ${WRKSRC} -type f |xargs perl -pi -e "s, -std=gnu99,,g"
+
pre-build:
@perl -pi -e "s,/usr/bin/rrdtool,${LOCALBASE}/bin/rrdtool,g" \
${WRKSRC}/doc/lighttpd.conf
Index: patches/patch-src_mod_accesslog_c
===================================================================
RCS file: patches/patch-src_mod_accesslog_c
diff -N patches/patch-src_mod_accesslog_c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_mod_accesslog_c 6 Jul 2010 11:39:24 -0000
@@ -0,0 +1,18 @@
+$OpenBSD$
+--- src/mod_accesslog.c.orig Tue Jul 6 02:51:26 2010
++++ src/mod_accesslog.c Tue Jul 6 03:28:56 2010
+@@ -157,12 +157,13 @@ INIT_FUNC(mod_accesslog_init) {
+ }
+
+ static void accesslog_append_escaped(buffer *dest, buffer *str) {
++ unsigned int i;
+ /* replaces non-printable chars with \xHH where HH is the hex
representation of the byte */
+ /* exceptions: " => \", \ => \\, whitespace chars => \n \t etc. */
+ if (str->used == 0) return;
+ buffer_prepare_append(dest, str->used - 1);
+
+- for (unsigned int i = 0; i < str->used - 1; i++) {
++ for (i = 0; i < str->used - 1; i++) {
+ if (str->ptr[i] >= ' ' && str->ptr[i] <= '~') {
+ /* printable chars */
+ buffer_append_string_len(dest, &str->ptr[i], 1);
Index: Makefile
===================================================================
RCS file: /cvs/ports/www/spawn-fcgi/Makefile,v
retrieving revision 1.7
diff -u -r1.7 Makefile
--- Makefile 29 Sep 2009 07:33:31 -0000 1.7
+++ Makefile 6 Jul 2010 11:39:51 -0000
@@ -19,4 +19,7 @@
CONFIGURE_STYLE= gnu
+post-patch:
+ @find ${WRKSRC} -type f |xargs perl -pi -e "s, -std=gnu99,,g"
+
.include <bsd.port.mk>