@ -11,25 +11,25 @@
i n c l u d e $( TOPDIR ) / r u l e s . m k
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := knxd
PKG_NAME := knxd
PKG_REV := a63bc660d305e26ce3ed038607d387758fad8413
PKG_VERSION := 2015-03-06
PKG_VERSION = 2015-03-06-$( PKG_SOURCE_VERSION)
PKG_RELEASE := 1
PKG_RELEASE := 1
PKG_SOURCE_PROTO := git
PKG_SOURCE_URL := https://github.com/knxd/knxd.git
PKG_SOURCE_VERSION := a63bc660d305e26ce3ed038607d387758fad8413
PKG_SOURCE_SUBDIR := $( PKG_NAME) -$( PKG_SOURCE_VERSION)
PKG_SOURCE := $( PKG_NAME) -$( PKG_SOURCE_VERSION) .tar.gz
PKG_MAINTAINER := Othmar Truniger <github@truniger.ch>
PKG_MAINTAINER := Othmar Truniger <github@truniger.ch>
PKG_LICENSE := GPL-2.0+
PKG_LICENSE := GPL-2.0+
PKG_LICENSE_FILES := LICENSE
PKG_LICENSE_FILES := LICENSE
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_PROTO := git
PKG_SOURCE_URL := git://github.com/knxd/knxd.git
PKG_SOURCE_SUBDIR := $( PKG_NAME)
PKG_SOURCE_VERSION := $( PKG_REV)
PKG_BUILD_DIR := $( BUILD_DIR) /$( PKG_NAME)
PKG_BUILD_DEPENDS := pthsem argp-standalone
PKG_BUILD_PARALLEL := 1
PKG_BUILD_DIR := $( BUILD_DIR) /$( PKG_NAME) -$( PKG_SOURCE_VERSION)
PKG_FIXUP := autoreconf
PKG_FIXUP := autoreconf
PKG_INSTALL := 1
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
@ -37,8 +37,7 @@ define Package/knxd
SECTION:= net
SECTION:= net
CATEGORY:= Network
CATEGORY:= Network
TITLE:= EIB KNX daemon
TITLE:= EIB KNX daemon
URL:= https://github.com/knxd/knxd
DEPENDS:= pthsem libusb-1.0
DEPENDS:= +pthsem +libusb-1.0
e n d e f
e n d e f
d e f i n e P a c k a g e / k n x d / d e s c r i p t i o n
d e f i n e P a c k a g e / k n x d / d e s c r i p t i o n
@ -49,105 +48,105 @@ define Package/knxd/conffiles
/ e t c / c o n f i g / k n x d
/ e t c / c o n f i g / k n x d
e n d e f
e n d e f
d e f i n e P a c k a g e / l i b e i b c l i e n t
SECTION:= libs
CATEGORY:= Libraries
TITLE:= Library for EIB clients
DEPENDS:= +pthsem
e n d e f
d e f i n e P a c k a g e / k n x d - t o o l s / d e s c r i p t i o n
E I B K N X c l i e n t l i b r a r y
e n d e f
d e f i n e P a c k a g e / k n x d - t o o l s
d e f i n e P a c k a g e / k n x d - t o o l s
SECTION:= net
SECTION:= net
CATEGORY:= Network
CATEGORY:= Network
TITLE:= EIB KNX Utils
TITLE:= EIB KNX Utils
URL:= https://github.com/knxd/knxd
DEPENDS:= pthsem libusb-1.0
DEPENDS:= +libeibclient
e n d e f
e n d e f
d e f i n e P a c k a g e / k n x d - t o o l s / d e s c r i p t i o n
d e f i n e P a c k a g e / k n x d - t o o l s / d e s c r i p t i o n
E I B K N X T o o l s
E I B K N X T o o l s
e n d e f
e n d e f
d e f i n e B u i l d / P r e p a r e
$( call Build/Prepare/Default)
e n d e f
d e f i n e B u i l d / C o n f i g u r e
$( call Build/Configure/Default,\
--disable-ft12 \
--enable-eibnetip \
--enable-eibnetiptunnel \
--enable-eibnetipserver \
--enable-usb \
--enable-tpuart \
--enable-tpuarts \
--disable-pei16 \
--disable-pei16s \
--enable-groupcache \
--without-pth-test \
--without-libstdc )
e n d e f
CONFIGURE_ARGS += \
--disable-ft12 \
--enable-eibnetip \
--enable-eibnetiptunnel \
--enable-eibnetipserver \
--enable-usb \
--enable-tpuart \
--enable-tpuarts \
--disable-pei16 \
--disable-pei16s \
--enable-groupcache \
--without-pth-test \
--without-libstdc
TARGET_CFLAGS += \
$( FPIC) \
-fno-builtin -nodefaultlibs -lc -lm -lgcc -largp -lpthsem
d e f i n e B u i l d / I n s t a l l D e v
$( INSTALL_DIR) $( 1) /usr/include
$( CP) $( PKG_INSTALL_DIR) /usr/include/eib*.h $( 1) /usr/include/
d e f i n e B u i l d / C o m p i l e
$( MAKE) -C $( PKG_BUILD_DIR) \
CC = $( TARGET_CC) \
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 "
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libeibclient.{ a,so*} $( 1) /usr/lib/
e n d e f
e n d e f
d e f i n e P a c k a g e / k n x d / i n s t a l l
d e f i n e P a c k a g e / k n x d / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /src/server/knxd $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /src/tools/bcu/bcuaddrtab $( 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/usb/findknxusb $( 1) /usr/bin/
$( CP) $( PKG_INSTALL_DIR) /usr/bin/* $( 1) /usr/bin/
$( INSTALL_DIR) $( 1) /etc/init.d
$( INSTALL_DIR) $( 1) /etc/init.d
$( INSTALL_BIN) ./files/knxd.init $( 1) /etc/init.d/knxd
$( INSTALL_BIN) ./files/knxd.init $( 1) /etc/init.d/knxd
$( INSTALL_DIR) $( 1) /etc/config
$( INSTALL_DIR) $( 1) /etc/config
$( INSTALL_DATA) ./files/knxd.config $( 1) /etc/config/knxd
$( INSTALL_DATA) ./files/knxd.config $( 1) /etc/config/knxd
e n d e f
e n d e f
d e f i n e P a c k a g e / k n x d - t o o l s / i n s t a l l
d e f i n e P a c k a g e / l i b e i b c l i e n t / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( INSTALL_DIR) $( 1) /usr/lib
$( INSTALL_DATA) $( PKG_BUILD_DIR) /src/client/c/.libs/libeibclient.so.0.0.0 $( 1) /usr/lib/
ln -s libeibclient.so.0.0.0 $( 1) /usr/lib/libeibclient.so
ln -s libeibclient.so.0.0.0 $( 1) /usr/lib/libeibclient.so.0
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libeibclient.so* $( 1) /usr/lib/
e n d e f
d e f i n e P a c k a g e / k n x d - t o o l s / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_DIR) $( 1) /usr/bin
-rm -f $( 1) /usr/bin/knxread
-rm -f $( 1) /usr/bin/knxreadtemp
-rm -f $( 1) /usr/bin/knxwrite
-rm -f $( 1) /usr/bin/knxlog
-rm -f $( 1) /usr/bin/knxon
-rm -f $( 1) /usr/bin/knxoff
-rm -f $( 1) /usr/bin/knxif
-rm -f $( 1) /usr/bin/knxswrite
-rm -f $( 1) /usr/bin/knxbool
-rm -f $( 1) /usr/bin/knxdimup
ln -s knxtool $( 1) /usr/bin/knxread
ln -s knxtool $( 1) /usr/bin/knxreadtemp
ln -s knxtool $( 1) /usr/bin/knxwrite
ln -s knxtool $( 1) /usr/bin/knxlog
ln -s knxtool $( 1) /usr/bin/knxon
ln -s knxtool $( 1) /usr/bin/knxoff
ln -s knxtool $( 1) /usr/bin/knxif
ln -s knxtool $( 1) /usr/bin/knxswrite
ln -s knxtool $( 1) /usr/bin/knxbool
ln -s knxtool $( 1) /usr/bin/knxdimup
$( INSTALL_BIN) $( PKG_BUILD_DIR) /src/examples/.libs/knxtool $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /src/examples/.libs/busmonitor1 $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /src/examples/.libs/busmonitor2 $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /src/examples/.libs/busmonitor3 $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /src/examples/.libs/eibread-cgi $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /src/examples/.libs/eibwrite-cgi $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /src/examples/.libs/vbusmonitor1 $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /src/examples/.libs/vbusmonitor2 $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /src/examples/.libs/vbusmonitor3 $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /src/examples/.libs/groupwrite $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /src/examples/.libs/groupswrite $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /src/examples/.libs/grouplisten $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /src/examples/.libs/groupread $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /src/examples/.libs/groupresponse $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /src/examples/.libs/groupreadresponse $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /src/examples/.libs/groupsocketlisten $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /src/examples/.libs/groupsocketread $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /src/examples/.libs/groupsocketwrite $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /src/examples/.libs/groupsocketswrite $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/share/knxd/examples/bin/knxtool $( 1) /usr/bin/
ln -sf knxtool $( 1) /usr/bin/knxread
ln -sf knxtool $( 1) /usr/bin/knxreadtemp
ln -sf knxtool $( 1) /usr/bin/knxwrite
ln -sf knxtool $( 1) /usr/bin/knxlog
ln -sf knxtool $( 1) /usr/bin/knxon
ln -sf knxtool $( 1) /usr/bin/knxoff
ln -sf knxtool $( 1) /usr/bin/knxif
ln -sf knxtool $( 1) /usr/bin/knxswrite
ln -sf knxtool $( 1) /usr/bin/knxbool
ln -sf knxtool $( 1) /usr/bin/knxdimup
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/share/knxd/examples/bin/busmonitor1 $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/share/knxd/examples/bin/busmonitor2 $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/share/knxd/examples/bin/busmonitor3 $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/share/knxd/examples/bin/eibread-cgi $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/share/knxd/examples/bin/eibwrite-cgi $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/share/knxd/examples/bin/vbusmonitor1 $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/share/knxd/examples/bin/vbusmonitor2 $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/share/knxd/examples/bin/vbusmonitor3 $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/share/knxd/examples/bin/groupwrite $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/share/knxd/examples/bin/groupswrite $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/share/knxd/examples/bin/grouplisten $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/share/knxd/examples/bin/groupread $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/share/knxd/examples/bin/groupresponse $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/share/knxd/examples/bin/groupreadresponse $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/share/knxd/examples/bin/groupsocketlisten $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/share/knxd/examples/bin/groupsocketread $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/share/knxd/examples/bin/groupsocketwrite $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/share/knxd/examples/bin/groupsocketswrite $( 1) /usr/bin/
e n d e f
e n d e f
$( eval $ ( call BuildPackage ,knxd ) )
$( eval $ ( call BuildPackage ,knxd ) )
$( eval $ ( call BuildPackage ,libeibclient ) )
$( eval $ ( call BuildPackage ,knxd -tools ) )
$( eval $ ( call BuildPackage ,knxd -tools ) )