2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
15 PKG_SOURCE_URL:=http://heyu.tanj.com/download/
16 PKG_MD5SUM:=89d20d7f45109e7add5f0a141eac04eb
18 include $(INCLUDE_DIR)/package.mk
24 TITLE:=X10 home automation control using a CM11A
25 URL:=http://heyu.tanj.com/heyu2/
28 define Package/heyu/description
29 HEYU is a text-based console program for remotely controlling lights
30 and appliances in the home or office. It is made available under a
31 free and open source license.
33 Heyu uses the CM11A computer interface to send and receive X10 control
34 signals over the AC power lines to modules which can turn On, Off, or
35 Dim attached lamps or appliances. It can store a schedule of timed
36 events in the CM11A memory for execution when the computer is turned
40 define Package/heyu/conffiles
45 $(call Build/Compile/Default, \
46 CFLAGS="$(TARGET_CFLAGS) \$$$$(DFLAGS)" \
50 define Package/heyu/install
51 $(INSTALL_DIR) $(1)/usr/bin
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/heyu $(1)/usr/bin/
54 $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
55 $(INSTALL_DATA) ./files/x10.conf $(1)/etc/$(PKG_NAME)/x10.conf
58 $(eval $(call BuildPackage,heyu))