[Pkg-nagios-changes] [pkg-nagios-plugins-contrib] 03/03: Add Makefile.

Bernd Zeimetz bernd at bzed.de
Wed Jul 22 08:35:09 UTC 2015


This is an automated email from the git hooks/post-receive script.

bzed pushed a commit to branch master
in repository pkg-nagios-plugins-contrib.

commit 2655fe23c5a99bab720c69cc8b8481046b452885
Author: Bernd Zeimetz <bernd at bzed.de>
Date:   Fri Apr 24 22:29:54 2015 +0200

    Add Makefile.
    
    First step to get rid of dh crazyness.
---
 Makefile | 27 +++++++++++++++++++++++----
 1 file changed, 23 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index 842c07b..cb83ff2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,28 @@
-SUBDIRS := $(strip $(shell find . -mindepth 2 -maxdepth 2 -name Makefile -printf '%h '))
+PLUGINS := $(strip $(shell find . -mindepth 2 -maxdepth 2 -name Makefile -printf '%h '))
+
+ifeq ($(wildcard '/etc/debian_version'),'/etc/debian_version')
+HOST_ARCH := $(strip $(shell dpkg-architecture -q DEB_HOST_ARCH))
+else
+ifeq ($(wildcard '/usr/bin/rpm'),'/usr/bin/rpm')
+HOST_ARCH := $(strip $(shell rpm --eval '%{_arch}'))
+endif
+endif
+
+ifeq ($(HOST_ARCH),$(filter $(DEB_HOST_ARCH), hurd-i386))
+	PLUGINS := $(filter-out check_memcached check_varnish,$(PLUGINS))
+endif
+ifeq ($(HOST_ARCH),$(filter $(DEB_HOST_ARCH), arm64))
+	PLUGINS := $(filter-out check_memcached,$(PLUGINS))
+endif
+ifeq ($(HOST_ARCH),$(filter $(DEB_HOST_ARCH), m68k))
+	PLUGINS := $(filter-out check_varnish,$(PLUGINS))
+endif
+
 
 default: all
 
-$(SUBDIRS)::
-	    $(MAKE) -C $@ $(MAKECMDGOALS)
+$(PLUGINS)::
+	$(MAKE) -C $@ $(MAKECMDGOALS)
 
-all clean install : $(SUBDIRS)
+all clean install : $(PLUGINS)
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-nagios-plugins-contrib.git



More information about the Pkg-nagios-changes mailing list