Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 47 additions & 7 deletions luci-app-oaf/Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,55 @@

#
# This is free software, licensed under the Apache License, Version 2.0 .
# This is free software, licensed under the GNU General Public License v3.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

LUCI_TITLE:=Open App Filter Module
LUCI_PKGARCH:=all
LUCI_DEPENDS:=+kmod-oaf +appfilter
PKG_NAME:=luci-app-oaf
PKG_VERSION:=1.0
PKG_RELEASE:=1
include $(TOPDIR)/feeds/luci/luci.mk
# call BuildPackage - OpenWrt buildroot signature

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)

include $(INCLUDE_DIR)/package.mk

define Package/luci-app-oaf
SECTION:=Derry Apps
CATEGORY:=Derry Apps
TITLE:=LuCI Support for oaf
PKGARCH:=all
DEPENDS:=+kmod-oaf
endef

define Package/luci-app-oaf/description
LuCI Support for oaf.
endef

define Build/Prepare
endef

define Build/Compile
endef

define Package/luci-app-oaf/postinst
#!/bin/sh
if [ -z "$$IPKG_INSTROOT" ]; then
( . /etc/uci-defaults/91_luci-app-oaf )
rm -f /etc/uci-defaults/91_luci-app-oaf

rm -rf /tmp/luci-indexcache /tmp/luci-modulecache
fi

exit 0
endef

define Package/luci-app-oaf/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
po2lmo ./po/zh-cn/oaf.po $(1)/usr/lib/lua/luci/i18n/oaf.zh-cn.lmo
endef

$(eval $(call BuildPackage,luci-app-oaf))
2 changes: 1 addition & 1 deletion luci-app-oaf/luasrc/controller/appfilter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ function index()

local page

page = entry({"admin", "network", "appfilter"}, cbi("appfilter/appfilter"), _("appfilter"))
page = entry({"admin", "services", "appfilter"}, cbi("appfilter/appfilter"), _("appfilter"))
page.dependent = true
end
46 changes: 0 additions & 46 deletions open-app-filter/Makefile

This file was deleted.