Code

rules: Fix installation paths used for Perl bindings.
authorSebastian Harl <sh@teamix.net>
Tue, 20 Nov 2012 12:47:22 +0000 (13:47 +0100)
committerSebastian Harl <sh@teamix.net>
Tue, 20 Nov 2012 12:47:22 +0000 (13:47 +0100)
Upstream now passes INSTALL_BASE rather than PREFIX to Makefile.PL which
resulted in the bindings being installed to different locations than before.

debian/changelog
debian/rules

index 10c4a5a0444236b2f2c05b0906032b9176ebc496..446f53aaeac6cc839279fa8cc72c45b93770250e 100644 (file)
@@ -10,6 +10,10 @@ collectd (5.2.0-1) UNRELEASED; urgency=low
   * debian/patches:
     - Removed migrate-4-5-df.dpatch; merged upstream.
     - Removed rtnl_dump_filter.dpatch; merged upstream.
+  * debian/rules:
+    - Fix installation paths used for Perl bindings. Upstream now passes
+      INSTALL_BASE rather than PREFIX to Makefile.PL which resulted in the
+      bindings being installed to different locations than before.
 
  -- Sebastian Harl <tokkee@debian.org>  Tue, 20 Nov 2012 11:35:22 +0100
 
index 40cc84b3056ea3a840f5a6d2f1a22fdc511e3b8c..af70f20dc99c346a4e4cc896643194aa948b98b2 100755 (executable)
@@ -220,6 +220,14 @@ install-arch: build
        rm -f debian/tmp/usr/lib/libcollectdclient.la
        rm -f debian/tmp/etc/collectd.conf
        
+       # this was broken by passing INSTALL_BASE rather than PREFIX to
+       # Makefile.PL
+       install -d -m 755 debian/tmp/usr/share/man/man3
+       mv debian/tmp/usr/man/man3/Collectd::Unixsock.3pm \
+               debian/tmp/usr/share/man/man3/
+       install -d -m 755 debian/tmp/usr/share/
+       mv debian/tmp/usr/lib/perl5 debian/tmp/usr/share/
+       
        dh_install -a --sourcedir=$(CURDIR)/debian/tmp --fail-missing
        
        perl ./debian/bin/gen_plugin_deps.pl