WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: knxd package  (Read 2495 times)

Offline schlaubi666

  • Newbie
  • *
  • Posts: 5
knxd package
« on: August 03, 2016, 02:01:30 PM »
Hi,

i tryed to compile knxd for tcl8b4, but without success ( https://github.com/knxd/knxd)

has someone tryed it , and has an working package for me ?



Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: knxd package
« Reply #1 on: August 03, 2016, 02:13:20 PM »
For which architecture and TC version?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline schlaubi666

  • Newbie
  • *
  • Posts: 5
Re: knxd package
« Reply #2 on: August 03, 2016, 03:03:28 PM »
pi 2b -> arm6
tcl 8 beta4

Offline schlaubi666

  • Newbie
  • *
  • Posts: 5
Re: knxd package
« Reply #3 on: August 04, 2016, 04:07:48 PM »
i managed to build it, start it, but i have problem with creating an package, because i had to compile

pthsem-2.0.8 and configured to /usr/local ( default) &
knxd and configured to /usr/local ( default)

how to find all the additional files and make an extention of it ?


Dirk

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: knxd package
« Reply #4 on: August 05, 2016, 04:45:12 AM »
Code: [Select]
$ touch mymarker
$ sudo make install
$ sudo find / -not -type 'd' -cnewer mymarker | grep -v "\/proc\/" | grep -v "^\/sys\/" | tee files
$ vi files [edit files that do not belong]
$ sudo tar -T files --numeric-owner -zcvf extension.tar.gz
$ mkdir /tmp/pkg
$ cp extension.tar.gz /tmp/pkg
$ cd /tmp/pkg
$ sudo tar xf extension.tar.gz
$ rm extension.tar.gz
$ cd /tmp
$ sudo mksquashfs pkg/ extension.tcz

Offline schlaubi666

  • Newbie
  • *
  • Posts: 5
Re: knxd package
« Reply #5 on: August 05, 2016, 02:43:03 PM »
worked fine, thanks for the howto ....

I added the deamon to /opt/bootlocal.sh, as last line.

But this did not work( is the extention already avail then ?)

Is there another way to autostart an deamon of an extention ?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11695
Re: knxd package
« Reply #6 on: August 05, 2016, 03:03:14 PM »
Hi schlaubi666
Does your extension depend on the network being up and running? If so, you might want to wait for the network, something like:
Code: [Select]
SEC=60
while [ $SEC -gt 0 ] ; do
   ifconfig | grep -q "Bcast" && break || sleep 1
   echo -ne "Waiting for IP $((SEC--))  \r"     
done                                       
echo
Place your  knxd   command here.

Offline schlaubi666

  • Newbie
  • *
  • Posts: 5
Re: knxd package
« Reply #7 on: August 06, 2016, 04:01:22 AM »
thats the reason !!!!


thanks