summaryrefslogtreecommitdiffstats
path: root/package/darkhttpd/darkhttpd.mk
blob: df80899371259018073c7187296c3c59adfc1fef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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))
OpenPOWER on IntegriCloud