# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # libswift # libswift/pkg-descr # libswift/distinfo # libswift/pkg-plist # libswift/Makefile # libswift/files # libswift/files/libswift.in # echo c - libswift mkdir -p libswift > /dev/null 2>&1 echo x - libswift/pkg-descr sed 's/^X//' >libswift/pkg-descr << '6f3689dd40352f5b09ba9c6af48ee6e4' XLibSwift is the reference UDP-based implementation of IETF RFC7574, a multi-peer Xtransport layer protocol. Its mission is to disseminate content among a swarm of Xpeers. X XGiven a root hash, the data is received from whatever source available and data Xintegrity is checked cryptographically with Merkle hash trees. X XWWW: https://tools.ietf.org/html/rfc7574 6f3689dd40352f5b09ba9c6af48ee6e4 echo x - libswift/distinfo sed 's/^X//' >libswift/distinfo << 'c84ddc825ab1cb8a635e1389a816aec8' XTIMESTAMP = 1471446348 XSHA256 (libswift-libswift-20160817-dda307f_GH0.tar.gz) = 3ba3153097bb2c516c94393f3d376b8c5bc36c284138b49219ec45bbcd821281 XSIZE (libswift-libswift-20160817-dda307f_GH0.tar.gz) = 3329674 c84ddc825ab1cb8a635e1389a816aec8 echo x - libswift/pkg-plist sed 's/^X//' >libswift/pkg-plist << '0f8a0e3207645e9ca47bb1574ddd962a' Xbin/libswift X@dir(%%SWIFT_USER%%,%%SWIFT_GROUP%%,0750) %%SWIFT_PIDDIR%% X@dir(%%SWIFT_USER%%,%%SWIFT_GROUP%%,0755) %%SWIFT_SHAREDIR%% 0f8a0e3207645e9ca47bb1574ddd962a echo x - libswift/Makefile sed 's/^X//' >libswift/Makefile << '0f6ce36c926b2eb124f0e10cca3ae2a2' X# Created by: Dave Cottlehuber X# $FreeBSD$ X XPORTNAME= libswift XPORTVERSION= 20160817 XCATEGORIES= net-p2p X XMAINTAINER= dch@skunkwerks.at XCOMMENT= IETF Peer-to-Peer Streaming Peer Protocol implementation X XLICENSE= LGPL21 X XLIB_DEPENDS= libevent.so:devel/libevent2 X XUSE_GITHUB= yes XGH_TAGNAME= dda307f X XUSES= gmake ssl X XPORTDOCS= README.md X XSUB_FILES= ${PORTNAME} XSUB_LIST+= SWIFT_USER=${SWIFT_USER} \ X SWIFT_GROUP=${SWIFT_GROUP} \ X SWIFT_SHAREDIR=${SWIFT_SHAREDIR} \ X SWIFT_PIDDIR=${SWIFT_PIDDIR} X XPLIST_SUB= SWIFT_USER=${SWIFT_USER} \ X SWIFT_GROUP=${SWIFT_GROUP} \ X SWIFT_SHAREDIR=${SWIFT_SHAREDIR} \ X SWIFT_PIDDIR=${SWIFT_PIDDIR} X XSWIFT_USER?= www XSWIFT_GROUP?= www X XSWIFT_SHAREDIR= /var/db/${PORTNAME}/ XSWIFT_PIDDIR= /var/run/${PORTNAME}/ X XUSE_RC_SUBR= ${PORTNAME} X Xdo-install: X ${MKDIR} ${STAGEDIR}${DOCSDIR} \ X ${STAGEDIR}${SWIFT_SHAREDIR} \ X ${STAGEDIR}${SWIFT_PIDDIR} X ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} X ${INSTALL_PROGRAM} ${WRKSRC}/swift ${STAGEDIR}${PREFIX}/bin/${PORTNAME} X X.include 0f6ce36c926b2eb124f0e10cca3ae2a2 echo c - libswift/files mkdir -p libswift/files > /dev/null 2>&1 echo x - libswift/files/libswift.in sed 's/^X//' >libswift/files/libswift.in << '7b71074e4abc712c844080513684b2ff' X#!/bin/sh X# $FreeBSD$ X# X# PROVIDE: libswift X# REQUIRE: LOGIN NETWORKING SERVERS X# KEYWORD: shutdown X# X# Add the following lines to /etc/rc.conf.local or /etc/rc.conf X# to enable this service: X# X# libswift_enable (bool): Set to NO by default. X# Set it to YES to enable swift. X# X# libswift_user (user): Set to www by default. X# libswift_group (group): Set to www by default. X# libswift_port (num): Port for daemon to listen on, 7777 by default. X# libswift_dir (string): Optional full path to streaming content directory. X X. /etc/rc.subr X Xname=libswift Xrcvar=libswift_enable X Xload_rc_config ${name} X X# defaults Xlibswift_enable=${libswift_enable:-"NO"} Xlibswift_user=${libswift_user:-"www"} Xlibswift_port=${libswift_port:-"7777"} Xlibswift_dir=${libswift_dir:-"/var/db/${name}"} Xlibswift_options=${libswift_options:-" --dir ${libswift_dir} --listen ${libswift_port}"} X X# daemon X Xlibswift_pidfile="%%SWIFT_PIDDIR%%${name}.pid" Xprocname="%%PREFIX%%/bin/${name}" X Xcommand=/usr/sbin/daemon Xcommand_args=" -c -f -p ${libswift_pidfile} ${procname} ${libswift_flags} ${libswift_options}" X Xstart_precmd=libswift_precmd X Xlibswift_precmd() X{ X # create empty pidfile with correct permissions X install -o ${libswift_user} /dev/null ${libswift_pidfile} X} X Xrun_rc_command "$1" 7b71074e4abc712c844080513684b2ff exit