svn commit: r400268 - in head/net-mgmt/2ping: . files

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Tue Oct 27 15:50:17 UTC 2015


Author: sunpoet
Date: Tue Oct 27 15:50:15 2015
New Revision: 400268
URL: https://svnweb.freebsd.org/changeset/ports/400268

Log:
  - Update to 3.0.0
  - Fix LICENSE and add LICENSE_FILE
  - Reformat pkg-descr
  
  Changes:	https://github.com/rfinnie/2ping/commits/master

Added:
  head/net-mgmt/2ping/files/
  head/net-mgmt/2ping/files/patch-twoping_crc32.py   (contents, props changed)
Modified:
  head/net-mgmt/2ping/Makefile
  head/net-mgmt/2ping/distinfo
  head/net-mgmt/2ping/pkg-descr

Modified: head/net-mgmt/2ping/Makefile
==============================================================================
--- head/net-mgmt/2ping/Makefile	Tue Oct 27 15:50:10 2015	(r400267)
+++ head/net-mgmt/2ping/Makefile	Tue Oct 27 15:50:15 2015	(r400268)
@@ -1,8 +1,7 @@
 # $FreeBSD$
 
 PORTNAME=	2ping
-PORTVERSION=	2.1.1
-PORTREVISION=	1
+PORTVERSION=	3.0.0
 CATEGORIES=	net-mgmt perl5
 MASTER_SITES=	http://www.finnie.org/software/2ping/ \
 		LOCAL/sunpoet
@@ -10,20 +9,12 @@ MASTER_SITES=	http://www.finnie.org/soft
 MAINTAINER=	sunpoet at FreeBSD.org
 COMMENT=	Bi-directional ping utility
 
-LICENSE=	GPLv2
-
-BUILD_DEPENDS=	p5-Digest-CRC>=0:${PORTSDIR}/security/p5-Digest-CRC \
-		p5-IO-Socket-INET6>=0:${PORTSDIR}/net/p5-IO-Socket-INET6
-RUN_DEPENDS:=	${BUILD_DEPENDS}
+LICENSE=	GPLv2 GPLv3
+LICENSE_COMB=	dual
+LICENSE_FILE_GPLv2=	${WRKSRC}/COPYING
 
 NO_ARCH=	yes
-USE_PERL5=	configure
-USES=		perl5
-
-PLIST_FILES=	bin/2ping \
-		%%PERL5_MAN1%%/2ping.1.gz
-
-post-patch:
-	@${REINPLACE_CMD} -e 's|2ping.1p|2ping.1|' ${WRKSRC}/Makefile.PL
+USE_PYTHON=	autoplist concurrent distutils
+USES=		python
 
 .include <bsd.port.mk>

Modified: head/net-mgmt/2ping/distinfo
==============================================================================
--- head/net-mgmt/2ping/distinfo	Tue Oct 27 15:50:10 2015	(r400267)
+++ head/net-mgmt/2ping/distinfo	Tue Oct 27 15:50:15 2015	(r400268)
@@ -1,2 +1,2 @@
-SHA256 (2ping-2.1.1.tar.gz) = 20fc09dbbc7fa37b90bfa415bad801697bd56c16c653cda551bfadbad3936f65
-SIZE (2ping-2.1.1.tar.gz) = 27232
+SHA256 (2ping-3.0.0.tar.gz) = 8a8f071ea87414a5a7b8503ee75529e81b04f4d6251f96f3ead2140998a10c31
+SIZE (2ping-3.0.0.tar.gz) = 37263

Added: head/net-mgmt/2ping/files/patch-twoping_crc32.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/2ping/files/patch-twoping_crc32.py	Tue Oct 27 15:50:15 2015	(r400268)
@@ -0,0 +1,20 @@
+--- twoping/crc32.py.orig	2015-10-25 05:57:43 UTC
++++ twoping/crc32.py
+@@ -69,7 +69,7 @@ if __name__ == '__main__':
+         c = new()
+         for line in sys.stdin.readlines():
+             c.update(line)
+-        print c.hexdigest()
++        print(c.hexdigest())
+     else:
+         for file in files:
+             with open(file) as f:
+@@ -77,6 +77,6 @@ if __name__ == '__main__':
+                 for line in f.readlines():
+                     c.update(line)
+                 if len(files) > 1:
+-                    print '%s\t%s' % (c.hexdigest(), file)
++                    print('%s\t%s' % (c.hexdigest(), file))
+                 else:
+-                    print c.hexdigest()
++                    print(c.hexdigest())

Modified: head/net-mgmt/2ping/pkg-descr
==============================================================================
--- head/net-mgmt/2ping/pkg-descr	Tue Oct 27 15:50:10 2015	(r400267)
+++ head/net-mgmt/2ping/pkg-descr	Tue Oct 27 15:50:15 2015	(r400268)
@@ -1,6 +1,5 @@
-2ping is a bi-directional ping utility. It uses 3-way pings (akin to
-TCP SYN, SYN/ACK, ACK) and after-the-fact state comparison between a
-2ping listener and a 2ping client to determine which direction packet
-loss occurs.
+2ping is a bi-directional ping utility. It uses 3-way pings (akin to TCP SYN,
+SYN/ACK, ACK) and after-the-fact state comparison between a 2ping listener and a
+2ping client to determine which direction packet loss occurs.
 
 WWW: http://www.finnie.org/software/2ping/


More information about the svn-ports-all mailing list