Skip to content

kenballus/obhttpd-linux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 

Repository files navigation

obhttpd-linux

This is a port of OpenBSD's httpd to GNU/Linux.

It's been tested on aarch64 Fedora 41 and amd64 Debian 13 (testing), and basic functionality is good.

Building

This project's Debian requirements are

  • git
  • bmake
  • byacc
  • groff
  • libc6-dev
  • libbsd-dev
  • libtls-dev
  • libssl-dev
  • libevent-dev

For other distributions, it's similar.

To build, run

./patch.sh && bmake

This will

  1. fetch the OpenBSD src repo (which is big!),
  2. copy the necessary files from it,
  3. patch those files to work on Linux,
  4. and build the httpd.

Changes from Upstream

The changes necessary to get the port working shouldn't change functionality, except a few:

  1. The CLI flags having to do with TCP SACK are disabled, because they rely on setsockopt flags that aren't present on Linux.
  2. All references to network interface groups are patched out, because I don't think they're available on Linux.
  3. pledge is OpenBSD-specific, so I #define it to 0.

About

Port of OpenBSD httpd to Linux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published