~ubuntu-branches/ubuntu/oneiric/collectd/oneiric

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Morten Kjeldgaard
  • Date: 2008-11-18 15:54:20 UTC
  • mfrom: (1.1.5 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20081118155420-sc2mxv2pebafkmon
Tags: 4.4.2-2ubuntu1
* Merge from Debian unstable (LP: #298828). Remaining Ubuntu changes:
* Add ubuntu_in6-glibc28.dpatch patch, fix FTBFS.
* Add ubuntu_hardening.dpatch patch, fix FTBFS.
* Add ubuntu_perl.c.dpatch, fix FTBFS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
# These plugins do not provide any functionality under Linux.
41
41
confflags += --disable-apple_sensors --disable-tape
42
42
 
43
 
# The static libraries netstat and upsclient cannot be linked into shared
44
 
# objects on some architectures (see bugs #358637 and #419684 for more
45
 
# details).
 
43
# The static library netstat cannot be linked into shared objects on some
 
44
# architectures (see bugs #358637 and #419684 for more details).
46
45
ifneq (,$(findstring $(DEB_BUILD_ARCH),alpha amd64 hppa ia64 ppc64))
47
 
        confflags += --disable-netlink --disable-nut
 
46
        confflags += --disable-netlink
48
47
endif
49
48
 
50
49
# libvirt is only available on amd64, i386 and powerpc.
52
51
        confflags += --disable-libvirt
53
52
endif
54
53
 
55
 
# Force the inclusion of the ipmi plugin and manually specify its
56
 
# dependencies to work around #474087 (broken openipmi .pc files).
57
 
BUILD_WITH_OPENIPMI_LIBS = -lOpenIPMIpthread
58
 
confflags += --enable-ipmi
59
 
 
60
54
config.status: configure $(DPATCH_STAMPFN)
61
55
        dh_testdir
62
 
        BUILD_WITH_OPENIPMI_LIBS="$(BUILD_WITH_OPENIPMI_LIBS)" \
63
56
        CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" ./configure $(confflags)
64
57
 
65
58
build: build-stamp
132
125
        dh_installdocs -A -i debian/README.Debian AUTHORS README TODO
133
126
        dh_installexamples -i contrib/examples/myplugin.c \
134
127
                contrib/examples/MyPlugin.pm
135
 
        dh_compress -i -Xexamples/myplugin.c -Xexamples/MyPlugin.pm
 
128
        dh_compress -i -Xexamples/
136
129
        dh_fixperms -i
137
130
        dh_installdeb -i
138
131
        dh_gencontrol -i
146
139
        dh_installdocs -A -a debian/README.Debian AUTHORS README TODO
147
140
        dh_installdocs -a debian/NEWS.Debian debian/README.Debian.plugins
148
141
        dh_installexamples -a contrib/collectd2html.pl contrib/collection.cgi \
 
142
                contrib/collection3/ \
149
143
                contrib/exec-munin.conf contrib/exec-munin.px contrib/exec-smartctl \
150
144
                contrib/exec-nagios.conf contrib/exec-nagios.px \
151
145
                contrib/SpamAssassin/ contrib/iptables/ contrib/cussh.pl \
154
148
        dh_installinit -a -- defaults 95
155
149
        dh_link -a
156
150
        dh_strip -a --dbg-package=collectd-dbg
157
 
        dh_compress -a
 
151
        dh_compress -a -Xexamples/
158
152
        dh_fixperms -a
159
153
        dh_installdeb -a
160
154
        dpkg-shlibdeps -Tdebian/collectd.substvars \