<commit_before>include $(TOPDIR)/rules.mk

PKG_NAME:=commotion-dashboard-helper
PKG_VERSION:=master
PKG_RELEASE:=1

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git://github.com/opentechinstitute/commotion-dashboard-helper.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
  SUBMENU:=Utilities
	DEPENDS:=+luci-lib-httpclient +luci-lib-nixio_cyassl
	TITLE:=Commotion Dashboard Helper
	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 dashboard
endef

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

define Package/$(PKG_NAME)/install
	$(INSTALL_DIR) $(1)/usr/bin/
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/files/bin/* $(1)/usr/bin/
	$(INSTALL_DIR) $(1)/etc/config/
	$(INSTALL_DATA) $(PKG_BUILD_DIR)/files/config/commotion-dash $(1)/etc/config/
	$(INSTALL_DIR) $(1)/etc/uci-defaults/
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/files/uci-defaults/commotion-dashboard-helper $(1)/etc/uci-defaults/
endef

define Package/$(PKG_NAME)/postinst
#!/bin/sh
[ -n "$${IPKG_INSTROOT}" ] || {
	( . /etc/uci-defaults/commotion-dashboard-helper ) && rm -f /etc/uci-defaults/commotion-dashboard-helper
}
endef
CO_BUILD_PACKAGES += commotion-dashboard-helper

define Package/luci-commotion-dashboard
	SECTION:=commotion
	CATEGORY:=Commotion
  SUBMENU:=User Interface
	DEPENDS:=+commotion-dashboard-helper +luci-mod-commotion +lua-helpers-validate +lua-helpers-encode +lua-helpers-debugger
	TITLE:=Commotion Dashboard Helper Interface
	URL:=https://commotionwireless.net
endef

define Build/Configure
endef

define Build/Compile
endef

define Package/luci-commotion-dashboard/description
	Provides a transport mechanism to a remote dashboard (Web GUI)
endef


define Package/luci-commotion-dashboard/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-commotion-dashboard/postinst
endef

CO_BUILD_PACKAGES += luci-commotion-dashboard
$(foreach b,$(CO_BUILD_PACKAGES),$(eval $(call BuildPackage,$(b))))
<commit_msg>Fix dependencies for commotion-dashboard-helper.<commit_after>include $(TOPDIR)/rules.mk

PKG_NAME:=commotion-dashboard-helper
PKG_VERSION:=master
PKG_RELEASE:=1

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git://github.com/opentechinstitute/commotion-dashboard-helper.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
  SUBMENU:=Utilities
	DEPENDS:=+luci-lib-httpclient +luci-lib-nixio +luci-lib-sys +lua-helpers-debugger +luci-lib-core
	TITLE:=Commotion Dashboard Helper
	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 dashboard
endef

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

define Package/$(PKG_NAME)/install
	$(INSTALL_DIR) $(1)/usr/bin/
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/files/bin/* $(1)/usr/bin/
	$(INSTALL_DIR) $(1)/etc/config/
	$(INSTALL_DATA) $(PKG_BUILD_DIR)/files/config/commotion-dash $(1)/etc/config/
	$(INSTALL_DIR) $(1)/etc/uci-defaults/
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/files/uci-defaults/commotion-dashboard-helper $(1)/etc/uci-defaults/
endef

define Package/$(PKG_NAME)/postinst
#!/bin/sh
[ -n "$${IPKG_INSTROOT}" ] || {
	( . /etc/uci-defaults/commotion-dashboard-helper ) && rm -f /etc/uci-defaults/commotion-dashboard-helper
}
endef
CO_BUILD_PACKAGES += commotion-dashboard-helper

define Package/luci-commotion-dashboard
	SECTION:=commotion
	CATEGORY:=Commotion
  SUBMENU:=User Interface
	DEPENDS:=+commotion-dashboard-helper +luci-mod-commotion +lua-helpers-validate +lua-helpers-encode +lua-helpers-debugger
	TITLE:=Commotion Dashboard Helper Interface
	URL:=https://commotionwireless.net
endef

define Build/Configure
endef

define Build/Compile
endef

define Package/luci-commotion-dashboard/description
	Provides a transport mechanism to a remote dashboard (Web GUI)
endef


define Package/luci-commotion-dashboard/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-commotion-dashboard/postinst
endef

CO_BUILD_PACKAGES += luci-commotion-dashboard
$(foreach b,$(CO_BUILD_PACKAGES),$(eval $(call BuildPackage,$(b))))

{'fraction_non_alphanumeric': 0.1456733762191326, 'fraction_numerical': 0.004150238638721726, 'mean_word_length': 6.2155688622754495, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6878614', 'n_tokens_mistral': 1840, 'n_tokens_neox': 1793, 'n_words': 268}