Last active
December 23, 2015 02:59
-
-
Save chrisboulton/6570939 to your computer and use it in GitHub Desktop.
collects-fpm-build.sh (you probably don't want to use this yet, I'm still testing it)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
apt-get -y install libyajl-dev libxml2-dev libvirt-dev libvarnish-dev \ | |
libupsclient1-dev libtokyotyrant-dev libtokyocabinet-dev libsnmp-dev \ | |
libsensors4-dev librrd-dev librabbitmq-dev libprotobuf-c0-dev libpq-dev \ | |
libperl-dev libpcap-dev libopenipmi-dev liboping-dev libnotify-dev \ | |
libmysqlclient-dev libmodbus-dev libmemcached-dev libesmtp-dev libdbi0-dev \ | |
libcurl4-gnutls-dev javahelper iptables-dev iproute-dev protobuf-c-compiler \ | |
python-dev openjdk-6-jdk liblvm2-dev libmnl-dev | |
./configure \ | |
--with-java=/usr/lib/jvm/java-6-openjdk-amd64/ \ | |
--prefix=/usr --mandir=/usr/share/man \ | |
--localstatedir=/var \ | |
--sysconfdir=/etc \ | |
--with-perl-bindings="INSTALLDIRS=vendor" \ | |
CPPFLAGS="-UCONFIGFILE -DCONFIGFILE='\"/etc/collectd/collectd.conf\"'" | |
export DESTDIR=/tmp/collectd-build | |
make install | |
mkdir $DESTDIR/etc/collectd | |
mv $DESTDIR/etc/collectd.conf $DESTDIR/etc/collectd/ | |
fpm -s dir -t deb -n collectd -v 4.5.0 -C $DESTDIR \ | |
-p collectd-VERSION_ARCH.deb --replaces collectd-core \ | |
--conflicts collectd-core --config-files /etc/collectd/collectd.conf \ | |
-m 'Chris Boulton <chris@chrisboulton.com>' --url http://collectd.org \ | |
--deb-init collectd.init --deb-default collectd.default --deb-user root \ | |
--deb-group root etc var usr |
Author
chrisboulton
commented
Sep 15, 2013
- Meta info: license, vendor, description
- Post-inst and pre-uninst scripts?
- Dependencies? (static linking most libraries, so shouldn't need the kitchen sink)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment