[arch-commits] Commit in munin/trunk (Makefile.config PKGBUILD)

2020-05-29 Thread Antonio Rojas via arch-commits
Date: Friday, May 29, 2020 @ 09:56:08
  Author: arojas
Revision: 387811

Switch to python 3

Modified:
  munin/trunk/Makefile.config
  munin/trunk/PKGBUILD

-+
 Makefile.config |2 +-
 PKGBUILD|6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

Modified: Makefile.config
===
--- Makefile.config 2020-05-29 09:50:16 UTC (rev 387810)
+++ Makefile.config 2020-05-29 09:56:08 UTC (rev 387811)
@@ -63,7 +63,7 @@
 PERL   := /usr/bin/perl
 
 # The python interpreter to use (used by some plugins)
-PYTHON := /usr/bin/env python2
+PYTHON := /usr/bin/env python3
 
 # The ruby interpreter to use (used by some plugins)
 RUBY   := /usr/bin/env ruby

Modified: PKGBUILD
===
--- PKGBUILD2020-05-29 09:50:16 UTC (rev 387810)
+++ PKGBUILD2020-05-29 09:56:08 UTC (rev 387811)
@@ -4,7 +4,7 @@
 pkgname=('munin' 'munin-node')
 pkgbase=munin
 pkgver=2.0.63
-pkgrel=1
+pkgrel=2
 pkgdesc="A distributed monitoring/graphing tool"
 arch=('any')
 url="http://munin-monitoring.org/";
@@ -66,7 +66,7 @@
optdepends=('perl-net-snmp: for SNMP plugins'
'perl-net-ssleay: for SSL/TLS support'
'perl-dbi: for database monitoring plugins'
-   'python2: for some plugins'
+   'python: for some plugins'
'ruby: for some plugins')
backup=(etc/munin/munin-node.conf etc/logrotate.d/munin-node)
install=munin-node.install
@@ -83,7 +83,7 @@
 }
 
 md5sums=('c94430a387624971087fe4cf6814409c'
- 'e453f18d0c1a4d9b06abfbcaacad2be4'
+ 'ddd12ed7e02015fee9cb00c9afc3e837'
  'dc9c83aa2a278466fb475364462f4119'
  'eb2f1e6e746e85ce1e9f40086be0'
  'cdf139f2b6ae36852113f3411caa6e99'


[arch-commits] Commit in munin/trunk (Makefile.config PKGBUILD)

2016-09-18 Thread Dan McGee
Date: Sunday, September 18, 2016 @ 18:33:31
  Author: dan
Revision: 276684

upgpkg: munin 2.0.26-2

Modified:
  munin/trunk/Makefile.config
  munin/trunk/PKGBUILD

-+
 Makefile.config |7 +--
 PKGBUILD|5 +++--
 2 files changed, 8 insertions(+), 4 deletions(-)

Modified: Makefile.config
===
--- Makefile.config 2016-09-18 18:13:02 UTC (rev 276683)
+++ Makefile.config 2016-09-18 18:33:31 UTC (rev 276684)
@@ -38,9 +38,12 @@
 HTMLDIR= $(PREFIX)/usr/share/munin/www
 CGIDIR = $(PREFIX)/usr/share/munin/cgi
 
-# Where to put RRD files and other internal data, both master and node
+# Where to put internal data for master (RRD, internal files, ...)
 DBDIR  = $(DESTDIR)/var/lib/munin
 
+# Where to put internal data for node (plugin state, ...)
+DBDIRNODE  = $(DESTDIR)/var/lib/munin
+
 # Client only - Where the spool files are written. Must be writable by
 # group "munin", and should be preserved between reboots
 SPOOLDIR   = $(DBDIR)/spool
@@ -47,7 +50,7 @@
 
 # Client only - Where plugins should put their states. Must be writable by
 # group "munin", and should be preserved between reboots
-PLUGSTATE  = $(DBDIR)/plugin-state
+PLUGSTATE  = $(DBDIRNODE)/plugin-state
 
 # Where Munin should place its logs.
 LOGDIR = $(PREFIX)/var/log/munin

Modified: PKGBUILD
===
--- PKGBUILD2016-09-18 18:13:02 UTC (rev 276683)
+++ PKGBUILD2016-09-18 18:33:31 UTC (rev 276684)
@@ -5,7 +5,7 @@
 pkgname=('munin' 'munin-node')
 pkgbase=munin
 pkgver=2.0.26
-pkgrel=1
+pkgrel=2
 pkgdesc="A distributed monitoring/graphing tool"
 arch=('any')
 url="http://munin-monitoring.org/";
@@ -34,6 +34,7 @@
cp ../Makefile.config .
# multithreading wrecks havoc on the build, should probably report this
make -j1 PREFIX=''
+   make -j1 PREFIX='' common/blib/lib/Munin/Common/Defaults.pm
 }
 
 package_munin() {
@@ -77,7 +78,7 @@
 }
 
 md5sums=('a9914c5c0fe1d00dc4059402d1db9f8d'
- 'fb3cc403e298ae6b73c280c4d3af7b49'
+ 'e453f18d0c1a4d9b06abfbcaacad2be4'
  'dc9c83aa2a278466fb475364462f4119'
  'eb2f1e6e746e85ce1e9f40086be0'
  'cdf139f2b6ae36852113f3411caa6e99'


[arch-commits] Commit in munin/trunk (Makefile.config PKGBUILD keep-defaults.patch)

2010-05-13 Thread Dan McGee
Date: Thursday, May 13, 2010 @ 13:22:43
  Author: dan
Revision: 80221

upgpkg: munin 1.4.4-3
Fix versioned dep on perl; move from site->vendor; fix busted-ass build and 
Makefile

Added:
  munin/trunk/keep-defaults.patch
Modified:
  munin/trunk/Makefile.config
  munin/trunk/PKGBUILD

-+
 Makefile.config |2 +-
 PKGBUILD|   14 +-
 keep-defaults.patch |   23 +++
 3 files changed, 33 insertions(+), 6 deletions(-)

Modified: Makefile.config
===
--- Makefile.config 2010-05-13 16:56:19 UTC (rev 80220)
+++ Makefile.config 2010-05-13 17:22:43 UTC (rev 80221)
@@ -94,7 +94,7 @@
 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)
 
 # Client only - Install plugins for this architecture

Modified: PKGBUILD
===
--- PKGBUILD2010-05-13 16:56:19 UTC (rev 80220)
+++ PKGBUILD2010-05-13 17:22:43 UTC (rev 80221)
@@ -5,14 +5,15 @@
 pkgname=('munin' 'munin-node')
 pkgbase=munin
 pkgver=1.4.4
-pkgrel=2
+pkgrel=3
 pkgdesc="A distributed monitoring/graphing tool"
 arch=('any')
 url="http://munin-monitoring.org/";
 license=("GPL")
-depends=('perl>=5.10.1' 'perl<5.10.2')
+depends=('perl' 'perl-log-log4perl')
 source=(http://downloads.sourceforge.net/sourceforge/munin/munin-$pkgver.tar.gz
 Makefile.config
+keep-defaults.patch
 munin-cron-entry
 munin-node.init
 logrotate.munin
@@ -23,12 +24,14 @@
 build() { 
cd $srcdir/munin-$pkgver
cp $srcdir/Makefile.config $srcdir/$pkgname-$pkgver || exit 1
+   # This build is beyond fucked, also need to report this upstream
+   patch -Np1 < $srcdir/keep-defaults.patch || exit 1
# multithreading wrecks havoc on the build, should probably report this 
upstream
make -j1 PREFIX='' || exit 1
 }
 
 package_munin() {
-   depends=('perl>=5.10.1' 'perl<5.10.2' 'rrdtool' 'perl-html-template' 
'perl-date-manip' 'perl-log-log4perl')
+   depends=('perl' 'rrdtool' 'perl-html-template' 'perl-date-manip' 
'perl-log-log4perl')
backup=(etc/munin/munin.conf etc/logrotate.d/munin)
install=munin.install
cd $srcdir/munin-$pkgver
@@ -39,7 +42,7 @@
 }
 
 package_munin-node() {
-   depends=('perl>=5.10.1' 'perl<5.10.2' 'perl-net-server')
+   depends=('perl' 'perl-net-server')
optdepends=('perl-net-snmp: for SNMP plugins'
'perl-net-ssleay: for SSL/TLS support')
backup=(etc/munin/munin-node.conf etc/logrotate.d/munin-node)
@@ -52,7 +55,8 @@
 }
 
 md5sums=('18d864fa04134ce67042a99dd3ec23ae'
- '6ebc31eaa09734394606f7a1e19e38a5'
+ '5b444a99f8cdbfd3b4d51c1fd362b353'
+ '7d318c55b33680b14f236c5c06a0a64b'
  'dc9c83aa2a278466fb475364462f4119'
  '5da6940cd81ccb2734ae66081078abed'
  'db77b53150a906256a71a9f539c7fac2'

Added: keep-defaults.patch
===
--- keep-defaults.patch (rev 0)
+++ keep-defaults.patch 2010-05-13 17:22:43 UTC (rev 80221)
@@ -0,0 +1,23 @@
+--- munin-1.4.4/Makefile.old   2010-05-13 12:17:36.0 -0500
 munin-1.4.4/Makefile   2010-05-13 12:19:06.0 -0500
+@@ -225,9 +225,9 @@
+ 
+ build-common-pre: common/Build
+   cd common && $(PERL) Build code
+-  rm -f common/blib/lib/Munin/Common/Defaults.pm
+ 
+ common/blib/lib/Munin/Common/Defaults.pm: common/lib/Munin/Common/Defaults.pm 
build-common-pre
++  rm -f common/blib/lib/Munin/Common/Defaults.pm
+   $(PERL) -pe 's{(PREFIX \s+=\s).*}{\1q{$(PREFIX)};}x;   \
+   s{(CONFDIR\s+=\s).*}{\1q{$(CONFDIR)};}x; \
+   s{(BINDIR \s+=\s).*}{\1q{$(BINDIR)};}x;  \
+@@ -383,9 +383,6 @@
+ build-%: %/Build
+   cd $* && $(PERL) Build
+ 
+-build-common: common/Build
+-  cd common && $(PERL) Build && rm -f 
common/blib/lib/Munin/Common/Defaults.pm && true
+-
+ 
+ # BUG: the Build script writes files under PWD when it does "install"
+ # can't seem to find a way to persuade it to write otherwhere.