!9 Upgrade version to 1.16
From: @cherry530 Reviewed-by: @wk333 Signed-off-by: @wk333
This commit is contained in:
commit
34a1391396
24
Fix-ipv6-and-add-backward-compatible-new-networking.patch
Normal file
24
Fix-ipv6-and-add-backward-compatible-new-networking.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
From 599378943bf3cac92fda33fc450d8ac04db41644 Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Michal=20Josef=20=C5=A0pa=C4=8Dek?=
|
||||||
|
<michal.josef.spacek@gmail.com>
|
||||||
|
Date: Fri, 5 May 2023 12:14:28 +0200
|
||||||
|
Subject: [PATCH] Fix usage of IPv6
|
||||||
|
|
||||||
|
There were a bad check which break IPv6 functionality
|
||||||
|
---
|
||||||
|
lib/SNMP_Session.pm | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/lib/SNMP_Session.pm b/lib/SNMP_Session.pm
|
||||||
|
index 9d643ac..eab42df 100644
|
||||||
|
--- a/lib/SNMP_Session.pm
|
||||||
|
+++ b/lib/SNMP_Session.pm
|
||||||
|
@@ -902,7 +902,7 @@ sub open {
|
||||||
|
$local_hostname,$ipv4only) = @_;
|
||||||
|
my($remote_addr,$socket,$sockfamily);
|
||||||
|
|
||||||
|
- $ipv4only = 1 unless defined $ipv4only;
|
||||||
|
+ $ipv4only = 1 if defined $ipv4only;
|
||||||
|
$sockfamily = AF_INET;
|
||||||
|
|
||||||
|
$community = 'public' unless defined $community;
|
||||||
Binary file not shown.
BIN
SNMP_Session-1.16.tar.gz
Normal file
BIN
SNMP_Session-1.16.tar.gz
Normal file
Binary file not shown.
@ -1,13 +1,12 @@
|
|||||||
Name: perl-SNMP_Session
|
Name: perl-SNMP_Session
|
||||||
Version: 1.13
|
Version: 1.16
|
||||||
Release: 21
|
Release: 1
|
||||||
Summary: SNMP_Session - SNMP support for Perl 5
|
Summary: SNMP_Session - SNMP support for Perl 5
|
||||||
License: Artistic 2.0
|
License: Artistic 2.0
|
||||||
URL: http://github.com/sleinen/snmp-session/
|
URL: http://github.com/sleinen/snmp-session/
|
||||||
# git clone https://github.com/sleinen/snmp-session.git
|
Source0: https://github.com/sleinen/snmp-session/archive/v%{version}/SNMP_Session-%{version}.tar.gz
|
||||||
# git reset --hard ea593f051e258c0730f6ba3836053a010294a728
|
|
||||||
# tar zcf SNMP_Session-1.13.tar.gz SNMP_Session-1.13
|
Patch0: Fix-ipv6-and-add-backward-compatible-new-networking.patch
|
||||||
Source0: SNMP_Session-%{version}.tar.gz
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -20,7 +19,7 @@ SNMP_Session - SNMP support for Perl 5.
|
|||||||
%package_help
|
%package_help
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n SNMP_Session-%{version} -p1
|
%autosetup -n snmp-session-%{version} -p1
|
||||||
|
|
||||||
%{_bindir}/perl -pi -e 's{^#!/usr/local/bin/perl\b}{#!%{__perl}}' test/*
|
%{_bindir}/perl -pi -e 's{^#!/usr/local/bin/perl\b}{#!%{__perl}}' test/*
|
||||||
chmod 644 test/*
|
chmod 644 test/*
|
||||||
@ -49,9 +48,12 @@ make test
|
|||||||
%files help
|
%files help
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc Artistic index.html test/
|
%doc Artistic index.html test/
|
||||||
/usr/share/man/man3/Net_SNMP_util.3pm.gz
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Sep 09 2023 xu_ping <707078654@qq.com> - 1.16-1
|
||||||
|
- Upgrade version to 1.16
|
||||||
|
|
||||||
* Thu Sep 10 2020 Ge Wang <wangge20@huawei.com> - 1.13-21
|
* Thu Sep 10 2020 Ge Wang <wangge20@huawei.com> - 1.13-21
|
||||||
- Modify homepage Url
|
- Modify homepage Url
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user