Index: head/net-p2p/libswift/Makefile =================================================================== --- head/net-p2p/libswift/Makefile +++ head/net-p2p/libswift/Makefile @@ -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 @@ 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 - -.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} \ Index: head/net-p2p/libswift/distinfo =================================================================== --- head/net-p2p/libswift/distinfo +++ head/net-p2p/libswift/distinfo @@ -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 Index: head/net-p2p/libswift/pkg-descr =================================================================== --- head/net-p2p/libswift/pkg-descr +++ head/net-p2p/libswift/pkg-descr @@ -6,4 +6,4 @@ and data integrity is checked cryptographically with Merkle hash trees. -WWW: https://tools.ietf.org/html/rfc7574 +WWW: https://github.com/skunkwerks/libswift Index: head/net-p2p/libswift/pkg-message =================================================================== --- head/net-p2p/libswift/pkg-message +++ head/net-p2p/libswift/pkg-message @@ -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.