From dba4943a54c97d1479b60ff05a6f36aee91082ee Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Mon, 18 May 2009 09:39:22 +0200 Subject: transmission: update-rc.d handles online check, so add a note saying that, fix packaging --- recipes/transmission/transmission_1.40.bb | 9 +-------- recipes/transmission/transmission_1.61.bb | 11 +++-------- 2 files changed, 4 insertions(+), 16 deletions(-) (limited to 'recipes/transmission') diff --git a/recipes/transmission/transmission_1.40.bb b/recipes/transmission/transmission_1.40.bb index 47d674941a..c40939fd3b 100644 --- a/recipes/transmission/transmission_1.40.bb +++ b/recipes/transmission/transmission_1.40.bb @@ -17,11 +17,8 @@ do_install_append() { install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/transmission } +# No need for online check, since update-rc.d will prepend it to here pkg_postinst_${PN}() { -#!/bin/sh -if [ "x$D" != "x" ] ; then - exit 1 -fi 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 @@ -29,10 +26,6 @@ chown transmission:transmission /home/transmission/.config } pkg_postrm_${PN}() { -#!/bin/sh -if [ "x$D" != "x" ] ; then - exit 1 -fi delgroup transmission deluser transmission } diff --git a/recipes/transmission/transmission_1.61.bb b/recipes/transmission/transmission_1.61.bb index a9fb8c9edd..e898953dff 100644 --- a/recipes/transmission/transmission_1.61.bb +++ b/recipes/transmission/transmission_1.61.bb @@ -17,11 +17,10 @@ do_install_append() { install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/transmission } +FILES_${PN} += "${datadir}/icons" + +# No need for online check, since update-rc.d will prepend it to here pkg_postinst_${PN}() { -#!/bin/sh -if [ "x$D" != "x" ] ; then - exit 1 -fi 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 @@ -29,10 +28,6 @@ chown transmission:transmission /home/transmission/.config } pkg_postrm_${PN}() { -#!/bin/sh -if [ "x$D" != "x" ] ; then - exit 1 -fi delgroup transmission deluser transmission } -- cgit v1.2.3