Code

Remove generated manpages in the clean target.
[pkg-collectd.git] / debian / rules
index 11f5c05efeb0e3a7ebed41eb1891a0c000c12c76..06c5436ff1893822f0b2d6a3f031cf5f7a6471eb 100755 (executable)
@@ -40,11 +40,10 @@ confflags = --host=$(DEB_HOST_GNU_TYPE) \
 # These plugins do not provide any functionality under Linux.
 confflags += --disable-apple_sensors --disable-tape
 
-# The static libraries netstat and upsclient cannot be linked into shared
-# objects on some architectures (see bugs #358637 and #419684 for more
-# details).
+# The static library netstat cannot be linked into shared objects on some
+# architectures (see bugs #358637 and #419684 for more details).
 ifneq (,$(findstring $(DEB_BUILD_ARCH),alpha amd64 hppa ia64 ppc64))
-       confflags += --disable-netlink --disable-nut
+       confflags += --disable-netlink
 endif
 
 # libvirt is only available on amd64, i386 and powerpc.
@@ -52,14 +51,8 @@ ifeq (,$(findstring $(DEB_BUILD_ARCH),amd64 i386 powerpc))
        confflags += --disable-libvirt
 endif
 
-# Force the inclusion of the ipmi plugin and manually specify its
-# dependencies to work around #474087 (broken openipmi .pc files).
-BUILD_WITH_OPENIPMI_LIBS = -lOpenIPMIpthread
-confflags += --enable-ipmi
-
 config.status: configure $(DPATCH_STAMPFN)
        dh_testdir
-       BUILD_WITH_OPENIPMI_LIBS="$(BUILD_WITH_OPENIPMI_LIBS)" \
        CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" ./configure $(confflags)
 
 build: build-stamp
@@ -80,6 +73,7 @@ clean: unpatch
        [ ! -f Makefile ] || $(MAKE) distclean
        
        rm -f debian/README.Debian.plugins
+       rm -f src/*.1 src/*.5
        
        dh_clean 
        debconf-updatepo
@@ -132,7 +126,7 @@ binary-indep: install-indep
        dh_installdocs -A -i debian/README.Debian AUTHORS README TODO
        dh_installexamples -i contrib/examples/myplugin.c \
                contrib/examples/MyPlugin.pm
-       dh_compress -i -Xexamples/myplugin.c -Xexamples/MyPlugin.pm
+       dh_compress -i -Xexamples/
        dh_fixperms -i
        dh_installdeb -i
        dh_gencontrol -i
@@ -146,6 +140,7 @@ binary-arch: build install-arch
        dh_installdocs -A -a debian/README.Debian AUTHORS README TODO
        dh_installdocs -a debian/NEWS.Debian debian/README.Debian.plugins
        dh_installexamples -a contrib/collectd2html.pl contrib/collection.cgi \
+               contrib/collection3/ \
                contrib/exec-munin.conf contrib/exec-munin.px contrib/exec-smartctl \
                contrib/exec-nagios.conf contrib/exec-nagios.px \
                contrib/SpamAssassin/ contrib/iptables/ contrib/cussh.pl \
@@ -154,7 +149,7 @@ binary-arch: build install-arch
        dh_installinit -a -- defaults 95
        dh_link -a
        dh_strip -a --dbg-package=collectd-dbg
-       dh_compress -a
+       dh_compress -a -Xexamples/
        dh_fixperms -a
        dh_installdeb -a
        dpkg-shlibdeps -Tdebian/collectd.substvars \