2011-01-07 13:41:46 +00:00
|
|
|
# Copyright (c) 2010-2011 Bart Van Der Meerssche
|
2010-09-02 12:35:24 +00:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=flukso
|
|
|
|
PKG_VERSION:=2.0
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/flukso
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2011-01-07 13:41:46 +00:00
|
|
|
DEPENDS:=+libdaemon +ntpclient +liblua +luci-nixio +rrdtool1
|
2010-09-02 12:35:24 +00:00
|
|
|
TITLE:=Flukso - community metering
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/flukso/description
|
|
|
|
This package contains the Flukso daemon code and support libraries.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Prepare
|
|
|
|
mkdir -p $(PKG_BUILD_DIR)
|
2011-01-07 13:41:46 +00:00
|
|
|
$(CP) ./src/* $(PKG_BUILD_DIR)/
|
2010-09-02 12:35:24 +00:00
|
|
|
$(CP) ./luasrc/* $(PKG_BUILD_DIR)/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/flukso/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/lua
|
2011-01-07 13:41:46 +00:00
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/dbg.lua $(1)/usr/lib/lua/
|
2010-09-02 12:35:24 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/lua/rrd
|
2011-01-07 13:41:46 +00:00
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/rrd/*.lua $(1)/usr/lib/lua/rrd/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/luad $(1)/usr/sbin/
|
|
|
|
$(LN) /usr/sbin/luad $(1)/usr/sbin/spid
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/spi/spid.lua $(1)/usr/sbin/
|
2010-09-02 12:35:24 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,flukso))
|