Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 May 2019 21:33:32 +0000 (UTC)
From:      Dave Cottlehuber <dch@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r502295 - head/net-p2p/libswift
Message-ID:  <201905222133.x4MLXWVL004183@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dch
Date: Wed May 22 21:33:32 2019
New Revision: 502295
URL: https://svnweb.freebsd.org/changeset/ports/502295

Log:
  net-p2p/libswift: support modern OpenSSL versions
  
  - thanks danfe@ for the upstreamed patch enabling this
  - portlint petting and tidy Makefile alignment
  - teach pkg-message how to run a simple server
  
  Approved by:	jrm (mentor)
  Obtained from:	danfe
  Differential Revision:	https://reviews.freebsd.org/D19429

Added:
  head/net-p2p/libswift/pkg-message   (contents, props changed)
Modified:
  head/net-p2p/libswift/Makefile
  head/net-p2p/libswift/distinfo
  head/net-p2p/libswift/pkg-descr

Modified: head/net-p2p/libswift/Makefile
==============================================================================
--- head/net-p2p/libswift/Makefile	Wed May 22 21:24:13 2019	(r502294)
+++ head/net-p2p/libswift/Makefile	Wed May 22 21:33:32 2019	(r502295)
@@ -2,14 +2,13 @@
 # $FreeBSD$
 
 PORTNAME=		libswift
-PORTVERSION=	20160817
-PORTREVISION=	2
+PORTVERSION=		20190302
 CATEGORIES=		net-p2p
 
 MAINTAINER=		dch@FreeBSD.org
-COMMENT=	IETF Peer-to-Peer Streaming Peer Protocol implementation
+COMMENT=		IETF Peer-to-Peer Streaming Peer Protocol implementation
 
-LICENSE=	LGPL21
+LICENSE=		LGPL21
 
 BROKEN_mips=		fails to build: gmake: clang++: Command not found
 BROKEN_mips64=		fails to build: gmake: clang++: Command not found
@@ -17,40 +16,35 @@ BROKEN_powerpc64=	fails to build: gmake: clang++: Comm
 
 LIB_DEPENDS=		libevent.so:devel/libevent
 
-USE_GITHUB=		yes
-GH_TAGNAME=		dda307f
+USES=			gmake ssl
 
-USES=		gmake ssl
-
+USE_GITHUB=		yes
+GH_ACCOUNT=		skunkwerks
+GH_TAGNAME=		dc0cbcc
 PORTDOCS=		README.md
 
 SUB_FILES=		${PORTNAME}
 SUB_LIST+=		SWIFT_USER=${SWIFT_USER} \
-			SWIFT_GROUP=${SWIFT_GROUP} \
-			SWIFT_SHAREDIR=${SWIFT_SHAREDIR} \
-			SWIFT_PIDDIR=${SWIFT_PIDDIR}
+				SWIFT_GROUP=${SWIFT_GROUP} \
+				SWIFT_SHAREDIR=${SWIFT_SHAREDIR} \
+				SWIFT_PIDDIR=${SWIFT_PIDDIR}
 
 PLIST_SUB=		SWIFT_USER=${SWIFT_USER} \
-			SWIFT_GROUP=${SWIFT_GROUP} \
-			SWIFT_SHAREDIR=${SWIFT_SHAREDIR} \
-			SWIFT_PIDDIR=${SWIFT_PIDDIR}
+				SWIFT_GROUP=${SWIFT_GROUP} \
+				SWIFT_SHAREDIR=${SWIFT_SHAREDIR} \
+				SWIFT_PIDDIR=${SWIFT_PIDDIR}
 
-SWIFT_USER?=		www
-SWIFT_GROUP?=		www
+SWIFT_USER?=	www
+SWIFT_GROUP?=	www
 
-SWIFT_SHAREDIR=		/var/db/${PORTNAME}/
-SWIFT_PIDDIR=		/var/run/${PORTNAME}/
+SWIFT_SHAREDIR=	/var/db/${PORTNAME}/
+SWIFT_PIDDIR=	/var/run/${PORTNAME}/
 
-USE_RC_SUBR=		${PORTNAME}
+USE_RC_SUBR=	${PORTNAME}
 
 OPTIONS_DEFINE=	DOCS
 
 .include <bsd.port.pre.mk>
-
-.if ${SSL_DEFAULT} == base
-BROKEN_FreeBSD_12=	member access into incomplete type 'EVP_PKEY' (aka 'evp_pkey_st')
-BROKEN_FreeBSD_13=	member access into incomplete type 'EVP_PKEY' (aka 'evp_pkey_st')
-.endif
 
 do-install:
 	${MKDIR} ${STAGEDIR}${DOCSDIR} \

Modified: head/net-p2p/libswift/distinfo
==============================================================================
--- head/net-p2p/libswift/distinfo	Wed May 22 21:24:13 2019	(r502294)
+++ head/net-p2p/libswift/distinfo	Wed May 22 21:33:32 2019	(r502295)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1471446348
-SHA256 (libswift-libswift-20160817-dda307f_GH0.tar.gz) = 3ba3153097bb2c516c94393f3d376b8c5bc36c284138b49219ec45bbcd821281
-SIZE (libswift-libswift-20160817-dda307f_GH0.tar.gz) = 3329674
+TIMESTAMP = 1551561964
+SHA256 (skunkwerks-libswift-20190302-dc0cbcc_GH0.tar.gz) = 2da59582b62a331934e87189327fdb4e72f10737dd3ba4b888c19fe2380b0255
+SIZE (skunkwerks-libswift-20190302-dc0cbcc_GH0.tar.gz) = 3330071

Modified: head/net-p2p/libswift/pkg-descr
==============================================================================
--- head/net-p2p/libswift/pkg-descr	Wed May 22 21:24:13 2019	(r502294)
+++ head/net-p2p/libswift/pkg-descr	Wed May 22 21:33:32 2019	(r502295)
@@ -6,4 +6,4 @@ Given a root hash, the data is received from whatever 
 and data integrity is checked cryptographically with Merkle hash
 trees.
 
-WWW: https://tools.ietf.org/html/rfc7574
+WWW: https://github.com/skunkwerks/libswift

Added: head/net-p2p/libswift/pkg-message
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-p2p/libswift/pkg-message	Wed May 22 21:33:32 2019	(r502295)
@@ -0,0 +1,12 @@
+To run a server, copy any files you wish to share into /var/db/libswift,
+ensure that it is read and writable by the appropriate user, and
+start the libswift daemon:
+
+# service libswift onestart
+
+To retrieve a file, use:
+
+$ libswift --tracker  127.0.0.1:7777 --hash ....
+
+To view the root hashes, use `grep root *.mbinmap` in the share dir once
+hashing is complete. For large files this may take some time.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905222133.x4MLXWVL004183>