File: install_rrd.sh

package info (click to toggle)
munin 2.0.25-1+deb8u3~bpo70+1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 6,184 kB
  • sloc: perl: 11,818; sh: 3,545; java: 1,880; makefile: 767; python: 272
file content (37 lines) | stat: -rw-r--r-- 658 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#! /bin/sh

# Be pedantic
set -x
set -e

# We want to optimize for *compile time*
export CFLAGS="-O0 -pipe"

# install deps
sudo apt-get install libpango1.0-dev libxml2-dev

# Download a fixed version
wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.8.tar.gz
tar -xzvf rrdtool-1.4.8.tar.gz
cd rrdtool-1.4.8

./configure \
	--disable-dependency-tracking \
	--disable-rrdcgi \
	--disable-mmap \
	--disable-pthread \
	--enable-perl \
	--enable-perl-site-install \
	--disable-ruby \
	--disable-lua \
	--disable-tcl \
	--disable-python \
	--disable-libdbi \
	--disable-libwrap \
	# Leave at the end

make
sudo make install

# Test the install
perl -MRRDs -e ''