summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 92999cb)
raw | patch | inline | side by side (parent: 92999cb)
author | Yves Mettier <ymettier@free.fr> | |
Wed, 14 Nov 2012 14:45:07 +0000 (15:45 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Fri, 25 Jan 2013 13:26:48 +0000 (14:26 +0100) |
Signed-off-by: Florian Forster <octo@collectd.org>
bindings/Makefile.am | patch | blob | history | |
bindings/perl/uninstall_mod.pl | [new file with mode: 0644] | patch | blob |
clean.sh | patch | blob | history |
diff --git a/bindings/Makefile.am b/bindings/Makefile.am
index 3876cc2c06d3f6ae70b08243cd18343b1c3f5a6f..56fc5ed7cc6817ab86b15c23e608874065136ed9 100644 (file)
--- a/bindings/Makefile.am
+++ b/bindings/Makefile.am
endif
EXTRA_DIST = perl/Makefile.PL \
+ perl/uninstall_mod.pl \
perl/lib/Collectd.pm \
perl/lib/Collectd/Unixsock.pm \
perl/lib/Collectd/Plugins/Monitorus.pm \
# Perl 'make uninstall' does not work as well as wanted.
# So we do the work here.
uninstall-local:
- rm -f $(DESTDIR)$(mandir)/man3/Collectd::Unixsock.3pm
- rm -f $(DESTDIR)$(datarootdir)/perl5/Collectd.pm
- rm -f $(DESTDIR)$(datarootdir)/perl5/Collectd/Plugins/OpenVZ.pm
- rm -f $(DESTDIR)$(datarootdir)/perl5/Collectd/Unixsock.pm
- rm -f $(DESTDIR)$(prefix)/lib64/perl5/perllocal.pod
- rm -f $(DESTDIR)$(prefix)/lib64/perl5/auto/Collectd/.packlist
+ @PERL@ -I$(DESTDIR)$(prefix) $(srcdir)/perl/uninstall_mod.pl Collectd
clean-local:
rm -rf buildperl
buildperl/Makefile: .perl-directory-stamp buildperl/Makefile.PL \
$(top_builddir)/config.status
- cd buildperl && @PERL@ Makefile.PL INSTALL_BASE=$(prefix) @PERL_BINDINGS_OPTIONS@
+ cd buildperl && @PERL@ Makefile.PL INSTALL_BASE=$(DESTDIR)$(prefix) @PERL_BINDINGS_OPTIONS@
buildperl/Makefile.PL: .perl-directory-stamp $(top_builddir)/config.status
diff --git a/bindings/perl/uninstall_mod.pl b/bindings/perl/uninstall_mod.pl
--- /dev/null
@@ -0,0 +1,8 @@
+#! /usr/bin/perl
+
+use strict;
+use ExtUtils::Installed;
+
+my $mod = $ARGV[0] || die "Usage : $0 Module\n";
+my $inst = ExtUtils::Installed->new();
+unlink $inst->files($mod), $inst->packlist($mod)->packlist_file();
diff --git a/clean.sh b/clean.sh
index 098669da892eb7f001813f383806bd925ca86483..9defb05d5a1f93297e19e4cff350a3b31b0f70ab 100755 (executable)
--- a/clean.sh
+++ b/clean.sh
&& rm -f -r src/libcollectdclient/.libs \
&& rm -f src/libcollectdclient/*.o \
&& rm -f src/libcollectdclient/*.la \
-&& rm -f src/libcollectdclient/*.lo
+&& rm -f src/libcollectdclient/*.lo \
+&& rm -f bindings/.perl-directory-stamp \
+&& rm -f -r bindings/buildperl