net-mgmt/rancid: Add AF_INET6 support

Add AF_INET6 support that was left out of the previous update.

PR:		200733
Submitted by:	Nick <nick foobar org>
Approved by:	Janos Mohacsi <jmohacsi bsd hu> (maintainer)
This commit is contained in:
Kubilay Kocak 2015-08-05 13:41:27 +00:00
parent 1c9720f21c
commit 8a8302de60
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=393588
2 changed files with 11 additions and 3 deletions

View file

@ -3,7 +3,7 @@
PORTNAME= rancid
PORTVERSION= 2.3.8
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= net-mgmt
MASTER_SITES= ftp://ftp.shrubbery.net/pub/rancid/

View file

@ -1,5 +1,13 @@
--- bin/rancid.in.orig 2015-06-09 15:46:07.000000000 +0100
+++ bin/rancid.in 2015-06-09 15:57:24.000000000 +0100
--- bin/rancid.in.orig 2015-07-03 17:22:07.000000000 +0100
+++ bin/rancid.in 2015-07-06 07:10:54.000000000 +0100
@@ -45,6 +45,7 @@
# usage: rancid [-dV] [-l] [-f filename | hostname]
#
use Getopt::Std;
+use Socket qw(AF_INET AF_INET6 inet_pton);
getopts('dflV');
if ($opt_V) {
print "rancid 2.3.8\n";
@@ -162,13 +162,38 @@
@sorted_lines;
}