svn commit: r437360 - in head/net: . p5-Net-NTP p5-Net-NTP/files
Brad Davis
brd at FreeBSD.org
Fri Mar 31 14:33:19 UTC 2017
Author: brd
Date: Fri Mar 31 14:32:02 2017
New Revision: 437360
URL: https://svnweb.freebsd.org/changeset/ports/437360
Log:
Add net/p5-Net-NTP
Approved by: swills (mentor)
Sponsored by: Netflix
Added:
head/net/p5-Net-NTP/
head/net/p5-Net-NTP/Makefile (contents, props changed)
head/net/p5-Net-NTP/distinfo (contents, props changed)
head/net/p5-Net-NTP/files/
head/net/p5-Net-NTP/files/patch-lib_Net_NTP.pm (contents, props changed)
head/net/p5-Net-NTP/pkg-descr (contents, props changed)
Modified:
head/net/Makefile
Modified: head/net/Makefile
==============================================================================
--- head/net/Makefile Fri Mar 31 14:09:38 2017 (r437359)
+++ head/net/Makefile Fri Mar 31 14:32:02 2017 (r437360)
@@ -675,6 +675,7 @@
SUBDIR += p5-Net-NBsocket
SUBDIR += p5-Net-NIS
SUBDIR += p5-Net-NIS-Listgroup
+ SUBDIR += p5-Net-NTP
SUBDIR += p5-Net-Nessus-XMLRPC
SUBDIR += p5-Net-Nmsg
SUBDIR += p5-Net-OAuth
Added: head/net/p5-Net-NTP/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/p5-Net-NTP/Makefile Fri Mar 31 14:32:02 2017 (r437360)
@@ -0,0 +1,19 @@
+# Created by: brd at FreeBSD.org
+# $FreeBSD$
+
+PORTNAME= Net-NTP
+PORTVERSION= 1.5
+CATEGORIES= net
+MASTER_SITES= CPAN
+
+MAINTAINER= perl at FreeBSD.org
+COMMENT= Perl extension for decoding NTP server responses
+
+NO_ARCH= yes
+USE_PERL5= configure
+USES= perl5
+
+PLIST_FILES= %%SITE_PERL%%/Net/NTP.pm \
+ %%PERL5_MAN3%%/Net::NTP.3.gz
+
+.include <bsd.port.mk>
Added: head/net/p5-Net-NTP/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/p5-Net-NTP/distinfo Fri Mar 31 14:32:02 2017 (r437360)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1490969857
+SHA256 (Net-NTP-1.5.tar.gz) = b16817f88ecc75f155aea3dcf8874d4b8bcc0c9d249e1bc1e12ce7cfa5e7d9aa
+SIZE (Net-NTP-1.5.tar.gz) = 6459
Added: head/net/p5-Net-NTP/files/patch-lib_Net_NTP.pm
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/p5-Net-NTP/files/patch-lib_Net_NTP.pm Fri Mar 31 14:32:02 2017 (r437360)
@@ -0,0 +1,10 @@
+--- lib/Net/NTP.pm.orig 2017-03-30 18:32:06 UTC
++++ lib/Net/NTP.pm
+@@ -179,6 +179,7 @@ sub get_ntp_response {
+ alarm(0);
+ };
+ alarm 0;
++ die $@ if $@;
+
+ my $rectime = time; # T4
+ my $pkt = Net::NTP::Packet->decode($data, $xmttime, $rectime);
Added: head/net/p5-Net-NTP/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/p5-Net-NTP/pkg-descr Fri Mar 31 14:32:02 2017 (r437360)
@@ -0,0 +1,5 @@
+All this module does is send a packet to an NTP server and
+then decode the packet received into it's respective parts
+- as outlined in RFC5905 (superseding RFC1305 and RFC2030).
+
+WWW: http://search.cpan.org/dist/Net-NTP/
More information about the svn-ports-all
mailing list