kumquat-buildroot/package/darkhttpd/darkhttpd.mk
Jérémy Rosen 3e092163e5 package: rely on systemctl preset-all for buildroot-provided services
All the packages in this list have the following properties
* units are provided by buildroot in the package directory
* the SYSTEMD_INSTALL_INIT_HOOK is exactly equivalent to what the
  [Install] section of the unit does

The fix removes the soflinking in the .mk file

Signed-off-by: Jérémy Rosen <jeremy.rosen@smile.fr>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2019-12-18 18:27:41 +01:00

32 lines
862 B
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
endef
define DARKHTTPD_INSTALL_INIT_SYSV
$(INSTALL) -D -m 0755 package/darkhttpd/S50darkhttpd \
$(TARGET_DIR)/etc/init.d/S50darkhttpd
endef
$(eval $(generic-package))