From 895c07b0680922d0db5d6c8f524bcdb348c71e08 Mon Sep 17 00:00:00 2001 From: Beginner <70857188+Beginner-Go@users.noreply.github.com> Date: Wed, 1 Sep 2021 23:19:20 +0800 Subject: [PATCH] luci-app-pushbot: rewrite makefile (#7782) Signed-off-by: Beginner-Go <70857188+Beginner-Go@users.noreply.github.com> --- package/lean/luci-app-pushbot/Makefile | 27 ++++++-------------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/package/lean/luci-app-pushbot/Makefile b/package/lean/luci-app-pushbot/Makefile index d0103319e..81d12b8aa 100644 --- a/package/lean/luci-app-pushbot/Makefile +++ b/package/lean/luci-app-pushbot/Makefile @@ -6,29 +6,14 @@ PKG_RELEASE:=10 PKG_MAINTAINER:=tty228 zzsj0928 -include $(INCLUDE_DIR)/package.mk - -define Package/$(PKG_NAME) - SECTION:=luci - CATEGORY:=LuCI - SUBMENU:=3. Applications - DEPENDS:=+iputils-arping +curl - TITLE:=LuCI support for Pushbot - PKGARCH:=all -endef - -define Build/Compile -endef +LUCI_TITLE:=LuCI support for Pushbot +LUCI_PKGARCH:=all +LUCI_DEPENDS:=+iputils-arping +curl define Package/$(PKG_NAME)/conffiles - /etc/config/pushbot +/etc/config/pushbot 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)/ -endef +include $(TOPDIR)/feeds/luci/luci.mk -$(eval $(call BuildPackage,$(PKG_NAME))) +# call BuildPackage - OpenWrt buildroot signature