2014-12-31 09:18:51 +00:00
|
|
|
#
|
2016-02-11 18:00:37 +00:00
|
|
|
# Copyright (C) 2008-2016 OpenWrt.org
|
2014-12-31 09:18:51 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=linknx
|
2020-03-08 13:57:47 +00:00
|
|
|
PKG_VERSION:=0.0.1.38
|
2020-08-10 20:40:49 +00:00
|
|
|
PKG_RELEASE:=2
|
2014-12-31 09:18:51 +00:00
|
|
|
|
2018-08-01 01:50:32 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-${PKG_VERSION}.tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/linknx/linknx/tar.gz/$(PKG_VERSION)?
|
2020-03-08 13:57:47 +00:00
|
|
|
PKG_HASH:=00c53776c2e871295459ede922402d8ad0208367d2364781fdb92ddafad94d3d
|
2016-02-11 18:00:37 +00:00
|
|
|
|
2019-06-24 20:46:05 +00:00
|
|
|
PKG_MAINTAINER:=Othmar Truniger <github@truniger.ch>
|
|
|
|
PKG_LICENSE:=GPL-2.0-or-later
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
2014-12-31 09:18:51 +00:00
|
|
|
|
2019-06-24 20:46:05 +00:00
|
|
|
PKG_BUILD_DEPENDS:=USE_UCLIBC:argp-standalone USE_MUSL:argp-standalone
|
2016-02-11 18:00:37 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
|
2019-06-24 20:46:05 +00:00
|
|
|
include $(INCLUDE_DIR)/uclibc++.mk
|
2014-12-31 09:18:51 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2019-06-24 20:46:05 +00:00
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
2014-12-31 09:18:51 +00:00
|
|
|
|
|
|
|
define Package/linknx
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=KNX home automation platform
|
2018-08-01 01:50:32 +00:00
|
|
|
URL:=https://github.com/linknx/linknx
|
2019-06-24 20:46:05 +00:00
|
|
|
DEPENDS:=+pthsem +lua +luac +libcurl +libesmtp $(CXX_DEPENDS) $(ICONV_DEPENDS)
|
2014-12-31 09:18:51 +00:00
|
|
|
endef
|
|
|
|
|
2015-03-17 19:41:51 +00:00
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--verbose \
|
|
|
|
--without-pth-test \
|
|
|
|
--without-log4cpp \
|
|
|
|
--with-lua \
|
|
|
|
--with-libcurl \
|
|
|
|
--without-mysql
|
2014-12-31 09:18:51 +00:00
|
|
|
|
|
|
|
define Package/linknx/install
|
2015-01-04 21:13:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/linknx $(1)/usr/bin/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
2015-01-07 20:41:17 +00:00
|
|
|
$(INSTALL_BIN) ./files/linknx.init $(1)/etc/init.d/linknx
|
2015-01-04 21:13:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
|
|
$(INSTALL_DATA) ./files/linknx.config $(1)/etc/config/linknx
|
|
|
|
$(INSTALL_DATA) ./files/linknx.xml.dist $(1)/etc/linknx.xml.dist
|
2015-01-07 20:41:17 +00:00
|
|
|
$(INSTALL_DIR) $(1)/tmp/linknx/persist
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/linknx/conffiles
|
|
|
|
/etc/config/linknx
|
|
|
|
/etc/linknx.xml.dist
|
2014-12-31 09:18:51 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,linknx))
|