diff options
author | Stefan Schmidt <stefan@datenfreihafen.org> | 2008-10-21 12:03:09 +0200 |
---|---|---|
committer | Stefan Schmidt <stefan@datenfreihafen.org> | 2008-10-21 12:03:09 +0200 |
commit | d05dca7b0d286e1df13824b99cd5f262ade439e2 (patch) | |
tree | 7c7f247f1a88c405063d1d7108db11d181c3dbb1 /packages/pcsc-lite | |
parent | 313753ac3e740c8ff54f0b0ddb2acb659033fe85 (diff) | |
parent | 96198fd96bd2ddddab9708f3c6c3f527253130d8 (diff) |
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'packages/pcsc-lite')
-rw-r--r-- | packages/pcsc-lite/files/pcscd.init | 32 | ||||
-rw-r--r-- | packages/pcsc-lite/pcsc-lite_1.4.102.bb | 35 |
2 files changed, 67 insertions, 0 deletions
diff --git a/packages/pcsc-lite/files/pcscd.init b/packages/pcsc-lite/files/pcscd.init new file mode 100644 index 0000000000..92385ab196 --- /dev/null +++ b/packages/pcsc-lite/files/pcscd.init @@ -0,0 +1,32 @@ +#!/bin/sh +DAEMON=/usr/sbin/pcscd +NAME=pcscd +DESC="PCSC Daemon" +PIDFILE=/var/run/pcscd/pcscd.pid +ARGS="" + +test -f $DAEMON || exit 0 + +case "$1" in + start) + echo -n "Starting $DESC: $NAME" + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- $ARGS + echo "." + ;; + stop) + echo -n "Stopping $DESC: $NAME" + start-stop-daemon --stop --quiet --pidfile $PIDFILE --exec $DAEMON + echo "." + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "Usage: $0 {start|stop|restart}" + exit 1 + ;; +esac + +exit 0 diff --git a/packages/pcsc-lite/pcsc-lite_1.4.102.bb b/packages/pcsc-lite/pcsc-lite_1.4.102.bb new file mode 100644 index 0000000000..6d5bb44113 --- /dev/null +++ b/packages/pcsc-lite/pcsc-lite_1.4.102.bb @@ -0,0 +1,35 @@ +DESCRIPTION = "PC/SC Lite smart card framework and applications" +HOMEPAGE = "http://pcsclite.alioth.debian.org/" +LICENSE = "BSD" +FILE_PR = "r0" + +DEPENDS = "hal" +RDEPENDS_${PN} = "hal" + +SRC_URI = "http://alioth.debian.org/download.php/2479/pcsc-lite-${PV}.tar.bz2 \ + file://pcscd.init " + +inherit autotools update-rc.d + +INITSCRIPT_NAME = "pcscd" +INITSCRIPT_PARAMS = "defaults" + +EXTRA_OECONF = " \ + --enable-libhal \ + --disable-libusb \ + --enable-usbdropdir=${libdir}/pcsc/drivers \ + " + +do_stage() { + autotools_stage_all +} + +do_install() { + oe_runmake DESTDIR="${D}" install + install -d "${D}/etc/init.d" + install -m 755 "${WORKDIR}/pcscd.init" "${D}/etc/init.d/pcscd" +} + +PACKAGES =+ "libpcsclite" + +FILES_libpcsclite = "${libdir}/libpcsclite.so.*" |