X-Git-Url: https://git.tld-linux.org/?p=packages%2Fmunin.git;a=blobdiff_plain;f=munin-Makefile.patch;h=9c09ede5716fe673193d4ac2e4eede4a6f295577;hp=e808657cd6b8bae5642f20d54f223a1dfea21d7a;hb=311ac2dde740f49b86d1b3232194529739695dad;hpb=77c4bfbe37910bcd417dafcc6a671698f6cee6b3 diff --git a/munin-Makefile.patch b/munin-Makefile.patch index e808657..9c09ede 100644 --- a/munin-Makefile.patch +++ b/munin-Makefile.patch @@ -1,6 +1,7 @@ ---- munin-1.4.0/Makefile~ 2009-11-27 12:17:18.000000000 +0100 -+++ munin-1.4.0/Makefile 2009-11-30 14:33:15.977700738 +0100 -@@ -77,6 +77,7 @@ +diff -urNpa munin-2.0.42.orig/Makefile munin-2.0.42/Makefile +--- munin-2.0.42.orig/Makefile 2018-09-21 02:11:11.000000000 +0000 ++++ munin-2.0.42/Makefile 2018-10-11 14:59:08.887033000 +0000 +@@ -106,6 +106,7 @@ install-master-prime: $(INFILES_MASTER) mkdir -p $(CONFDIR)/munin-conf.d mkdir -p $(LIBDIR) mkdir -p $(BINDIR) @@ -8,7 +9,7 @@ mkdir -p $(PERLLIB) mkdir -p $(PERLLIB)/Munin/Master mkdir -p $(HTMLDIR) -@@ -99,8 +100,8 @@ +@@ -137,8 +138,8 @@ install-master-prime: $(INFILES_MASTER) test -f $(HTMLDIR)/.htaccess || $(INSTALL) -m 0644 build/master/www/munin-htaccess $(HTMLDIR)/.htaccess test -f "$(CONFDIR)/munin.conf" || $(INSTALL) -m 0644 build/master/munin.conf $(CONFDIR)/ @@ -17,10 +18,11 @@ + $(INSTALL) -m 0755 build/master/_bin/munin-cron $(SBINDIR)/ + $(INSTALL) -m 0755 build/master/_bin/munin-check $(LIBDIR)/ $(INSTALL) -m 0755 build/master/_bin/munin-update $(LIBDIR)/ - $(INSTALL) -m 0755 build/master/_bin/munin-graph $(LIBDIR)/ $(INSTALL) -m 0755 build/master/_bin/munin-html $(LIBDIR)/ ---- munin-1.4.0/Makefile.config~ 2009-11-27 12:17:18.000000000 +0100 -+++ munin-1.4.0/Makefile.config 2009-11-30 14:32:28.827763277 +0100 + $(INSTALL) -m 0755 build/master/_bin/munin-graph $(LIBDIR)/ +diff -urNpa munin-2.0.42.orig/Makefile.config munin-2.0.42/Makefile.config +--- munin-2.0.42.orig/Makefile.config 2018-09-21 02:11:11.000000000 +0000 ++++ munin-2.0.42/Makefile.config 2018-10-11 14:59:55.327033000 +0000 @@ -17,10 +17,10 @@ # # the base of the Munin installation. @@ -34,7 +36,7 @@ # Server only - where to put munin-cron BINDIR = $(PREFIX)/bin -@@ -32,31 +32,31 @@ +@@ -32,31 +32,31 @@ SBINDIR = $(PREFIX)/sbin DOCDIR = $(PREFIX)/doc # Where to put man pages @@ -75,16 +77,16 @@ # Location of PID files and other statefiles. On the server, must be # writable by the user "munin". -@@ -98,7 +98,7 @@ +@@ -95,7 +95,7 @@ GOODSH := $(shell PATH=`getconf PATH 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 @@ + # the LANG=C makes tr work as expected, not regarding any locale it +@@ -105,7 +105,7 @@ OSTYPE := $(shell uname | LANG=C tr # How to figure out the hostname. (Only used in default configuration # files) @@ -93,7 +95,7 @@ # What is the safest way to create a tempfile. # Default is to figure it out by testing various methods. -@@ -126,9 +126,9 @@ +@@ -128,9 +128,9 @@ CGIUSER := nobody # Which command to use to check if the USER and GROUP to run Munin as, exists. # These will work on most modern OSes: # @@ -106,9 +108,9 @@ # For OSX, comment out the previous two lines and comment in these # -@@ -146,9 +146,9 @@ - #CHECKUSER := $(shell pwget -n $(USER) >/dev/null 2>/dev/null || (echo "echo User $(USER) nonexistent. Create the user and retry; exit 2")) - #CHECKGROUP := $(shell grget -n $(GROUP) >/dev/null 2>/dev/null || (echo "echo Group $(GROUP) nonexistent. Create the group and retry; exit 2")) +@@ -152,9 +152,9 @@ CHECKGROUP := $(shell $(GETENT) group $( + #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 -CHMOD := chmod