summaryrefslogtreecommitdiff
path: root/system/pcsc-lite/pcsc-lite.SlackBuild
diff options
context:
space:
mode:
authorLukenShiro <lukenshiro@ngi.it>2011-12-14 12:38:15 -0600
committerNiels Horn <niels.horn@slackbuilds.org>2011-12-18 00:07:48 -0200
commit498d5573f5aa26e794d20dd8deb35bb3cfc5c2e7 (patch)
tree30bb624d64f70e0cc2f6506fecfe7a024476758e /system/pcsc-lite/pcsc-lite.SlackBuild
parente499cbd273f0cbf37e6d31ca4c51c5a2eee87853 (diff)
downloadslackbuilds-498d5573f5aa26e794d20dd8deb35bb3cfc5c2e7.tar.gz
system/pcsc-lite: Updated for version 1.8.1.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/pcsc-lite/pcsc-lite.SlackBuild')
-rw-r--r--system/pcsc-lite/pcsc-lite.SlackBuild18
1 files changed, 15 insertions, 3 deletions
diff --git a/system/pcsc-lite/pcsc-lite.SlackBuild b/system/pcsc-lite/pcsc-lite.SlackBuild
index 263bb33085..b4201e0867 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.7.2}
+VERSION=${VERSION:-1.8.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -40,6 +40,19 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+# Bail out if user or group isn't valid on your system
+# For slackbuilds.org, assigned pcscd uid/gid are 257/257
+# See http://slackbuilds.org/uid_gid.txt
+if ! grep ^pcscd: /etc/group 2>&1 > /dev/null; then
+ echo " You must have a \"pcscd\" group to run this script."
+ echo " # groupadd -g 257 pcscd"
+ exit 1
+elif ! grep ^pcscd: /etc/passwd 2>&1 > /dev/null; then
+ echo " You must have a \"pcscd\" user to run this script."
+ echo " # useradd -u 257 -g pcscd -d /var/run/pcscd -s /bin/false pcscd"
+ exit 1
+fi
+
# Debug is off by default
DEBUGATR=${DEBUGATR:-0}
@@ -124,7 +137,7 @@ sed -i "s|@sysconfdir_exp@|/etc/reader.conf.d|g" $PKG/usr/man/man8/pcscd.8
# Create the directory for drivers and such (not included with this package)
mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/pcsc/{drivers,services}
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $PKG/usr/man -type f -exec gzip -9 {} \;
@@ -134,7 +147,6 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/
cp -a $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cat $CWD/README.SLACKWARE > $PKG/usr/doc/$PRGNAM-$VERSION/README.SLACKWARE
-
# remove README.DAEMON, automatically installed by doc/Makefile.
rm -f $PKG/usr/doc/$PRGNAM-$VERSION/README.DAEMON