summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cfdecce)
raw | patch | inline | side by side (parent: cfdecce)
author | Sebastian Harl <sh@tokkee.org> | |
Wed, 25 Apr 2007 14:05:17 +0000 (16:05 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Wed, 2 May 2007 18:00:53 +0000 (18:00 +0000) |
debian/control | patch | blob | history | |
debian/patches/00list | [new file with mode: 0644] | patch | blob |
debian/patches/extractDS_path.dpatch | [new file with mode: 0755] | patch | blob |
debian/rules | patch | blob | history |
diff --git a/debian/control b/debian/control
index e14ee3734ea7208b7fec2781fced63c2336b4919..423f3faa218c25031ecd183524c56cd26b24a877 100644 (file)
--- a/debian/control
+++ b/debian/control
Section: utils
Priority: optional
Maintainer: Sebastian Harl <sh@tokkee.org>
-Build-Depends: debhelper (>= 5), autotools-dev, libcurl3-gnutls-dev, libmysqlclient15-dev | libmysqlclient14-dev, librrd2-dev | librrd0-dev, libsensors-dev, liboping-dev (>= 0.3.3), libpcap-dev, iptables-dev [!amd64 !ia64 !ppc64], nut-dev [!amd64 !ia64 !ppc64], libperl-dev
+Build-Depends: debhelper (>= 5), dpatch, autotools-dev, libcurl3-gnutls-dev, libmysqlclient15-dev | libmysqlclient14-dev, librrd2-dev | librrd0-dev, libsensors-dev, liboping-dev (>= 0.3.3), libpcap-dev, iptables-dev [!amd64 !ia64 !ppc64], nut-dev [!amd64 !ia64 !ppc64], libperl-dev
Build-Conflicts: libpthread-dev
Standards-Version: 3.7.2
diff --git a/debian/patches/00list b/debian/patches/00list
--- /dev/null
+++ b/debian/patches/00list
@@ -0,0 +1,2 @@
+extractDS_path.dpatch
+
diff --git a/debian/patches/extractDS_path.dpatch b/debian/patches/extractDS_path.dpatch
--- /dev/null
@@ -0,0 +1,19 @@
+#!/bin/sh /usr/share/dpatch/dpatch-run
+## extractDS_path.dpatch by Sebastian Harl <sh@tokkee.org>
+##
+## DP: Set the path of extractDS.px to /usr/lib/collectd/utils/.
+
+@DPATCH@
+
+diff a/contrib/migrate-3-4.px b/contrib/migrate-3-4.px
+--- a/contrib/migrate-3-4.px
++++ b/contrib/migrate-3-4.px
+@@ -166,7 +166,7 @@ for (@Files)
+ my $src_ds = $src_dses->[$i];
+ $dest->{'type_instance'} = $type_instances->[$i];
+ $dest_filename = get_filename ($dest);
+- print "./extractDS.px -i '$InDir/$orig_filename' -s '$src_ds' -o '$OutDir/$dest_filename' -d '$dst_ds'\n";
++ print "/usr/lib/collectd/utils/extractDS.px -i '$InDir/$orig_filename' -s '$src_ds' -o '$OutDir/$dest_filename' -d '$dst_ds'\n";
+ }
+ }
+ elsif (exists ($TypeRename{$orig->{'type'}}))
diff --git a/debian/rules b/debian/rules
index 385a28c09bf5fafc887736922c873d5cd4e2f04c..bfe05920116795fe0aa73b5271edc254c6f3f27b 100755 (executable)
--- a/debian/rules
+++ b/debian/rules
CFLAGS += -O2
endif
+include /usr/share/dpatch/dpatch.make
+
confflags = --host=$(DEB_HOST_GNU_TYPE) \
--build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr \
--mandir=\$${prefix}/share/man \
confflags += --disable-iptables --disable-nut
endif
-config.status: configure
+config.status: configure $(DPATCH_STAMPFN)
dh_testdir
CFLAGS="$(CFLAGS)" ./configure $(confflags)
touch build-stamp
-clean:
+clean: unpatch
dh_testdir
dh_testroot
rm -f build-stamp