Rename btsync to rslsync and update it to 2.5.12

PR:		220871
Submitted by:	knu, joshruehlig@gmail.com (MAINTAINER)
This commit is contained in:
Akinori MUSHA 2018-05-14 02:55:52 +00:00
parent 35b296ff4c
commit 61be877cf6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=469847
13 changed files with 82 additions and 83 deletions

2
GIDs
View File

@ -757,7 +757,7 @@ foreman_proxy:*:812:
puppet:*:814:
uchiwa:*:815:
# free: 816
btsync:*:817:
rslsync:*:817:
jenkins:*:818:
rundeck:*:819:
openacs:*:820:

1
MOVED
View File

@ -10183,3 +10183,4 @@ devel/llvm39||2018-05-08|Obsolete, no remaining dependencies
textproc/p5-Spork||2018-05-09|Removed, depends on expired www/p5-Kwiki
www/p5-Kwiki||2018-05-09|Has expired: All www files wrongly belongs to www user
x11-servers/x11rdp|x11-drivers/xorgxrdp|2018-05-13|Obsoleted by update of net/xrdp
net-p2p/btsync|net-p2p/rslsync|2018-05-13|Renamed by the vendor

2
UIDs
View File

@ -763,7 +763,7 @@ foreman_proxy:*:812:812::0:0:Foreman Smart Proxy:/usr/local/share/foreman-proxy:
puppet:*:814:814::0:0:Puppet Daemon:/nonexistent:/usr/sbin/nologin
uchiwa:*:815:815::0:0:Uchiwa Dashboard:/nonexistent:/usr/sbin/nologin
# free: 816
btsync:*:817:817::0:0:BitTorrent Sync Daemon:/nonexistent:/usr/sbin/nologin
rslsync:*:817:817::0:0:Resilio Sync Daemon:/nonexistent:/usr/sbin/nologin
jenkins:*:818:818::0:0:Jenkins CI:/usr/local/jenkins:/bin/sh
rundeck:*:819:819::0:0:Rundeck:/usr/local/rundeck:/bin/sh
openacs:*:820:820::0:0:OpenACS Daemon User:/nonexistent:/usr/sbin/nologin

View File

@ -12,7 +12,6 @@
SUBDIR += bitmessage
SUBDIR += bnbt
SUBDIR += btpd
SUBDIR += btsync
SUBDIR += couchpotato
SUBDIR += cpuminer
SUBDIR += createtorrent
@ -82,6 +81,7 @@
SUBDIR += qtum
SUBDIR += radarr
SUBDIR += retroshare
SUBDIR += rslsync
SUBDIR += rtorrent
SUBDIR += shx
SUBDIR += sonarr

View File

@ -1,51 +0,0 @@
# $FreeBSD$
PORTNAME= btsync
PORTVERSION= 2.3.8
CATEGORIES= net-p2p
MASTER_SITES= https://download-cdn.getsync.com/${PORTVERSION}/FreeBSD-${CONFIG_ARCH}/ \
http://download-cdn.getsync.com/${PORTVERSION}/FreeBSD-${CONFIG_ARCH}/
DISTNAME= BitTorrent-Sync_freebsd_${CONFIG_ARCH}
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_ARCHS= amd64 i386
ONLY_FOR_ARCHS_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;^//\([[:space:]]*"storage_path"[[:space:]]*:[[:space:]]*\)"/.*",$$;\1"/var/db/${PORTNAME}",;' ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
${REINPLACE_CMD} -e 's;^//\([[:space:]]*"pid_file"[[:space:]]*:[[:space:]]*"/var/run/${PORTNAME}/${PORTNAME}.pid",\)$$;\1;' ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
${MKDIR} ${STAGEDIR}/var/db/${PORTNAME}
.include <bsd.port.post.mk>

View File

@ -1,5 +0,0 @@
TIMESTAMP = 1466844210
SHA256 (BitTorrent-Sync_freebsd_i386.tar.gz) = 103ba012acd4af2365243f10f2fa8a2bdc551b47ac326b00a71624a0289c73fc
SIZE (BitTorrent-Sync_freebsd_i386.tar.gz) = 5714805
SHA256 (BitTorrent-Sync_freebsd_x64.tar.gz) = fa0312f6616eb29ac9daa4b436ffda3dda3790d03f57008271963c63006060f6
SIZE (BitTorrent-Sync_freebsd_x64.tar.gz) = 5879165

View File

@ -1,3 +0,0 @@
bin/btsync
@sample etc/%%PORTNAME%%.conf.sample
@dir(%%USER%%,%%GROUP%%,) /var/db/%%PORTNAME%%

49
net-p2p/rslsync/Makefile Normal file
View File

@ -0,0 +1,49 @@
# $FreeBSD$
PORTNAME= rslsync
PORTVERSION= 2.5.12
CATEGORIES= net-p2p
MASTER_SITES= https://download-cdn.resilio.com/${PORTVERSION}/FreeBSD-${CONFIG_ARCH}/ \
http://download-cdn.resilio.com/${PORTVERSION}/FreeBSD-${CONFIG_ARCH}/
DISTNAME= resilio-sync_freebsd_${CONFIG_ARCH}
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
MAINTAINER= joshruehlig@gmail.com
COMMENT= Distributed peer-to-peer file syncing application
LICENSE= EULA
LICENSE_NAME= Resilio Sync
LICENSE_FILE= ${WRKSRC}/LICENSE.TXT
LICENSE_PERMS= auto-accept
NO_WRKSUBDIR= yes
ONLY_FOR_ARCHS= amd64 i386
ONLY_FOR_ARCHS_REASON= It is a binary-only program. Source code not available.
PLIST_SUB= USER=${USERS} GROUP=${GROUPS}
SUB_LIST= USER=${USERS} GROUP=${GROUPS}
SUB_FILES= pkg-message
USE_RC_SUBR= rslsync
USERS= rslsync
GROUPS= ${USERS}
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64"
CONFIG_ARCH= x64
.else
CONFIG_ARCH= ${ARCH}
.endif
do-build:
${WRKSRC}/rslsync --dump-sample-config > ${WRKSRC}/rslsync.conf.sample
${REINPLACE_CMD} -e 's;^//\([[:space:]]*"storage_path"[[:space:]]*:[[:space:]]*\)"/.*",$$;\1"/var/db/rslsync",;' ${WRKSRC}/rslsync.conf.sample
${REINPLACE_CMD} -e 's;^//\([[:space:]]*"pid_file"[[:space:]]*:[[:space:]]*\)"/.*",$$;\1"/var/run/rslsync/rslsync.pid",;' ${WRKSRC}/rslsync.conf.sample
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/rslsync ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/rslsync.conf.sample ${STAGEDIR}${PREFIX}/etc
${MKDIR} ${STAGEDIR}/var/db/rslsync
.include <bsd.port.post.mk>

5
net-p2p/rslsync/distinfo Normal file
View File

@ -0,0 +1,5 @@
TIMESTAMP = 1526266298
SHA256 (rslsync-2.5.12/resilio-sync_freebsd_i386.tar.gz) = 90aec753fb41c55c3344047ba6c94a7012642ff9eff9e19a7460f9cdbe303454
SIZE (rslsync-2.5.12/resilio-sync_freebsd_i386.tar.gz) = 10960760
SHA256 (rslsync-2.5.12/resilio-sync_freebsd_x64.tar.gz) = 32462b30f706791da1997021f7a51d0b42497cb076760ae9937f37836762b4ba
SIZE (rslsync-2.5.12/resilio-sync_freebsd_x64.tar.gz) = 11138832

View File

@ -1,13 +1,13 @@
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
net-p2p/%%PORTNAME%% includes an RC script:
%%PREFIX%%/etc/rc.d/%%PORTNAME%%
net-p2p/rslsync includes an RC script:
%%PREFIX%%/etc/rc.d/rslsync
TO START ON BOOT:
# echo '%%PORTNAME%%_enable="YES"' >> /etc/rc.conf
# sysrc rslsync_enable=YES
START MANUALLY:
# service %%PORTNAME%% start
# service rslsync start
Once started, visit the following to configure:
http://localhost:8888/

View File

@ -2,41 +2,41 @@
#
# $FreeBSD$
#
# PROVIDE: %%PORTNAME%%
# PROVIDE: rslsync
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# 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.
# rslsync_enable (bool): Set to NO by default.
# Set it to YES to enable it.
# %%PORTNAME%%_user: The user account %%PORTNAME%% daemon runs as
# rslsync_user: The user account rslsync 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
# rslsync_group: The group account rslsync 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.
. /etc/rc.subr
name="%%PORTNAME%%"
name="rslsync"
rcvar="${name}_enable"
load_rc_config $name
load_rc_config ${name}
: ${%%PORTNAME%%_enable:="NO"}
: ${%%PORTNAME%%_user:="%%USER%%"}
: ${%%PORTNAME%%_group:="%%GROUP%%"}
: ${rslsync_enable:="NO"}
: ${rslsync_user:="%%USER%%"}
: ${rslsync_group:="%%GROUP%%"}
pidfile="/var/run/%%PORTNAME%%/%%PORTNAME%%.pid"
command="%%PREFIX%%/bin/btsync"
command_args="--config %%PREFIX%%/etc/%%PORTNAME%%.conf"
pidfile="/var/run/rslsync/rslsync.pid"
command="%%PREFIX%%/bin/rslsync"
command_args="--config %%PREFIX%%/etc/rslsync.conf"
start_precmd=%%PORTNAME%%_prestart
%%PORTNAME%%_prestart() {
start_precmd=rslsync_prestart
rslsync_prestart() {
if [ ! -d ${pidfile%/*} ]; then
install -d -o $%%PORTNAME%%_user -g $%%PORTNAME%%_group ${pidfile%/*}
install -d -o ${rslsync_user} -g ${rslsync_group} ${pidfile%/*}
fi
}

View File

@ -1,6 +1,6 @@
Bittorrent Sync is a way to automatically sync files via a secure,
Resilio 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
WWW: https://www.resilio.com/

View File

@ -0,0 +1,3 @@
bin/rslsync
@sample etc/rslsync.conf.sample
@dir(%%USER%%,%%GROUP%%,) /var/db/rslsync