diff options
author | 2019-03-15 19:27:06 +0200 | |
---|---|---|
committer | 2019-03-15 23:42:17 +0100 | |
commit | 6edfbc0131d0532ef84dc6751e778ed2dd1480b3 (patch) | |
tree | 20a327caa12d28324df63aa88cbb4610ae0dd94e /net-p2p/resilio-sync/resilio-sync-2.6.3.ebuild | |
parent | net-p2p/resilio-sync: remove old version 2.5.12. (diff) | |
download | gentoo-6edfbc0131d0532ef84dc6751e778ed2dd1480b3.tar.gz gentoo-6edfbc0131d0532ef84dc6751e778ed2dd1480b3.tar.bz2 gentoo-6edfbc0131d0532ef84dc6751e778ed2dd1480b3.zip |
net-p2p/resilio-sync: version bump to 2.6.3, EAPI 7.
1. Version bump to 2.6.3
2. Moved to EAPI 7
3. Upstream changed URL
Signed-off-by: Vladimir Pavljuchenkov <spiderx@spiderx.dp.ua>
Package-Manager: Portage-2.3.62, Repoman-2.3.11
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'net-p2p/resilio-sync/resilio-sync-2.6.3.ebuild')
-rw-r--r-- | net-p2p/resilio-sync/resilio-sync-2.6.3.ebuild | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/net-p2p/resilio-sync/resilio-sync-2.6.3.ebuild b/net-p2p/resilio-sync/resilio-sync-2.6.3.ebuild new file mode 100644 index 000000000000..95ea559330a0 --- /dev/null +++ b/net-p2p/resilio-sync/resilio-sync-2.6.3.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit pax-utils readme.gentoo-r1 systemd tmpfiles unpacker user + +QA_PREBUILT="usr/bin/rslsync" +BASE_URI="http://download-cdn.resilio.com/${PV}/Debian/${PN}_${PV}-1_@arch@.deb" + +DESCRIPTION="Resilient, fast and scalable file synchronization tool" +HOMEPAGE="https://resilio.com/" +SRC_URI="amd64? ( ${BASE_URI/@arch@/amd64} ) + x86? ( ${BASE_URI/@arch@/i386} )" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="pax_kernel" +RESTRICT="bindist mirror" + +S="${WORKDIR}" + +DOC_CONTENTS="You may need to review /etc/resilio-sync/config.json\\n +Default metadata path is /var/lib/resilio-sync/.sync\\n +Default web-gui URL is http://localhost:8888/\\n\\n" + +pkg_setup() { + enewgroup rslsync + enewuser rslsync -1 -1 /var/lib/resilio-sync rslsync +} + +src_unpack() { + unpacker_src_unpack + + unpack usr/share/man/man1/resilio-sync.1.gz +} + +src_install() { + dobin usr/bin/rslsync + use pax_kernel && pax-mark m "${ED%/}"/usr/bin/rslsync + + doman resilio-sync.1 + + newinitd "${FILESDIR}"/resilio-sync.initd resilio-sync + newconfd "${FILESDIR}"/resilio-sync.confd resilio-sync + newinitd "${FILESDIR}"/resilio-sync-user.initd resilio-sync-user + newconfd "${FILESDIR}"/resilio-sync-user.confd resilio-sync-user + systemd_dounit "${FILESDIR}"/resilio-sync.service + systemd_douserunit "${FILESDIR}"/resilio-sync-user.service + newtmpfiles "${FILESDIR}"/resilio-sync.tmpfile resilio-sync.conf + + readme.gentoo_create_doc + + # Generate sample config, uncomment config directives and change values + insopts -orslsync -grslsync -m0644 + insinto /etc/resilio-sync + newins - config.json < <("${ED%/}"/usr/bin/rslsync --dump-sample-config | \ + sed \ + -e "/storage_path/s|//| |g" \ + -e "/pid_file/s|//| |g" \ + -e "/storage_path/s|/home/user/.sync|/var/lib/resilio-sync/.sync|g" \ + -e "/pid_file/s|resilio/resilio|resilio-sync/resilio-sync|g" \ + || die "sed failed for config.json" ) + + diropts -orslsync -grslsync -m0700 + keepdir /etc/resilio-sync /var/lib/resilio-sync/ \ + /var/lib/resilio-sync/.sync /var/log/resilio-sync +} + +pkg_postinst() { + tmpfiles_process resilio-sync.conf + readme.gentoo_print_elog +} |