renamed btsync to resilio-sync

This commit is contained in:
Micha Glave 2016-10-11 15:45:54 +02:00
parent e9e2781950
commit 29b912aa48
7 changed files with 89 additions and 88 deletions

View File

@ -1,6 +0,0 @@
AUX confd 309 SHA256 53cb6a33c911ccbe4d4a405e9e8ac7d17af1a79083a4e5de75dd15f21aa6a3d9 SHA512 8bc7355dde4ce7ce48847ab3ffe5742b702ddf9c5e9e4397d2c17c183387ed671ba3da490c339abfd079691a5cc0f0b5cdcea2a3d50c6cc747970eec0a99702f WHIRLPOOL 85e31904fd23e6db23e634a8f37701dbd3d0b04588faf7f4565d99122d36bcaabf8dd4ce03bd4b18551e6afb47e1ce778febc6f90e0ed0f33bf5386658ce5b8f
AUX initd 805 SHA256 035073064836a70166a63caab5142c00681b15924d455d1630c7c2694b60753f SHA512 ed74e0514e0070d175a065ce119740cce02fa9fe19d7a1daf02d06c31225dfb000155b336a60511075633a9c5a52cde4d265a0e30ca7de0df7b193d65a811c4d WHIRLPOOL b8c1d53366a5d126b9f51329755bf2d2f4c9d2f5c25f1dd588b0d362a97571fd84b3b0ec7ead3bde764f8447a66d08994682c062387a75cc195501626c591a70
DIST btsync_arm-2.3.8.tar.gz 5257229 SHA256 4c5270d03ed9f527c7802adf4d7a0d4d22ef1698e3cf031ec022a9b5b80bb796 SHA512 7c8a16da2395fc068e448be2013445b2f03ba40a3a2a99a46b2d99cb86e97bbb29cd5ec47cda6d9474dc849fdffc7cb1306b04281b0843938f101f73c392e7de WHIRLPOOL 56de8c8f3e12091725bb875c19b9be453421b6faf5c823de6485dbc6ba3a506aa3539babe3d1f7545f57ce59279d0f9ff6e0bf52a6bc67a38b9a966f92c4d567
DIST btsync_i386-2.3.8.tar.gz 5740844 SHA256 517e88773f9c1be0e1d73b4b55660339d74e9be9ae83af331875bfc3bacd1885 SHA512 4b49673cf25aa28f826c1ac88f9b0ef3fcd36ed984b71309b591d1988b76a47670a9d2b99bc6741c9ea7f085b2fa3bf910cd3529e4e415c6a269db653cdc6502 WHIRLPOOL bf8cad9fc3c6e34897f65f551e42cba6edceffa35a8829461a950e3b650e5c0d7b344a309fb088db719e5344c13c27a215feb868e013df099afb7b35450eb93b
DIST btsync_x64-2.3.8.tar.gz 5926291 SHA256 9e1a63d7e346278f7301f149626013242a3c605db90a645ebe757c164cd1c50a SHA512 014e845f82bbd3ac6b57c7ff79e43f4559b2bdfccc1b399e847d89680b90522f1198f412747ca896257968cc89f58c81e1aadf02eb468719465a2c662f10ab99 WHIRLPOOL 0a812cfe87a45b4f3aa47738a12ce4ee265e643092f1b65a2dfa2c48c30a4eba107ad454462af8dd92d39635abdcc88819b589d83ea6278b9daf565bce98855d
EBUILD btsync-2.3.8.ebuild 1976 SHA256 82d38b839a75e0eab6a4eefd0e5b13ca3af76c01f901c8392052e72d29d396e5 SHA512 718f65dff5e6d231dccc6ad6e26c8b66420c0836706b560b055172cc97183779e2389251dad4a90eb8c8c449e41d4d56835625d435f39f6c00021eacd357d523 WHIRLPOOL 11fa5424f8f8e3c9adb7faca37b250d9ebb142591c90f8eb6815ef968997eb5c531a4561c33a12d5377022d633920728a4d41c9ba64be7ff0ef305b5de9714f8

View File

@ -1,66 +0,0 @@
# copyright (C) 2013-2014 Jonathan Vasquez <fearedbliss@funtoo.org>
# Copyright (C) 2014 Sandy McArthur <Sandy@McArthur.org>
# Copyright (C) 2015 Scott Alfter <scott@alfter.us>
# Distributed under the terms of the GNU General Public License v2
EAPI="4"
inherit eutils user
NAME="btsync"
DESCRIPTION="Magic folder style file syncing powered by BitTorrent."
HOMEPAGE="http://www.getsync.com/"
SRC_URI="
amd64? ( https://download-cdn.getsync.com/${PV}/linux-x64/BitTorrent-Sync_x64.tar.gz -> ${NAME}_x64-${PV}.tar.gz )
x86? ( https://download-cdn.getsync.com/${PV}/linux-i386/BitTorrent-Sync_i386.tar.gz -> ${NAME}_i386-${PV}.tar.gz )
arm? ( https://download-cdn.getsync.com/${PV}/linux-arm/BitTorrent-Sync_arm.tar.gz -> ${NAME}_arm-${PV}.tar.gz )"
RESTRICT="mirror strip"
LICENSE="BitTorrent"
SLOT="0"
KEYWORDS="amd64 x86 arm"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
QA_PREBUILT="opt/btsync/btsync"
S="${WORKDIR}"
pkg_setup() {
enewgroup btsync
enewuser btsync -1 -1 -1 "btsync" --system
}
src_install() {
einfo dodir "/opt/${NAME}"
dodir "/opt/${NAME}"
exeinto "/opt/${NAME}"
doexe btsync
insinto "/opt/${NAME}"
doins LICENSE.TXT
newinitd "${FILESDIR}/initd" ${NAME}
newconfd "${FILESDIR}/confd" ${NAME}
einfo dodir "/etc/${NAME}"
dodir "/etc/${NAME}"
"${D}/opt/btsync/btsync" --dump-sample-config > "${D}/etc/${NAME}/config"
sed -i 's|// "pid_file"| "pid_file"|' "${D}/etc/${NAME}/config"
fowners btsync "/etc/${NAME}/config"
fperms 460 "/etc/${NAME}/config"
}
pkg_preinst() {
# Customize for local machine
# Set device name to `hostname`
sed -i "s/My Sync Device/$(hostname) Gentoo Linux/" "${D}/etc/btsync/config"
# Update defaults to the btsync's home dir
sed -i "s|/home/user|$(egethome btsync)|" "${D}/etc/btsync/config"
}
pkg_postinst() {
elog "Init scripts launch btsync daemon as btsync:btsync "
elog "Please review/tweak /etc/${NAME}/config for default configuration."
elog "Default web-gui URL is http://localhost:8888/ ."
}

View File

@ -1,12 +0,0 @@
# conf.d file for btsync
# User and group daemon runs as
BTSYNC_USER="btsync"
BTSYNC_GROUP="btsync"
NAME="BitTorrent Sync"
SYNC_NAME="btsync"
SYNC_PATH="/opt/${SYNC_NAME}/"
SYNC_BINARY="${SYNC_PATH}/${SYNC_NAME}"
SYNC_OPTS="--config /etc/${SYNC_NAME}/config"
SYNC_PIDFILE="/var/run/btsync/${SYNC_NAME}.pid"

View File

@ -0,0 +1,6 @@
AUX confd 317 SHA256 27932ee892b937fa92d6c28f22e90893eaf86bc023a86ff3e36fcabca8c85fa0 SHA512 b3b7a589df573bacbf80c4b08f6b23638afdb8e7d8c7d1935fa630ae12e908fa014e9334f009a46c878132b1f156f26ef6dcc356bd46750805e43de29f264e90 WHIRLPOOL 216db51b0399da58ddd5642fc9dcf5d67894d54b953c62fbdf4cb2de1b3660c30897044ea36dd6c3346d6218f0e8364d2ad2815713032402fad5390e635b75c5
AUX initd 798 SHA256 80179246a2b12f304ee8c1d4f280adf9cd4df9015dc3407db98774a4a1eae90e SHA512 a6dfe7299f80894996e2e07e1b5ead0027aea7628f292564a48160621f503b6ace957906a17f12eb53de975b8b3e6ef61736a81b1fba6bcd3eaa30f1f2aec886 WHIRLPOOL ccd5325f88f3b328a5113b07373078b7698ee4a1278a181b193a1fc2e664f073de76ff6148806232dd53dc4baa5c715eb77cc30ba67ac97feb0b6ac3766164dd
DIST resilio-sync_arm-2.4.1.tar.gz 10043660 SHA256 09df8735d816b8e3d4004e8c99b6cb53d5d3b0eea0bafb1ed459e2289c9cd388 SHA512 8306efafbe5b6afd353d68d897179be0a0db68fb469d46a581f9d70724419ec587b4f52e29002508a089bbd034ded8d3d2654e2434efff18838aba35a0ceee3a WHIRLPOOL f5bc24ac86a2d49e8f8b3abdacc2b948e0d172b029a8ec647f5e41c4bc6cd9dee61181fe9490125a081f1292d903b74675143fe134a8c42d8b0a38bc0d0bf113
DIST resilio-sync_i386-2.4.1.tar.gz 10541565 SHA256 aefced43f9fa28e504c9a6d795914f6888545c4464b1c8803cccf02d031b1c00 SHA512 83479e3723ed3339d7094fd146b8cb54bf27b3238c1a4ca2b052f241f46c492368ac7e0a6d29a5a4da422010db242c537056be09811e751afc053c85eda8656d WHIRLPOOL 6c0169ef485a6fa4b9750caf2f13be56ac8e9e709e40bac92df82a5533675dbf334de07c942daf49b8e40c50465dd3aac0b614f0f322db499c24bb1a99ac7d4b
DIST resilio-sync_x64-2.4.1.tar.gz 10718508 SHA256 1597b39eb1e47a38240bda2e80e9579e0ff2ab0d8b99eb6d19b7e3f283456271 SHA512 81ab0119971216a9c4c0338d4594a4f37207b059495a51fbea8eae0bdd5eef7a4f4a151c8c6987cddafcb4ecf3d8febcf98f3a9e9e53278cb2ef60d1b737bea2 WHIRLPOOL fe27f5f2f3d35832a4c1ef1025f9005cd6b2536b2a889fe398dec867f3d85553796bd96e09b2243656a03a6f158f00d8fdd41f80d2438aebeb97a7cad3110230
EBUILD resilio-sync-2.4.1.ebuild 1975 SHA256 373e1c6a7270e1c73acdbcb01c8e37bad29d38065f589ccfe2c1ae70722b344e SHA512 14fc28fc92603f00832abb86823da1d90ca9b2979834abd781921c3294ed4c4f297940a20f33c182a59071ab206855e17b8c693a8c3124b92ef034240b32905c WHIRLPOOL cee4303d8dba22c4c2624a0df605c271b0c812cfe8373d5104006e6f0d0f0bf5afd51d3b2055c47e12d223bfc9731af11ba63f5c2c9f787b95b2175bfdf9049a

View File

@ -0,0 +1,12 @@
# conf.d file for resilio-sync
# User and group daemon runs as
SYNC_USER="rslsync"
SYNC_GROUP="rslsync"
NAME="BitTorrent Sync"
SYNC_NAME="rslsync"
SYNC_PATH="/opt/resilio-sync/"
SYNC_BINARY="${SYNC_PATH}/${SYNC_NAME}"
SYNC_OPTS="--config /etc/ilio-sync/config"
SYNC_PIDFILE="/var/run/resilio-sync/${SYNC_NAME}.pid"

View File

@ -1,4 +1,4 @@
#!/sbin/runscript
#!/sbin/openrc-run
# Copyright (C) 2013-2014 Jonathan Vasquez <fearedbliss@funtoo.org>
# Copyright (C) 2014 Sandy McArthur <Sandy@McArthur.org>
# Distributed under the terms of the Simplified BSD License.
@ -12,12 +12,12 @@ start() {
ebegin "Starting ${NAME}"
mkdir -p $(dirname ${SYNC_PIDFILE})
chown ${BTSYNC_USER}:${BTSYNC_GROUP} $(dirname ${SYNC_PIDFILE})
chown ${SYNC_USER}:${SYNC_GROUP} $(dirname ${SYNC_PIDFILE})
start-stop-daemon \
--start \
--user "${BTSYNC_USER}" \
--group "${BTSYNC_GROUP}" \
--user "${SYNC_USER}" \
--group "${SYNC_GROUP}" \
--nice 5 \
--ionice 3 \
--exec "${SYNC_BINARY}" \

View File

@ -0,0 +1,67 @@
# Copyright (C) 2013-2014 Jonathan Vasquez <fearedbliss@funtoo.org>
# Copyright (C) 2014 Sandy McArthur <Sandy@McArthur.org>
# Copyright (C) 2015 Scott Alfter <scott@alfter.us>
# Copyright (C) 2016 Micha Glave <gentoo@migmedia.de>
# Distributed under the terms of the GNU General Public License v2
EAPI="4"
inherit eutils user
NAME="rslsync"
DESCRIPTION="Magic folder style file syncing powered by BitTorrent."
HOMEPAGE="http://www.getsync.com/"
SRC_URI="
amd64? ( https://download-cdn.resilio.com/stable/linux-x64/${PN}_x64.tar.gz -> ${PN}_x64-${PV}.tar.gz )
x86? ( https://download-cdn.resilio.com/stable/linux-i386/${PN}_i386.tar.gz -> ${PN}_i386-${PV}.tar.gz )
arm? ( https://download-cdn.resilio.com/stable/linux-arm/${PN}_arm.tar.gz -> ${PN}_arm-${PV}.tar.gz )"
RESTRICT="mirror strip"
LICENSE="BitTorrent"
SLOT="0"
KEYWORDS="amd64 x86 arm"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
QA_PREBUILT="opt/${PN}/${NAME}"
S="${WORKDIR}"
pkg_setup() {
enewgroup ${NAME}
enewuser ${NAME} -1 -1 -1 "${NAME}"
}
src_install() {
einfo dodir "/opt/${PN}"
dodir "/opt/${PN}"
exeinto "/opt/${PN}"
doexe ${NAME}
insinto "/opt/${PN}"
doins LICENSE.TXT
newinitd "${FILESDIR}/initd" ${NAME}
newconfd "${FILESDIR}/confd" ${NAME}
einfo dodir "/etc/${PN}"
dodir "/etc/${PN}"
"${D}/opt/${PN}/${NAME}" --dump-sample-config > "${D}/etc/${PN}/config"
sed -i 's|// "pid_file"| "pid_file"|' "${D}/etc/${PN}/config"
fowners ${NAME} "/etc/${PN}/config"
fperms 460 "/etc/${PN}/config"
}
pkg_preinst() {
# Customize for local machine
# Set device name to `hostname`
sed -i "s/My Sync Device/$(hostname) Gentoo Linux/" "${D}/etc/${PN}/config"
# Update defaults to the ${NAME}'s home dir
sed -i "s|/home/user|$(egethome ${NAME})|" "${D}/etc/${PN}/config"
}
pkg_postinst() {
elog "Init scripts launch ${NAME} daemon as ${NAME}:${NAME} "
elog "Please review/tweak /etc/${PN}/config for default configuration."
elog "Default web-gui URL is http://localhost:8888/ ."
}