From 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 Mon Sep 17 00:00:00 2001 From: wbx Date: Sun, 17 May 2009 14:41:34 +0200 Subject: Initial import --- package/heyu/Config.in | 8 ++++++++ package/heyu/Makefile | 31 +++++++++++++++++++++++++++++++ package/heyu/files/x10.conf | 24 ++++++++++++++++++++++++ package/heyu/ipkg/files/heyu.conffiles | 1 + package/heyu/ipkg/heyu.control | 6 ++++++ package/heyu/patches/patch-tty_c | 12 ++++++++++++ 6 files changed, 82 insertions(+) create mode 100644 package/heyu/Config.in create mode 100644 package/heyu/Makefile create mode 100644 package/heyu/files/x10.conf create mode 100644 package/heyu/ipkg/files/heyu.conffiles create mode 100644 package/heyu/ipkg/heyu.control create mode 100644 package/heyu/patches/patch-tty_c (limited to 'package/heyu') 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; + -- cgit v1.2.3