buildroot/package/darkhttpd/darkhttpd.mk
Eric Le Bihan 9c9de1e2b5 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 <eric.le.bihan.dev@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-12-11 15:09:27 +01:00

35 lines
1 KiB
Makefile

################################################################################
#
# 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))