Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/resilio-sync/
Date: Sun, 11 Jul 2021 21:23:25
Message-Id: 1626038307.37099d5516d4d89063793ec12d0fe15f2bf4a795.conikost@gentoo
1 commit: 37099d5516d4d89063793ec12d0fe15f2bf4a795
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 11 21:09:21 2021 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 11 21:18:27 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37099d55
7
8 net-p2p/resilio-sync: drop old version
9
10 Closes: https://bugs.gentoo.org/781455
11 Package-Manager: Portage-3.0.20, Repoman-3.0.3
12 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
13
14 net-p2p/resilio-sync/resilio-sync-2.6.3-r1.ebuild | 78 -----------------------
15 1 file changed, 78 deletions(-)
16
17 diff --git a/net-p2p/resilio-sync/resilio-sync-2.6.3-r1.ebuild b/net-p2p/resilio-sync/resilio-sync-2.6.3-r1.ebuild
18 deleted file mode 100644
19 index 747808bdcbe..00000000000
20 --- a/net-p2p/resilio-sync/resilio-sync-2.6.3-r1.ebuild
21 +++ /dev/null
22 @@ -1,78 +0,0 @@
23 -# Copyright 1999-2021 Gentoo Authors
24 -# Distributed under the terms of the GNU General Public License v2
25 -
26 -EAPI=7
27 -
28 -inherit pax-utils readme.gentoo-r1 systemd tmpfiles unpacker user
29 -
30 -QA_PREBUILT="usr/bin/rslsync"
31 -BASE_URI="http://download-cdn.resilio.com/${PV}/Debian/${PN}_${PV}-1_@arch@.deb"
32 -
33 -DESCRIPTION="Resilient, fast and scalable file synchronization tool"
34 -HOMEPAGE="https://resilio.com/"
35 -SRC_URI="amd64? ( ${BASE_URI/@arch@/amd64} )
36 - x86? ( ${BASE_URI/@arch@/i386} )"
37 -S="${WORKDIR}"
38 -
39 -LICENSE="all-rights-reserved"
40 -SLOT="0"
41 -KEYWORDS="~amd64 ~x86"
42 -RESTRICT="bindist mirror"
43 -
44 -RDEPEND="
45 - || (
46 - sys-libs/glibc[crypt(+)]
47 - sys-libs/libxcrypt[compat]
48 - )"
49 -
50 -DOC_CONTENTS="You may need to review /etc/resilio-sync/config.json\\n
51 -Default metadata path is /var/lib/resilio-sync/.sync\\n
52 -Default web-gui URL is http://localhost:8888/\\n\\n"
53 -
54 -pkg_setup() {
55 - enewgroup rslsync
56 - enewuser rslsync -1 -1 /var/lib/resilio-sync rslsync
57 -}
58 -
59 -src_unpack() {
60 - unpacker_src_unpack
61 -
62 - unpack usr/share/man/man1/resilio-sync.1.gz
63 -}
64 -
65 -src_install() {
66 - dobin usr/bin/rslsync
67 - pax-mark m "${ED}"/usr/bin/rslsync
68 -
69 - doman resilio-sync.1
70 -
71 - newinitd "${FILESDIR}"/resilio-sync.initd resilio-sync
72 - newconfd "${FILESDIR}"/resilio-sync.confd resilio-sync
73 - newinitd "${FILESDIR}"/resilio-sync-user.initd resilio-sync-user
74 - newconfd "${FILESDIR}"/resilio-sync-user.confd resilio-sync-user
75 - systemd_dounit "${FILESDIR}"/resilio-sync.service
76 - systemd_douserunit "${FILESDIR}"/resilio-sync-user.service
77 - newtmpfiles "${FILESDIR}"/resilio-sync.tmpfile resilio-sync.conf
78 -
79 - readme.gentoo_create_doc
80 -
81 - # Generate sample config, uncomment config directives and change values
82 - insopts -orslsync -grslsync -m0644
83 - insinto /etc/resilio-sync
84 - newins - config.json < <("${ED}"/usr/bin/rslsync --dump-sample-config | \
85 - sed \
86 - -e "/storage_path/s|//| |g" \
87 - -e "/pid_file/s|//| |g" \
88 - -e "/storage_path/s|/home/user/.sync|/var/lib/resilio-sync/.sync|g" \
89 - -e "/pid_file/s|resilio/resilio|resilio-sync/resilio-sync|g" \
90 - || die "sed failed for config.json" )
91 -
92 - diropts -orslsync -grslsync -m0700
93 - keepdir /etc/resilio-sync /var/lib/resilio-sync/ \
94 - /var/lib/resilio-sync/.sync /var/log/resilio-sync
95 -}
96 -
97 -pkg_postinst() {
98 - tmpfiles_process resilio-sync.conf
99 - readme.gentoo_print_elog
100 -}