postgresql: bump version to 9.6.2
[buildroot-gz.git] / package / darkhttpd / darkhttpd.mk
blobdf80899371259018073c7187296c3c59adfc1fef
1 ################################################################################
3 # darkhttpd
5 ################################################################################
7 DARKHTTPD_VERSION = 1.12
8 DARKHTTPD_SITE = https://unix4lyfe.org/darkhttpd
9 DARKHTTPD_SOURCE = darkhttpd-$(DARKHTTPD_VERSION).tar.bz2
10 DARKHTTPD_LICENSE = MIT
12 define DARKHTTPD_BUILD_CMDS
13 $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
14 endef
16 define DARKHTTPD_INSTALL_TARGET_CMDS
17 $(INSTALL) -D -m 0755 $(@D)/darkhttpd \
18 $(TARGET_DIR)/usr/sbin/darkhttpd
19 endef
21 define DARKHTTPD_INSTALL_INIT_SYSTEMD
22 $(INSTALL) -D -m 0644 package/darkhttpd/darkhttpd.service \
23 $(TARGET_DIR)/usr/lib/systemd/system/darkhttpd.service
24 mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
25 ln -fs ../../../../usr/lib/systemd/system/darkhttpd.service \
26 $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/darkhttpd.service
27 endef
29 define DARKHTTPD_INSTALL_INIT_SYSV
30 $(INSTALL) -D -m 0755 package/darkhttpd/S50darkhttpd \
31 $(TARGET_DIR)/etc/init.d/S50darkhttpd
32 endef
34 $(eval $(generic-package))