Date: Thu, 21 Mar 2002 21:45:59 GMT From: Janos Mohacsi <janos.mohacsi@dante.org.uk> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/36178: New Port: bozohttpd-0.59 Message-ID: <200203212145.g2LLjx321964@budapest.dante.org.uk>
next in thread | raw e-mail | index | archive | help
>Number: 36178 >Category: ports >Synopsis: New Port: bozohttpd-0.59 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Mar 21 13:50:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Janos Mohacsi >Release: FreeBSD 4.4-STABLE i386 >Organization: DANTE >Environment: System: FreeBSD budapest.dante.org.uk 4.4-STABLE FreeBSD 4.4-STABLE #1: Sun Oct 21 13:05:36 BST 2001 janos@budapest.dante.org.uk:/usr/src/sys/compile/BUDAPEST i386 >Description: New secure, mimimalist, IPV6 compatible HTTP server: bozohttpd >How-To-Repeat: apply this shar. >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # bozohttpd # bozohttpd/pkg-plist # bozohttpd/pkg-descr # bozohttpd/pkg-comment # bozohttpd/Makefile # bozohttpd/files # bozohttpd/files/patch-bozohttpd.c # bozohttpd/files/patch-Makefile # bozohttpd/files/patch-bozohttpd.8 # bozohttpd/distinfo # echo c - bozohttpd mkdir -p bozohttpd > /dev/null 2>&1 echo x - bozohttpd/pkg-plist sed 's/^X//' >bozohttpd/pkg-plist << 'END-of-bozohttpd/pkg-plist' Xlibexec/bozohttpd END-of-bozohttpd/pkg-plist echo x - bozohttpd/pkg-descr sed 's/^X//' >bozohttpd/pkg-descr << 'END-of-bozohttpd/pkg-descr' XBozohttpd is a small and secure http version 1.1 server. it's main feature Xis the lack of features, reducing the code size and improving verifiability. X XIt supports CGI/1.1, HTTP/1.1, HTTP/1.0, HTTP/0.9, ~user translations, Xvirtual hosting support, as well as multiple IP-based servers on a Xsingle machine. it is capable of services pages via the IPv6 protocol. Xit has no configuration file by design. X XWWW: http://www.eterna.com.au/bozohttpd/ END-of-bozohttpd/pkg-descr echo x - bozohttpd/pkg-comment sed 's/^X//' >bozohttpd/pkg-comment << 'END-of-bozohttpd/pkg-comment' XThe bozotic HTTP server END-of-bozohttpd/pkg-comment echo x - bozohttpd/Makefile sed 's/^X//' >bozohttpd/Makefile << 'END-of-bozohttpd/Makefile' X# New ports collection makefile for: bozohttpd X# Date created: 21.03.2002 X# Whom: Janos.Mohacsi@dante.org.uk X# X# $FreeBSD$ X# X XPORTNAME= bozohttpd XPORTVERSION= 5.09 XCATEGORIES= www ipv6 XMASTER_SITES= http://www.eterna.com.au/bozohttpd/ X XMAINTAINER= Janos.Mohacsi@dante.org.uk X XUSE_BZIP2= YES X XMAN8= bozohttpd.8 XMANCOMPRESSED= maybe XMANDIR= $(PREFIX)/man X X.include <bsd.port.mk> END-of-bozohttpd/Makefile echo c - bozohttpd/files mkdir -p bozohttpd/files > /dev/null 2>&1 echo x - bozohttpd/files/patch-bozohttpd.c sed 's/^X//' >bozohttpd/files/patch-bozohttpd.c << 'END-of-bozohttpd/files/patch-bozohttpd.c' X*** bozohttpd.c.orig Thu Mar 21 20:35:49 2002 X--- bozohttpd.c Thu Mar 21 20:52:36 2002 X*************** X*** 168,174 **** X struct _headers { X char *header; X char *value; X! SIMPLEQ_ENTRY(_headers) next; X }; X X /* http_req */ X--- 168,174 ---- X struct _headers { X char *header; X char *value; X! STAILQ_ENTRY(_headers) next; X }; X X /* http_req */ X*************** X*** 189,195 **** X char *content_length; X char *allow; X char *host; /* HTTP/1.1 Host: */ X! SIMPLEQ_HEAD(, _headers) headers; X int nheaders; X } http_req; X X--- 189,195 ---- X char *content_length; X char *allow; X char *host; /* HTTP/1.1 Host: */ X! STAILQ_HEAD(, _headers) headers; X int nheaders; X } http_req; X X*************** X*** 673,679 **** X else X hdr->value = " "; X X! SIMPLEQ_INSERT_TAIL(&request->headers, hdr, next); X request->nheaders++; X X if (strcasecmp(hdr->header, "content-type") == 0) X--- 673,679 ---- X else X hdr->value = " "; X X! STAILQ_INSERT_TAIL(&request->headers, hdr, next); X request->nheaders++; X X if (strcasecmp(hdr->header, "content-type") == 0) X*************** X*** 1355,1362 **** X envp[ix++] = s; \ X } while (0) X X! for (headp = request->headers.sqh_first; headp; X! headp = headp->next.sqe_next) { X env = malloc(6 + strlen(headp->header) + 1 + X strlen(headp->value)); X if (env == NULL) X--- 1355,1362 ---- X envp[ix++] = s; \ X } while (0) X X! for (headp = STAILQ_FIRST(&request->headers); headp; X! headp = STAILQ_NEXT(headp, next)) { X env = malloc(6 + strlen(headp->header) + 1 + X strlen(headp->value)); X if (env == NULL) X*************** X*** 1544,1550 **** X X debug((DEBUG_OBESE, "request %s is %s", request->url, X request->proto)); X! SIMPLEQ_INIT(&request->headers); X request->nheaders = 0; X return; X } X--- 1544,1550 ---- X X debug((DEBUG_OBESE, "request %s is %s", request->url, X request->proto)); X! STAILQ_INIT(&request->headers); X request->nheaders = 0; X return; X } END-of-bozohttpd/files/patch-bozohttpd.c echo x - bozohttpd/files/patch-Makefile sed 's/^X//' >bozohttpd/files/patch-Makefile << 'END-of-bozohttpd/files/patch-Makefile' X*** Makefile.orig Fri Aug 10 07:43:15 2001 X--- Makefile Thu Mar 21 21:16:46 2002 X*************** X*** 3,8 **** X--- 3,11 ---- X PROG= bozohttpd X MAN= bozohttpd.8 X X+ BINDIR=$(PREFIX)/libexec X+ MANDIR=$(PREFIX)/man/man X+ X .include <bsd.prog.mk> X X check: END-of-bozohttpd/files/patch-Makefile echo x - bozohttpd/files/patch-bozohttpd.8 sed 's/^X//' >bozohttpd/files/patch-bozohttpd.8 << 'END-of-bozohttpd/files/patch-bozohttpd.8' X*** bozohttpd.8.orig Thu Mar 21 20:21:39 2002 X--- bozohttpd.8 Thu Mar 21 20:22:37 2002 X*************** X*** 172,179 **** X .Xr inetd.conf 5 X entry would be: X .Bd -literal X! www stream tcp nowait:600 httpd /usr/pkg/libexec/bozohttpd bozohttpd /var/www X! www stream tcp6 nowait:600 httpd /usr/pkg/libexec/bozohttpd bozohttpd /var/www X .Ed X .Pp X This would serve web pages from X--- 172,179 ---- X .Xr inetd.conf 5 X entry would be: X .Bd -literal X! www stream tcp nowait:600 httpd /@PREFIX@/libexec/bozohttpd bozohttpd /var/www X! www stream tcp6 nowait:600 httpd /@PREFIC@/libexec/bozohttpd bozohttpd /var/www X .Ed X .Pp X This would serve web pages from END-of-bozohttpd/files/patch-bozohttpd.8 echo x - bozohttpd/distinfo sed 's/^X//' >bozohttpd/distinfo << 'END-of-bozohttpd/distinfo' XMD5 (bozohttpd-5.09.tar.bz2) = c66356f8edf7a782ce3a99405f5ec46f END-of-bozohttpd/distinfo exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203212145.g2LLjx321964>