darkhttpd: new package
PATCH v2 1/1 darkhttpd: new package
This new package provides darkhttpd, a simple, fast HTTP 1.1 web server for static content.
Signed-off-by Eric Le Bihan <[email protected]>
---
v1 -> v2:
- clean up help text.
- clean up SysV service file.
- add dependency on BR2_USE_MMU.
package/Config.in | 1 + package/darkhttpd/Config.in | 14 ++++++++++++ package/darkhttpd/S50darkhttpd | 45 +++++++++++++++++++++++++++++++++++++ package/darkhttpd/darkhttpd.hash | 2 ++ package/darkhttpd/darkhttpd.mk | 34 ++++++++++++++++++++++++++++ package/darkhttpd/darkhttpd.service | 11 +++++++++ 6 files changed, 107 insertions(+) create mode 100644 package/darkhttpd/Config.in create mode 100755 package/darkhttpd/S50darkhttpd create mode 100644 package/darkhttpd/darkhttpd.hash create mode 100644 package/darkhttpd/darkhttpd.mk create mode 100644 package/darkhttpd/darkhttpd.service
package/Config.in +1 -0
@@ -1461,6 +1461,7 @@ menu "Networking applications" source "package/ctorrent/Config.in" source "package/cups/Config.in" source "package/dante/Config.in" + source "package/darkhttpd/Config.in" source "package/dhcp/Config.in" source "package/dhcpcd/Config.in" source "package/dhcpdump/Config.in"
package/darkhttpd/Config.in new file +14 -0
@@ -0,0 +1,14 @@ +config BR2_PACKAGE_DARKHTTPD + bool "darkhttpd" + depends on BR2_USE_MMU # fork() + help + Darkhttpd is a simple, fast HTTP 1.1 web server which only serves + static content. It does not support PHP or CGI. + + The behavior of darkhttpd can be altered by setting some variables in + /etc/default/darkhttpd: + + - DARKHTTPD_ROOT: path to the server document root. + - DARKHTTPD_FLAGS: options to pass to darkhttpd. + + https://unix4lyfe.org/darkhttpd/
package/darkhttpd/S50darkhttpd new file +45 -0
45 lines not on this page · raw message
package/darkhttpd/darkhttpd.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally generated +sha256 a50417b622b32b5f421b3132cb94ebeff04f02c5fb87fba2e31147d23de50505 darkhttpd-1.12.tar.bz2
package/darkhttpd/darkhttpd.mk new file +34 -0
@@ -0,0 +1,34 @@ +################################################################################ +# +# darkhttpd +# +################################################################################ + +DARKHTTPD_VERSION = 1.12 +DARKHTTPD_SITE = https://unix4lyfe.org/darkhttpd +DARKHTTPD_SOURCE = darkhttpd-$(DARKHTTPD_VERSION).tar.bz2 +DARKHTTPD_LICENSE = MIT + +define DARKHTTPD_BUILD_CMDS + $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) +endef + +define DARKHTTPD_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/darkhttpd \ + $(TARGET_DIR)/usr/sbin/darkhttpd +endef + +define DARKHTTPD_INSTALL_INIT_SYSTEMD + $(INSTALL) -D -m 0644 package/darkhttpd/darkhttpd.service \ + $(TARGET_DIR)/usr/lib/systemd/system/darkhttpd.service + mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants + ln -fs ../../../../usr/lib/systemd/system/darkhttpd.service \ + $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/darkhttpd.service +endef + +define DARKHTTPD_INSTALL_INIT_SYSV + $(INSTALL) -D -m 0755 package/darkhttpd/S50darkhttpd \ + $(TARGET_DIR)/etc/init.d/S50darkhttpd +endef + +$(eval $(generic-package))
package/darkhttpd/darkhttpd.service new file +11 -0
@@ -0,0 +1,11 @@ +[Unit] +Description=Darkhttpd Web Server +After=syslog.target network.target auditd.service + +[Service] +Environment="DARKHTTPD_ROOT=/var/www" +EnvironmentFile=-/etc/default/darkhttpd +ExecStart=/usr/sbin/darkhttpd $DARKHTTPD_ROOT $DARKHTTPD_FLAGS --chroot --uid nobody --gid www-data + +[Install] +WantedBy=multi-user.target
--
2.5.5
Thomas Petazzoni
AppliedPATCH v2 1/1 darkhttpd: new package
Hello,
Quoted 6 lines · Eric Le Bihan
This new package provides darkhttpd, a simple, fast HTTP 1.1 web server for static content.
Signed-off-by Eric Le Bihan <[email protected]>---
v1 -> v2:
Applied to master, thanks. I've added a follow-up commit to add you to the DEVELOPERS file for this package.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com