summaryrefslogtreecommitdiff
path: root/net-p2p/transmission-daemon
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p/transmission-daemon')
-rw-r--r--net-p2p/transmission-daemon/Manifest2
-rw-r--r--net-p2p/transmission-daemon/files/transmission-daemon.confd.414
-rw-r--r--net-p2p/transmission-daemon/files/transmission-daemon.initd.973
-rw-r--r--net-p2p/transmission-daemon/metadata.xml8
-rw-r--r--net-p2p/transmission-daemon/transmission-daemon-2.83.ebuild25
-rw-r--r--net-p2p/transmission-daemon/transmission-daemon-2.84.ebuild25
6 files changed, 147 insertions, 0 deletions
diff --git a/net-p2p/transmission-daemon/Manifest b/net-p2p/transmission-daemon/Manifest
new file mode 100644
index 00000000..507ab281
--- /dev/null
+++ b/net-p2p/transmission-daemon/Manifest
@@ -0,0 +1,2 @@
+DIST transmission-2.83.tar.xz 3136752 SHA256 b0e1b050167e7f71b68e01a8d55b984a828fe880df9abfbc6281cb2a0d7d1433 SHA512 a3f56c434282d70d9d373d99410de738f15a350f394c0984150b7d9ea2eda1c0485bf26ab740f433d0271f882edabe5609266e704e55792a7015225da0186fda WHIRLPOOL 2dfeae51acf6a14dbd6374336cc0d4cc09a7387e72a63683785d1bdba36693f68770af7826af36e2be1e7e8e3d4920d77a5b582b801f4997721557161e31959c
+DIST transmission-2.84.tar.xz 3077836 SHA256 a9fc1936b4ee414acc732ada04e84339d6755cd0d097bcbd11ba2cfc540db9eb SHA512 d6c2b17e7f8180a41ac70f5b503dfdb0353c6419db25df1b393b18c987c56fda9e2fd4c3f4cda7f08c301877bd0b4711842c28121ceaaaae87f5792cc6c29a3d WHIRLPOOL 375f9c981d9d2ac308896e8b7d66d3643796c8e97d64a1e0d6fd2bffaafa55988b90ddb4eb98330edf062e835c0c5ce76749e7e66bf6806333673beb7569f342
diff --git a/net-p2p/transmission-daemon/files/transmission-daemon.confd.4 b/net-p2p/transmission-daemon/files/transmission-daemon.confd.4
new file mode 100644
index 00000000..8f3b1317
--- /dev/null
+++ b/net-p2p/transmission-daemon/files/transmission-daemon.confd.4
@@ -0,0 +1,14 @@
+# This is the transmission-daemon configuration file. For other options and
+# better explanation, take a look at transmission-daemon manual page Note: it's
+# better to configure some settings (like username/password) in
+# /var/lib/transmission/config/settings.json to avoid other users see it with `ps`
+
+TRANSMISSION_OPTIONS="--encryption-preferred"
+
+# Run daemon as another user (username or username:groupname)
+# If you change this setting, chown -R /var/lib/transmission/config <and download directory, check web settings>
+#runas_user=transmission
+
+# Location of logfile (should be writeable for runas_user user)
+# Set logfile=syslog to use syslog for logging
+#logfile=/var/log/transmission/transmission.log
diff --git a/net-p2p/transmission-daemon/files/transmission-daemon.initd.9 b/net-p2p/transmission-daemon/files/transmission-daemon.initd.9
new file mode 100644
index 00000000..3c4914c5
--- /dev/null
+++ b/net-p2p/transmission-daemon/files/transmission-daemon.initd.9
@@ -0,0 +1,73 @@
+#!/sbin/runscript
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/files/transmission-daemon.initd.9,v 1.1 2013/09/07 12:10:01 ssuominen Exp $
+
+extra_started_commands="reload"
+description="Transmission is a fast, easy and free bittorrent client"
+description_start="Start transmission-daemon server and web interface"
+description_stop="Stop transmission-daemon server and web interface"
+description_reload="Reload transmission-daemon settings"
+
+rundir=${rundir:-/var/run/transmission}
+pidfile=${pidfile:-${rundir}/transmission.pid}
+config_dir=${config_dir:-/var/lib/transmission/config}
+download_dir=${download_dir:-/var/lib/transmission/downloads}
+logfile=${logfile:-/var/log/transmission/transmission.log}
+runas_user=${runas_user:-transmission:transmission}
+
+SSD_OPTIONS=""
+
+depend() {
+ need net
+}
+
+check_config() {
+ if [ ! -d "${rundir}" ]; then
+ mkdir "${rundir}"
+ if [ -n "${runas_user}" ]; then
+ chown -R ${runas_user} "${rundir}"
+ fi
+ fi
+
+ # In case no config directory option passed use default
+ if ! $(echo ${TRANSMISSION_OPTIONS} | grep -q -e '\B-g' -e '\B--config-dir'); then
+ TRANSMISSION_OPTIONS="${TRANSMISSION_OPTIONS} --config-dir ${config_dir}"
+ # put download dir location on first run (and take it from config later)
+ if [ ! -f ${config_dir}/settings.json ]; then
+ TRANSMISSION_OPTIONS="${TRANSMISSION_OPTIONS} --download-dir ${download_dir}"
+ fi
+ fi
+
+ if [ -n "${runas_user}" ]; then
+ if [ -f /etc/init.d/sysfs ]; then
+ SSD_OPTIONS="${SSD_OPTIONS} --user ${runas_user}"
+ else
+ SSD_OPTIONS="${SSD_OPTIONS} --chuid ${runas_user}"
+ fi
+ fi
+}
+
+start() {
+ check_config
+
+ ebegin "Starting transmission daemon"
+ start-stop-daemon --start --quiet --pidfile ${pidfile} ${SSD_OPTIONS} \
+ --exec /usr/bin/transmission-daemon -- --pid-file ${pidfile} \
+ $(test ${logfile} != "syslog" && echo --logfile ${logfile}) \
+ ${TRANSMISSION_OPTIONS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping transmission daemon"
+ start-stop-daemon --stop --quiet --retry TERM/45/QUIT/15 --pidfile ${pidfile}
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading transmission configuration"
+ start-stop-daemon --signal HUP --pidfile ${pidfile}
+ eend $?
+}
+
diff --git a/net-p2p/transmission-daemon/metadata.xml b/net-p2p/transmission-daemon/metadata.xml
new file mode 100644
index 00000000..d55995ce
--- /dev/null
+++ b/net-p2p/transmission-daemon/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>slawomir.nizio@sabayon.org</email>
+ <description>maintainer for split Transmission ebuilds based on Gentoo one</description>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-p2p/transmission-daemon/transmission-daemon-2.83.ebuild b/net-p2p/transmission-daemon/transmission-daemon-2.83.ebuild
new file mode 100644
index 00000000..fb41d025
--- /dev/null
+++ b/net-p2p/transmission-daemon/transmission-daemon-2.83.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+inherit systemd transmission-2.83
+
+DESCRIPTION="A Fast, Easy and Free BitTorrent client - daemon"
+KEYWORDS="~amd64 ~x86"
+IUSE="systemd"
+
+RDEPEND="systemd? ( sys-apps/systemd )"
+DEPEND="${RDEPEND}"
+
+src_install() {
+ dobin daemon/transmission-daemon
+ dobin daemon/transmission-remote
+
+ doman daemon/transmission-daemon.1
+ doman daemon/transmission-remote.1
+
+ newinitd "${FILESDIR}"/${MY_PN}-daemon.initd.9 ${MY_PN}-daemon
+ newconfd "${FILESDIR}"/${MY_PN}-daemon.confd.4 ${MY_PN}-daemon
+ systemd_dounit daemon/${MY_PN}-daemon.service
+}
diff --git a/net-p2p/transmission-daemon/transmission-daemon-2.84.ebuild b/net-p2p/transmission-daemon/transmission-daemon-2.84.ebuild
new file mode 100644
index 00000000..36d7dee4
--- /dev/null
+++ b/net-p2p/transmission-daemon/transmission-daemon-2.84.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+inherit systemd transmission-2.84
+
+DESCRIPTION="A Fast, Easy and Free BitTorrent client - daemon"
+KEYWORDS="~amd64 ~x86"
+IUSE="systemd"
+
+RDEPEND="systemd? ( sys-apps/systemd:= )"
+DEPEND="${RDEPEND}"
+
+src_install() {
+ dobin daemon/transmission-daemon
+ dobin daemon/transmission-remote
+
+ doman daemon/transmission-daemon.1
+ doman daemon/transmission-remote.1
+
+ newinitd "${FILESDIR}"/${MY_PN}-daemon.initd.9 ${MY_PN}-daemon
+ newconfd "${FILESDIR}"/${MY_PN}-daemon.confd.4 ${MY_PN}-daemon
+ systemd_dounit daemon/${MY_PN}-daemon.service
+}