Patchwork [meta-oe,1/3] pcsc-lite: handle initscript

login
register
mail settings
Submitter Eric BENARD
Date Dec. 2, 2011, 11:20 a.m.
Message ID <1322824856-15965-1-git-send-email-eric@eukrea.com>
Download mbox | patch
Permalink /patch/16089/
State New, archived
Headers show

Comments

Eric BENARD - Dec. 2, 2011, 11:20 a.m.
else we get the following log at boot :
Configuring pcsc-lite.
update-rc.d: /etc/init.d/pcscd: file does not exist

Signed-off-by: Eric Bénard <eric@eukrea.com>
---
 .../recipes-support/pcsc-lite/pcsc-lite_1.7.2.bb   |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
Otavio Salvador - Dec. 2, 2011, 11:28 a.m.
2011/12/2 Eric Bénard <eric@eukrea.com>

> else we get the following log at boot :
> Configuring pcsc-lite.
> update-rc.d: /etc/init.d/pcscd: file does not exist
>

It doesn't need the init script anymore as it has autoload support now.
Eric BENARD - Dec. 2, 2011, 2:40 p.m.
Hi Otavio,

Le 02/12/2011 12:28, Otavio Salvador a écrit :
> 2011/12/2 Eric Bénard<eric@eukrea.com>
>
>> else we get the following log at boot :
>> Configuring pcsc-lite.
>> update-rc.d: /etc/init.d/pcscd: file does not exist
>>
>
> It doesn't need the init script anymore as it has autoload support now.
>
what do you mean by autoload support ?

Eric
Otavio Salvador - Dec. 2, 2011, 2:41 p.m.
On Fri, Dec 2, 2011 at 12:40, Eric Bénard <eric@eukrea.com> wrote:

> what do you mean by autoload support ?


Any use of the client library makes the daemon to load and when noone is
using it anymore it dies.
Eric BENARD - Dec. 2, 2011, 2:44 p.m.
Hi Otavio,

Le 02/12/2011 15:41, Otavio Salvador a écrit :
> On Fri, Dec 2, 2011 at 12:40, Eric Bénard<eric@eukrea.com>  wrote:
>
>> what do you mean by autoload support ?
>
>
> Any use of the client library makes the daemon to load and when noone is
> using it anymore it dies.
>
ok so I'll remove
  INITSCRIPT_NAME = "pcscd" & inherit update-rc.d
so that we don't get anoyed by the init script

Eric

Patch

diff --git a/meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.7.2.bb b/meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.7.2.bb
index 14a0ba0..efa5796 100644
--- a/meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.7.2.bb
+++ b/meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.7.2.bb
@@ -4,9 +4,10 @@  LICENSE = "BSD"
 LIC_FILES_CHKSUM = "file://COPYING;md5=c8e551349dc346258274f0007679e149"
 DEPENDS = "udev"
 RDEPENDS += "ccid"
-PR = "r1"
+PR = "r2"
 
-SRC_URI = "https://alioth.debian.org/frs/download.php/3533/pcsc-lite-${PV}.tar.bz2"
+SRC_URI = "https://alioth.debian.org/frs/download.php/3533/pcsc-lite-${PV}.tar.bz2 \
+           file://pcscd.init "
 
 SRC_URI[md5sum] = "47e7055cfc14399fdaa1b7a4aa06e5aa"
 SRC_URI[sha256sum] = "41f13d552eaa2c3978fbb6f2125e81903a0767011d999052fd1a6ee03880b398"
@@ -21,6 +22,11 @@  EXTRA_OECONF = " \
 
 S = "${WORKDIR}/pcsc-lite-${PV}"
 
+do_install_append() {
+	install -d "${D}/etc/init.d"
+	install -m 755 "${WORKDIR}/pcscd.init" "${D}/etc/init.d/pcscd"
+}
+
 PACKAGES =+ "${PN}-lib"
 
 INITSCRIPT_NAME = "pcscd"