Skip to content

Commit

Permalink
Merge pull request #21 from Beginner-Go/main
Browse files Browse the repository at this point in the history
rewrite makefile
  • Loading branch information
kiddin9 authored Aug 31, 2021
2 parents 4975b22 + 90514ab commit ed93994
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 32 deletions.
39 changes: 7 additions & 32 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,20 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=luci-app-dnsfilter
PKG_VERSION:=1.0
PKG_RELEASE:=9
PKG_RELEASE:=10
PKG_LICENSE:=GPLv2
PKG_MAINTAINER:=small_5 GaryPang

include $(INCLUDE_DIR)/package.mk

define Package/$(PKG_NAME)
SECTION:=LuCI
CATEGORY:=LuCI
SUBMENU:=3. Applications
TITLE:=LuCI support for DNSFilter
DEPENDS:=+curl +dnsmasq-full +ipset
PKGARCH:=all
endef

define Package/$(PKG_NAME)/description
Luci Support for DNSFilter.
endef

define Build/Prepare
$(foreach po,$(wildcard ${CURDIR}/po/zh-cn/*.po), \
po2lmo $(po) $(PKG_BUILD_DIR)/$(patsubst %.po,%.lmo,$(notdir $(po)));)
endef
PKG_MAINTAINER:=small_5 GaryPang

define Build/Compile
endef
LUCI_TITLE:=LuCI support for DNSFilter
LUCI_PKGARCH:=all
LUCI_DEPENDS:=+curl +dnsmasq-full +ipset

define Package/$(PKG_NAME)/conffiles
/etc/config/dnsfilter
/etc/dnsfilter/
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)/dnsfilter.*.lmo $(1)/usr/lib/lua/luci/i18n/
endef
include $(TOPDIR)/feeds/luci/luci.mk

$(eval $(call BuildPackage,$(PKG_NAME)))
# call BuildPackage - OpenWrt buildroot signature
File renamed without changes.
Empty file modified root/etc/init.d/dnsfilter
100644 → 100755
Empty file.
Empty file modified root/etc/uci-defaults/luci-dnsfilter
100644 → 100755
Empty file.
File renamed without changes.
Empty file modified root/usr/share/dnsfilter/addown
100644 → 100755
Empty file.
Empty file modified root/usr/share/dnsfilter/dnsfilter
100644 → 100755
Empty file.

0 comments on commit ed93994

Please sign in to comment.