diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2014-03-07 19:44:28 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2014-03-07 19:44:28 +0800 |
commit | 21c2872770b08f6b3ad2c32cc1805837097fed0c (patch) | |
tree | 6ee27727aea6dee18484b8143c2b5798fea3a1d1 /net-mgmt/p5-NetApp | |
parent | e335af22649df4a610383ba375e7042838486786 (diff) | |
download | freebsd-ports-gnome-21c2872770b08f6b3ad2c32cc1805837097fed0c.tar.gz freebsd-ports-gnome-21c2872770b08f6b3ad2c32cc1805837097fed0c.tar.zst freebsd-ports-gnome-21c2872770b08f6b3ad2c32cc1805837097fed0c.zip |
- 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)
Diffstat (limited to 'net-mgmt/p5-NetApp')
-rw-r--r-- | net-mgmt/p5-NetApp/Makefile | 26 | ||||
-rw-r--r-- | net-mgmt/p5-NetApp/distinfo | 4 | ||||
-rw-r--r-- | net-mgmt/p5-NetApp/files/patch-lib_NetApp_Filer_Version.pm | 11 | ||||
-rw-r--r-- | net-mgmt/p5-NetApp/files/patch-lib_NetApp_Snapshot.pm | 27 | ||||
-rw-r--r-- | net-mgmt/p5-NetApp/pkg-descr | 2 | ||||
-rw-r--r-- | net-mgmt/p5-NetApp/pkg-plist | 2 |
6 files changed, 56 insertions, 16 deletions
diff --git a/net-mgmt/p5-NetApp/Makefile b/net-mgmt/p5-NetApp/Makefile index 90ff46d0fcae..cb1d072ccdfc 100644 --- a/net-mgmt/p5-NetApp/Makefile +++ b/net-mgmt/p5-NetApp/Makefile @@ -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> diff --git a/net-mgmt/p5-NetApp/distinfo b/net-mgmt/p5-NetApp/distinfo index 9843b718ca9a..94cda7c16032 100644 --- a/net-mgmt/p5-NetApp/distinfo +++ b/net-mgmt/p5-NetApp/distinfo @@ -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 diff --git a/net-mgmt/p5-NetApp/files/patch-lib_NetApp_Filer_Version.pm b/net-mgmt/p5-NetApp/files/patch-lib_NetApp_Filer_Version.pm new file mode 100644 index 000000000000..47878407d828 --- /dev/null +++ b/net-mgmt/p5-NetApp/files/patch-lib_NetApp_Filer_Version.pm @@ -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; diff --git a/net-mgmt/p5-NetApp/files/patch-lib_NetApp_Snapshot.pm b/net-mgmt/p5-NetApp/files/patch-lib_NetApp_Snapshot.pm new file mode 100644 index 000000000000..3c364389a7fb --- /dev/null +++ b/net-mgmt/p5-NetApp/files/patch-lib_NetApp_Snapshot.pm @@ -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, diff --git a/net-mgmt/p5-NetApp/pkg-descr b/net-mgmt/p5-NetApp/pkg-descr index d0adc1a61999..f3ecfac21817 100644 --- a/net-mgmt/p5-NetApp/pkg-descr +++ b/net-mgmt/p5-NetApp/pkg-descr @@ -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/ diff --git a/net-mgmt/p5-NetApp/pkg-plist b/net-mgmt/p5-NetApp/pkg-plist index 9220b38003ed..8bbe6e7777a7 100644 --- a/net-mgmt/p5-NetApp/pkg-plist +++ b/net-mgmt/p5-NetApp/pkg-plist @@ -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 |