aboutsummaryrefslogtreecommitdiff
path: root/turtetris
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2018-02-19 15:59:32 +0100
committerKarel Kočí <karel.koci@nic.cz>2018-02-19 15:59:32 +0100
commitd6fb69c26c1ed966b41d3d1f09b40638fce3e521 (patch)
tree38b148bae13bab561aa0918da6e3eb84cab3202b /turtetris
parent679ec20eabb4ee738e100ab9c49b79c77d75d801 (diff)
downloadturris-myrepo-d6fb69c26c1ed966b41d3d1f09b40638fce3e521.tar.gz
turris-myrepo-d6fb69c26c1ed966b41d3d1f09b40638fce3e521.tar.bz2
turris-myrepo-d6fb69c26c1ed966b41d3d1f09b40638fce3e521.zip
Drop files that shouldn't be in master
These files are my personal ones and shouldn't be there when we are releasing this as a tool to public.
Diffstat (limited to 'turtetris')
-rw-r--r--turtetris/Makefile105
-rwxr-xr-xturtetris/files/master.init15
-rwxr-xr-xturtetris/files/slave.init15
-rw-r--r--turtetris/files/uci3
4 files changed, 0 insertions, 138 deletions
diff --git a/turtetris/Makefile b/turtetris/Makefile
deleted file mode 100644
index b962a92..0000000
--- a/turtetris/Makefile
+++ /dev/null
@@ -1,105 +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:=turtetris
-PKG_VERSION:=1.3
-PKG_RELEASE:=1
-
-PKG_SOURCE_PROTO:=git
-PKG_SOURCE_URL:=https://git.cynerd.cz/turris-tetris
-PKG_SOURCE_VERSION:=v$(PKG_VERSION)
-PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(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
-$(call include_mk, python3-package.mk)
-
-define Package/Common
- SUBMENU:=Python
- SECTION:=lang
- CATEGORY:=Languages
- URL:=http://git.cynerd.cz/turris-tetris/
- MAINTAINER:=CZ.NIC <packaging@turris.cz>
-endef
-
-define Package/$(PKG_NAME)
- TITLE:=turtetris
- $(call Package/Common)
- DEPENDS:=+python3 +python3-usb +python3-zmq
-endef
-
-define Package/$(PKG_NAME)-master
- TITLE:=turtetris-master
- $(call Package/Common)
- DEPENDS:=+turtetris +turtetris-slave
-endef
-
-define Package/$(PKG_NAME)-slave
- TITLE:=turtetris-slave
- $(call Package/Common)
- DEPENDS:=+turtetris
-endef
-
-define Package/$(PKG_NAME)/description
- Tetris game played on ten Turris Omnias stacked on top of each other.
-endef
-
-define Build/Compile
- $(call Build/Compile/Py3Mod,,install --prefix="/usr" --root=$(PKG_INSTALL_DIR))
-endef
-
-define Package/$(PKG_NAME)-master/install
- $(INSTALL_DIR) $(1)/etc/init.d
- $(INSTALL_BIN) ./files/master.init $(1)/etc/init.d/turtetris-master
-endef
-
-define Package/$(PKG_NAME)-slave/install
- $(INSTALL_DIR) $(1)/etc/init.d
- $(INSTALL_BIN) ./files/slave.init $(1)/etc/init.d/turtetris-slave
- $(INSTALL_DIR) $(1)/etc/config
- $(INSTALL_CONF) ./files/uci $(1)/etc/config/turtetris
-endef
-
-define Package/$(PKG_NAME)-slave/conffiles
-/etc/config/turtetris
-endef
-
-define Package/$(PKG_NAME)-master/postinst
-[ -n "$$IPKG_INSTROOT" ] || {
- /etc/init.d/turtetris-master enable
- /etc/init.d/turtetris-master restart
-}
-endef
-
-define Package/$(PKG_NAME)-slave/postinst
-[ -n "$$IPKG_INSTROOT" ] || {
- /etc/init.d/turtetris-slave enable
- /etc/init.d/turtetris-slave restart
-}
-endef
-
-define Package/$(PKG_NAME)-master/prerm
-[ -n "$$IPKG_INSTROOT" ] || {
- /etc/init.d/turtetris-master stop
- /etc/init.d/turtetris-master disable
-}
-endef
-
-define Package/$(PKG_NAME)-slave/prerm
-[ -n "$$IPKG_INSTROOT" ] || {
- /etc/init.d/turtetris-slave stop
- /etc/init.d/turtetris-slave disable
-}
-endef
-
-$(eval $(call Py3Package,turtetris))
-$(eval $(call BuildPackage,turtetris))
-$(eval $(call BuildPackage,turtetris-master))
-$(eval $(call BuildPackage,turtetris-slave))
diff --git a/turtetris/files/master.init b/turtetris/files/master.init
deleted file mode 100755
index 912aff4..0000000
--- a/turtetris/files/master.init
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh /etc/rc.common
-# Copyright (C) 2006-2011 OpenWrt.org
-
-USE_PROCD=1
-
-START=99
-
-start_service() {
- procd_open_instance
- procd_set_param command python3 -m turtetris_master
- procd_set_param respawn
- procd_set_param stdout 1
- procd_set_param stderr 1
- procd_close_instance
-}
diff --git a/turtetris/files/slave.init b/turtetris/files/slave.init
deleted file mode 100755
index 5092328..0000000
--- a/turtetris/files/slave.init
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh /etc/rc.common
-# Copyright (C) 2006-2011 OpenWrt.org
-
-USE_PROCD=1
-
-START=99
-
-start_service() {
- procd_open_instance
- procd_set_param command python3 -m turtetris_slave
- procd_set_param respawn
- procd_set_param stdout 1
- procd_set_param stderr 1
- procd_close_instance
-}
diff --git a/turtetris/files/uci b/turtetris/files/uci
deleted file mode 100644
index d33219b..0000000
--- a/turtetris/files/uci
+++ /dev/null
@@ -1,3 +0,0 @@
-
-config 1 'line'
-