update transmission, add missing tmpfile, remove rc.d stuff

This commit is contained in:
Samir 2012-10-21 19:30:28 +00:00
parent 81eae047b9
commit 0dac085d94
4 changed files with 9 additions and 49 deletions

View File

@ -6,18 +6,18 @@
pkgbase=transmission
pkgname=('transmission-cli' 'transmission-qt')
pkgver=2.71
pkgver=2.73
pkgrel=1
arch=('i686' 'x86_64')
url="http://www.transmissionbt.com/"
license=('MIT')
makedepends=('intltool' 'curl' 'pkgconfig' 'desktop-file-utils' 'qt' 'libevent' 'gettext')
source=("http://mirrors.m0k.org/transmission/files/${pkgbase}-${pkgver}.tar.xz"
'transmissiond' 'transmissiond.conf' 'transmission.systemd')
md5sums=('26d24de210076a7625e5fe37e3252f2a'
'50b7c17300bc8b38f44fb6f681ba05d0'
'be39806c35b7544856fa4070b00fc960'
'5c289c8901221a94be74665368ab5c2c')
'transmission.systemd' 'transmission.tmpfiles')
md5sums=('86479f9bb378b793ce7a8a71f5b15904'
'5c289c8901221a94be74665368ab5c2c'
'23f2320361ad54373c3a4551ef634fe8')
build() {
cd "${srcdir}/${pkgbase}-${pkgver}"
@ -47,6 +47,7 @@ package_transmission-cli() {
install -D -m755 "${srcdir}/transmissiond" "${pkgdir}/etc/rc.d/transmissiond"
install -D -m644 "${srcdir}/transmissiond.conf" "${pkgdir}/etc/conf.d/transmissiond"
install -D -m644 "$srcdir/transmission.systemd" "$pkgdir/usr/lib/systemd/system/transmission.service"
install -D -m644 "$srcdir/transmission.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/transmission.conf"
ln -s transmission.service "$pkgdir/usr/lib/systemd/system/transmissiond.service"
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/transmission-cli/COPYING"
}
@ -75,4 +76,4 @@ package_transmission-qt() {
install -D -m644 qt/translations/transmission_lt.ts "${pkgdir}/usr/share/transmission/i18n/transmission_lt.ts"
install -D -m644 qt/translations/transmission_pt_BR.ts "${pkgdir}/usr/share/transmission/i18n/transmission_pt_BR.ts"
install -D -m644 qt/translations/transmission_ru.ts "${pkgdir}/usr/share/transmission/i18n/transmission_ru.ts"
}
}

View File

@ -0,0 +1 @@
d /run/transmission - transmission transmission -

View File

@ -1,37 +0,0 @@
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
. /etc/conf.d/transmissiond
PID=`pidof -o %PPID /usr/bin/transmission-daemon`
case "$1" in
start)
stat_busy "Starting Transmission Daemon"
[ -z "$PID" ] && su -l -s /bin/sh -c "/usr/bin/transmission-daemon $TRANS_ARGS" $TRANS_USER
if [ $? -gt 0 ]; then
stat_fail
else
add_daemon transmissiond
stat_done
fi
;;
stop)
stat_busy "Stopping Transmission Daemon"
[ ! -z "$PID" ] && kill $PID &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
rm_daemon transmissiond
stat_done
fi
;;
restart)
$0 stop
while [ ! -z "$PID" -a -d "/proc/$PID" ]; do sleep 1; done
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0

View File

@ -1,5 +0,0 @@
# example configuration file
# TRANSMISSION_HOME=/home/foo
# TRANS_USER="foo"
# TRANS_ARGS="-g $TRANSMISSION_HOME/.config/transmission-daemon"