Compiling a plugin from sources

From LintouchWiki

Jump to: navigation, search

This is a guide for compiling a fresh version of a plugin from sources.

Login as root. Assuming you have installed lintouch from .deb packages, by following instructions at http://lintouch.org/static/download.html:

# echo "deb-src http://lintouch.org/debian sarge/source/" \
>>/etc/apt/sources.list
# apt-get update
# apt-get build-dep lsp-modbus
# dpkg -P lsp-modbus

This will install packages needed to build lsp-modbus from sources and will remove existing lsp-modbus plugin.

Now, we will continue further with the compilation from the snapshotted sources:

# cd /tmp
# wget
https://builder.lintouch.org/~mman/snapshots/20060127/lintouch/sources/lsp-modbus-1.8.2+20060127.tar.gz
# tar xfvz lsp-modbus-1.8.2+20060127.tar.gz
# cd lsp-modbus-1.8.2+20060127
# ./configure --prefix=/usr
# make check install

If everything goes well, you should have the new lsp-modbus plugin installed in /usr/lib/lintouch/server-plugins.

Personal tools