FreeBSD Bugzilla – Attachment 150669 Details for
Bug 195911
[PATCH] sysutils/munin-common: add Python knob
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
munin-common.patch
munin-common.patch (text/plain), 11.44 KB, created by
takefu
on 2014-12-17 03:04:24 UTC
(
hide
)
Description:
munin-common.patch
Filename:
MIME Type:
Creator:
takefu
Created:
2014-12-17 03:04:24 UTC
Size:
11.44 KB
patch
obsolete
>diff -ruN /usr/ports/sysutils/munin-common/Makefile ./Makefile >--- /usr/ports/sysutils/munin-common/Makefile 2014-11-26 22:08:24.000000000 +0900 >+++ ./Makefile 2014-12-12 14:10:34.000000000 +0900 >@@ -25,6 +25,11 @@ > NO_ARCH= yes > > post-install: >- ${MKDIR} ${STAGEDIR}${LOGDIR} ${STAGEDIR}${STATEDIR} ${STAGEDIR}${SPOOLDIR} >+ ${MKDIR} ${STAGEDIR}${LOGDIR} ${STAGEDIR}${STATEDIR}\ >+ ${STAGEDIR}${SPOOLDIR} >+ ${MKDIR} -m0775 ${STAGEDIR}${DBDIR} >+ ${CHOWN} ${USERS}:${GROUPS} ${STAGEDIR}${LOGDIR}\ >+ ${STAGEDIR}${STATEDIR} ${STAGEDIR}${SPOOLDIR}\ >+ ${STAGEDIR}${DBDIR} > > .include <bsd.port.mk> >diff -ruN /usr/ports/sysutils/munin-common/files/extra-patch-master_extras_munin-update_old.in ./files/extra-patch-master_extras_munin-update_old.in >--- /usr/ports/sysutils/munin-common/files/extra-patch-master_extras_munin-update_old.in 1970-01-01 09:00:00.000000000 +0900 >+++ ./files/extra-patch-master_extras_munin-update_old.in 2014-02-25 09:30:40.000000000 +0900 >@@ -0,0 +1,26 @@ >+--- master/extras/munin-update_old.in.orig 2009-08-07 19:38:02.000000000 +0900 >++++ master/extras/munin-update_old.in 2011-05-17 18:27:49.000000000 +0900 >+@@ -28,7 +28,7 @@ >+ use Carp; >+ use English qw(-no_match_vars); >+ use Getopt::Long; >+-use IO::Socket; >++use IO::Socket::INET6; >+ use Munin::Common::Defaults; >+ use Munin::Common::Timeout; >+ use Munin::Common::TLSClient; >+@@ -504,12 +504,12 @@ >+ >+ if (munin_get ($newconf, "local_address")) >+ { >+- $socket = new IO::Socket::INET ('PeerAddr' => "$newconf->{address}:". >++ $socket = new IO::Socket::INET6 ('PeerAddr' => "$newconf->{address}:". >+ munin_get ($newconf, "port", "4949"), >+ 'LocalAddr' => munin_get ($newconf, "local_address", undef), >+ 'Proto' => "tcp", "Timeout" => munin_get($newconf, "timeout", 60)); >+ } else { >+- $socket = new IO::Socket::INET ('PeerAddr' => "$newconf->{address}:". >++ $socket = new IO::Socket::INET6 ('PeerAddr' => "$newconf->{address}:". >+ munin_get ($newconf, "port", "4949"), >+ 'Proto' => "tcp", "Timeout" => munin_get($newconf, "timeout", 60)); >+ } >diff -ruN /usr/ports/sysutils/munin-common/files/extra-patch-master_lib_Munin_Master_Node.pm ./files/extra-patch-master_lib_Munin_Master_Node.pm >--- /usr/ports/sysutils/munin-common/files/extra-patch-master_lib_Munin_Master_Node.pm 1970-01-01 09:00:00.000000000 +0900 >+++ ./files/extra-patch-master_lib_Munin_Master_Node.pm 2014-03-21 10:10:49.000000000 +0900 >@@ -0,0 +1,20 @@ >+--- master/lib/Munin/Master/Node.pm.orig 2013-12-07 19:55:16.000000000 +0900 >++++ master/lib/Munin/Master/Node.pm 2013-12-31 15:31:51.000000000 +0900 >+@@ -15,7 +15,7 @@ >+ use Data::Dumper; >+ use Log::Log4perl qw( :easy ); >+ use Time::HiRes qw( gettimeofday tv_interval ); >+-use IO::Socket::INET6; >++use IO::Socket::INET; >+ >+ my $config = Munin::Master::Config->instance()->{config}; >+ >+@@ -81,7 +81,7 @@ >+ LOGCROAK("[FATAL] '$url' is not a valid address!") unless $uri->scheme; >+ >+ if ($uri->scheme eq "munin") { >+- $self->{reader} = $self->{writer} = IO::Socket::INET6->new( >++ $self->{reader} = $self->{writer} = IO::Socket::INET->new( >+ PeerAddr => $uri->host, >+ PeerPort => $self->{port} || 4949, >+ LocalAddr => $config->{local_address}, >diff -ruN /usr/ports/sysutils/munin-common/files/patch-Makefile ./files/patch-Makefile >--- /usr/ports/sysutils/munin-common/files/patch-Makefile 2014-11-26 00:07:23.000000000 +0900 >+++ ./files/patch-Makefile 2014-12-11 09:36:42.000000000 +0900 >@@ -144,11 +144,29 @@ > > > install-common-prime: build-common install-common >+@@ -254,7 +238,7 @@ >+ build-common-prime: build-common-pre common/blib/lib/Munin/Common/Defaults.pm build-common >+ >+ substitute-confvar-inline: >+- @perl -p -i -e 's|\@\@PREFIX\@\@|$(PREFIX)|g;' \ >++ $(PERL) -e -p -i -e 's|\@\@PREFIX\@\@|$(PREFIX)|g;' \ >+ -e 's|\@\@CONFDIR\@\@|$(CONFDIR)|g;' \ >+ -e 's|\@\@BINDIR\@\@|$(BINDIR)|g;' \ >+ -e 's|\@\@SBINDIR\@\@|$(SBINDIR)|g;' \ >+@@ -284,7 +268,7 @@ >+ -e 's|\@\@GOODSH\@\@|$(GOODSH)|g;' \ >+ -e 's|\@\@BASH\@\@|$(BASH)|g;' \ >+ -e 's|\@\@HASSETR\@\@|$(HASSETR)|g;' \ >+- ./master/blib/libdoc/Munin::Master::HTMLOld.3pm \ >++ ./master/blib/libdoc/Munin::Master::HTMLOld.3 \ >+ ./master/blib/lib/Munin/Master/HTMLOld.pm \ >+ ./node/blib/sbin/munin-node-configure \ >+ ./node/blib/sbin/munin-node \ > @@ -466,6 +450,7 @@ install-%: %/Build > --install_path sbin=$(SBINDIR) \ > --install_path bindoc=$(MANDIR)/man1 \ > --install_path libdoc=$(MANDIR)/man3 \ >-+ --destdir=$(DESTDIR) >++ --destdir=$(DESTDIR) > > test-%: %/Build > cd $* && $(PERL) Build test --verbose=0 || true >diff -ruN /usr/ports/sysutils/munin-common/files/patch-lib-Munin-Plugin-SNMP.pm ./files/patch-lib-Munin-Plugin-SNMP.pm >--- /usr/ports/sysutils/munin-common/files/patch-lib-Munin-Plugin-SNMP.pm 1970-01-01 09:00:00.000000000 +0900 >+++ ./files/patch-lib-Munin-Plugin-SNMP.pm 2012-09-17 13:01:47.000000000 +0900 >@@ -0,0 +1,38 @@ >+--- plugins/lib/Munin/Plugin/SNMP.pm.orig 2012-09-01 00:22:50.000000000 +0900 >++++ plugins/lib/Munin/Plugin/SNMP.pm 2012-09-17 13:01:05.000000000 +0900 >+@@ -102,7 +102,7 @@ >+ >+ =cut >+ >+- my ($host, $port, $version, $tail); >++ my ($host, $port, $version, $tail, $domain); >+ >+ # Decode plugin/symlink name and extract meaning from it - if possible. >+ if ($0 =~ /^(?:.*\/)?snmp(v3)?_([^_]+)_(.*)/) { >+@@ -120,8 +120,9 @@ >+ $host = $ENV{host} || $host || die "Could not find hostname"; >+ $version = $ENV{version} || $version || '2'; >+ $port = $ENV{port} || $port || 161; >++ $domain = $ENV{domain} || $domain || 'UDP/IPv4'; >+ >+- return ($host, $port, $version, $tail); >++ return ($host, $port, $version, $tail, $domain); >+ } >+ >+ >+@@ -203,13 +204,14 @@ >+ >+ =cut >+ >+- my ($host, $port, $version, $tail) = config_session(); >++ my ($host, $port, $version, $tail, $domain) = config_session(); >+ >+ # Common options. >+ my @options = ( >+ -hostname => $host, >+ -port => $port, >+ -version => $version, >++ -domain => $domain, >+ ); >+ >+ # User defined options >diff -ruN /usr/ports/sysutils/munin-common/files/patch-node_lib_Munin_Node_SNMPConfig.pm ./files/patch-node_lib_Munin_Node_SNMPConfig.pm >--- /usr/ports/sysutils/munin-common/files/patch-node_lib_Munin_Node_SNMPConfig.pm 1970-01-01 09:00:00.000000000 +0900 >+++ ./files/patch-node_lib_Munin_Node_SNMPConfig.pm 2013-09-19 16:01:56.000000000 +0900 >@@ -0,0 +1,26 @@ >+--- node/lib/Munin/Node/SNMPConfig.pm.orig 2013-06-04 01:15:45.000000000 +0900 >++++ node/lib/Munin/Node/SNMPConfig.pm 2013-09-19 15:28:03.000000000 +0900 >+@@ -23,6 +23,7 @@ >+ >+ my $version = $opts{version} || '2c'; >+ my $port = $opts{port} || 161; >++ my $domain = $opts{domain} || 'UDP/IPv4'; >+ >+ if ($version eq '3') { >+ # Privacy >+@@ -58,6 +59,7 @@ >+ hosts => $hosts, >+ port => $port, >+ version => $version, >++ domain => $domain, >+ sec_args => \%sec_args, >+ ); >+ >+@@ -88,6 +90,7 @@ >+ -hostname => $host, >+ -port => $self->{port}, >+ -version => $self->{version}, >++ -domain => $self->{domain}, >+ >+ %{$self->{sec_args}}, >+ >diff -ruN /usr/ports/sysutils/munin-common/files/patch-node_sbin_munin-node-configure ./files/patch-node_sbin_munin-node-configure >--- /usr/ports/sysutils/munin-common/files/patch-node_sbin_munin-node-configure 2014-12-11 00:52:14.000000000 +0900 >+++ ./files/patch-node_sbin_munin-node-configure 2014-12-12 14:39:41.000000000 +0900 >@@ -11,3 +11,39 @@ > use Munin::Common::Defaults; > use Munin::Node::Configure::PluginList; > use Munin::Node::Configure::Debug; >+@@ -86,7 +86,7 @@ >+ my ($suggest, $shell, $removes, $newer); >+ my $exit_not_error = 1; >+ my @families; >+- my (@snmp_hosts, $snmpver, $snmpcomm, $snmpport); >++ my (@snmp_hosts, $snmpver, $snmpcomm, $snmpport, $snmpdomain); >+ my ($snmp3username, $snmp3authpass, $snmp3authproto, $snmp3privpass, $snmp3privproto); >+ >+ print_usage_and_exit() unless GetOptions( >+@@ -114,6 +114,7 @@ >+ 'snmp=s' => \@snmp_hosts, >+ 'snmpversion=s' => \$snmpver, >+ 'snmpport=i' => \$snmpport, >++ 'snmpdomain=s' => \$snmpdomain, >+ # SNMPv1/2c >+ 'snmpcommunity=s' => \$snmpcomm, >+ # SNMPv3 >+@@ -142,6 +143,7 @@ >+ hosts => \@snmp_hosts, >+ version => $snmpver, >+ port => $snmpport, >++ domain => $snmpdomain, >+ >+ community => $snmpcomm, >+ >+@@ -584,6 +586,10 @@ >+ >+ The SNMP port to use [161] >+ >++=item B<< --snmpdomain <domain> >> >++ >++The SNMP domain (udp/IPv6, tcp/IPv4 or tcp/IPv6) to use ['udp/IPv4'] >++ >+ =item B<SNMP 1/2c authentication> >+ >+ SNMP versions 1 and 2c use a "community string" for authentication. This is >diff -ruN /usr/ports/sysutils/munin-common/munin.mk ./munin.mk >--- /usr/ports/sysutils/munin-common/munin.mk 2014-12-11 00:52:14.000000000 +0900 >+++ ./munin.mk 2014-12-11 09:38:39.000000000 +0900 >@@ -1,6 +1,6 @@ > MUNIN_VERSION= 2.0.25 > MUNIN_SITES= SF/${PORTNAME}/stable/${MUNIN_VERSION} >-DISTINFO_FILE= ${PORTSDIR}/sysutils/munin-common/distinfo >+DISTINFO_FILE= ${.CURDIR}/../../sysutils/munin-common/distinfo > PATCHDIR= ${.CURDIR}/../../sysutils/munin-common/files > > PORTSCOUT= limit:^2\.0\. >diff -ruN /usr/ports/sysutils/munin-common/patch-node_sbin_munin-node-configure ./patch-node_sbin_munin-node-configure >--- /usr/ports/sysutils/munin-common/patch-node_sbin_munin-node-configure 1970-01-01 09:00:00.000000000 +0900 >+++ ./patch-node_sbin_munin-node-configure 2014-12-12 14:37:34.000000000 +0900 >@@ -0,0 +1,38 @@ >+--- node/sbin/munin-node-configure.orig 2014-12-12 14:36:36.000000000 +0900 >++++ node/sbin/munin-node-configure 2014-12-12 14:36:55.000000000 +0900 >+@@ -90,7 +90,7 @@ >+ my ($suggest, $shell, $removes, $newer); >+ my $exit_not_error = 1; >+ my @families; >+- my (@snmp_hosts, $snmpver, $snmpcomm, $snmpport); >++ my (@snmp_hosts, $snmpver, $snmpcomm, $snmpport, $snmpdomain); >+ my ($snmp3username, $snmp3authpass, $snmp3authproto, $snmp3privpass, $snmp3privproto); >+ >+ print_usage_and_exit() unless GetOptions( >+@@ -118,6 +118,7 @@ >+ 'snmp=s' => \@snmp_hosts, >+ 'snmpversion=s' => \$snmpver, >+ 'snmpport=i' => \$snmpport, >++ 'snmpdomain=s' => \$snmpdomain, >+ # SNMPv1/2c >+ 'snmpcommunity=s' => \$snmpcomm, >+ # SNMPv3 >+@@ -146,6 +147,7 @@ >+ hosts => \@snmp_hosts, >+ version => $snmpver, >+ port => $snmpport, >++ domain => $snmpdomain, >+ >+ community => $snmpcomm, >+ >+@@ -588,6 +590,10 @@ >+ >+ The SNMP port to use [161] >+ >++=item B<< --snmpdomain <domain> >> >++ >++The SNMP domain (udp/IPv6, tcp/IPv4 or tcp/IPv6) to use ['udp/IPv4'] >++ >+ =item B<SNMP 1/2c authentication> >+ >+ SNMP versions 1 and 2c use a "community string" for authentication. This is >diff -ruN /usr/ports/sysutils/munin-common/pkg-plist ./pkg-plist >--- /usr/ports/sysutils/munin-common/pkg-plist 2014-10-03 01:37:02.000000000 +0900 >+++ ./pkg-plist 2014-10-29 11:13:29.000000000 +0900 >@@ -15,3 +15,4 @@ > @dir(%%USER%%,%%GROUP%%,) %%LOGDIR%% > @dir(%%USER%%,%%GROUP%%,) %%STATEDIR%% > @dir(%%USER%%,%%GROUP%%,) %%SPOOLDIR%% >+@dir(%%USER%%,%%GROUP%%,0775) %%DBDIR%%
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 195911
:
150501
| 150669 |
150670
|
150671