removed old net-p2p/resilio-sync ebuild.
This commit is contained in:
parent
495031ec8e
commit
b6a7bcd4fa
@ -1,2 +0,0 @@
|
||||
DIST resilio-sync_2.7.3.1381-1_amd64.deb 11891248 BLAKE2B a5b3f7ba0b364cac706660bc2ab105f042fd367679c894c0e84a10c299c7ace99f051057a1e1679de43d9a219dd58f76b817d708f87776a18caf9d1808a6f4c0 SHA512 0417e8b0d9f6b20105145dd93d602b5682484f72d600f865241dc3016bb007b2adabe7ce288d18a95a63e31c32c12069909580a5afa93665cef5eb9b22cecd2e
|
||||
DIST resilio-sync_2.7.3.1381-1_i386.deb 11968124 BLAKE2B 251a70fe03e4916e6fccbcb49c36e0b3b0508c469c69244ccc00e5db7448d701d08a44ae545c677f2db1a34ff0ffe1908b6efd137c792981f885fc0be4d80c69 SHA512 e28b6098dacdf707ce5e9c15ededf10eaee614e331f0515ec200bd17211e1826c4bc4fb0cc7692abbf90fb9d1bb78765b4a13ae106fbf4e6bd3b72282e709b78
|
@ -1,12 +0,0 @@
|
||||
# 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"
|
@ -1,27 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# 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
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
[Unit]
|
||||
Description=Resilio Sync service
|
||||
Documentation=https://help.resilio.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
|
@ -1,12 +0,0 @@
|
||||
# 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
|
||||
RSLSYNC_USER="rslsync"
|
||||
RSLSYNC_GROUP="rslsync"
|
||||
|
||||
# Resilio Sync config file
|
||||
#CONFIG="/etc/resilio-sync/config.json"
|
@ -1,17 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
command="/usr/bin/rslsync"
|
||||
name="Resilio Sync"
|
||||
description="Resilio Sync"
|
||||
command_user="${RSLSYNC_USER:-rslsync}:${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
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
[Unit]
|
||||
Description=Resilio Sync service
|
||||
Documentation=https://help.resilio.com
|
||||
After=network.target network-online.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
UMask=0002
|
||||
Restart=on-failure
|
||||
PermissionsStartOnly=true
|
||||
|
||||
User=rslsync
|
||||
Group=rslsync
|
||||
|
||||
PIDFile=/var/run/resilio-sync/resilio-sync.pid
|
||||
ExecStart=/usr/bin/rslsync --config /etc/resilio-sync/config.json
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -1 +0,0 @@
|
||||
d /run/resilio-sync 0755 rslsync rslsync
|
@ -1,77 +0,0 @@
|
||||
# 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=""
|
||||
RESTRICT="bindist mirror"
|
||||
RDEPEND="
|
||||
virtual/libcrypt:=
|
||||
"
|
||||
|
||||
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
|
||||
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
|
||||
}
|
Loading…
Reference in New Issue
Block a user