Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/resilio-sync/
Date: Mon, 05 Sep 2022 12:37:28
Message-Id: 1662381433.cc585acdb8e0354a76f8b09d5ff76d38dd183475.juippis@gentoo
1 commit: cc585acdb8e0354a76f8b09d5ff76d38dd183475
2 Author: Vladimir Pavljuchenkov (SpiderX) <spiderx <AT> spiderx <DOT> dp <DOT> ua>
3 AuthorDate: Sun Aug 21 15:22:04 2022 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 5 12:37:13 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc585acd
7
8 net-p2p/resilio-sync: version bump to 2.7.3.1381, arm, live ebuild
9
10 Closes: https://bugs.gentoo.org/733726
11 Package-Manager: Portage-3.0.30, Repoman-3.0.3
12 Signed-off-by: Vladimir Pavljuchenkov <spiderx <AT> spiderx.dp.ua>
13 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
14
15 net-p2p/resilio-sync/Manifest | 8 +++
16 .../resilio-sync/resilio-sync-2.7.3.1381.ebuild | 74 ++++++++++++++++++++++
17 net-p2p/resilio-sync/resilio-sync-9999.ebuild | 66 +++++++++++++++++++
18 3 files changed, 148 insertions(+)
19
20 diff --git a/net-p2p/resilio-sync/Manifest b/net-p2p/resilio-sync/Manifest
21 index 52a086630e2e..f1a19b67caf4 100644
22 --- a/net-p2p/resilio-sync/Manifest
23 +++ b/net-p2p/resilio-sync/Manifest
24 @@ -1,2 +1,10 @@
25 DIST resilio-sync_2.7.2.1375-1_amd64.deb 11845750 BLAKE2B 894b975327f18ef4c5fe124466d9b1b50de72d08c106fe9f61a634e42b98042c2f5b40ed6c1afc2550fea3506e6cdef7d58eb041604624b26a5a877d62d941e5 SHA512 563643aab506f521c320e5b2ddc08d7d6893ea0908ecedeb11237495c47fb0585a781f83d0daacaf7de2084d9312784b947ad2e626995a05cdd03ffaae413665
26 DIST resilio-sync_2.7.2.1375-1_i386.deb 11921570 BLAKE2B 8595bfa5ca1c366fdeb93a4126b5634ef65ffab1883a6b9a5f557d172b18a6f1966f891ff79407e576eaa3315b8d67b7fe11c7b8a760a5ab0272e1bcb4224552 SHA512 114af90ea5e89c6f3698cfd9eb8f5dd8bd5316ab5fd0873238a78a29e4c33d0e96a19f61687d47f46d708b79a2f1877166075e7c3e11b4e4fe4f517cc26d2231
27 +DIST resilio-sync_2.7.3.1381-1_amd64.deb 11891248 BLAKE2B a5b3f7ba0b364cac706660bc2ab105f042fd367679c894c0e84a10c299c7ace99f051057a1e1679de43d9a219dd58f76b817d708f87776a18caf9d1808a6f4c0 SHA512 0417e8b0d9f6b20105145dd93d602b5682484f72d600f865241dc3016bb007b2adabe7ce288d18a95a63e31c32c12069909580a5afa93665cef5eb9b22cecd2e
28 +DIST resilio-sync_2.7.3.1381-1_arm64.deb 11239146 BLAKE2B fee89f4f2b8a20043981c5dc4662e2df5cac983020847897c7b0797119723a1266fbdfaf34ffea28bfe1d01786994376ad30ad475f9808372f93601cb6af8d89 SHA512 5c421ddb6ee853395e6e43d3ffd9c483c2038be7f3b0c7db797b86e403e249e3bd2143f7e476d1e547ce529369f175c27d19f3f84057ee0d1478306c9e14c509
29 +DIST resilio-sync_2.7.3.1381-1_armhf.deb 10985236 BLAKE2B 8b24181ac10b1d671c8e6412910ace20932e1e4386a5493b0c9030fb26b8d145c43da7d1e4b281d5d80da003469ab4197573d123dd5e9256eec27be139e62cef SHA512 cb725ff8051a84b0511204f81d9e34ab14f48dc9c274620efbd81c8c1cdbf641e26373f397e185c0afc1ec02ba8925e179a7953f5f8df780f1659b5952eeb4cb
30 +DIST resilio-sync_2.7.3.1381-1_i386.deb 11968124 BLAKE2B 251a70fe03e4916e6fccbcb49c36e0b3b0508c469c69244ccc00e5db7448d701d08a44ae545c677f2db1a34ff0ffe1908b6efd137c792981f885fc0be4d80c69 SHA512 e28b6098dacdf707ce5e9c15ededf10eaee614e331f0515ec200bd17211e1826c4bc4fb0cc7692abbf90fb9d1bb78765b4a13ae106fbf4e6bd3b72282e709b78
31 +DIST resilio-sync_arm64.tar.gz 13108308 BLAKE2B d6b9038041cada6017a925ccbc38094c6e876f6aa009ac5a6cd134d883458764c1549c5fab38f53a0bc16593fe51dcd816fa91c75a0a7ef7ecb9ac3a378107b3 SHA512 0b0ee23a8709272f8e3d346377891a88aac57d68ce3161777383c8d16b6456017920f8f10baa37bd524eaefb4e20e6d9646b084bedfb3124f33b5da8e4085388
32 +DIST resilio-sync_armhf.tar.gz 12124154 BLAKE2B 19b5ede578e51e851320d1fe202c73987c1d5a833a9ac6134a34c1302c133140ea708e5fa9500099f47378fbc8ac877ff08ab88c16040f38584e4cfdc2778927 SHA512 f0666b237f5f1a82299818df2dc24461456d61ea7ed51768ee5318ddcd5bcb2c49bf011c34d20f156b689bc29f43ec7895c368517b2fef4d4fb4ca10601fdf53
33 +DIST resilio-sync_i386.tar.gz 13675137 BLAKE2B c0d0e738acab7b8117edcaf027f6fd1223154f1cc998ff585946cc0ed7c2981356b4ab6b4914a2939fa8a423dae5b7fe5677f32c3f7835fbdc8f931717219836 SHA512 24159f581c47e94d2f8a664450a1a33d76f5cade44e9d5b0ad15246c6c5cdcf91f267f8dac20382e0618ebe0f9df5b30befe5eab600c395e7893da1d359b5982
34 +DIST resilio-sync_x64.tar.gz 13563546 BLAKE2B ae1f7a0a4fb4605c310464871628a36531986913429d86955a9b10fb0bb7ad58f29c7a6d400479b8fd154052282ed3bc7e37060c7d32f36486e316bd5ae77e2b SHA512 cfbf522761e6c9f0c77dfbb38b5a17f23360b147138cad9932400cd41fef6a14874cd1b58d737430ff5a9ae3a5e9d09f210b745bc5d2219d583c0def9f29dffc
35
36 diff --git a/net-p2p/resilio-sync/resilio-sync-2.7.3.1381.ebuild b/net-p2p/resilio-sync/resilio-sync-2.7.3.1381.ebuild
37 new file mode 100644
38 index 000000000000..2350cf287fd5
39 --- /dev/null
40 +++ b/net-p2p/resilio-sync/resilio-sync-2.7.3.1381.ebuild
41 @@ -0,0 +1,74 @@
42 +# Copyright 1999-2022 Gentoo Authors
43 +# Distributed under the terms of the GNU General Public License v2
44 +
45 +EAPI=8
46 +
47 +inherit pax-utils readme.gentoo-r1 systemd tmpfiles unpacker
48 +
49 +QA_PREBUILT="usr/bin/rslsync"
50 +BASE_URI="https://download-cdn.resilio.com/${PV}/Debian/${PN}_${PV}-1_@arch@.deb"
51 +
52 +DESCRIPTION="Resilient, fast and scalable file synchronization tool"
53 +HOMEPAGE="https://www.resilio.com"
54 +SRC_URI="amd64? ( ${BASE_URI/@arch@/amd64} )
55 + arm? ( ${BASE_URI/@arch@/armhf} )
56 + arm64? ( ${BASE_URI/@arch@/arm64} )
57 + x86? ( ${BASE_URI/@arch@/i386} )"
58 +
59 +LICENSE="all-rights-reserved"
60 +SLOT="0"
61 +KEYWORDS="~amd64 ~x86"
62 +IUSE=""
63 +RESTRICT="bindist mirror"
64 +
65 +RDEPEND="acct-group/rslsync
66 + acct-user/rslsync"
67 +
68 +S="${WORKDIR}"
69 +
70 +DOC_CONTENTS="You may need to review /etc/resilio-sync/config.json\\n
71 +Default metadata path is /var/lib/resilio-sync/.sync\\n
72 +Default web-gui URL is http://localhost:8888/\\n\\n"
73 +
74 +src_unpack() {
75 + unpacker_src_unpack
76 +
77 + unpack usr/share/man/man1/resilio-sync.1.gz
78 +}
79 +
80 +src_install() {
81 + dobin usr/bin/rslsync
82 + pax-mark m "${ED}"/usr/bin/rslsync
83 +
84 + doman resilio-sync.1
85 +
86 + newinitd "${FILESDIR}"/resilio-sync.initd resilio-sync
87 + newconfd "${FILESDIR}"/resilio-sync.confd resilio-sync
88 + newinitd "${FILESDIR}"/resilio-sync-user.initd resilio-sync-user
89 + newconfd "${FILESDIR}"/resilio-sync-user.confd resilio-sync-user
90 + systemd_dounit "${FILESDIR}"/resilio-sync.service
91 + systemd_douserunit "${FILESDIR}"/resilio-sync-user.service
92 + newtmpfiles "${FILESDIR}"/resilio-sync.tmpfile resilio-sync.conf
93 +
94 + readme.gentoo_create_doc
95 +
96 + # Generate sample config, uncomment config directives and change values
97 + insopts -o rslsync -g rslsync -m 0644
98 + insinto /etc/resilio-sync
99 + newins - config.json < <("${ED}"/usr/bin/rslsync --dump-sample-config | \
100 + sed \
101 + -e "/storage_path/s|//| |g" \
102 + -e "/pid_file/s|//| |g" \
103 + -e "/storage_path/s|/home/user/.sync|/var/lib/resilio-sync/.sync|g" \
104 + -e "/pid_file/s|resilio/resilio|resilio-sync/resilio-sync|g" \
105 + || die "sed failed for config.json" )
106 +
107 + diropts -o rslsync -g rslsync -m 0700
108 + keepdir /etc/resilio-sync /var/lib/resilio-sync/ \
109 + /var/lib/resilio-sync/.sync /var/log/resilio-sync
110 +}
111 +
112 +pkg_postinst() {
113 + tmpfiles_process resilio-sync.conf
114 + readme.gentoo_print_elog
115 +}
116
117 diff --git a/net-p2p/resilio-sync/resilio-sync-9999.ebuild b/net-p2p/resilio-sync/resilio-sync-9999.ebuild
118 new file mode 100644
119 index 000000000000..ec75a022b718
120 --- /dev/null
121 +++ b/net-p2p/resilio-sync/resilio-sync-9999.ebuild
122 @@ -0,0 +1,66 @@
123 +# Copyright 1999-2022 Gentoo Authors
124 +# Distributed under the terms of the GNU General Public License v2
125 +
126 +EAPI=8
127 +
128 +inherit pax-utils readme.gentoo-r1 systemd tmpfiles
129 +
130 +QA_PREBUILT="usr/bin/rslsync"
131 +BASE_URI="https://download-cdn.resilio.com/stable/linux-@arch@/${PN}_@arch@××××.gz"
132 +
133 +DESCRIPTION="Resilient, fast and scalable file synchronization tool"
134 +HOMEPAGE="https://www.resilio.com"
135 +SRC_URI="amd64? ( ${BASE_URI//@arch@/x64} )
136 + arm? ( ${BASE_URI//@arch@/armhf} )
137 + arm64? ( ${BASE_URI//@arch@/arm64} )
138 + x86? ( ${BASE_URI//@arch@/i386} )"
139 +
140 +LICENSE="all-rights-reserved"
141 +SLOT="0"
142 +KEYWORDS="~amd64 ~x86"
143 +IUSE=""
144 +RESTRICT="bindist mirror"
145 +
146 +RDEPEND="acct-group/rslsync
147 + acct-user/rslsync"
148 +
149 +S="${WORKDIR}"
150 +
151 +DOC_CONTENTS="You may need to review /etc/resilio-sync/config.json\\n
152 +Default metadata path is /var/lib/resilio-sync/.sync\\n
153 +Default web-gui URL is http://localhost:8888/\\n\\n"
154 +
155 +src_install() {
156 + dobin rslsync
157 + pax-mark m "${ED}"/usr/bin/rslsync
158 +
159 + newinitd "${FILESDIR}"/resilio-sync.initd resilio-sync
160 + newconfd "${FILESDIR}"/resilio-sync.confd resilio-sync
161 + newinitd "${FILESDIR}"/resilio-sync-user.initd resilio-sync-user
162 + newconfd "${FILESDIR}"/resilio-sync-user.confd resilio-sync-user
163 + systemd_dounit "${FILESDIR}"/resilio-sync.service
164 + systemd_douserunit "${FILESDIR}"/resilio-sync-user.service
165 + newtmpfiles "${FILESDIR}"/resilio-sync.tmpfile resilio-sync.conf
166 +
167 + readme.gentoo_create_doc
168 +
169 + # Generate sample config, uncomment config directives and change values
170 + insopts -o rslsync -g rslsync -m 0644
171 + insinto /etc/resilio-sync
172 + newins - config.json < <("${ED}"/usr/bin/rslsync --dump-sample-config | \
173 + sed \
174 + -e "/storage_path/s|//| |g" \
175 + -e "/pid_file/s|//| |g" \
176 + -e "/storage_path/s|/home/user/.sync|/var/lib/resilio-sync/.sync|g" \
177 + -e "/pid_file/s|resilio/resilio|resilio-sync/resilio-sync|g" \
178 + || die "sed failed for config.json" )
179 +
180 + diropts -o rslsync -g rslsync -m 0700
181 + keepdir /etc/resilio-sync /var/lib/resilio-sync/ \
182 + /var/lib/resilio-sync/.sync /var/log/resilio-sync
183 +}
184 +
185 +pkg_postinst() {
186 + tmpfiles_process resilio-sync.conf
187 + readme.gentoo_print_elog
188 +}