aboutsummaryrefslogtreecommitdiffstats
path: root/main/transmission
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-05-22 09:41:38 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-05-22 09:41:38 +0000
commitdca0d8f72ebf75f3e425b356dafd93babde34a0d (patch)
treedef73fe933e46e01aae04226a114fa68a707d431 /main/transmission
parent6b0729497c5bd67e6f5a41859cc217b9c0f346f3 (diff)
downloadaports-dca0d8f72ebf75f3e425b356dafd93babde34a0d.tar.bz2
aports-dca0d8f72ebf75f3e425b356dafd93babde34a0d.tar.xz
main/transmission: move transmission homedir to /var/lib
fixes #1119
Diffstat (limited to 'main/transmission')
-rw-r--r--main/transmission/APKBUILD6
-rw-r--r--main/transmission/transmission-daemon.initd4
-rw-r--r--main/transmission/transmission-daemon.post-upgrade10
3 files changed, 15 insertions, 5 deletions
diff --git a/main/transmission/APKBUILD b/main/transmission/APKBUILD
index bc0241137e..90b1a852c1 100644
--- a/main/transmission/APKBUILD
+++ b/main/transmission/APKBUILD
@@ -1,10 +1,10 @@
# Maintainer:Carlo Landmeter
pkgname=transmission
pkgver=2.52
-pkgrel=0
+pkgrel=1
pkgdesc="Lightweight GTK BitTorrent client"
url="http://www.tansmissionbt.com"
-install="transmission-daemon.pre-install"
+install="transmission-daemon.pre-install transmission-daemon.post-upgrade"
arch="all"
license="MIT"
depends=
@@ -70,5 +70,5 @@ cli() {
}
md5sums="9490ed97a03f7b8b1ac8b0822c3dce92 transmission-2.52.tar.bz2
-37c927164a4443db004345c7e19f7795 transmission-daemon.initd
+b44e7e7bcfb7fd1c59b3e1191d4dabb9 transmission-daemon.initd
5caf0fc25dfd67c61627f1e0313f4245 transmission-daemon.confd"
diff --git a/main/transmission/transmission-daemon.initd b/main/transmission/transmission-daemon.initd
index 58d8d11a56..bc40aab3b3 100644
--- a/main/transmission/transmission-daemon.initd
+++ b/main/transmission/transmission-daemon.initd
@@ -11,8 +11,8 @@ description_reload="Reload transmission-daemon settings"
rundir=${rundir:-/var/run/transmission}
pidfile=${pidfile:-${rundir}/transmission.pid}
-config_dir=${config_dir:-/var/transmission/config}
-download_dir=${download_dir:-/var/transmission/downloads}
+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}
diff --git a/main/transmission/transmission-daemon.post-upgrade b/main/transmission/transmission-daemon.post-upgrade
new file mode 100644
index 0000000000..e0aaa8e022
--- /dev/null
+++ b/main/transmission/transmission-daemon.post-upgrade
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+dir=/var/lib/transmission
+
+# rename config and create compat symlink
+if [ -e "$dir"/.config ] && ! [ -e "$dir"/config ]; then
+ mv "$dir"/.config "$dir"/config
+ ln -s config "$dir"/.config
+fi
+