Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/resilio-sync/
Date: Fri, 15 Mar 2019 22:42:37
Message-Id: 1552689737.6edfbc0131d0532ef84dc6751e778ed2dd1480b3.monsieurp@gentoo
1 commit: 6edfbc0131d0532ef84dc6751e778ed2dd1480b3
2 Author: Vladimir Pavljuchenkov (SpiderX) <spiderx <AT> spiderx <DOT> dp <DOT> ua>
3 AuthorDate: Fri Mar 15 17:27:06 2019 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 15 22:42:17 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6edfbc01
7
8 net-p2p/resilio-sync: version bump to 2.6.3, EAPI 7.
9
10 1. Version bump to 2.6.3
11 2. Moved to EAPI 7
12 3. Upstream changed URL
13
14 Signed-off-by: Vladimir Pavljuchenkov <spiderx <AT> spiderx.dp.ua>
15 Package-Manager: Portage-2.3.62, Repoman-2.3.11
16 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
17
18 net-p2p/resilio-sync/Manifest | 2 +
19 net-p2p/resilio-sync/resilio-sync-2.6.3.ebuild | 74 ++++++++++++++++++++++++++
20 2 files changed, 76 insertions(+)
21
22 diff --git a/net-p2p/resilio-sync/Manifest b/net-p2p/resilio-sync/Manifest
23 index a85e4ac47e2..815fa8be8b5 100644
24 --- a/net-p2p/resilio-sync/Manifest
25 +++ b/net-p2p/resilio-sync/Manifest
26 @@ -1,2 +1,4 @@
27 DIST resilio-sync_2.6.1-1_amd64.deb 11576892 BLAKE2B 710bd96b91be84bc7210d8efe0d8954a33be878fc948694e7a1c62e7b53b5ac94133a16b89c4872e18798bc03f3508c7c130d4d56a3480c35d30edff5589ef3a SHA512 a37d73a621a740f57b4f2824cc2a3178f365ccc8180a0e814480dde8d1b74b9d54da4e07bd18c89cc6a93c12b526f8a43e08165d3c2f0fdc913e1f38e46eb183
28 DIST resilio-sync_2.6.1-1_i386.deb 11465194 BLAKE2B b56e01f79c5beec6a5ebd09724bebd1ce8c6d44eac694cd7fb89dc44823ccba22531b14e241fdd985ae63e6e0f177021becb593923eac8ac0183629e533ac72d SHA512 84676c3fe5fcee484bcd58c6496aba0d2e3c86c339adb90b8b3cef28ae46d7b6f28c5fd0371a2cfe612ab8b3658eca2b9b2f6cfc9caa70aaff95946942a5c749
29 +DIST resilio-sync_2.6.3-1_amd64.deb 12109918 BLAKE2B e89ca0eedadd29d1d0519f0e894f6cbb865b39600df6b516a85411da45e58751caf1c0988d13c821b134ac2318f6487cdad82a75b7357686bde1865b88779f3e SHA512 4531936a5ddd23cfcf2354ea9c7f285e08d1afdd0922d1254baec2900f1c4bfdbbe5d57a5f9cf079b8b3fee69cc9f0a1557218657c1386f800d6e19cc6de31a3
30 +DIST resilio-sync_2.6.3-1_i386.deb 12062106 BLAKE2B f070844fc513ce052e1cb480f4b521216da485ffc00fb0b7e512d877ae6d0bb39452015bc24f931850542490e69d3b210c5a4dd8635a43f16901791144134880 SHA512 18e01ae12c198e7e921a8fd74e934365f027607940ada7378adb239b5c8a25b94e47ac4290c738acac54c53beff25e1ba35f4e079ce8145852f385212bd8794b
31
32 diff --git a/net-p2p/resilio-sync/resilio-sync-2.6.3.ebuild b/net-p2p/resilio-sync/resilio-sync-2.6.3.ebuild
33 new file mode 100644
34 index 00000000000..95ea559330a
35 --- /dev/null
36 +++ b/net-p2p/resilio-sync/resilio-sync-2.6.3.ebuild
37 @@ -0,0 +1,74 @@
38 +# Copyright 1999-2019 Gentoo Authors
39 +# Distributed under the terms of the GNU General Public License v2
40 +
41 +EAPI=7
42 +
43 +inherit pax-utils readme.gentoo-r1 systemd tmpfiles unpacker user
44 +
45 +QA_PREBUILT="usr/bin/rslsync"
46 +BASE_URI="http://download-cdn.resilio.com/${PV}/Debian/${PN}_${PV}-1_@arch@.deb"
47 +
48 +DESCRIPTION="Resilient, fast and scalable file synchronization tool"
49 +HOMEPAGE="https://resilio.com/"
50 +SRC_URI="amd64? ( ${BASE_URI/@arch@/amd64} )
51 + x86? ( ${BASE_URI/@arch@/i386} )"
52 +
53 +LICENSE="all-rights-reserved"
54 +SLOT="0"
55 +KEYWORDS="~amd64 ~x86"
56 +IUSE="pax_kernel"
57 +RESTRICT="bindist mirror"
58 +
59 +S="${WORKDIR}"
60 +
61 +DOC_CONTENTS="You may need to review /etc/resilio-sync/config.json\\n
62 +Default metadata path is /var/lib/resilio-sync/.sync\\n
63 +Default web-gui URL is http://localhost:8888/\\n\\n"
64 +
65 +pkg_setup() {
66 + enewgroup rslsync
67 + enewuser rslsync -1 -1 /var/lib/resilio-sync rslsync
68 +}
69 +
70 +src_unpack() {
71 + unpacker_src_unpack
72 +
73 + unpack usr/share/man/man1/resilio-sync.1.gz
74 +}
75 +
76 +src_install() {
77 + dobin usr/bin/rslsync
78 + use pax_kernel && pax-mark m "${ED%/}"/usr/bin/rslsync
79 +
80 + doman resilio-sync.1
81 +
82 + newinitd "${FILESDIR}"/resilio-sync.initd resilio-sync
83 + newconfd "${FILESDIR}"/resilio-sync.confd resilio-sync
84 + newinitd "${FILESDIR}"/resilio-sync-user.initd resilio-sync-user
85 + newconfd "${FILESDIR}"/resilio-sync-user.confd resilio-sync-user
86 + systemd_dounit "${FILESDIR}"/resilio-sync.service
87 + systemd_douserunit "${FILESDIR}"/resilio-sync-user.service
88 + newtmpfiles "${FILESDIR}"/resilio-sync.tmpfile resilio-sync.conf
89 +
90 + readme.gentoo_create_doc
91 +
92 + # Generate sample config, uncomment config directives and change values
93 + insopts -orslsync -grslsync -m0644
94 + insinto /etc/resilio-sync
95 + newins - config.json < <("${ED%/}"/usr/bin/rslsync --dump-sample-config | \
96 + sed \
97 + -e "/storage_path/s|//| |g" \
98 + -e "/pid_file/s|//| |g" \
99 + -e "/storage_path/s|/home/user/.sync|/var/lib/resilio-sync/.sync|g" \
100 + -e "/pid_file/s|resilio/resilio|resilio-sync/resilio-sync|g" \
101 + || die "sed failed for config.json" )
102 +
103 + diropts -orslsync -grslsync -m0700
104 + keepdir /etc/resilio-sync /var/lib/resilio-sync/ \
105 + /var/lib/resilio-sync/.sync /var/log/resilio-sync
106 +}
107 +
108 +pkg_postinst() {
109 + tmpfiles_process resilio-sync.conf
110 + readme.gentoo_print_elog
111 +}