Code

Added extractDS_path.dpatch to set the path to /usr/lib/collectd/utils/.
authorSebastian Harl <sh@tokkee.org>
Wed, 25 Apr 2007 14:05:17 +0000 (16:05 +0200)
committerSebastian Harl <sh@tokkee.org>
Wed, 2 May 2007 18:00:53 +0000 (18:00 +0000)
debian/control
debian/patches/00list [new file with mode: 0644]
debian/patches/extractDS_path.dpatch [new file with mode: 0755]
debian/rules

index e14ee3734ea7208b7fec2781fced63c2336b4919..423f3faa218c25031ecd183524c56cd26b24a877 100644 (file)
@@ -2,7 +2,7 @@ Source: collectd
 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
new file mode 100644 (file)
index 0000000..0d82f45
--- /dev/null
@@ -0,0 +1,2 @@
+extractDS_path.dpatch
+
diff --git a/debian/patches/extractDS_path.dpatch b/debian/patches/extractDS_path.dpatch
new file mode 100755 (executable)
index 0000000..e8395c5
--- /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'}}))
index 385a28c09bf5fafc887736922c873d5cd4e2f04c..bfe05920116795fe0aa73b5271edc254c6f3f27b 100755 (executable)
@@ -20,6 +20,8 @@ else
        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 \
@@ -32,7 +34,7 @@ ifneq (,$(findstring $(DEB_BUILD_ARCH),amd64 ia64 ppc64))
        confflags += --disable-iptables --disable-nut
 endif
 
-config.status: configure
+config.status: configure $(DPATCH_STAMPFN)
        dh_testdir
        CFLAGS="$(CFLAGS)" ./configure $(confflags)
 
@@ -45,7 +47,7 @@ build-stamp: config.status
        
        touch build-stamp
 
-clean:
+clean: unpatch
        dh_testdir
        dh_testroot
        rm -f build-stamp