www/bozohttpd: update the port to version 20210227 and unbreak on i386.

This commit is contained in:
Alexey Dokuchaev
2021-11-04 08:17:08 +00:00
parent bc2e87ec1b
commit 697e6bea23
5 changed files with 37 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
# Created by: Janos.Mohacsi@bsd.hu
PORTNAME= bozohttpd
PORTVERSION= 20201014
PORTVERSION= 20210227
CATEGORIES= www
MASTER_SITES= http://www.eterna.com.au/bozohttpd/ \
NETBSD
@@ -11,8 +11,6 @@ COMMENT= Bozotic HTTP server from NetBSD
LICENSE= BSD2CLAUSE
BROKEN_i386= Doesn't compile, error: comparison of integers of different signs: 'unsigned int' and 'time_t' (aka 'int')
USES= cpe uidfix tar:bzip2
CPE_VENDOR= eterna

View File

@@ -1,3 +1,3 @@
TIMESTAMP = 1613243155
SHA256 (bozohttpd-20201014.tar.bz2) = 5bbca7a3cf5cdadb1de2a40c41c51c8e8ded8569dd1e8f81962cca6b4c0b97ed
SIZE (bozohttpd-20201014.tar.bz2) = 76913
TIMESTAMP = 1614489706
SHA256 (bozohttpd-20210227.tar.bz2) = 23f6708be9e4f1b151718320228bf6765586965db48e2b0e5a943c4020e8adff
SIZE (bozohttpd-20210227.tar.bz2) = 63732

View File

@@ -146,8 +146,8 @@
.An Jukka Ruohonen
.Aq Mt jruoho@NetBSD.org
provided support for
-.Xr blocklist 8
+.Xr blacklist 8
-.Xr blocklistd 8
+.Xr blacklistd 8
.It
.An Jared McNeill
.Aq Mt jmcneill@NetBSD.org

View File

@@ -1,6 +1,15 @@
--- bozohttpd.c.orig 2021-02-14 09:40:33 UTC
--- bozohttpd.c.orig 2021-02-28 05:20:51 UTC
+++ bozohttpd.c
@@ -2174,22 +2174,22 @@ http_errors_long(int code)
@@ -240,7 +240,7 @@ bozo_set_pref(bozohttpd_t *httpd, bozoprefs_t *bozopre
}
static void
-bozo_clear_prefs(bozohttpd_t *httpd, bozoprefs_t *prefs)
+bozo_clear_prefs(bozoprefs_t *prefs)
{
size_t i;
@@ -2197,22 +2197,22 @@ http_errors_long(int code)
return (help);
}
@@ -28,7 +37,7 @@
/* the follow functions and variables are used in handling HTTP errors */
int
@@ -2294,18 +2294,18 @@ bozo_http_error(bozohttpd_t *httpd, int code, bozo_htt
@@ -2317,18 +2317,18 @@ bozo_http_error(bozohttpd_t *httpd, int code, bozo_htt
bozo_printf(httpd, "%s", httpd->errorbuf);
bozo_flush(httpd, stdout);
@@ -51,3 +60,12 @@
return code;
}
@@ -2714,7 +2714,7 @@ bozo_setup(bozohttpd_t *httpd, bozoprefs_t *prefs, con
void
bozo_cleanup(bozohttpd_t *httpd, bozoprefs_t *prefs)
{
- bozo_clear_prefs(httpd, prefs);
+ bozo_clear_prefs(prefs);
free(httpd->virthostname);
free(httpd->errorbuf);

View File

@@ -1,4 +1,4 @@
--- bozohttpd.h.orig 2021-02-13 19:42:32 UTC
--- bozohttpd.h.orig 2021-02-28 05:20:51 UTC
+++ bozohttpd.h
@@ -44,8 +44,8 @@
#include <lua.h>
@@ -11,3 +11,12 @@
void pfilter_notify(const int, const int);
#endif
@@ -129,7 +129,7 @@ typedef struct bozohttpd_t {
unsigned ssl_timeout; /* ssl timeout */
unsigned initial_timeout;/* first line timeout */
unsigned header_timeout; /* header lines timeout */
- unsigned request_timeout;/* total session timeout */
+ int request_timeout;/* total session timeout */
#ifndef NO_LUA_SUPPORT
int process_lua; /* use the Lua handler */
SIMPLEQ_HEAD(, lua_state_map) lua_states;