#
-# Copyright (C) 2008-2014 OpenWrt.org
+# Copyright (C) 2008-2015 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
### Remarks
### 'python pascal ruby lua' need to be deleted in src/clients/Makefile.am
-### USB stays disabled as long as official libusb-1.0 remains on version 1.0.9
-### you need to build libusb-1.0 >= 1.0.10 yourself if you want to add USB support
include $(TOPDIR)/rules.mk
PKG_NAME:=knxd
-PKG_REV:=b01d99c6748cc565f1be69b68cf2b9d3115e8ce5
-PKG_VERSION:=2014-12-20
+PKG_REV:=c97a543043297e38bbe04e1030916e8a4737373c
+PKG_VERSION:=2015-01-14
PKG_RELEASE:=1
PKG_MAINTAINER:=Othmar Truniger <github@truniger.ch>
CATEGORY:=Network
TITLE:=Eib KNX deamon
URL:=https://github.com/Makki1/knxd
- DEPENDS:=pthsem
+ DEPENDS:=pthsem libusb-1.0
endef
# use this if you want to support USB
# DEPENDS:=pthsem libusb-1.0
CATEGORY:=Network
TITLE:=Eib KNX Utils
URL:=https://github.com/Makki1/knxd
- DEPENDS:=pthsem
+ DEPENDS:=pthsem libusb-1.0
endef
-# use this if you want to support USB
-# DEPENDS:=pthsem libusb-1.0
define Package/knxd-tools/description
EIB KNX Tools
--enable-eibnetip \
--enable-eibnetiptunnel \
--enable-eibnetipserver \
- --disable-usb \
+ --enable-usb \
--enable-tpuart \
--enable-tpuarts \
--disable-pei16 \
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
CC=$(TARGET_CC) \
- LIBS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib -fno-builtin -nostdinc++ -nodefaultlibs -lc -lm -lgcc -largp -lpthsem" \
+ LIBS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib -fno-builtin -nodefaultlibs -lc -lm -lgcc -largp -lpthsem" \
CPPFLAGS="-I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include"
endef
+define Package/knxd/conffiles
+ /etc/config/knxd
+endef
+
define Package/knxd/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/server/knxd $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/tools/bcu/bcuread $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/tools/eibnet/eibnetsearch $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/tools/eibnet/eibnetdescribe $(1)/usr/bin/
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/tools/eibnet/findknxusb $(1)/usr/bin/
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/knxd.init $(1)/etc/init.d/knxd
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_DATA) ./files/knxd.config $(1)/etc/config/knxd
endef
-# add this line above to support USB
-# $(CP) $(PKG_BUILD_DIR)/src/usb/findknxusb $(1)/usr/bin/
define Package/knxd-tools/install
$(INSTALL_DIR) $(1)/usr/lib