aboutsummaryrefslogtreecommitdiffstats
path: root/community/munin/munin-config.patch
diff options
context:
space:
mode:
authorStefan Wagner <stw@bit-strickerei.de>2018-08-06 16:35:01 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2018-08-07 07:20:55 +0000
commit3432c4c59f9a28b563e708bbec2131790fa9a772 (patch)
treeeb1714d3d2f2ef10f7d8a391875e22eb432aeba3 /community/munin/munin-config.patch
parent3b174253bedf1773bce1ee07dcabec0f074250c0 (diff)
community/munin: upgrade to 2.0.39
Diffstat (limited to 'community/munin/munin-config.patch')
-rw-r--r--community/munin/munin-config.patch63
1 files changed, 8 insertions, 55 deletions
diff --git a/community/munin/munin-config.patch b/community/munin/munin-config.patch
index cae8ec3c134..d4150fc74c7 100644
--- a/community/munin/munin-config.patch
+++ b/community/munin/munin-config.patch
@@ -1,6 +1,6 @@
-diff -ur munin-2.0.25.orig/Makefile.config munin-2.0.25/Makefile.config
---- munin-2.0.25.orig/Makefile.config 2014-11-24 22:46:24.000000000 +0100
-+++ munin-2.0.25/Makefile.config 2016-04-14 00:32:53.547838027 +0200
+diff -ur a/Makefile.config b/Makefile.config
+--- a/Makefile.config 2018-08-06 16:23:55.119755310 +0200
++++ b/Makefile.config 2018-08-06 16:26:23.252875870 +0200
@@ -17,35 +17,35 @@
#
# the base of the Munin installation.
@@ -48,7 +48,7 @@ diff -ur munin-2.0.25.orig/Makefile.config munin-2.0.25/Makefile.config
# Client only - Where the spool files are written. Must be writable by
# group "munin", and should be preserved between reboots
-@@ -56,17 +56,17 @@
+@@ -56,14 +56,14 @@
PLUGSTATE = $(DBDIRNODE)/plugin-state
# Where Munin should place its logs.
@@ -65,11 +65,7 @@ diff -ur munin-2.0.25.orig/Makefile.config munin-2.0.25/Makefile.config
+PERL := /usr/bin/perl
# The python interpreter to use (used by some plugins)
--PYTHON := /usr/bin/env python
-+PYTHON := /usr/bin/env python2
-
- # The ruby interpreter to use (used by some plugins)
- RUBY := /usr/bin/env ruby
+ PYTHON := /usr/bin/env python3
@@ -89,13 +89,13 @@
# On Linux /bin/sh, SunOS/Solaris /usr/xpg4/bin/sh or /bin/ksh
# In general: bash or ksh will work
@@ -81,51 +77,8 @@ diff -ur munin-2.0.25.orig/Makefile.config munin-2.0.25/Makefile.config
BASH := /bin/bash
# Server only - Where to install the perl libraries
--PERLSITELIB := $(shell $(PERL) -V:sitelib | cut -d"'" -f2)
-+PERLSITELIB := $(shell $(PERL) -V:vendorlib | cut -d"'" -f2)
- PERLLIB = $(DESTDIR)$(PERLSITELIB)
+-PERLLIB = $(DESTDIR)$(shell $(PERL) -V:sitelib | cut -d"'" -f2)
++PERLLIB = $(DESTDIR)$(shell $(PERL) -V:vendorlib | cut -d"'" -f2)
# Client only - Install plugins for this architecture
-@@ -106,7 +106,7 @@
-
- # How to figure out the hostname. (Only used in default configuration
- # files)
--HOSTNAME := $(shell hostname)
-+HOSTNAME := localhost
-
- # What is the safest way to create a tempfile.
- # Default is to figure it out by testing various methods.
-@@ -129,9 +129,9 @@
- # Which command to use to check if the USER and GROUP to run Munin as, exists.
- # These will work on most modern OSes:
- #
--GETENT := $(shell which getent || which true 2>/dev/null)
--CHECKUSER := $(shell $(GETENT) passwd $(USER) >/dev/null 2>/dev/null || (echo "echo User $(USER) nonexistent. Create the user and retry; exit 2"))
--CHECKGROUP := $(shell $(GETENT) group $(GROUP) >/dev/null 2>/dev/null || (echo "echo Group $(GROUP) nonexistent. Create the group and retry; exit 2"))
-+GETENT := /bin/true
-+CHECKUSER := /bin/true
-+CHECKGROUP := /bin/true
-
- # For OSX, comment out the previous two lines and comment in these
- #
-@@ -153,9 +153,9 @@
- #CHECKUSER := $(shell id $(USER) >/dev/null 2>/dev/null || (echo "echo User $(USER) nonexistent. Create the user and retry; exit 2"))
- #CHECKGROUP := $(shell grep ^$(GROUP): /etc/group >/dev/null 2>/dev/null || (echo "echo Group $(GROUP) nonexistent. Create the group and retry; exit 2"))
-
--CHOWN := chown
-+CHOWN := true
- CHMOD := chmod
--CHGRP := chgrp
-+CHGRP := true
-
- # Java compiler stuff - only needed on the buildhost
- JC := javac
-@@ -166,7 +166,7 @@
- # Note that we defer JCVALID evaluation to runtime,
- # since $(JC) can be redefined later in a specific Makefile.config
- # The core Makefile.config is then used as a Makefile.default
--JCVALID = $(shell $(JC) -version >/dev/null 2>/dev/null && echo "yes")
-+JCVALID = no
-
- # Check whether setruid functionality can be used
- HASSETR := $(shell perl -e 'use Config; my @vars=("d_setruid", "d_setreuid", "d_setresuid"); foreach my $$var (@vars) { if ($$Config{$$var} eq "define") { print "1\n"; exit 0; } } print "0\n"; exit 0;' )
+ # the LANG=C makes tr work as expected, not regarding any locale it