summaryrefslogtreecommitdiff
path: root/package/heyu
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/heyu
Initial import
Diffstat (limited to 'package/heyu')
-rw-r--r--package/heyu/Config.in8
-rw-r--r--package/heyu/Makefile31
-rw-r--r--package/heyu/files/x10.conf24
-rw-r--r--package/heyu/ipkg/files/heyu.conffiles1
-rw-r--r--package/heyu/ipkg/heyu.control6
-rw-r--r--package/heyu/patches/patch-tty_c12
6 files changed, 82 insertions, 0 deletions
diff --git a/package/heyu/Config.in b/package/heyu/Config.in
new file mode 100644
index 000000000..4b6a548dc
--- /dev/null
+++ b/package/heyu/Config.in
@@ -0,0 +1,8 @@
+config ADK_PACKAGE_HEYU
+ prompt "heyu.............................. X10 home automation control using a CM11A"
+ tristate
+ default n
+ help
+ X10 home automation control using the CM11A serial device.
+
+ See http://heyu.tanj.com/heyu2/ for details.
diff --git a/package/heyu/Makefile b/package/heyu/Makefile
new file mode 100644
index 000000000..8202d29f9
--- /dev/null
+++ b/package/heyu/Makefile
@@ -0,0 +1,31 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= heyu
+PKG_VERSION:= 2.3.2
+PKG_RELEASE:= 1
+PKG_MD5SUM:= af3eeeaa8c432e5b3510f4df6dd39f4f
+DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tgz
+MASTER_SITES:= http://heyu.tanj.com/download/
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,HEYU,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+do-build:
+ (cd ${WRKBUILD} && ${BASH} ./Configure);
+ ${MAKE} -C ${WRKBUILD} \
+ CC="${TARGET_CC}" LD=${TARGET_CROSS}ld \
+ CFLAGS="${TARGET_CFLAGS} -I${WRKBUILD} -DSYSV -DPOSIX -DHAS_ITIMER -DLINUX -DHASSELECT -DHASTZ"
+
+do-install:
+ ${INSTALL_DIR} ${IDIR_HEYU}/etc/${PKG_NAME}
+ ${INSTALL_DATA} ./files/x10.conf ${IDIR_HEYU}/etc/${PKG_NAME}/x10.conf
+ ${INSTALL_DIR} ${IDIR_HEYU}/usr/bin
+ ${INSTALL_BIN} ${WRKBUILD}/heyu ${IDIR_HEYU}/usr/bin/
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/heyu/files/x10.conf b/package/heyu/files/x10.conf
new file mode 100644
index 000000000..3cacaf5e8
--- /dev/null
+++ b/package/heyu/files/x10.conf
@@ -0,0 +1,24 @@
+# this file should contain x10 appliance aliases, one per line, as:
+# appliance-name housecode modulenumber
+# for example:
+# mydesklamp A 4
+# atticfan B 3
+# sumppump C 3
+# manythings J 1-4
+#
+# IMPORTANT! disable the serial console if you need to use heyu
+# on /dev/tts/0. Read http://forum.openwrt.org/viewtopic.php?id=1767
+#
+# NOTE: using /dev/tts/1 requires the setserial package to
+# set the port to use irq 3, otherwise performance will be
+# unbearable as it is polled.
+#
+TTY /dev/tts/1
+#
+# give your location - for computing sunrise and sunset times
+# Boston, MA USA:
+#LATITUDE N42:20
+#LONGITUDE W71:05
+# Menlo Park, CA USA:
+LATITUDE N37:43
+LONGITUDE W122:20
diff --git a/package/heyu/ipkg/files/heyu.conffiles b/package/heyu/ipkg/files/heyu.conffiles
new file mode 100644
index 000000000..f3c36bc00
--- /dev/null
+++ b/package/heyu/ipkg/files/heyu.conffiles
@@ -0,0 +1 @@
+/etc/heyu/x10.conf
diff --git a/package/heyu/ipkg/heyu.control b/package/heyu/ipkg/heyu.control
new file mode 100644
index 000000000..e888f236c
--- /dev/null
+++ b/package/heyu/ipkg/heyu.control
@@ -0,0 +1,6 @@
+Package: heyu
+Priority: optional
+Section: misc
+Source: buildroot internal
+Description: X10 home automation control using the CM11A
+Depends: setserial
diff --git a/package/heyu/patches/patch-tty_c b/package/heyu/patches/patch-tty_c
new file mode 100644
index 000000000..d5a83ff86
--- /dev/null
+++ b/package/heyu/patches/patch-tty_c
@@ -0,0 +1,12 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- heyu-2.3.2.orig/tty.c 2008-04-14 00:40:24.000000000 +0200
++++ heyu-2.3.2/tty.c 2008-10-09 14:57:18.000000000 +0200
+@@ -396,7 +396,7 @@ char *make_lock_name ( char *ttydev )
+ char err_string[200];
+
+ /* strip the leading path name */
+- ptr = rindex(ttydev, '/');
++ ptr = strrchr(ttydev, '/');
+
+ devstr = dev_string;
+