system/pcsc-lite: Updated for version 1.7.2.

Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
LukenShiro 2011-06-23 20:34:30 -04:00 committed by Niels Horn
parent d4fc1ce320
commit c00493b2b9
5 changed files with 15 additions and 54 deletions

View file

@ -3,16 +3,10 @@ Its purpose is to provide a Windows(R) SCard interface in a very small
form factor for communicating to smart cards and readers. form factor for communicating to smart cards and readers.
Compiling with "DEBUGATR=1 ./pcsc-lite.SlackBuild" enables ATR parsing Compiling with "DEBUGATR=1 ./pcsc-lite.SlackBuild" enables ATR parsing
debug output messages. Compiling with "APIDOC=1 ./pcsc-lite.SlackBuild" debug output messages.
produces API .pdf documentation (for ifd handlers only, mainly intended
for developers).
pcsc-lite uses libhal for smart-card reader's detection, according to pcsc-lite no longer uses (deprecated) libhal for smart-card reader's
upstream's advice. If you want to use usb polling, you can pass "HALD=0" detection. By default libudev is used now.
to the script when building in order to use libusb for detecting your
reader (be aware that, using libusb, if your reader can be managed at
the same time by the openct driver *and* by the pcsc-lite driver, so
you may experience some detection issues).
Please see README.SLACKWARE in pcsc-lite's documentation directory Please see README.SLACKWARE in pcsc-lite's documentation directory
for notes. for notes.

View file

@ -6,7 +6,7 @@ easily accomplished by adding the following to /etc/rc.d/rc.local:
For pcmcia readers, this daemon should be started after rc.pcmcia. For pcmcia readers, this daemon should be started after rc.pcmcia.
Beware! Beware!
- PC/SL-lite daemon is meant as _alternative_ to openct: running rc.openctd - PC/SC-lite daemon is meant as _alternative_ to openct: running rc.openctd
and rc.pcscd at the same time can and will lead to unforseeable problems and rc.pcscd at the same time can and will lead to unforseeable problems
(specially with usb devices that can be managed by both of them, one daemon (specially with usb devices that can be managed by both of them, one daemon
can claim one device, making it unavailable for other daemon). can claim one device, making it unavailable for other daemon).

View file

@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=pcsc-lite PRGNAM=pcsc-lite
VERSION=${VERSION:-1.6.7} VERSION=${VERSION:-1.7.2}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
@ -42,14 +42,6 @@ OUTPUT=${OUTPUT:-/tmp}
# Debug is off by default # Debug is off by default
DEBUGATR=${DEBUGATR:-0} DEBUGATR=${DEBUGATR:-0}
# API documentation building is off by default
APIDOC=${APIDOC:-0}
# Program to convert .tex files into .pdf (for APIDOC)
TEXTOPDFBIN="/usr/share/texmf/bin/pdflatex"
# 0 for conservative detection behaviour (libusb), 1 for libhal
HALD=${HALD:-1} # using libhal behaviour by default
# README and README.DAEMON are not useful and partly outdated. # README and README.DAEMON are not useful and partly outdated.
DOCFILES="DRIVERS SECURITY ChangeLog* COPYING HELP NEWS TODO AUTHORS INSTALL" DOCFILES="DRIVERS SECURITY ChangeLog* COPYING HELP NEWS TODO AUTHORS INSTALL"
@ -87,21 +79,17 @@ find . \
# with this script # with this script
patch -p0 < $CWD/docs-DRIVERS.diff || exit 1 patch -p0 < $CWD/docs-DRIVERS.diff || exit 1
# ATR (answer to reset) debug parsing output # ATR (answer to reset) debug parsing output
case "$DEBUGATR" in case "$DEBUGATR" in
0) DEBUGATR_FLAG="dis" ;; 0) DEBUGATR_FLAG="dis" ;;
*) DEBUGATR_FLAG="en" ;; *) DEBUGATR_FLAG="en" ;;
esac esac
# libusb and libhal support are mutually exclusive for reader detection:
case "$HALD" in
0) LIBHAL_FLAG="--enable-libusb --disable-libhal" ;;
*) LIBHAL_FLAG="--enable-libhal --disable-libusb" ;;
esac
# --enable-runpid=/var/run/pcscd.pid, and # --enable-runpid=/var/run/pcscd.pid, and
# --enable-muscledropdir="<libdir>/pcsc/services" are not supported anymore; # --enable-muscledropdir="<libdir>/pcsc/services" are not supported anymore;
# pid directory changed to /var/run/pcscd for consistency # pid directory changed to /var/run/pcscd for consistency
# libhal support is gone
# API docs not included anymore
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \
./configure \ ./configure \
@ -113,8 +101,8 @@ CXXFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \ --mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \ --docdir=/usr/doc/$PRGNAM-$VERSION \
--enable-usbdropdir="/usr/lib${LIBDIRSUFFIX}/pcsc/drivers" \ --enable-usbdropdir="/usr/lib${LIBDIRSUFFIX}/pcsc/drivers" \
--enable-confdir=/etc/reader.conf.d \
--${DEBUGATR_FLAG}able-debugatr \ --${DEBUGATR_FLAG}able-debugatr \
$LIBHAL_FLAG \
--build=$ARCH-slackware-linux --build=$ARCH-slackware-linux
make make
@ -150,27 +138,6 @@ cat $CWD/README.SLACKWARE > $PKG/usr/doc/$PRGNAM-$VERSION/README.SLACKWARE
# remove README.DAEMON, automatically installed by doc/Makefile. # remove README.DAEMON, automatically installed by doc/Makefile.
rm -f $PKG/usr/doc/$PRGNAM-$VERSION/README.DAEMON rm -f $PKG/usr/doc/$PRGNAM-$VERSION/README.DAEMON
# .pdf api documentation files seem not to be built from .tex sources during
# make. Most people don't need/want api docs anyway. Nonetheless tex sources
# are removed.
( cd $PKG/usr/doc/$PRGNAM-$VERSION/
case "$APIDOC" in
1) if [ -x $TEXTOPDFBIN ]; then
echo "Building API .pdf documentation ..."
$TEXTOPDFBIN ifdhandler-3.tex 1>&2 >/dev/null
else
echo "API .pdf documentation NOT built."
fi
;;
*) echo "API .pdf documentation NOT built."
;;
esac
for oldfiles in *.aux *.tex *.toc *.log *.bib *.out ;
do rm -f $oldfiles ;
done
)
mkdir -p $PKG/install mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh cat $CWD/doinst.sh > $PKG/install/doinst.sh

View file

@ -1,10 +1,10 @@
PRGNAM="pcsc-lite" PRGNAM="pcsc-lite"
VERSION="1.6.7" VERSION="1.7.2"
HOMEPAGE="http://pcsclite.alioth.debian.org" HOMEPAGE="http://pcsclite.alioth.debian.org"
DOWNLOAD="https://alioth.debian.org/frs/download.php/3516/pcsc-lite-1.6.7.tar.bz2" DOWNLOAD="https://alioth.debian.org/frs/download.php/3533/pcsc-lite-1.7.2.tar.bz2"
MD5SUM="62115ae6dc6fc23da7ffe50986e84eb7" MD5SUM="47e7055cfc14399fdaa1b7a4aa06e5aa"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
MAINTAINER="LukenShiro" MAINTAINER="LukenShiro"
EMAIL="lukenshiro@ngi.it" EMAIL="lukenshiro@ngi.it"
APPROVED="rworkman" APPROVED="dsomero"

View file

@ -9,8 +9,8 @@
pcsc-lite: pcsc-lite (Middleware to access a smart card using SCard API) pcsc-lite: pcsc-lite (Middleware to access a smart card using SCard API)
pcsc-lite: pcsc-lite:
pcsc-lite: Middleware to access a smart card using SCard API (PC/SC) pcsc-lite: Middleware to access a smart card using SCard API (PC/SC)
pcsc-lite: Its purpose is to provide a Windows(R) SCard interface in a pcsc-lite: Its purpose is to provide a Windows(R) SCard interface in a
pcsc-lite: very small form factor for communicating to smart cards and pcsc-lite: very small form factor for communicating to smart cards and
pcsc-lite: readers. pcsc-lite: readers.
pcsc-lite: pcsc-lite:
pcsc-lite: Homepage: http://alioth.debian.org/projects/pcsclite/ pcsc-lite: Homepage: http://alioth.debian.org/projects/pcsclite/