svn commit: r359755 - in head: . net-p2p net-p2p/btsync net-p2p/btsync/files
Li-Wen Hsu
lwhsu at FreeBSD.org
Sun Jun 29 10:55:54 UTC 2014
Author: lwhsu
Date: Sun Jun 29 10:55:52 2014
New Revision: 359755
URL: http://svnweb.freebsd.org/changeset/ports/359755
QAT: https://qat.redports.org/buildarchive/r359755/
Log:
Add btsync, distributed peer-to-peer file syncing application.
PR: 187360
Submitted by: Joshua Ruehlig <joshruehlig at gmail.com>
Added:
head/net-p2p/btsync/
head/net-p2p/btsync/Makefile (contents, props changed)
head/net-p2p/btsync/distinfo (contents, props changed)
head/net-p2p/btsync/files/
head/net-p2p/btsync/files/btsync.in (contents, props changed)
head/net-p2p/btsync/files/pkg-message.in (contents, props changed)
head/net-p2p/btsync/pkg-descr (contents, props changed)
head/net-p2p/btsync/pkg-plist (contents, props changed)
Modified:
head/GIDs
head/UIDs
head/net-p2p/Makefile
Modified: head/GIDs
==============================================================================
--- head/GIDs Sun Jun 29 10:45:16 2014 (r359754)
+++ head/GIDs Sun Jun 29 10:55:52 2014 (r359755)
@@ -208,6 +208,7 @@ openxpki:*:777:
zetacoin:*:780:
foreman_proxy:*:812:
puppet:*:814:
+btsync:*:817:
jenkins:*:818:
openacs:*:820:
dotlrn:*:821:
Modified: head/UIDs
==============================================================================
--- head/UIDs Sun Jun 29 10:45:16 2014 (r359754)
+++ head/UIDs Sun Jun 29 10:55:52 2014 (r359755)
@@ -212,6 +212,7 @@ openxpki:*:777:777::0:0:OpenXPKI Owner:/
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
Modified: head/net-p2p/Makefile
==============================================================================
--- head/net-p2p/Makefile Sun Jun 29 10:45:16 2014 (r359754)
+++ head/net-p2p/Makefile Sun Jun 29 10:55:52 2014 (r359755)
@@ -14,6 +14,7 @@
SUBDIR += bnbt
SUBDIR += btpd
SUBDIR += btqueue
+ SUBDIR += btsync
SUBDIR += cdonkey
SUBDIR += cpuminer
SUBDIR += createtorrent
Added: head/net-p2p/btsync/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net-p2p/btsync/Makefile Sun Jun 29 10:55:52 2014 (r359755)
@@ -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 at 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>
Added: head/net-p2p/btsync/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net-p2p/btsync/distinfo Sun Jun 29 10:55:52 2014 (r359755)
@@ -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
Added: head/net-p2p/btsync/files/btsync.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net-p2p/btsync/files/btsync.in Sun Jun 29 10:55:52 2014 (r359755)
@@ -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"
Added: head/net-p2p/btsync/files/pkg-message.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net-p2p/btsync/files/pkg-message.in Sun Jun 29 10:55:52 2014 (r359755)
@@ -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/
+
+* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Added: head/net-p2p/btsync/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net-p2p/btsync/pkg-descr Sun Jun 29 10:55:52 2014 (r359755)
@@ -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
Added: head/net-p2p/btsync/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net-p2p/btsync/pkg-plist Sun Jun 29 10:55:52 2014 (r359755)
@@ -0,0 +1,5 @@
+ at unexec %D/etc/rc.d/%%PORTNAME%% forcestop 2>/dev/null || true
+bin/btsync
+ at sample etc/%%PORTNAME%%.conf.sample
+ at unexec rmdir /var/db/btsync 2>/dev/null || true
+ at exec install -d -o %%USER%% -g %%GROUP%% /var/db/%%PORTNAME%%
More information about the svn-ports-all
mailing list