[collectd] how to build a debian package of a daily snapshot?

Svante Karlsson svante.karlsson at csi.se
Sun May 10 23:00:06 CEST 2015


I'm struggling to build a deb package for internal distribution on our
servers. I need to have kafka-writer plugin so I think I need to build from
a snapshot.

this is what I'm doing

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install liboping-dev libmysqlclient-dev libpq-dev
librabbitmq-dev  libvirt-bin librdkafka-dev
sudo apt-get install po-debconf dpatch iptables-dev javahelper
libcurl4-gnutls-dev libcurl4-gnutls-dev libcurl3-gnutls-dev libdbi0-dev
libesmtp-dev
sudo apt-get install libganglia1-dev libglib2.0-dev libhiredis-dev
liblvm2-dev libmemcached-dev libmodbus-dev libmnl-dev
sudo apt-get install libmysqlclient-dev libnotify-dev libopenipmi-dev
libpcap0.8-dev
sudo apt-get install libperl-dev libprotobuf-c0-dev librabbitmq-dev
librrd-dev libsensors4-dev libsnmp-dev perl
sudo apt-get install libtokyocabinet-dev libtokyotyrant-dev
libupsclient-dev libvarnish-dev libvirt-dev libyajl-dev
sudo apt-get install default-jdk protobuf-c-compiler  libow-dev libprotobuf


git clone https://github.com/collectd/pkg-debian.git
wget
http://snapshots.tokkee.org/collectd/2015-03-17/collectd-5.4.2.694.g9817e72.tar.gz
-Ocollectd-5.4.2.694.g9817e72.tar.gz
tar xvzf collectd-5.4.2.694.g9817e72.tar.gz -C pkg-debian
--strip-components=1
cd pkg-debian
dpkg-buildpackage -us -uc


I've tried to build and install
git clone https://github.com/google/protobuf.git
git clone https://github.com/protobuf-c/protobuf-c.git

but can't find dependency   libprotobuf-c-dev

right now I'm running ubuntu 14.04 but I also need to get this working on
12.04. I realize that I'm doing something wrong - could you please give me
a hint on how to produce the deb package?

thanks in advance
svante
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20150510/3fc432c6/attachment.html>


More information about the collectd mailing list