-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from opentechinstitute/feature-132
Feature 132. Tested.
- Loading branch information
Showing
2 changed files
with
106 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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))) |