Makefile revision 30838ede
1 2include $(TOPDIR)/rules.mk 3 4PKG_NAME:=appfilter 5PKG_VERSION:=3.0 6PKG_RELEASE:=1 7 8PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) 9 10 11include $(INCLUDE_DIR)/package.mk 12#include $(INCLUDE_DIR)/kernel.mk 13 14define Package/appfilter 15 SECTION:=Derry Apps 16 CATEGORY:=Derry Apps 17 DEPENDS:=+libubox-lua 18 TITLE:=App filter userspace module 19endef 20 21define Build/Prepare 22 mkdir -p $(PKG_BUILD_DIR) 23endef 24 25define Build/Compile/Default 26 27endef 28 29define Package/appfilter/description 30 open appfilter app 31endef 32 33 34define Package/appfilter/install 35 echo "install" 36 $(INSTALL_DIR) $(1)/usr/bin $(1)/etc/init.d 37 $(INSTALL_DIR) $(1)/etc/appfilter 38 $(INSTALL_DIR) $(1)/etc/config 39 $(CP) ./files/feature.cfg $(1)/etc/appfilter/ 40 $(INSTALL_BIN) ./files/appfilter.init $(1)/etc/init.d/appfilter 41 $(INSTALL_BIN) ./files/appfilter.sh $(1)/usr/bin 42 $(INSTALL_BIN) ./files/gen_class.sh $(1)/usr/bin 43 $(INSTALL_BIN) ./files/appfilter.lua $(1)/usr/bin/appfilter 44 $(INSTALL_BIN) ./files/appfilter.config $(1)/etc/config/appfilter 45endef 46 47 48$(eval $(call BuildPackage,appfilter)) 49 50