mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- Update to 500.002
- Use single space after WWW: - While I'm here: - Add LICENSE - Remove unnecessary MASTER_SITE_SUBDIR - Sort *_DEPENDS - Use TEST_DEPENDS Changes: http://search.cpan.org/dist/NetApp/CHANGES PR: ports/185417 Submitted by: Hung-Yi Chen <gaod@hychen.org> Approved by: snowfly <snowfly@yuntech.edu.tw> (maintainer)
This commit is contained in:
parent
14cc25cc9d
commit
9abbb4ad9d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=347374
@ -2,27 +2,27 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= NetApp
|
||||
PORTVERSION= 1.1.2
|
||||
PORTREVISION= 2
|
||||
PORTVERSION= 500.002
|
||||
CATEGORIES= net-mgmt perl5
|
||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
||||
MASTER_SITE_SUBDIR= NetApp
|
||||
MASTER_SITES= CPAN
|
||||
PKGNAMEPREFIX= p5-
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
MAINTAINER= snowfly@yuntech.edu.tw
|
||||
COMMENT= Perl interface to manage NetApp NAS devices
|
||||
|
||||
RUN_DEPENDS= p5-IPC-Cmd>=0:${PORTSDIR}/devel/p5-IPC-Cmd \
|
||||
p5-Class-Std>=0:${PORTSDIR}/devel/p5-Class-Std \
|
||||
p5-Params-Validate>=0:${PORTSDIR}/devel/p5-Params-Validate \
|
||||
p5-Regexp-Common>=0:${PORTSDIR}/textproc/p5-Regexp-Common \
|
||||
LICENSE= ART10 GPLv1
|
||||
LICENSE_COMB= dual
|
||||
|
||||
BUILD_DEPENDS= p5-Class-Std>=0:${PORTSDIR}/devel/p5-Class-Std \
|
||||
p5-Clone>=0:${PORTSDIR}/devel/p5-Clone \
|
||||
p5-IPC-Cmd>=0:${PORTSDIR}/devel/p5-IPC-Cmd \
|
||||
p5-Net-Telnet>=0:${PORTSDIR}/net/p5-Net-Telnet \
|
||||
p5-Test-Exception>=0:${PORTSDIR}/devel/p5-Test-Exception \
|
||||
p5-Clone>=0:${PORTSDIR}/devel/p5-Clone
|
||||
BUILD_DEPENDS:= ${RUN_DEPENDS}
|
||||
p5-Params-Validate>=0:${PORTSDIR}/devel/p5-Params-Validate \
|
||||
p5-Regexp-Common>=0:${PORTSDIR}/textproc/p5-Regexp-Common
|
||||
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
||||
TEST_DEPENDS= p5-Test-Exception>=0:${PORTSDIR}/devel/p5-Test-Exception
|
||||
|
||||
USES= perl5
|
||||
USE_PERL5= modbuild
|
||||
USE_PERL5= configure
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (NetApp-1.1.2.tgz) = d87c7873b6b5d7c7fe5ad23dc4ecc131f4c87ceeb7ec356f9336d1d9f70fcdf1
|
||||
SIZE (NetApp-1.1.2.tgz) = 43407
|
||||
SHA256 (NetApp-500.002.tar.gz) = ff9f2ffadacbe5ecb333e95eb7541df2177e7b198063821671daa0effa38c7c2
|
||||
SIZE (NetApp-500.002.tar.gz) = 57584
|
||||
|
11
net-mgmt/p5-NetApp/files/patch-lib_NetApp_Filer_Version.pm
Normal file
11
net-mgmt/p5-NetApp/files/patch-lib_NetApp_Filer_Version.pm
Normal file
@ -0,0 +1,11 @@
|
||||
--- lib/NetApp/Filer/Version.pm.orig 2013-12-30 22:00:16.000000000 +0800
|
||||
+++ lib/NetApp/Filer/Version.pm 2013-12-30 22:00:33.000000000 +0800
|
||||
@@ -40,7 +40,7 @@
|
||||
$string_of{$ident} = $args{string};
|
||||
|
||||
$args{string} =~
|
||||
- m{ NetApp \s+ Release \s+ (\S+) : \s+ (.*) }gmx ||
|
||||
+ m{ NetApp \s+ Release \s+ (.+): \s+ (.+) }gmx ||
|
||||
croak ("Invalid version string: $args{string}\n");
|
||||
|
||||
$release_of{$ident} = $1;
|
27
net-mgmt/p5-NetApp/files/patch-lib_NetApp_Snapshot.pm
Normal file
27
net-mgmt/p5-NetApp/files/patch-lib_NetApp_Snapshot.pm
Normal file
@ -0,0 +1,27 @@
|
||||
--- lib/NetApp/Snapshot.pm.orig 2012-06-05 22:44:25.000000000 +0800
|
||||
+++ lib/NetApp/Snapshot.pm 2013-12-30 23:50:33.000000000 +0800
|
||||
@@ -8,6 +8,7 @@
|
||||
use warnings;
|
||||
use English;
|
||||
use Carp;
|
||||
+use DateTime;
|
||||
|
||||
use Class::Std;
|
||||
use Params::Validate qw( :all );
|
||||
@@ -243,6 +244,7 @@
|
||||
my (%args) = validate( @_, {
|
||||
parent => { type => OBJECT },
|
||||
name => { type => SCALAR },
|
||||
+ snapname => { default => DateTime->now() },
|
||||
});
|
||||
|
||||
my $parent = $args{parent};
|
||||
@@ -253,7 +255,7 @@
|
||||
push @command, '-A';
|
||||
}
|
||||
|
||||
- push @command, $args{name};
|
||||
+ push @command, $args{name}, $args{snapname};
|
||||
|
||||
return $parent->get_filer->_run_command(
|
||||
command => \@command,
|
@ -18,4 +18,4 @@ There is no guarantee that 1.2.0 will be 100% backwards compatible,
|
||||
although such changes will be made only when justified. The author
|
||||
does not believe in infinite backwards compatibility.
|
||||
|
||||
WWW: http://search.cpan.org/dist/NetApp/
|
||||
WWW: http://search.cpan.org/dist/NetApp/
|
||||
|
@ -31,6 +31,7 @@
|
||||
%%SITE_PERL%%/NetApp/Volume.pm
|
||||
%%SITE_PERL%%/NetApp/Volume.pod
|
||||
%%SITE_PERL%%/NetApp/Volume/Source.pm
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetApp/.packlist
|
||||
%%PERL5_MAN3%%/NetApp::Aggregate.3.gz
|
||||
%%PERL5_MAN3%%/NetApp::Aggregate::Plex.3.gz
|
||||
%%PERL5_MAN3%%/NetApp::Aggregate::RAIDGroup.3.gz
|
||||
@ -45,6 +46,7 @@
|
||||
%%PERL5_MAN3%%/NetApp::Snapshot::Delta.3.gz
|
||||
%%PERL5_MAN3%%/NetApp::Snapshot::Schedule.3.gz
|
||||
%%PERL5_MAN3%%/NetApp::Volume.3.gz
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/NetApp
|
||||
@dirrmtry %%SITE_PERL%%/NetApp/Volume
|
||||
@dirrmtry %%SITE_PERL%%/NetApp/Snapshot
|
||||
@dirrmtry %%SITE_PERL%%/NetApp/Snapmirror
|
||||
|
Loading…
Reference in New Issue
Block a user