1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00

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
This commit is contained in:
Dave Cottlehuber 2019-05-22 21:33:32 +00:00
parent 11fe3d1d3d
commit 9876dc3d6f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=502295
4 changed files with 34 additions and 28 deletions

View File

@ -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,41 +16,36 @@ BROKEN_powerpc64= fails to build: gmake: clang++: Command not found
LIB_DEPENDS= libevent.so:devel/libevent
USES= gmake ssl
USE_GITHUB= yes
GH_TAGNAME= dda307f
USES= gmake ssl
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} \
${STAGEDIR}${SWIFT_SHAREDIR} \

View File

@ -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

View File

@ -6,4 +6,4 @@ Given a root hash, the data is received from whatever source available
and data integrity is checked cryptographically with Merkle hash
trees.
WWW: https://tools.ietf.org/html/rfc7574
WWW: https://github.com/skunkwerks/libswift

View File

@ -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.