From b6a7bcd4fa670de34e18cececd77f0169ac3ebee Mon Sep 17 00:00:00 2001 From: migmedia Date: Wed, 7 Dec 2022 11:10:35 +0100 Subject: [PATCH] removed old net-p2p/resilio-sync ebuild. --- net-p2p/resilio-sync/Manifest | 2 - .../files/resilio-sync-user.confd | 12 --- .../files/resilio-sync-user.initd | 27 ------- .../files/resilio-sync-user.service | 13 ---- net-p2p/resilio-sync/files/resilio-sync.confd | 12 --- net-p2p/resilio-sync/files/resilio-sync.initd | 17 ---- .../resilio-sync/files/resilio-sync.service | 19 ----- .../resilio-sync/files/resilio-sync.tmpfile | 1 - .../resilio-sync-2.7.3.1381.ebuild | 77 ------------------- 9 files changed, 180 deletions(-) delete mode 100644 net-p2p/resilio-sync/Manifest delete mode 100644 net-p2p/resilio-sync/files/resilio-sync-user.confd delete mode 100644 net-p2p/resilio-sync/files/resilio-sync-user.initd delete mode 100644 net-p2p/resilio-sync/files/resilio-sync-user.service delete mode 100644 net-p2p/resilio-sync/files/resilio-sync.confd delete mode 100644 net-p2p/resilio-sync/files/resilio-sync.initd delete mode 100644 net-p2p/resilio-sync/files/resilio-sync.service delete mode 100644 net-p2p/resilio-sync/files/resilio-sync.tmpfile delete mode 100644 net-p2p/resilio-sync/resilio-sync-2.7.3.1381.ebuild diff --git a/net-p2p/resilio-sync/Manifest b/net-p2p/resilio-sync/Manifest deleted file mode 100644 index 27ae9b7..0000000 --- a/net-p2p/resilio-sync/Manifest +++ /dev/null @@ -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 diff --git a/net-p2p/resilio-sync/files/resilio-sync-user.confd b/net-p2p/resilio-sync/files/resilio-sync-user.confd deleted file mode 100644 index 040da8b..0000000 --- a/net-p2p/resilio-sync/files/resilio-sync-user.confd +++ /dev/null @@ -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" diff --git a/net-p2p/resilio-sync/files/resilio-sync-user.initd b/net-p2p/resilio-sync/files/resilio-sync-user.initd deleted file mode 100644 index 6772f6d..0000000 --- a/net-p2p/resilio-sync/files/resilio-sync-user.initd +++ /dev/null @@ -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." - 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 deleted file mode 100644 index bb57c73..0000000 --- a/net-p2p/resilio-sync/files/resilio-sync-user.service +++ /dev/null @@ -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 diff --git a/net-p2p/resilio-sync/files/resilio-sync.confd b/net-p2p/resilio-sync/files/resilio-sync.confd deleted file mode 100644 index 7d8e9ea..0000000 --- a/net-p2p/resilio-sync/files/resilio-sync.confd +++ /dev/null @@ -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" diff --git a/net-p2p/resilio-sync/files/resilio-sync.initd b/net-p2p/resilio-sync/files/resilio-sync.initd deleted file mode 100644 index 8a72634..0000000 --- a/net-p2p/resilio-sync/files/resilio-sync.initd +++ /dev/null @@ -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 -} diff --git a/net-p2p/resilio-sync/files/resilio-sync.service b/net-p2p/resilio-sync/files/resilio-sync.service deleted file mode 100644 index 1f1a0b9..0000000 --- a/net-p2p/resilio-sync/files/resilio-sync.service +++ /dev/null @@ -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 diff --git a/net-p2p/resilio-sync/files/resilio-sync.tmpfile b/net-p2p/resilio-sync/files/resilio-sync.tmpfile deleted file mode 100644 index d0f6e0a..0000000 --- a/net-p2p/resilio-sync/files/resilio-sync.tmpfile +++ /dev/null @@ -1 +0,0 @@ -d /run/resilio-sync 0755 rslsync rslsync 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 deleted file mode 100644 index 49909e6..0000000 --- a/net-p2p/resilio-sync/resilio-sync-2.7.3.1381.ebuild +++ /dev/null @@ -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 -}