aboutsummaryrefslogtreecommitdiff
path: root/system/pcsc-lite/pcsc-lite.SlackBuild
diff options
context:
space:
mode:
authorLukenShiro <lukenshiro@ngi.it>2013-02-10 10:26:14 -0500
committerdsomero <xgizzmo@slackbuilds.org>2013-02-13 19:33:43 -0500
commit8bf7ff734b12dd6386019fd23a6e631c5414c08b (patch)
treee4608c50377b14be7b1f7f6f0a4c703f17950840 /system/pcsc-lite/pcsc-lite.SlackBuild
parenta6a4b0989a628e073542284dfe1a27bfe627d73b (diff)
system/pcsc-lite: Updated for version 1.8.8.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/pcsc-lite/pcsc-lite.SlackBuild')
-rw-r--r--system/pcsc-lite/pcsc-lite.SlackBuild12
1 files changed, 11 insertions, 1 deletions
diff --git a/system/pcsc-lite/pcsc-lite.SlackBuild b/system/pcsc-lite/pcsc-lite.SlackBuild
index dc007d1fedbee..3c49c0090c092 100644
--- a/system/pcsc-lite/pcsc-lite.SlackBuild
+++ b/system/pcsc-lite/pcsc-lite.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=pcsc-lite
-VERSION=${VERSION:-1.8.7}
+VERSION=${VERSION:-1.8.8}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -55,6 +55,8 @@ fi
# Debug is off by default
DEBUGATR=${DEBUGATR:-0}
+# Inserted card's automatic poweroff (on-demand power on)
+AUTOPOFF=${AUTOPOFF:-0} # disabled by default
# README and README.DAEMON are not useful and partly outdated.
DOCFILES="DRIVERS SECURITY ChangeLog* COPYING HELP NEWS TODO AUTHORS INSTALL"
@@ -98,6 +100,14 @@ case "$DEBUGATR" in
*) DEBUGATR_FLAG="en" ;;
esac
+# disabling/enabling card's automatic power off
+case "$AUTOPOFF" in
+ 0) sed -i "s|^\/\* #define DISABLE_ON_DEMAND_POWER_ON \*\/|#define DISABLE_ON_DEMAND_POWER_ON|" \
+ src/pcscd.h.in
+ ;;
+ *) ;;
+esac
+
# --enable-runpid=/var/run/pcscd.pid, and
# --enable-muscledropdir="<libdir>/pcsc/services" are not supported anymore;
# pid directory changed to /var/run/pcscd for consistency