2009-06-20 12:57:22 +00:00
|
|
|
# Copyright (c) 2008 jokamajo.org
|
2010-09-30 12:34:39 +00:00
|
|
|
# 2010 flukso.net
|
2009-06-22 12:54:51 +00:00
|
|
|
# $Id$
|
2009-06-20 12:57:22 +00:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=flukso
|
2010-09-30 12:34:39 +00:00
|
|
|
PKG_VERSION:=1.1
|
2009-09-14 11:56:07 +00:00
|
|
|
PKG_RELEASE:=1
|
2009-06-20 12:57:22 +00:00
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/flukso
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2009-08-18 22:43:06 +00:00
|
|
|
DEPENDS:=+liblua-xmlrpc +ntpclient
|
2009-06-20 12:57:22 +00:00
|
|
|
TITLE:=Flukso - community metering
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/flukso/description
|
|
|
|
This package contains the necessary openwrt files for the Flukso [www.flukso.net] community metering application.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Prepare
|
|
|
|
mkdir -p $(PKG_BUILD_DIR)
|
|
|
|
$(CP) ./src/* $(PKG_BUILD_DIR)/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/flukso/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/lua/flukso/
|
2010-10-04 22:05:50 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/{flukso,data,dbg,auth,heartbeat,restful}.lua $(1)/usr/share/lua/flukso/
|
2009-06-20 12:57:22 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d/
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/flukso.init $(1)/etc/init.d/flukso
|
2010-09-30 12:34:39 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/config/
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/flukso.uci $(1)/etc/config/flukso
|
2009-06-20 12:57:22 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,flukso))
|