aboutsummaryrefslogtreecommitdiff
path: root/i2c-collect/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'i2c-collect/Makefile')
-rw-r--r--i2c-collect/Makefile74
1 files changed, 0 insertions, 74 deletions
diff --git a/i2c-collect/Makefile b/i2c-collect/Makefile
deleted file mode 100644
index 426bcea..0000000
--- a/i2c-collect/Makefile
+++ /dev/null
@@ -1,74 +0,0 @@
-#
-# Copyright (C) 2017 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-
-include $(TOPDIR)/rules.mk
-
-PKG_NAME:=i2c-collect
-PKG_VERSION:=v0.1
-PKG_RELEASE:=1
-PKG_LICENSE:=MIT
-PKG_LICENSE_FILES:=LICENCE.txt
-
-PKG_SOURCE_PROTO:=git
-PKG_SOURCE_URL:=http://git.cynerd.cz/turris-i2c-collect
-PKG_SOURCE_VERSION:=$(PKG_VERSION)
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
-PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
-
-include $(INCLUDE_DIR)/package.mk
-
-define Package/i2c-collect
- TITLE:=i2c-collect
- URL:=http://git.cynerd.cz/turris-i2c-collect
- DEPENDS:=+python +python-perifery +ubus +python-sqlite3
-endef
-
-define Package/foris-plugin-i2c-collect
- TITLE:=i2c-collect
- URL:=http://git.cynerd.cz/turris-i2c-collect
- DEPENDS:=+python +foris +i2c-collect
-endef
-
-define Build/Compile
- true
-endef
-
-define Package/i2c-collect/install
- $(INSTALL_DIR) $(1)/usr/bin
- $(INSTALL_BIN) $(PKG_BUILD_DIR)/daemon.py $(1)/usr/bin/i2c-collectd
- $(INSTALL_DIR) $(1)/etc/init.d
- $(INSTALL_BIN) $(PKG_BUILD_DIR)/daemon.init $(1)/etc/init.d/i2c-collect
-endef
-
-define Package/foris-plugin-i2c-collect/install
- $(INSTALL_DIR) $(1)/usr/share/foris/plugins
- cp -a $(PKG_BUILD_DIR)/foris $(1)/usr/share/foris/plugins/i2c-collect
-endef
-
-define Package/i2c-collect/postinst
- [ -n "$$IPKG_INSTROOT" ] || {
- /etc/init.d/i2c-collect enable
- /etc/init.d/i2c-collect restart
- }
-endef
-
-define Package/i2c-collect/prerm
- [ -n "$$IPKG_INSTROOT" ] || {
- /etc/init.d/i2c-collect stop
- /etc/init.d/i2c-collect disable
- }
-endef
-
-define Package/foris-plugin-i2c-collect/postinst
- [ -n "$$IPKG_INSTROOT" ] || {
- /etc/init.d/lighttpd restart
- }
-endef
-
-$(eval $(call BuildPackage,i2c-collect))
-$(eval $(call BuildPackage,foris-plugin-i2c-collect))