Skip to content
Browse files

bittorrent-sync moved from bliss-overlay to funtoo-overlay

  • Loading branch information...
1 parent f91c5ee commit f0c93ea960bb93c2fe836eac4bc3289ed6d6a483 Jonathan Vasquez committed Aug 23, 2013
View
4 net-p2p/bittorrent-sync/Manifest
@@ -0,0 +1,4 @@
+DIST btsync_arm-1.1.48.tar.gz 1095158 SHA256 ea6e1c6e73c1aa7e4d756fad278143618bf9d760f66a50f1f847ee3821ed1713 SHA512 eb2f10d19bb3fbe058467672c44098664f938fdfb812425305101a02c6e8a6ba835849a6934684b5e35fd753c4aa168a568101bcae7b96620fea7c73a2ee468b WHIRLPOOL 1762c3bd7d9641eeaf10d1ef373029ae76ca732831c452faab8b8a91d274025a38e10cdcd1007827b44f74e387b8c22fc259aa425da1e805b0feb3a4ac1759a5
+DIST btsync_i386-1.1.48.tar.gz 1184048 SHA256 e44bfcc4ba5c6dcf5bd01775abf8a5bcbb44584f92dd26546bd307f63b9c5536 SHA512 290303f80bbef8df882dd00e50980fc22dcb0220c7a5e172188188fd1c457e1325bf89e9032e2fb80e0532636e30385f9d070a5543a670dcdd5110cdd5a92f1e WHIRLPOOL 345f030e0c8900545aad9b51d5e21d837c855aa4f13f2ad30686605174b2c01f5973b4404acb1ef3792ef629e36dc20323b58bedb5717ad423e5686ec7df6430
+DIST btsync_powerpc-1.1.48.tar.gz 1267186 SHA256 dd94b8ea37c6ab2eec9b3704a97e7a0d4f171525b9edce0b0a5f9c4b5cefa5ea SHA512 49afb78bc248dc8e9c820422f28731a93ae764c0a13dfe22cbab97f8e31b58591baaf0d4ec12334738e2dafeb32b974a9013a5b676cbc0ba0566bbec81be9f8b WHIRLPOOL 4e1081b4c90f2cc734c0aed0937423e898ea08175f447f3a29c3bd7b1b14b46a54d3d84d7db69277af9c71b63eb8d1a1eae3f0a6ce5c02394be9386736f501aa
+DIST btsync_x64-1.1.48.tar.gz 1265078 SHA256 4c58e68a8ef30d3a1c39fb15a62cff863fc8496abc7720b5e9b30842b92e4dc4 SHA512 2a4ce574ec0836c8c5cebc5a5a9fb4c027754b63620313d2e16de4a4cfac0825943a8973ed716416e3326847770b5459673f0aefe86c3afc99198bc05557a735 WHIRLPOOL a2e27d60522a431adae078f2996349f4d2c4cb7dfb082bac9882746c26d4bbf8c335bb4e62ae39c3e05d100387f3425271cc18d0b6027cdffb874347857ee6ba
View
39 net-p2p/bittorrent-sync/bittorrent-sync-1.1.48.ebuild
@@ -0,0 +1,39 @@
+# Copyright (C) 2013 Jonathan Vasquez <jvasquez1011@gmail.com>
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+NAME="btsync"
+DESCRIPTION="Automatically sync files via secure, distributed technology."
+HOMEPAGE="http://labs.bittorrent.com/experiments/sync.html"
+SRC_URI="
+ amd64? ( http://syncapp.bittorrent.com/${PV}/btsync_x64-${PV}.tar.gz )
+ x86? ( http://syncapp.bittorrent.com/${PV}/btsync_i386-${PV}.tar.gz )
+ arm? ( http://syncapp.bittorrent.com/${PV}/btsync_arm-${PV}.tar.gz )
+ ppc? ( http://syncapp.bittorrent.com/${PV}/btsync_powerpc-${PV}.tar.gz )"
+
+RESTRICT="mirror strip"
+LICENSE="BitTorrent"
+SLOT="0"
+KEYWORDS="amd64 ~x86 ~arm ~ppc"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+QA_PREBUILT="opt/btsync/btsync"
+
+S="${WORKDIR}"
+
+src_install() {
+ mkdir -p ${D}/opt/${NAME} && cd ${D}/opt/${NAME}
+ mkdir -p ${D}/etc/{init.d,${NAME}}
+
+ cp ${S}/btsync .
+ cp ${S}/LICENSE.TXT .
+ cp ${FILESDIR}/config ${D}/etc/${NAME}
+ cp ${FILESDIR}/init.d/${NAME} ${D}/etc/init.d/
+
+ # Set more secure permissions
+ chmod 755 ${D}/etc/init.d/btsync
+}
View
68 net-p2p/bittorrent-sync/files/config
@@ -0,0 +1,68 @@
+{
+ "device_name": "My Sync Device",
+ "listening_port" : 0, // 0 - randomize port
+
+/* storage_path dir contains auxilliary app files
+ if no storage_path field: .sync dir created in the directory
+ where binary is located.
+ otherwise user-defined directory will be used
+*/
+ "storage_path" : ".sync",
+
+// uncomment next line if you want to set location of pid file
+ "pid_file" : "/var/run/btsync.pid",
+
+
+ "check_for_updates" : true,
+ "use_upnp" : true, // use UPnP for port mapping
+
+
+/* limits in kB/s
+ 0 - no limit
+*/
+ "download_limit" : 0,
+ "upload_limit" : 0,
+
+/* remove "listen" field to disable WebUI
+ remove "login" and "password" fields to disable credentials check
+*/
+ "webui" :
+ {
+ "listen" : "0.0.0.0:8888",
+ "login" : "admin",
+ "password" : "password"
+ }
+
+/* !!! if you set shared folders in config file WebUI will be DISABLED !!!
+ shared directories specified in config file
+ override the folders previously added from WebUI.
+*/
+/*
+ ,
+ "shared_folders" :
+ [
+ {
+// use --generate-secret in command line to create new secret
+ "secret" : "MY_SECRET_1", // * required field
+ "dir" : "/home/user/bittorrent/sync_test", // * required field
+
+// use relay server when direct connection fails
+ "use_relay_server" : true,
+ "use_tracker" : true,
+ "use_dht" : false,
+ "search_lan" : true,
+// enable sync trash to store files deleted on remote devices
+ "use_sync_trash" : true,
+// specify hosts to attempt connection without additional search
+ "known_hosts" :
+ [
+ "192.168.1.2:44444"
+ ]
+ }
+ ]
+*/
+
+// Advanced preferences can be added to config file.
+// Info is available in BitTorrent Sync User Guide.
+
+}
View
38 net-p2p/bittorrent-sync/files/init.d/btsync
@@ -0,0 +1,38 @@
+#!/sbin/runscript
+# Copyright (C) 2013 Jonathan Vasquez <jvasquez1011@gmail.com>
+# Distributed under the terms of the Simplified BSD License.
+
+NAME="BitTorrent Sync"
+SYNC_NAME="btsync"
+SYNC_PATH="/opt/${SYNC_NAME}/"
+SYNC_BINARY="${SYNC_PATH}/${SYNC_NAME}"
+SYNC_OPTS="--nodaemon --config /etc/${SYNC_NAME}/config"
+SYNC_PIDFILE="/var/run/${SYNC_NAME}.pid"
+
+start() {
+ ebegin "Starting ${NAME}"
+
+ start-stop-daemon --start --exec "${SYNC_BINARY}" \
+ --pidfile "${SYNC_PIDFILE}" --background \
+ -- ${SYNC_OPTS}
+
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${NAME}"
+
+ start-stop-daemon --stop --exec "${SYNC_BINARY}" \
+ --pidfile "${SYNC_PIDFILE}"
+
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading ${NAME}"
+
+ start-stop-daemon --signal HUP --exec "${SYNC_BINARY}" \
+ --pidfile "${SYNC_PIDFILE}"
+
+ eend $?
+}

0 comments on commit f0c93ea

Please sign in to comment.
Something went wrong with that request. Please try again.