gitaeuber / mbrtu

modbus master tool for serial modbus communication (modbus RTU)
GNU General Public License v2.0
4 stars 4 forks source link

Debian packaging #4

Closed Zugschlus closed 5 years ago

Zugschlus commented 5 years ago

Hi,

this PR adds a debian/ subdirectory and makes minor patches to the sources to allow building a reasonably clean Debian package. This has been verified to work on Debian buster with the armhf architecture (on a Banana PI).

I had to make an inline function a non-inline function in mbrtu.c since this caused a linker error message I was not able to fix (I only have very little clue with C on Linux). Maybe there is a better fix. See https://www.photovoltaikforum.com/thread/133303-mbrtu-auf-volkszaehler-raspi-installieren/?pageNo=1 for reference.

Greetings Marc