Add btsync, distributed peer-to-peer file syncing application.
PR: 187360 Submitted by: Joshua Ruehlig <joshruehlig@gmail.com>
This commit is contained in:
parent
ef06b42cd0
commit
56e495168b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=359755
1
GIDs
1
GIDs
@ -208,6 +208,7 @@ openxpki:*:777:
|
||||
zetacoin:*:780:
|
||||
foreman_proxy:*:812:
|
||||
puppet:*:814:
|
||||
btsync:*:817:
|
||||
jenkins:*:818:
|
||||
openacs:*:820:
|
||||
dotlrn:*:821:
|
||||
|
1
UIDs
1
UIDs
@ -212,6 +212,7 @@ openxpki:*:777:777::0:0:OpenXPKI Owner:/nonexistent:/usr/sbin/nologin
|
||||
zetacoin:*:780:780::0:0:ZetaCoin Daemon:/nonexistent:/usr/sbin/nologin
|
||||
foreman_proxy:*:812:812::0:0:Foreman Smart Proxy:/usr/local/share/foreman-proxy:/usr/sbin/nologin
|
||||
puppet:*:814:814::0:0:Puppet Daemon:/nonexistent:/usr/sbin/nologin
|
||||
btsync:*:817:817::0:0:BitTorrent Sync Daemon:/nonexistent:/usr/sbin/nologin
|
||||
jenkins:*:818:818::0:0:Jenkins CI:/usr/local/jenkins:/bin/sh
|
||||
openacs:*:820:820::0:0:OpenACS Daemon User:/nonexistent:/usr/sbin/nologin
|
||||
dotlrn:*:821:821::0:0:.LRN Daemon User:/nonexistent:/usr/sbin/nologin
|
||||
|
@ -14,6 +14,7 @@
|
||||
SUBDIR += bnbt
|
||||
SUBDIR += btpd
|
||||
SUBDIR += btqueue
|
||||
SUBDIR += btsync
|
||||
SUBDIR += cdonkey
|
||||
SUBDIR += cpuminer
|
||||
SUBDIR += createtorrent
|
||||
|
50
net-p2p/btsync/Makefile
Normal file
50
net-p2p/btsync/Makefile
Normal file
@ -0,0 +1,50 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= btsync
|
||||
PORTVERSION= 1.3.106
|
||||
CATEGORIES= net-p2p
|
||||
MASTER_SITES= http://syncapp.bittorrent.com/${PORTVERSION}/
|
||||
DISTNAME= ${PORTNAME}_freebsd_${CONFIG_ARCH}-${PORTVERSION}
|
||||
|
||||
MAINTAINER= joshruehlig@gmail.com
|
||||
COMMENT= Distributed peer-to-peer file syncing application
|
||||
|
||||
LICENSE= EULA
|
||||
LICENSE_NAME= BitTorrent Sync
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE.TXT
|
||||
LICENSE_PERMS= auto-accept
|
||||
|
||||
NO_WRKSUBDIR= yes
|
||||
NO_BUILD= yes
|
||||
ONLY_FOR_ARCHES= amd64 i386
|
||||
ONLY_FOR_ARCHES_REASON= It is a binary-only program. Source code not available.
|
||||
|
||||
PLIST_SUB= PORTNAME=${PORTNAME} USER=${USERS} GROUP=${GROUPS}
|
||||
SUB_LIST= PORTNAME=${PORTNAME} USER=${USERS} GROUP=${GROUPS}
|
||||
SUB_FILES= pkg-message
|
||||
USE_RC_SUBR= ${PORTNAME}
|
||||
|
||||
USERS= ${PORTNAME}
|
||||
GROUPS= ${USERS}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${ARCH} == "amd64"
|
||||
CONFIG_ARCH= x64
|
||||
.else
|
||||
CONFIG_ARCH= ${ARCH}
|
||||
.endif
|
||||
|
||||
post-extract:
|
||||
${MKDIR} ${WRKSRC}/temp
|
||||
${MV} ${WRKSRC}/${PORTNAME} ${WRKSRC}/temp
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/temp/btsync ${STAGEDIR}${PREFIX}/bin
|
||||
${WRKSRC}/temp/btsync --dump-sample-config > ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
|
||||
${REINPLACE_CMD} -e 's;\(^ *"storage_path" *: *\)"/.*",;\1"/var/db/${PORTNAME}",;' ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
|
||||
|
||||
post-install:
|
||||
${MKDIR} ${STAGEDIR}/var/db/btsync
|
||||
|
||||
.include <bsd.port.post.mk>
|
4
net-p2p/btsync/distinfo
Normal file
4
net-p2p/btsync/distinfo
Normal file
@ -0,0 +1,4 @@
|
||||
SHA256 (btsync_freebsd_x64-1.3.106.tar.gz) = 1d638d52a17e01de2a7e7b4ef97de8b5cdaf0b75690af30a3cf2104e92e178ee
|
||||
SIZE (btsync_freebsd_x64-1.3.106.tar.gz) = 3374908
|
||||
SHA256 (btsync_freebsd_i386-1.3.106.tar.gz) = 10c9c860b9e90af1d2be03f377b70273355439d21972a66a16651eb24cb3290f
|
||||
SIZE (btsync_freebsd_i386-1.3.106.tar.gz) = 3279543
|
39
net-p2p/btsync/files/btsync.in
Normal file
39
net-p2p/btsync/files/btsync.in
Normal file
@ -0,0 +1,39 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
# PROVIDE: %%PORTNAME%%
|
||||
# REQUIRE: NETWORKING SERVERS DAEMON ldconfig resolv
|
||||
#
|
||||
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
|
||||
# to enable this service:
|
||||
#
|
||||
# %%PORTNAME%%_enable (bool): Set to NO by default.
|
||||
# Set it to YES to enable it.
|
||||
# %%PORTNAME%%_user: The user account %%PORTNAME%% daemon runs as
|
||||
# what you want it to be. It uses '%%USER%%'
|
||||
# user by default. Do not sets it as empty or it
|
||||
# will run as root.
|
||||
# %%PORTNAME%%_group: The group account %%PORTNAME%% daemon runs as
|
||||
# what you want it to be. It uses '%%GROUP%%'
|
||||
# group by default. Do not sets it as empty or it
|
||||
# will run as wheel.
|
||||
# %%PORTNAME%%_data_dir: Directory where %%PORTNAME%% configuration
|
||||
# data is stored.
|
||||
# Default: /var/db/%%PORTNAME%%
|
||||
|
||||
. /etc/rc.subr
|
||||
name="%%PORTNAME%%"
|
||||
rcvar="${name}_enable"
|
||||
load_rc_config $name
|
||||
|
||||
: ${%%PORTNAME%%_enable:="NO"}
|
||||
: ${%%PORTNAME%%_user:="%%USER%%"}
|
||||
: ${%%PORTNAME%%_group:="%%GROUP%%"}
|
||||
: ${%%PORTNAME%%_data_dir:="/var/db/%%PORTNAME%%"}
|
||||
|
||||
pidfile="$btsync_data_dir/sync.pid"
|
||||
command="%%PREFIX%%/bin/btsync"
|
||||
command_args="--config %%PREFIX%%/etc/%%PORTNAME%%.conf"
|
||||
|
||||
run_rc_command "$1"
|
15
net-p2p/btsync/files/pkg-message.in
Normal file
15
net-p2p/btsync/files/pkg-message.in
Normal file
@ -0,0 +1,15 @@
|
||||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
|
||||
net-p2p/%%PORTNAME%% includes an RC script:
|
||||
%%PREFIX%%/etc/rc.d/%%PORTNAME%%
|
||||
|
||||
TO START BTSYNC ON BOOT:
|
||||
echo 'btsync_enable="YES"' >> /etc/rc.conf
|
||||
|
||||
START MANUALLY:
|
||||
%%PREFIX%%/etc/rc.d/%%PORTNAME%% start
|
||||
|
||||
Once started, visit the following to configure:
|
||||
http://localhost:8888/
|
||||
|
||||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
6
net-p2p/btsync/pkg-descr
Normal file
6
net-p2p/btsync/pkg-descr
Normal file
@ -0,0 +1,6 @@
|
||||
Bittorrent Sync is a way to automatically sync files via a secure,
|
||||
distributed technology. This allows users to share, sync and copy
|
||||
data between computers and, optionally, share subsets of their data
|
||||
with other people.
|
||||
|
||||
WWW: http://www.bittorrent.com/sync
|
5
net-p2p/btsync/pkg-plist
Normal file
5
net-p2p/btsync/pkg-plist
Normal file
@ -0,0 +1,5 @@
|
||||
@unexec %D/etc/rc.d/%%PORTNAME%% forcestop 2>/dev/null || true
|
||||
bin/btsync
|
||||
@sample etc/%%PORTNAME%%.conf.sample
|
||||
@unexec rmdir /var/db/btsync 2>/dev/null || true
|
||||
@exec install -d -o %%USER%% -g %%GROUP%% /var/db/%%PORTNAME%%
|
Loading…
Reference in New Issue
Block a user