Changeset 16375


Ignore:
Timestamp:
2009-06-08T03:27:01+02:00 (7 years ago)
Author:
nbd
Message:

add ucitrigger: a uci plugin, command line tool and lua interface for automatically applying uci config changes

Location:
trunk/package/uci
Files:
8 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/uci/Makefile

    r15356 r16375  
    3737endef 
    3838 
     39define Package/ucitrigger 
     40  SECTION:=base 
     41  CATEGORY:=Base system 
     42  DEPENDS:=+libuci-lua 
     43  TITLE:=Automatic triggers for applying system config changes 
     44endef 
     45 
    3946define Package/libuci-lua 
    4047  SECTION=libs 
    4148  CATEGORY=Libraries 
    42   DEPENDS:=+libuci +lua 
     49  DEPENDS:=+libuci +liblua 
    4350  TITLE:=Lua plugin for UCI 
    4451endef 
     
    6471        $(MAKE) -C $(PKG_BUILD_DIR) $(UCI_MAKEOPTS) 
    6572        $(MAKE) -C $(PKG_BUILD_DIR)/lua $(UCI_MAKEOPTS) 
     73        $(MAKE) -C $(PKG_BUILD_DIR)/trigger $(UCI_MAKEOPTS) \ 
     74                LIBS="$(TARGET_LDFLAGS) -L$(PKG_BUILD_DIR) -luci -llua -lcrypt -lm" 
    6675endef 
    6776 
     
    7483        $(INSTALL_DIR) $(1)/usr/lib/lua 
    7584        $(CP) $(PKG_BUILD_DIR)/lua/uci.so $(1)/usr/lib/lua/ 
     85endef 
     86 
     87define Package/ucitrigger/install 
     88        $(INSTALL_DIR) $(1)/usr/lib/lua/uci $(1)/lib/config/trigger $(1)/usr/sbin 
     89        $(INSTALL_DATA) ./trigger/lib/trigger.lua $(1)/usr/lib/lua/uci/ 
     90        $(INSTALL_DATA) ./trigger/modules/*.lua $(1)/lib/config/trigger/ 
     91        $(INSTALL_DATA) $(PKG_BUILD_DIR)/trigger/uci_trigger.so $(1)/usr/lib/ 
     92        $(INSTALL_BIN) ./trigger/apply_config $(1)/usr/sbin/ 
    7693endef 
    7794 
     
    95112$(eval $(call BuildPackage,libuci)) 
    96113$(eval $(call BuildPackage,libuci-lua)) 
     114$(eval $(call BuildPackage,ucitrigger)) 
Note: See TracChangeset for help on using the changeset viewer.