summaryrefslogtreecommitdiff
path: root/packages/piccontrol
diff options
context:
space:
mode:
Diffstat (limited to 'packages/piccontrol')
-rw-r--r--packages/piccontrol/files/configlocation.patch13
-rw-r--r--packages/piccontrol/files/init37
-rw-r--r--packages/piccontrol/files/luafix-0.4.patch20
-rw-r--r--packages/piccontrol/files/piccontrol-0.4.conf45
-rw-r--r--packages/piccontrol/piccontrol_0.4.bb27
5 files changed, 0 insertions, 142 deletions
diff --git a/packages/piccontrol/files/configlocation.patch b/packages/piccontrol/files/configlocation.patch
deleted file mode 100644
index 08cb60096b..0000000000
--- a/packages/piccontrol/files/configlocation.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/piccontrol.c.orig b/piccontrol.c
-index 6c2fba3..e29eb33 100644
---- a/piccontrol.c.orig
-+++ b/piccontrol.c
-@@ -231,7 +231,7 @@ static int pic_lua_setup()
- lua_register(lua, "register", register_module);
- lua_register(lua, "piccmd", run_command_lua);
-
-- luaL_dofile(lua, "config.lua");
-+ luaL_dofile(lua, "/etc/piccontrol.conf");
-
- return 0;
- }
diff --git a/packages/piccontrol/files/init b/packages/piccontrol/files/init
deleted file mode 100644
index 3f2e511183..0000000000
--- a/packages/piccontrol/files/init
+++ /dev/null
@@ -1,37 +0,0 @@
-#! /bin/sh
-# piccontrol - simple init.d piccontrol script - tim.ellis@foonas.org
-set -e
-
-if [ ! -f /usr/sbin/piccontrol ]; then
- echo -n "Warning: piccontrol binary not found. Shutting down"
- shutdown -h now
- exit -1
-fi
-
-case "$1" in
- start)
- echo -n "Starting piccontrol: "
- rm -f /var/run/piccontrol.sock
- start-stop-daemon -S -b -n piccontrol -a /usr/sbin/piccontrol -- -d
- sleep 1
- piccontrol statusled greenon
- piccontrol powerled on
- piccontrol buzzer short
- echo "done"
- ;;
- stop)
- echo -n "Stopping piccontrol: "
- start-stop-daemon -K -n piccontrol >&- 2>&- &
- echo "done"
- ;;
- restart)
- $0 stop
- $0 start
- ;;
- *)
- echo "Usage: piccontrol { start | stop | restart }" >&2
- exit 1
- ;;
-esac
-
-exit 0
diff --git a/packages/piccontrol/files/luafix-0.4.patch b/packages/piccontrol/files/luafix-0.4.patch
deleted file mode 100644
index 453582cad9..0000000000
--- a/packages/piccontrol/files/luafix-0.4.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-diff -urN qcontrol-0.4.old//Makefile qcontrol-0.4//Makefile
---- qcontrol-0.4.old//Makefile 2008-05-11 23:32:11.000000000 +0100
-+++ qcontrol-0.4//Makefile 2008-10-25 23:53:15.820091908 +0100
-@@ -1,5 +1,5 @@
--CFLAGS=-Os -Wall -I /usr/include/lua5.1
--LDFLAGS=-llua5.1 -lpthread
-+CFLAGS=-Os -Wall
-+LDFLAGS=-lpthread -lm -ldl
- SOURCES=piccontrol.c ts209.c evdev.c
- OBJECTS=$(SOURCES:.c=.o)
- EXECUTABLE=piccontrol
-@@ -7,7 +7,7 @@
- all: $(SOURCES) $(EXECUTABLE)
-
- $(EXECUTABLE): $(OBJECTS)
-- $(CC) $(LDFLAGS) $(OBJECTS) -o $@
-+ $(CC) -o $@ $(OBJECTS) $(LDFLAGS)
-
- .cpp.o:
- $(CC) $(CFLAGS) $< -o $@
diff --git a/packages/piccontrol/files/piccontrol-0.4.conf b/packages/piccontrol/files/piccontrol-0.4.conf
deleted file mode 100644
index 9d8bf31826..0000000000
--- a/packages/piccontrol/files/piccontrol-0.4.conf
+++ /dev/null
@@ -1,45 +0,0 @@
-register("ts209")
-
-register("evdev", "/dev/input/event0",
- 116, "restart_button",
- 408, "media_button")
-
-function power_button( time )
- os.execute("poweroff")
-end
-
-fanfail = 0
-
-function fan_error( )
- fanfail = fanfail + 1
- if fanfail == 3 then
- print("ts209: fan error")
- piccmd("statusled", "red2hz")
- piccmd("buzzer", "long")
- else
- if fanfail == 10 then
- fanfail = 0
- end
- end
-end
-
-function fan_normal( )
- piccmd("statusled", "greenon")
- fanfail = 0
-end
-
-function temp_low( )
- piccmd("fanspeed", "silence")
-end
-
-function temp_high( )
- piccmd("fanspeed", "full")
-end
-
-function restart_button( time )
- os.execute("reboot")
-end
-
-function media_button( time )
- piccmd("usbled", "8hz")
-end
diff --git a/packages/piccontrol/piccontrol_0.4.bb b/packages/piccontrol/piccontrol_0.4.bb
deleted file mode 100644
index cfdef98b3c..0000000000
--- a/packages/piccontrol/piccontrol_0.4.bb
+++ /dev/null
@@ -1,27 +0,0 @@
-DESCRIPTION = "Microcontroller utility for ARM turbostations by Byron Bradley"
-SECTION = "console/network"
-DEPENDS = "lua5.1"
-PR = "r1"
-LICENSE = "GPL"
-COMPATIBLE_MACHINE = "tsx09"
-
-SRC_URI = "http://byronbradley.co.uk/piccontrol/qcontrol-0.4.tar.gz \
- file://luafix-0.4.patch;patch=0 \
- file://configlocation.patch;patch=1 \
- file://piccontrol-0.4.conf \
- file://init"
-S = "${WORKDIR}/qcontrol-${PV}"
-
-inherit update-rc.d
-
-INITSCRIPT_NAME = "piccontrol"
-INITSCRIPT_PARAMS = "defaults"
-
-LDFLAGS += " ${STAGING_LIBDIR}/liblua5.1.a -lpthread -lm -ldl "
-CFLAGS += " -I${STAGING_INCDIR}/lua5.1 "
-
-do_install() {
- install -D -m 0755 ${S}/piccontrol ${D}${sbindir}/piccontrol
- install -D -m 0644 ${WORKDIR}/piccontrol-0.4.conf ${D}${sysconfdir}/piccontrol.conf
- install -D -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/piccontrol
-}