small-package/luci-app-koolddns/Makefile

47 lines
997 B
Makefile

# Copyright (C) 2016 Openwrt.org
#
# This is free software, licensed under the Apache License, Version 2.0 .
#
include $(TOPDIR)/rules.mk
LUCI_TITLE:=LuCI support for Koolddns
LUCI_DEPENDS:=+curl +libcurl
LUCI_PKGARCH:=all
PKG_NAME:=luci-app-koolddns
PKG_VERSION:=1.1
PKG_RELEASE:=4
define Package/$(PKG_NAME)/description
Luci Support for koolddns.
endef
define Build/Prepare
$(foreach po,$(wildcard ${CURDIR}/po/zh-cn/*.po), \
po2lmo $(po) $(PKG_BUILD_DIR)/$(patsubst %.po,%.lmo,$(notdir $(po)));)
endef
define Build/Compile
endef
define Package/$(PKG_NAME)/conffiles
/etc/config/koolddns
/etc/koolddns/
endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/lib/lua/luci
cp -pR ./luasrc/* $(1)/usr/lib/lua/luci
$(INSTALL_DIR) $(1)/
cp -pR ./root/* $(1)/
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/i18n
$(INSTALL_DATA) $(PKG_BUILD_DIR)/koolddns.lmo $(1)/usr/lib/lua/luci/i18n/
endef
include $(TOPDIR)/feeds/luci/luci.mk
# call BuildPackage - OpenWrt buildroot signature