summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Gregory <dp@xora.org.uk>2009-05-17 22:16:17 +0100
committerGraeme Gregory <dp@xora.org.uk>2009-05-17 22:16:17 +0100
commitb90bc146cdd0db2f49e52a27a158cc617ff28562 (patch)
tree90940f0a924398aa73ac7885e2bd65b23ac0b0b8
parent3edb5ad048d14852989f885ba03b8bb9f47e01c1 (diff)
transmission_1.61.bb : add new version of transmission make init run
transmission and transmission user. transmission_1.40.bb : catchup old version with fixes from new checksums.ini : add transmission 1.61
-rw-r--r--conf/checksums.ini4
-rwxr-xr-xrecipes/transmission/files/init6
-rw-r--r--recipes/transmission/transmission_1.40.bb17
-rw-r--r--recipes/transmission/transmission_1.61.bb32
4 files changed, 48 insertions, 11 deletions
diff --git a/conf/checksums.ini b/conf/checksums.ini
index ca47eda964..2d7e77c515 100644
--- a/conf/checksums.ini
+++ b/conf/checksums.ini
@@ -22850,6 +22850,10 @@ sha256=404df2c479517020290be9847191523c1fcbd3e929e8bb1191a7832209d04af8
md5=490d13c141ba7b4a96582541ea83a461
sha256=944ab9cfcfc9a4bd7efeecf32ea609fa6517970a9708c44eee6d5750c4ff8e0c
+[http://mirrors.m0k.org/transmission/files/transmission-1.61.tar.bz2]
+md5=0b0428f4a6237a64dc8b7d378ace3f06
+sha256=3bc5bf49ed02a3d93b4b9b71c7814960e972c1bde4e9fb83b2cd500c83ae4a9a
+
[http://xorg.freedesktop.org/releases/individual/proto/trapproto-3.4.3.tar.bz2]
md5=3b713239e5e6b269b31cb665563358df
sha256=ff32a0d3bc696cadc3457be9c85e9818af2b6daa2f159188bb01aad7e932a0e1
diff --git a/recipes/transmission/files/init b/recipes/transmission/files/init
index 415a662f9f..85945a76a0 100755
--- a/recipes/transmission/files/init
+++ b/recipes/transmission/files/init
@@ -11,12 +11,12 @@
# Exit if the package is not installed
test -f /usr/bin/transmission-daemon || exit 0
-
+SSDOPTIONS="--chuid transmission:transmission"
case "$1" in
start)
echo "Starting transmission-daemon"
- /sbin/start-stop-daemon --start --quiet --exec /usr/bin/transmission-daemon -- -w /home/transmission -g /home/transmission/.config
+ /sbin/start-stop-daemon $SSDOPTIONS --start --quiet --exec /usr/bin/transmission-daemon -- -w /home/transmission -g /home/transmission/.config
;;
stop)
echo "Stopping transmission-daemon"
@@ -31,7 +31,7 @@ case "$1" in
echo -n "."
done
echo "Restarting transmission-daemon"
- /sbin/start-stop-daemon --start --quiet --exec /usr/bin/transmission-daemon -- -w /home/transmission -g /home/transmission/.config
+ /sbin/start-stop-daemon $SSDOPTIONS --start --quiet --exec /usr/bin/transmission-daemon -- -w /home/transmission -g /home/transmission/.config
;;
*)
echo "Usage: /etc/init.d/tranmission {start|stop|restart}"
diff --git a/recipes/transmission/transmission_1.40.bb b/recipes/transmission/transmission_1.40.bb
index 52438efa4e..081c2e8aff 100644
--- a/recipes/transmission/transmission_1.40.bb
+++ b/recipes/transmission/transmission_1.40.bb
@@ -3,7 +3,7 @@ SECTION = "network"
HOMEPAGE = "www.transmissionbt.com/"
DEPENDS = "openssl gettext libtool intltool-native curl glib-2.0-native"
LICENSE = "GPLv2"
-PR = "r0"
+PR = "r1"
SRC_URI = "http://mirrors.m0k.org/transmission/files/transmission-${PV}.tar.bz2 \
file://init"
@@ -17,15 +17,16 @@ do_install_append() {
install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/transmission
}
-pkg_postinst_append() {
-#!/bin/sh
-
-if [ "x$D" != "x" ] ; then
- exit 1
-fi
-
+pkg_postinst_${PN}() {
grep -q transmission ${sysconfdir}/group || addgroup transmission
grep -q transmission ${sysconfdir}/passwd || adduser -h /home/transmission -S -D -G transmission -s ${base_bindir}/false transmission
mkdir -p /home/transmission/.config
chown transmission:transmission /home/transmission/.config
}
+
+pkg_postrm_${PN}() {
+#!/bin/sh
+delgroup transmission
+deluser transmission
+}
+
diff --git a/recipes/transmission/transmission_1.61.bb b/recipes/transmission/transmission_1.61.bb
new file mode 100644
index 0000000000..1692147fcf
--- /dev/null
+++ b/recipes/transmission/transmission_1.61.bb
@@ -0,0 +1,32 @@
+DESCRIPTION = "Transmission is a BitTorrent client w/ a built-in Ajax-Powered Webif GUI."
+SECTION = "network"
+HOMEPAGE = "www.transmissionbt.com/"
+DEPENDS = "gtk+ gnutls openssl gettext libtool intltool-native curl glib-2.0-native"
+LICENSE = "GPLv2"
+PR = "r3"
+SRC_URI = "http://mirrors.m0k.org/transmission/files/transmission-${PV}.tar.bz2 \
+ file://init"
+
+INITSCRIPT_NAME = "transmission"
+INITSCRIPT_PARAMS = "defaults 60 "
+
+inherit autotools update-rc.d
+
+do_install_append() {
+ install -d -p ${D}${sysconfdir}/init.d
+ install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/transmission
+}
+
+pkg_postinst_${PN}() {
+grep -q transmission ${sysconfdir}/group || addgroup transmission
+grep -q transmission ${sysconfdir}/passwd || adduser -h /home/transmission -S -D -G transmission -s ${base_bindir}/false transmission
+mkdir -p /home/transmission/.config
+chown transmission:transmission /home/transmission/.config
+}
+
+pkg_postrm_${PN}() {
+#!/bin/sh
+delgroup transmission
+deluser transmission
+}
+