# 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: # # btsync # btsync/files # btsync/files/pkg-message.in # btsync/files/btsync.in # btsync/pkg-descr # btsync/distinfo # btsync/Makefile # btsync/pkg-plist # echo c - btsync mkdir -p btsync > /dev/null 2>&1 echo c - btsync/files mkdir -p btsync/files > /dev/null 2>&1 echo x - btsync/files/pkg-message.in sed 's/^X//' >btsync/files/pkg-message.in << '95ce5a46d8be569ce093b7533a255508' X* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * X Xnet-p2p/%%PORTNAME%% includes an RC script: X%%PREFIX%%/etc/rc.d/%%PORTNAME%% X XTO START BTSYNC ON BOOT: Xecho 'btsync_enable="YES"' >> /etc/rc.conf X XSTART MANUALLY: X%%PREFIX%%/etc/rc.d/%%PORTNAME%% start X XOnce started, visit the following to configure: Xhttp://localhost:8888/ X X* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 95ce5a46d8be569ce093b7533a255508 echo x - btsync/files/btsync.in sed 's/^X//' >btsync/files/btsync.in << '64819afaeed23226ed46a77814e11309' X#!/bin/sh X# X# PROVIDE: %%PORTNAME%% X# REQUIRE: NETWORKING SERVERS DAEMON ldconfig resolv X# X# Add the following lines to /etc/rc.conf.local or /etc/rc.conf X# to enable this service: X# X# %%PORTNAME%%_enable (bool): Set to NO by default. X# Set it to YES to enable it. X# %%PORTNAME%%_user: The user account %%PORTNAME%% daemon runs as what X# you want it to be. It uses '%%USER%%' user by X# default. Do not sets it as empty or it will run X# as root. X# %%PORTNAME%%_group: The group account %%PORTNAME%% daemon runs as what X# you want it to be. It uses '%%GROUP%%' group by X# default. Do not sets it as empty or it will run X# as wheel. X# %%PORTNAME%%_data_dir: Directory where %%PORTNAME%% configuration X# data is stored. X# Default: /var/db/%%PORTNAME%% X X. /etc/rc.subr Xname="%%PORTNAME%%" Xrcvar="${name}_enable" Xload_rc_config $name X X: ${%%PORTNAME%%_enable:="NO"} X: ${%%PORTNAME%%_user:="%%USER%%"} X: ${%%PORTNAME%%_group:="%%GROUP%%"} X: ${%%PORTNAME%%_data_dir:="/var/db/%%PORTNAME%%"} X Xpidfile="$btsync_data_dir/sync.pid" Xcommand="%%PREFIX%%/bin/btsync" Xcommand_args="--config %%PREFIX%%/etc/%%PORTNAME%%.conf" X Xrun_rc_command "$1" 64819afaeed23226ed46a77814e11309 echo x - btsync/pkg-descr sed 's/^X//' >btsync/pkg-descr << '92010dae403596fe833d9444b5125467' XBittorrent Sync is a way to automatically sync files via a secure, Xdistributed technology. This allows users to share, sync and copy Xdata between computers and, optionally, share subsets of their data Xwith other people. X XWWW: http://www.bittorrent.com/sync 92010dae403596fe833d9444b5125467 echo x - btsync/distinfo sed 's/^X//' >btsync/distinfo << 'a180c56fd5f147d80bb576e1c1853574' XSHA256 (btsync_freebsd_x64-1.3.106.tar.gz) = 1d638d52a17e01de2a7e7b4ef97de8b5cdaf0b75690af30a3cf2104e92e178ee XSIZE (btsync_freebsd_x64-1.3.106.tar.gz) = 3374908 XSHA256 (btsync_freebsd_i386-1.3.106.tar.gz) = 10c9c860b9e90af1d2be03f377b70273355439d21972a66a16651eb24cb3290f XSIZE (btsync_freebsd_i386-1.3.106.tar.gz) = 3279543 a180c56fd5f147d80bb576e1c1853574 echo x - btsync/Makefile sed 's/^X//' >btsync/Makefile << '3997951ecc0e65e1631b2e94c7af9cc5' X# $FreeBSD$ X XPORTNAME= btsync XPORTVERSION= 1.3.106 XCATEGORIES= net-p2p XMASTER_SITES= http://syncapp.bittorrent.com/${PORTVERSION}/ XDISTNAME= ${PORTNAME}_freebsd_${CONFIG_ARCH}-${PORTVERSION} X XMAINTAINER= joshruehlig@gmail.com XCOMMENT= Distributed peer-to-peer file syncing application X XLICENSE= EULA XLICENSE_NAME= BitTorrent Sync XLICENSE_FILE= ${WRKSRC}/LICENSE.TXT XLICENSE_PERMS= auto-accept X XNO_WRKSUBDIR= yes XNO_BUILD= yes XONLY_FOR_ARCHES= amd64 i386 XONLY_FOR_ARCHES_REASON= It is a binary-only program. Source code not available. X XPLIST_SUB= PORTNAME=${PORTNAME} USER=${USERS} GROUP=${GROUPS} XSUB_LIST= PORTNAME=${PORTNAME} USER=${USERS} GROUP=${GROUPS} XSUB_FILES= pkg-message XUSE_RC_SUBR= ${PORTNAME} X XUSERS= ${PORTNAME} XGROUPS= ${USERS} X X.include X X.if ${ARCH} == "amd64" XCONFIG_ARCH= x64 X.else XCONFIG_ARCH= ${ARCH} X.endif X Xpost-extract: X ${MKDIR} ${WRKSRC}/temp X ${MV} ${WRKSRC}/${PORTNAME} ${WRKSRC}/temp X Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/temp/btsync ${STAGEDIR}${PREFIX}/bin X ${WRKSRC}/temp/btsync --dump-sample-config > ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample X ${REINPLACE_CMD} -e 's;\(^ *"storage_path" *: *\)"/.*",;\1"/var/db/${PORTNAME}",;' ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample X Xpost-install: X ${MKDIR} ${STAGEDIR}/var/db/btsync X X.include 3997951ecc0e65e1631b2e94c7af9cc5 echo x - btsync/pkg-plist sed 's/^X//' >btsync/pkg-plist << '30d2f526778ca707f8632c3faf0d8368' X@unexec %D/etc/rc.d/%%PORTNAME%% forcestop 2>/dev/null || true Xbin/btsync X@sample etc/%%PORTNAME%%.conf.sample X@unexec rmdir /var/db/btsync 2>/dev/null || true X@exec install -d -o %%USER%% -g %%GROUP%% -m 755 /var/db/%%PORTNAME%% 30d2f526778ca707f8632c3faf0d8368 exit