mirror of https://github.com/OpenIPC/firmware.git
35 lines
999 B
Makefile
35 lines
999 B
Makefile
################################################################################
|
|
#
|
|
# webui
|
|
#
|
|
################################################################################
|
|
|
|
ifeq ($(LOCAL_DOWNLOAD),y)
|
|
WEBUI_SITE_METHOD = git
|
|
WEBUI_SITE = https://github.com/openipc/webui
|
|
WEBUI_VERSION = $(shell git ls-remote $(WEBUI_SITE) HEAD | head -1 | cut -f1)
|
|
else
|
|
WEBUI_SITE = https://github.com/openipc/webui/archive
|
|
WEBUI_SOURCE = master.tar.gz
|
|
endif
|
|
|
|
WEBUI_LICENSE = MIT
|
|
WEBUI_LICENSE_FILES = LICENSE
|
|
|
|
define WEBUI_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -m 755 -d $(TARGET_DIR)/etc
|
|
cp $(WEBUI_PKGDIR)/files/httpd.conf $(TARGET_DIR)/etc
|
|
|
|
$(INSTALL) -m 755 -d $(TARGET_DIR)/etc/init.d
|
|
cp $(WEBUI_PKGDIR)/files/S50httpd $(TARGET_DIR)/etc/init.d
|
|
cp -rv $(@D)/files/etc/init.d/* $(TARGET_DIR)/etc/init.d
|
|
|
|
$(INSTALL) -m 755 -d $(TARGET_DIR)/usr
|
|
cp -rv $(@D)/files/usr/sbin $(TARGET_DIR)/usr
|
|
|
|
$(INSTALL) -m 755 -d $(TARGET_DIR)/var
|
|
cp -rv $(@D)/files/var/www $(TARGET_DIR)/var
|
|
endef
|
|
|
|
$(eval $(generic-package))
|