[omd-commits] OMD Git: omd: disable webinjects auto install

git version control git at mathias-kettner.de
Sat Sep 6 18:11:13 CEST 2014


Module:   omd
Branch:   master
Commit:   afa07ede2fd0dc6692d0cbc8d7e7a2ac9157a6d4
URL:      http://omdistro.org/projects/omd/repository/revisions/afa07ede2fd0dc6692d0cbc8d7e7a2ac9157a6d4

Author:   Sven Nierlein <Sven.Nierlein at consol.de>
Date:     Thu Sep  4 11:16:00 2014 +0200
Commiter: Sven Nierlein <Sven.Nierlein at consol.de>
Date:     Sat Sep  6 14:49:07 2014 +0200

disable webinjects auto install

Signed-off-by: Sven Nierlein <Sven.Nierlein at consol.de>

---

 packages/check_webinject/Makefile                           |    4 ++++
 packages/check_webinject/patches/0001-no_auto_install.patch |   10 ++++++++++
 2 files changed, 14 insertions(+)

diff --git a/packages/check_webinject/Makefile b/packages/check_webinject/Makefile
index 26d4413..4f6502c 100644
--- a/packages/check_webinject/Makefile
+++ b/packages/check_webinject/Makefile
@@ -8,6 +8,10 @@ DIR      = Webinject-$(VERSION)
 
 build:
 	tar xzf $(DIR).tar.gz
+	for p in patches/*.patch ; do \
+	    echo "applying $$p..." ; \
+	    ( cd $(DIR) ; patch -p1 ) < $$p || exit 1; \
+	done
 	export PERL5LIB=$(P5TMPDIST)/dest/lib/perl5; \
 	    cd $(DIR) && echo "" | $(PERL) Makefile.PL
 	cd $(DIR) && $(MAKE) check_webinject
diff --git a/packages/check_webinject/patches/0001-no_auto_install.patch b/packages/check_webinject/patches/0001-no_auto_install.patch
new file mode 100644
index 0000000..a0907db
--- /dev/null
+++ b/packages/check_webinject/patches/0001-no_auto_install.patch
@@ -0,0 +1,10 @@
+--- a/Makefile.PL	2014-09-04 11:14:07.392948558 +0200
++++ b/Makefile.PL	2014-09-04 11:14:20.100966367 +0200
+@@ -24,7 +24,6 @@
+ 
+ install_script 'bin/webinject.pl';
+ 
+-auto_install;
+ WriteAll;
+ 
+ open(my $fh, '>>', 'Makefile') or die('cannot write to Makefile');



More information about the omd-commits mailing list