summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Seitter <adk@seitter.net>2020-04-19 11:23:36 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2020-04-23 16:28:48 +0200
commit57af931c53b02cc5c308858d73489d40327fe966 (patch)
treea8dc5a864ce84bf92097d5184a73edcaf05bffb7
parent2fb25d8bd68bee7ca4d044f170485c4bdd5791b8 (diff)
new package knxd
Signed-off-by: Joerg Seitter <adk@seitter.net>
-rw-r--r--package/knxd/Makefile42
-rw-r--r--package/knxd/patches/patch-tools_version_sh10
2 files changed, 52 insertions, 0 deletions
diff --git a/package/knxd/Makefile b/package/knxd/Makefile
new file mode 100644
index 000000000..67a718b86
--- /dev/null
+++ b/package/knxd/Makefile
@@ -0,0 +1,42 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk
+
+# always use tab spaces as separator, no spaces
+PKG_NAME:= knxd
+PKG_VERSION:= v0.14
+PKG_RELEASE:= 1
+PKG_GIT:= branch
+PKG_DESCR:= KNX daemon
+PKG_SECTION:= sys/hw
+PKG_DEPENDS:= libev
+PKG_BUILDDEP:= libev cmake-host
+PKG_URL:= https://github.com/knxd/knxd
+PKG_SITES:= https://github.com/knxd/knxd.git
+
+include $(ADK_TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,KNXD,knxd,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
+
+AUTOTOOL_STYLE:= bootstrap
+
+CONFIGURE_ARGS+= --disable-systemd --disable-usb
+
+knxd-install:
+ $(INSTALL_DIR) $(IDIR_KNXD)/usr/bin
+ $(INSTALL_DIR) $(IDIR_KNXD)/usr/lib
+ $(INSTALL_DIR) $(IDIR_KNXD)/usr/share
+ $(INSTALL_BIN) $(WRKINST)/usr/bin/knxd \
+ $(IDIR_KNXD)/usr/bin
+ $(INSTALL_BIN) $(WRKINST)/usr/bin/knxtool \
+ $(IDIR_KNXD)/usr/bin
+ $(CP) $(WRKINST)/usr/lib/libeib*.so* \
+ $(IDIR_KNXD)/usr/lib
+ $(CP) $(WRKINST)/usr/libexec/knxd/* \
+ $(IDIR_KNXD)/usr/bin
+ $(CP) $(WRKINST)/usr/share/* \
+ $(IDIR_KNXD)/usr/share
+
+
+include $(ADK_TOPDIR)/mk/pkg-bottom.mk
diff --git a/package/knxd/patches/patch-tools_version_sh b/package/knxd/patches/patch-tools_version_sh
new file mode 100644
index 000000000..ff6a2f836
--- /dev/null
+++ b/package/knxd/patches/patch-tools_version_sh
@@ -0,0 +1,10 @@
+--- knxd-v0.14.orig/tools/version.sh 2020-04-18 16:44:30.000000000 +0200
++++ knxd-v0.14/tools/version.sh 2020-04-18 19:38:03.451807369 +0200
+@@ -1,5 +1,6 @@
+ #!/bin/sh
+-sed -ne '1s/.*(\(.*\)).*/\1/' -e '1s/-1$//' -e '1p' debian/changelog | tr -d "\n"
++#sed -ne '1s/.*(\(.*\)).*/\1/' -e '1s/-1$//' -e '1p' debian/changelog | tr -d "\n"
++echo "0.14"
+ test -d .git || exit
+ git=$(git rev-parse --short HEAD)
+ lgit=$(git rev-parse --short $(git rev-list -1 HEAD debian/changelog) )