diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-01-26 15:48:02 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-01-26 15:48:02 +0000 |
commit | 38b7258d086dd5e263c3bbe3880c8c956676bc71 (patch) | |
tree | 6fce284d5bfddaf597a490ac66069d16c6a485db /net-p2p/resilio-sync | |
parent | 0ebf740b9c9bc7c10ac41bea315ecc6c01c79166 (diff) |
gentoo resync : 25.01.2018
Diffstat (limited to 'net-p2p/resilio-sync')
-rw-r--r-- | net-p2p/resilio-sync/Manifest | 11 | ||||
-rw-r--r-- | net-p2p/resilio-sync/files/resilio-sync-user.confd | 12 | ||||
-rw-r--r-- | net-p2p/resilio-sync/files/resilio-sync-user.initd | 27 | ||||
-rw-r--r-- | net-p2p/resilio-sync/files/resilio-sync-user.service | 13 | ||||
-rw-r--r-- | net-p2p/resilio-sync/files/resilio-sync.confd | 12 | ||||
-rw-r--r-- | net-p2p/resilio-sync/files/resilio-sync.initd | 18 | ||||
-rw-r--r-- | net-p2p/resilio-sync/files/resilio-sync.service | 17 | ||||
-rw-r--r-- | net-p2p/resilio-sync/files/resilio-sync.tmpfile | 1 | ||||
-rw-r--r-- | net-p2p/resilio-sync/metadata.xml | 24 | ||||
-rw-r--r-- | net-p2p/resilio-sync/resilio-sync-2.5.12.ebuild | 78 |
10 files changed, 213 insertions, 0 deletions
diff --git a/net-p2p/resilio-sync/Manifest b/net-p2p/resilio-sync/Manifest new file mode 100644 index 000000000000..de2e357d2f59 --- /dev/null +++ b/net-p2p/resilio-sync/Manifest @@ -0,0 +1,11 @@ +AUX resilio-sync-user.confd 299 BLAKE2B 0e534911629f22010329ae441140649cff373d102d7191f057b7e72d5217bdb335457271b780ca5f4d3b3ca989a8c33d9d796491ac15347a5bdfa08b9cf6c7b5 SHA512 a156516938e5b69199c8a0de8d62ff969b8a938e5a2fd2983c0ecfc080682b1a5abeb21cf8193fc9f96954fa2a9658519e37758d6812b21971026af9b7be54ce +AUX resilio-sync-user.initd 768 BLAKE2B b4dd9bab04ac242e258b5fd8412a2292f515535caf2845f2b2795584666924725c2c34684d6a6dfe50677b2ecc86e18a7a2c801467f8d352767138aa986f4aab SHA512 a46d90b7f85fc0d5ec88bded35cef42e105cbf8df1f65032dc79bada56ac8c50d42206fea0c5fa6cb82c4ee56eaa27f2059d283501d84ba90503b3ac6a9f9ef5 +AUX resilio-sync-user.service 324 BLAKE2B 5cec927346956c5219470021fdc73bf2be5486499e917453fd5fad94717e4ad6fc5467948b11b551b5f4cdc94d6ffbfbbd4a65fe21e62a4831f610437b92574c SHA512 95621e4df7de0f26da8c057432302a98927db47b4bf9484efe00cb0649020099050feba22a107b01e4c3998ff7d05edb77bdd1ba1f8899839c92984725427504 +AUX resilio-sync.confd 296 BLAKE2B c7fef752df5dcd4e903ebef2bc6da2780c9f19f5f690c505b8abd493081a1bc18a9ae18bba1700df15467786b2c50ca5b12e60cf1eef70a4169d7fc7e17a7897 SHA512 5db62947a34c3c5cedec1b4902b8291bfc46c10490f355ed1612a0f37854f3927d3e4550d1a920cd567a4a69403a80b3dd4150c8bd38906123be6542cd35459f +AUX resilio-sync.initd 470 BLAKE2B dc58640afc6ec0706aeb82da3161c2aacb144c1b422ff3d59ac01fe7360c0c44c9c52410567225cfb7139244fff3f1a4f449766a8ce03cb53fdf1d0b22a94d55 SHA512 89def45c14bc058826879384be99c49de0be9991bbc3283c43ebcc0a788a213519551219c431c55aa046fbf773a0c8ff57f998be2db89e86f2829a468b4a9e0b +AUX resilio-sync.service 380 BLAKE2B bab5ea03b7f0db9845a29334f56839dec68fe1d8caf32015445b5b039389f87f729367748f839667b0eb933f95d4389e7c4e0481fb70fd1936b416eacc897a50 SHA512 af50f438111808426f6d80b7bfc77daf665e583540485831c7f51300e3f4768316d0cac2712d9564f1ffcccd7cfe21c48e3c72ba595776057038c230bb3cbdd8 +AUX resilio-sync.tmpfile 41 BLAKE2B fb3e9001a32e45cd230f4efef60509f20f52253ad575fb2b1493bae9846ad46210eed639c7a3f9e4a4fa7c901b42a9a7756f8583c204a4bb847e6eb96a2af323 SHA512 d9d54076785ce601023980e3fe5e2eab42e5eaf3b0bdb9caefe508e0d5fda8d32faf1338c6b901deb29488401de74228023016d72d7b0ec9db362b4c2d87edd2 +DIST resilio-sync_2.5.12-1_amd64.deb 10467196 BLAKE2B e900ac4e8b3862b29674db09d469013a5d12791c090bfd6ecae8f95af6f8ff2f990b8b9cab176b301b7625d6fcee1fcbe33b497f09bca045497a6765ccbb313c SHA512 4056df3d2cbafdb881f1d2929fca13efd258fb7af2cbdc390eae4820af1f5b2b46d410daf2a1ad1233d105edc46c4d5a8e9259e4557c0695b3392884429d95f9 +DIST resilio-sync_2.5.12-1_i386.deb 10333948 BLAKE2B 7a7a6e2bf8375bf5428c27053c22de98e598de07d8709f870152a8b9e2d7254a954b3ceebad69bebf286ef29b3d44b9955f33c4f396a7831041c34b9bd585dd2 SHA512 c15276bbe8818e30cab254a7b1f1222e3a25912d99a05287441548ea3ee3de8964d23a5aed56fd547ee3369f9943129cf7d3a5bd410ce28a9fbd45e13def56b4 +EBUILD resilio-sync-2.5.12.ebuild 2254 BLAKE2B 0ea135eea705a61e3dbe009f941c35ef7ac6809f05aa8fa1c07e42b96f959fc68fd3191cf39198b33d6f0d2db203b2dee21baa6c7c5a5741fee808e526581b78 SHA512 3f77265365a3be3f59ac1f82b7921f28e6c3a868eb191ba066b77624f31dd52b3d2b78dcdff8245df4efdca0ecb5f1bb734d80d7f40d4cdc8ea0891a31846940 +MISC metadata.xml 889 BLAKE2B e1ace94f1fe08c07df2825107b7f73a028894f551c5fb9a6a5986ee0fcecb29204ec19a87231153cdb16de672178eec045fabf01923bf16cb6c0307a024bdeca SHA512 cafa6e1e9a127ddc8ae14b5d52502caf5a297cb397e0770c3e7ef0bd810c4b12c197061ab1429a549054ab8c9674c9ef9d29639825f4f899892d57de41a21707 diff --git a/net-p2p/resilio-sync/files/resilio-sync-user.confd b/net-p2p/resilio-sync/files/resilio-sync-user.confd new file mode 100644 index 000000000000..040da8bdf843 --- /dev/null +++ b/net-p2p/resilio-sync/files/resilio-sync-user.confd @@ -0,0 +1,12 @@ +# Config file for /etc/init.d/resilio-sync + +# Various options. +# run `rslsync --help` for valid cmdline options +#OPTS="--log /var/log/resilio-sync/resilio-sync.log" + +# User and group daemon runs as +#USER="rslsync" +#GROUP="rslsync" + +# Resilio Sync config file +#CONFIG="/etc/resilio-sync/config.json" diff --git a/net-p2p/resilio-sync/files/resilio-sync-user.initd b/net-p2p/resilio-sync/files/resilio-sync-user.initd new file mode 100644 index 000000000000..efcaa2d7778c --- /dev/null +++ b/net-p2p/resilio-sync/files/resilio-sync-user.initd @@ -0,0 +1,27 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +USER="${RC_SVCNAME##*.}" +command="/usr/bin/rslsync" +name="Resilio Sync for $USER" +description="Resilio Sync" +command_user="${USER:-rslsync}:${GROUP:-rslsync}" +pidfile="${PIDFILE:-/home/$USER/.config/resilio-sync/resilio-sync.pid}" +config=${CONFIG:-/home/$USER/.config/resilio-sync/config.json} +command_args="--config $config ${OPTS}" +start_stop_daemon_args="-q" +retry="10" + +depend() { + need net +} + +start_pre() { + if [ "$USER" = "resilio-sync-user" ]; then + eerror "You are not supposed to run this script directly." + eerror "Create a symlink for this script:" + eerror " ln -s $RC_SVCNAME /etc/init.d/$RC_SVCNAME.<user>" + return 1 + fi +} diff --git a/net-p2p/resilio-sync/files/resilio-sync-user.service b/net-p2p/resilio-sync/files/resilio-sync-user.service new file mode 100644 index 000000000000..6c82440ac679 --- /dev/null +++ b/net-p2p/resilio-sync/files/resilio-sync-user.service @@ -0,0 +1,13 @@ +[Unit] +Description=Resilio Sync service +Documentation=http://help.getsync.com/ +After=network.target network-online.target + +[Service] +Type=forking +Restart=on-failure +PIDFile=%h/.config/resilio-sync/resilio-sync.pid +ExecStart=/usr/bin/rslsync --config %h/.config/resilio-sync/config.json + +[Install] +WantedBy=multi-user.target diff --git a/net-p2p/resilio-sync/files/resilio-sync.confd b/net-p2p/resilio-sync/files/resilio-sync.confd new file mode 100644 index 000000000000..08c4255fe296 --- /dev/null +++ b/net-p2p/resilio-sync/files/resilio-sync.confd @@ -0,0 +1,12 @@ +# Config file for /etc/init.d/resilio-sync + +# Various options. +# run `rslsync --help` for valid cmdline options +OPTS="--log /var/log/resilio-sync/resilio-sync.log" + +# User and group daemon runs as +USER="rslsync" +GROUP="rslsync" + +# Resilio Sync config file +#CONFIG="/etc/resilio-sync/config.json" diff --git a/net-p2p/resilio-sync/files/resilio-sync.initd b/net-p2p/resilio-sync/files/resilio-sync.initd new file mode 100644 index 000000000000..b9f0380a773a --- /dev/null +++ b/net-p2p/resilio-sync/files/resilio-sync.initd @@ -0,0 +1,18 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +command="/usr/bin/rslsync" +name="Resilio Sync" +description="Resilio Sync" +command_user="${USER:-rslsync}::${GROUP:-rslsync}" +pidfile="/run/resilio-sync/resilio-sync.pid" +config=${CONFIG:-/etc/resilio-sync/config.json} +command_args="--config $config ${OPTS}" +start_stop_daemon_args="-q" +retry="10" + +depend() { + need net + provide resilio-sync +} diff --git a/net-p2p/resilio-sync/files/resilio-sync.service b/net-p2p/resilio-sync/files/resilio-sync.service new file mode 100644 index 000000000000..32f24a95aa84 --- /dev/null +++ b/net-p2p/resilio-sync/files/resilio-sync.service @@ -0,0 +1,17 @@ +[Unit] +Description=Resilio Sync service +Documentation=http://help.getsync.com/ +After=network.target network-online.target + +[Service] +Type=forking +User=rslsync +Group=rslsync +UMask=0002 +Restart=on-failure +PermissionsStartOnly=true +PIDFile=/var/run/resilio-sync/resilio-sync.pid +ExecStart=/usr/bin/rslsync --config /etc/resilio-sync/config.json + +[Install] +WantedBy=multi-user.target diff --git a/net-p2p/resilio-sync/files/resilio-sync.tmpfile b/net-p2p/resilio-sync/files/resilio-sync.tmpfile new file mode 100644 index 000000000000..d0f6e0adc420 --- /dev/null +++ b/net-p2p/resilio-sync/files/resilio-sync.tmpfile @@ -0,0 +1 @@ +d /run/resilio-sync 0755 rslsync rslsync diff --git a/net-p2p/resilio-sync/metadata.xml b/net-p2p/resilio-sync/metadata.xml new file mode 100644 index 000000000000..35827ed4235b --- /dev/null +++ b/net-p2p/resilio-sync/metadata.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>spiderx@spiderx.dp.ua</email> + <name>Vladimir Pavljuchenkov</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription lang="en"> + 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. + </longdescription> + <use> + <flag name="pax_kernel">Use paxctl to mark binaries</flag> + </use> + <upstream> + <doc>https://help.getsync.com/</doc> + <bugs-to>https://help.getsync.com/hc/en-us/requests/new?ticket_form_id=91563</bugs-to> + </upstream> +</pkgmetadata> diff --git a/net-p2p/resilio-sync/resilio-sync-2.5.12.ebuild b/net-p2p/resilio-sync/resilio-sync-2.5.12.ebuild new file mode 100644 index 000000000000..908b87b2209d --- /dev/null +++ b/net-p2p/resilio-sync/resilio-sync-2.5.12.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +BASE_URI="http://linux-packages.resilio.com/${PN}/deb/pool/non-free/r/${PN}/${PN}_${PV}-1_@arch@.deb" + +inherit pax-utils readme.gentoo-r1 systemd tmpfiles unpacker user + +NAME="rslsync" +QA_PREBUILT="usr/bin/${NAME}" + +DESCRIPTION="Resilient, fast and scalable file synchronization tool" +HOMEPAGE="https://getsync.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="mirror" + +S="${WORKDIR}" + +DOC_CONTENTS="You may need to review /etc/${PN}/config.json\n +Default metadata path is /var/lib/${PN}/.sync\n +Default web-gui URL is http://localhost:8888/\n\n" + +pkg_setup() { + enewgroup ${NAME} + enewuser ${NAME} -1 -1 /var/lib/${PN} ${NAME} +} + +src_unpack() { + unpacker_src_unpack + + unpack usr/share/man/man1/${PN}.1.gz +} + +src_install() { + dobin usr/bin/${NAME} + use pax_kernel && pax-mark m "${ED%/}"/usr/bin/${NAME} + + doman ${PN}.1 + + dodir /var/log/${PN} + keepdir /etc/${PN} /var/lib/${PN}/ /var/lib/${PN}/.sync + fperms 0700 /etc/${PN} /var/lib/${PN} /var/lib/${PN}/.sync /var/log/${PN} + fowners -R ${NAME}:${NAME} /etc/${PN} /var/lib/${PN} /var/log/${PN} + + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + newinitd "${FILESDIR}"/${PN}-user.initd ${PN}-user + newconfd "${FILESDIR}"/${PN}-user.confd ${PN}-user + systemd_dounit "${FILESDIR}"/${PN}.service + systemd_douserunit "${FILESDIR}"/${PN}-user.service + newtmpfiles "${FILESDIR}"/resilio-sync.tmpfile resilio-sync.conf + + readme.gentoo_create_doc + + # Generate sample config + "${ED%/}"/usr/bin/${NAME} --dump-sample-config > \ + "${ED%/}"/etc/${PN}/config.json || die "generate config failed" + fowners ${NAME}:${NAME} /etc/${PN}/config.json + # Uncomment config directives and change their values + sed -i \ + -e "/storage_path/s|//| |g" \ + -e "/pid_file/s|//| |g" \ + -e "/storage_path/s|/home/user/.sync|/var/lib/${PN}/.sync|g" \ + -e "/pid_file/s|resilio/resilio|${PN}/${PN}|g" \ + "${ED%/}"/etc/${PN}/config.json || die "sed failed for config.json" +} + +pkg_postinst() { + tmpfiles_process resilio-sync.conf + readme.gentoo_print_elog +} |