diff --git a/packages/commotion-bigboard-send/Makefile b/packages/commotion-bigboard-send/Makefile new file mode 100644 index 0000000..a7cc071 --- /dev/null +++ b/packages/commotion-bigboard-send/Makefile @@ -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))) diff --git a/packages/luci-commotion-dash/Makefile b/packages/luci-commotion-dash/Makefile new file mode 100644 index 0000000..77ab7b4 --- /dev/null +++ b/packages/luci-commotion-dash/Makefile @@ -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)))