2 # Copyright (C) 2008-2016 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}.
tar.gz
15 PKG_SOURCE_URL
:=https
://codeload.github.com
/linknx
/linknx
/tar.gz
/$(PKG_VERSION
)?
16 PKG_HASH
:=00c53776c2e871295459ede922402d8ad0208367d2364781fdb92ddafad94d3d
18 PKG_MAINTAINER
:=Othmar Truniger
<github@truniger.ch
>
19 PKG_LICENSE
:=GPL-2.0
-or-later
20 PKG_LICENSE_FILES
:=LICENSE
22 PKG_BUILD_DEPENDS
:=USE_UCLIBC
:argp-standalone USE_MUSL
:argp-standalone
25 include $(INCLUDE_DIR
)/package.mk
26 include $(INCLUDE_DIR
)/nls.mk
31 TITLE
:=KNX home automation platform
32 URL
:=https
://github.com
/linknx
/linknx
33 DEPENDS
:=+pthsem
+lua
+luac
+libcurl
+libesmtp
+libstdcpp
$(ICONV_DEPENDS
)
44 define Package
/linknx
/install
45 $(INSTALL_DIR
) $(1)/usr
/bin
46 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/linknx
$(1)/usr
/bin
/
47 $(INSTALL_DIR
) $(1)/etc
/init.d
48 $(INSTALL_BIN
) .
/files
/linknx.init
$(1)/etc
/init.d
/linknx
49 $(INSTALL_DIR
) $(1)/etc
/config
50 $(INSTALL_DATA
) .
/files
/linknx.config
$(1)/etc
/config
/linknx
51 $(INSTALL_DATA
) .
/files
/linknx.xml.
dist $(1)/etc
/linknx.xml.
dist
52 $(INSTALL_DIR
) $(1)/tmp
/linknx
/persist
55 define Package
/linknx
/conffiles
60 $(eval
$(call BuildPackage
,linknx
))