Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 486406 - net-misc/btsync - Automatically sync files via secure, distributed technology
Summary: net-misc/btsync - Automatically sync files via secure, distributed technology
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement with 2 votes (vote)
Assignee: Default Assignee for New Packages
URL: http://labs.bittorrent.com/experiment...
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2013-09-29 01:51 UTC by Horea Christian
Modified: 2018-01-25 22:47 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
btsync.ebuild (file_486406.txt,1.61 KB, text/plain)
2013-09-29 01:51 UTC, Horea Christian
Details
btsync.ebuild (file_486406.txt,1.08 KB, text/plain)
2013-09-29 01:52 UTC, Horea Christian
Details
btsync.service (file_486406.txt,111 bytes, text/plain)
2013-09-29 01:53 UTC, Horea Christian
Details
resilio sync ebuild (resilio-sync-9999.ebuild,1.89 KB, text/plain)
2016-08-07 21:33 UTC, Vladimir Pavljuchenkov (SpiderX)
Details
metadata.xml (metadata.xml,953 bytes, text/xml)
2016-08-07 21:33 UTC, Vladimir Pavljuchenkov (SpiderX)
Details
btsync.confd (btsync.confd,246 bytes, text/plain)
2016-08-07 21:34 UTC, Vladimir Pavljuchenkov (SpiderX)
Details
btsync.initd (btsync.initd,1.07 KB, text/plain)
2016-08-07 21:34 UTC, Vladimir Pavljuchenkov (SpiderX)
Details
btsync.service (btsync.service,331 bytes, text/plain)
2016-08-07 21:35 UTC, Vladimir Pavljuchenkov (SpiderX)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Horea Christian 2013-09-29 01:51:12 UTC
Hello, I would like to ansk any of you who have the time and are interested to add/help me add this package to Portage.

BtSync provides p2p (cloudless) sync between folders. It is free, FOSS, lightweight, and does a really popular task. 

I have already tried my hand at writing an ebuild for it 
https://github.com/TheChymera/chymeric/tree/master/net-p2p/btsync

But I cannot test the init.d script (not running udev) and I believe the btsync.service systemd script I dreamt up is not really working. Directly launching the app also seems to not be working.

Please Help! :)
Comment 1 Horea Christian 2013-09-29 01:51:31 UTC
Created attachment 359712 [details]
btsync.ebuild
Comment 2 Horea Christian 2013-09-29 01:52:31 UTC
Created attachment 359714 [details]
btsync.ebuild
Comment 3 Horea Christian 2013-09-29 01:53:09 UTC
Created attachment 359716 [details]
btsync.service
Comment 4 Horea Christian 2013-09-30 16:34:57 UTC
Ok, so apparently I figured this out - here is an up-to-date ebuild for btsync which should work with both udev and systemd.

https://github.com/TheChymera/chymeric/tree/master/net-p2p/btsync

It would be great if you can help me get this into portage.
Comment 5 Horea Christian 2013-09-30 16:38:31 UTC
also, why net-misc/btsync and not net-p2p/btsync ? some overlays and funtoo have btsync (ebuilds which in contrast to mine are either outdated or do not work with systemd) - and it's in net-p2p.
Comment 6 Horea Christian 2013-10-17 01:19:10 UTC
Hi, I just finished writing an ebuild with full SystemD support for Btsync. You may find the files here https://github.com/TheChymera/chymeric/tree/master/net-p2p/btsync

Also, here's a walkthrough and documentation on how it all works: http://tutorials.chymera.eu/blog/2013/10/16/btsync/
Comment 7 Martux 2014-02-13 21:06:31 UTC
This is amazing! I don't use systemd, so that's probably the reason why your ebuild doesn't work for me. I fetched it from somewhere else and it works like a charm. Very sad that this didn'T make it into portage so far!
Comment 8 Horea Christian 2014-03-02 03:26:42 UTC
Matrux, would you mind telling me where you got it from? I could use the init file your other source provides and then this ebuild would also work with sysvinit & RC
Comment 9 Martux 2014-03-02 08:12:43 UTC
Sure, that must have been this:
http://git.btbn.de/gentoo-overlay.git/tree/net-p2p/btsync
I use it since some weeks and it just works.
Comment 10 Martux 2014-03-18 21:21:34 UTC
There is a new version up: 1.2.91. Too bad this is still not in portage.
Comment 11 Martux 2014-03-31 20:52:41 UTC
Two new version bumps: 1.3.67 and 1.3.77. I succesfully managed to copy the 1.2.91.ebuild to version 1.3.67, but this doesn't work anymore for the newer versions. Unfortunately I don't have any clue about writing ebuilds, so I guess I am stuck at 1.3.67...
Comment 12 poletti.marco 2014-11-15 16:07:07 UTC
There's an ebuild for 1.4.75 in the "abnorm" overlay:

http://gpo.zugaina.org/Overlays/abnorm/net-p2p/btsync
Comment 13 Vladimir Pavljuchenkov (SpiderX) 2016-08-07 21:33:23 UTC
Created attachment 442728 [details]
resilio sync ebuild

My version of ebuild:

1. Binary is installed into /usr/bin.
There is no need in /opt since upstream provides just binary with the possibility to configure path of resources, required for runtime.

2. Ebuild wrote through usage of ebuild's standard functions.

3. There are openrc init-script and systemd service.

4. Support for PAX kernels.
Comment 14 Vladimir Pavljuchenkov (SpiderX) 2016-08-07 21:33:51 UTC
Created attachment 442730 [details]
metadata.xml
Comment 15 Vladimir Pavljuchenkov (SpiderX) 2016-08-07 21:34:27 UTC
Created attachment 442732 [details]
btsync.confd
Comment 16 Vladimir Pavljuchenkov (SpiderX) 2016-08-07 21:34:50 UTC
Created attachment 442734 [details]
btsync.initd
Comment 17 Vladimir Pavljuchenkov (SpiderX) 2016-08-07 21:35:13 UTC
Created attachment 442736 [details]
btsync.service
Comment 18 Larry the Git Cow gentoo-dev 2018-01-25 22:47:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2099c6f6ad76beffe20bb54a552d57ca528e3eca

commit 2099c6f6ad76beffe20bb54a552d57ca528e3eca
Author:     Vladimir Pavljuchenkov (SpiderX) <spiderx@spiderx.dp.ua>
AuthorDate: 2017-07-19 18:35:22 +0000
Commit:     Patrice Clement <monsieurp@gentoo.org>
CommitDate: 2018-01-25 22:46:40 +0000

    net-p2p/resilio-sync-bin: new package.
    
    Resilio Sync is a proprietary peer-to-peer multiplatform file synchronization
    tool It can sync files between devices on a local network, or between remote
    devices over the Internet via a modified version of the BitTorrent protocol.
    
    Base for ebuild from https://github.com/SpiderX/portage-overlay/tree/master/net-p2p/resilio-sync.
    
    Closes: https://bugs.gentoo.org/486406
    Closes: https://github.com/gentoo/gentoo/pull/6901
    Package-Manager: Portage-2.3.6, Repoman-2.3.2

 net-p2p/resilio-sync/Manifest                      |  2 +
 net-p2p/resilio-sync/files/resilio-sync-user.confd | 12 ++++
 net-p2p/resilio-sync/files/resilio-sync-user.initd | 27 ++++++++
 .../resilio-sync/files/resilio-sync-user.service   | 13 ++++
 net-p2p/resilio-sync/files/resilio-sync.confd      | 12 ++++
 net-p2p/resilio-sync/files/resilio-sync.initd      | 18 +++++
 net-p2p/resilio-sync/files/resilio-sync.service    | 17 +++++
 net-p2p/resilio-sync/files/resilio-sync.tmpfile    |  1 +
 net-p2p/resilio-sync/metadata.xml                  | 24 +++++++
 net-p2p/resilio-sync/resilio-sync-2.5.12.ebuild    | 78 ++++++++++++++++++++++
 10 files changed, 204 insertions(+)