lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (1199B)


      1 #
      2 # Copyright (C) 2016 Tobias Ilte <tobias.ilte@campus.tu-berlin.de>
      3 #
      4 # This is free software, licensed under the GNU General Public License v2.
      5 # See /LICENSE for more information.
      6 #
      7 
      8 include $(TOPDIR)/rules.mk
      9 
     10 PKG_NAME:=dynapoint
     11 PKG_RELEASE:=1
     12 
     13 PKG_MAINTAINER:=Tobias Ilte <tobias.ilte@campus.tu-berlin.de>
     14 PKG_LICENSE:=GPL-3.0+
     15 
     16 include $(INCLUDE_DIR)/package.mk
     17 
     18 define Package/dynapoint
     19     SECTION:=net
     20     CATEGORY:=Network
     21     SUBMENU:=wireless
     22     DEPENDS:=+lua +libubus-lua +libuci-lua +libubox-lua +luci-lib-nixio
     23     TITLE:=Dynamic access point manager
     24 endef
     25 
     26 define Package/dynapoint/description
     27   Dynapoint uses LUA scripts to allow dynamic access point creation
     28   and deletion depending on changes of certain network conditions.
     29 endef
     30 
     31 define Package/dynapoint/conffiles
     32 /etc/config/dynapoint
     33 endef
     34 
     35 define Build/Compile
     36 endef
     37 
     38 define Package/dynapoint/install
     39 	$(INSTALL_DIR) $(1)/usr/sbin
     40 	$(INSTALL_BIN) ./src/dynapoint.lua $(1)/usr/sbin/
     41 	$(INSTALL_DIR) $(1)/etc/init.d
     42 	$(INSTALL_BIN) ./src/dynapoint.init $(1)/etc/init.d/dynapoint
     43 	$(INSTALL_DIR) $(1)/etc/config
     44 	$(INSTALL_DATA) ./src/dynapoint.config $(1)/etc/config/dynapoint
     45 endef
     46 
     47 $(eval $(call BuildPackage,dynapoint))