Skip to content

Commit

Permalink
Merge pull request #14 from opentechinstitute/feature-132
Browse files Browse the repository at this point in the history
Feature 132. Tested.
  • Loading branch information
jheretic committed Sep 4, 2013
2 parents dc52e22 + 30afad0 commit e907910
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 0 deletions.
50 changes: 50 additions & 0 deletions packages/commotion-bigboard-send/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
include $(TOPDIR)/rules.mk

MODULE_NAME:=commotion-bigboard-send
MODULE_TITLE:=Commotion-Bigboard

THEME_NAME:=commotion
THEME_TITLE:=Commotion

PKG_NAME:=$(MODULE_NAME)
PKG_VERSION:=release-0.1
PKG_RELEASE:=1

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git://github.com/opentechinstitute/commotion-bigboard-send.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=$(PKG_VERSION)

PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)

include $(INCLUDE_DIR)/package.mk

define Package/$(PKG_NAME)
SECTION:=commotion
CATEGORY:=Commotion
DEPENDS:=+curl
TITLE:=Commotion Bigboard Sender
URL:=https://commotionwireless.net
endef

define Build/Configure
endef

define Build/Compile
endef

define Package/$(PKG_NAME)/description
Provides a transport mechanism to a remote Commotion Bigboard
endef

define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/bin/
$(CP) $(PKG_BUILD_DIR)/bin/commotion-bigboard-send $(1)/usr/bin/
$(INSTALL_DIR) $(1)/etc/config/
$(CP) $(PKG_BUILD_DIR)/config/commotion-dash $(1)/etc/config/
$(INSTALL_DIR) $(1)/etc/uci-defaults/
$(CP) $(PKG_BUILD_DIR)/bin/commotion-bigboard-send-install-cron.sh $(1)/etc/uci-defaults/
endef

$(eval $(call BuildPackage,$(PKG_NAME)))
56 changes: 56 additions & 0 deletions packages/luci-commotion-dash/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
include $(TOPDIR)/rules.mk

MODULE_NAME:=commotion-dash
MODULE_TITLE:=Commotion Dashboard Config

PKG_NAME:=luci-$(MODULE_NAME)
PKG_VERSION:=master
PKG_RELEASE:=1

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git://github.com/opentechinstitute/luci-commotion-dash.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=$(PKG_VERSION)

PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)


include $(INCLUDE_DIR)/package.mk

define Package/luci-$(MODULE_NAME)
SECTION:=luci
CATEGORY:=LuCI
SUBMENU:=2. Modules
TITLE:=LuCI Module - $(MODULE_TITLE)
URL:=https://commotionwireless.net/
DEPENDS:=+luci-commotion +commotion-bigboard-send
endef

define Build/Configure
endef

define Build/Compile
endef

define Package/luci-$(MODULE_NAME)/description
Commotion dashboard plugin to project webGUI add-on
endef

define Package/luci-$(MODULE_NAME)/conffile
/etc/config/commotion-dash
endef

define Package/luci-$(MODULE_NAME)/install
$(INSTALL_DIR) $(1)/usr/lib/lua/luci
$(CP) $(PKG_BUILD_DIR)/luasrc/* $(1)/usr/lib/lua/luci 2>/dev/null || true
endef

define Package/luci-$(MODULE_NAME)/postinst
#!/bin/sh
[ -n "$${IPKG_INSTROOT}" ] || {
( . /etc/uci-defaults/luci-$(MODULE_NAME) ) && rm -f /etc/uci-defaults/luci-$(MODULE_NAME)
}
endef

$(eval $(call BuildPackage,luci-$(MODULE_NAME)))

0 comments on commit e907910

Please sign in to comment.