summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Daniel R2010-05-13 01:01:00 +0200
committer Robby Workman2010-05-13 01:01:00 +0200
commit40b9ad09a3c2cbb04fa4ca134b33bb22d83afdeb (patch)
treee9bcc48516175d265074b58d1cecacc5ecb6121a
parentb4572abe58e665b924d81eb7ba0675a019f323b4 (diff)
downloadslackbuilds-40b9ad09a3c2cbb04fa4ca134b33bb22d83afdeb.tar.gz
system/opensc-dnie: Added to 13.0 repository
-rw-r--r--system/opensc-dnie/README16
-rw-r--r--system/opensc-dnie/doinst.sh19
-rw-r--r--system/opensc-dnie/opensc-dnie.SlackBuild69
-rw-r--r--system/opensc-dnie/opensc-dnie.info10
-rw-r--r--system/opensc-dnie/slack-desc19
5 files changed, 133 insertions, 0 deletions
diff --git a/system/opensc-dnie/README b/system/opensc-dnie/README
new file mode 100644
index 0000000000..9a433ecfa9
--- /dev/null
+++ b/system/opensc-dnie/README
@@ -0,0 +1,16 @@
+This package provides opensc support for Spanish ID cards.
+
+Unfortunately, the developer (Spanish Govt.) does not provide the source code
+for this software, but only binary packages for certain distributions.
+Therefore, we just repackage the official binaries for Debian.
+
+If you use firefox, you must manually register /usr/lib/opensc-pkcs11.so
+(or /usr/lib64/opensc-pkcs11.so) as a security device in firefox.
+
+This requires pcsc-lite, pcsc-tools, pcsc-perl, ccid, openct, and opensc.
+
+Note: opensc-0.11.7 is shown as a required dependency according to the
+upstream author of this software; your mileage may vary, especially since
+we (SlackBuilds.org) currently have a newer version than that, and we
+probably won't be reverting it in order to satisfy the requirements of
+a binary-only package.
diff --git a/system/opensc-dnie/doinst.sh b/system/opensc-dnie/doinst.sh
new file mode 100644
index 0000000000..5d1f522e48
--- /dev/null
+++ b/system/opensc-dnie/doinst.sh
@@ -0,0 +1,19 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+config etc/opensc.conf.new
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
diff --git a/system/opensc-dnie/opensc-dnie.SlackBuild b/system/opensc-dnie/opensc-dnie.SlackBuild
new file mode 100644
index 0000000000..80c6dbb892
--- /dev/null
+++ b/system/opensc-dnie/opensc-dnie.SlackBuild
@@ -0,0 +1,69 @@
+#!/bin/sh
+
+## Written by Daniel R. <danielrodriguez.es@gmail.com>
+
+# Based on scripts by the SlackBuilds.org project
+
+PRGNAM=opensc-dnie
+VERSION=1.4.6_2
+ARCH=${ARCH:-i386}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "x86_64" ]; then
+ TARGET="x86_64"
+else
+ TARGET="x86"
+fi
+
+if [ "$TARGET" = "x86" ]; then
+ SRCFILE=Debian_Lenny_${PRGNAM}_$(echo $VERSION | tr "_" "-")_i386.deb.tar
+ SRCDEB=${PRGNAM}_$(echo $VERSION | tr "_" "-")_i386.deb
+elif [ "$TARGET" = "x86_64" ]; then
+ SRCFILE=Debian_Lenny_${PRGNAM}_$(echo $VERSION | tr "_" "-")_amd64.deb.tar
+ SRCDEB=${PRGNAM}_$(echo $VERSION | tr "_" "-")_amd64.deb
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $PKG
+
+tar xf $CWD/$SRCFILE $SRCDEB
+ar x $SRCDEB data.tar.gz
+tar xxf data.tar.gz
+rm $SRCDEB data.tar.gz
+
+if [ "$TARGET" = "x86_64" ]; then
+ mv $PKG/usr/lib $PKG/usr/lib64
+ sed -i "s%= /usr/lib/%= /usr/lib64/%" \
+ $PKG/usr/share/$PRGNAM/opensc.conf.dnie
+ sed -i "s%libdir=\${exec_prefix}/lib%libdir=\${exec_prefix}/lib64%" \
+ $PKG/usr/lib64/pkgconfig/*.pc
+ sed -i "s%/usr/lib%/usr/lib64%g" \
+ $PKG/usr/lib64/*.la
+fi
+
+mkdir -p $PKG/etc
+cp $PKG/usr/share/$PRGNAM/opensc.conf.dnie $PKG/etc/opensc.conf.new
+
+mv $PKG/usr/share/doc $PKG/usr
+mv $PKG/usr/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+chown -R root:root .
+find . -type d -exec chmod 755 {} \;
+chmod -R u+rw,go+r-w,a-s .
+
+/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/system/opensc-dnie/opensc-dnie.info b/system/opensc-dnie/opensc-dnie.info
new file mode 100644
index 0000000000..4247ac19e4
--- /dev/null
+++ b/system/opensc-dnie/opensc-dnie.info
@@ -0,0 +1,10 @@
+PRGNAM="opensc-dnie"
+VERSION="1.4.6_2"
+HOMEPAGE="http://www.dnielectronico.es/"
+DOWNLOAD="http://www.dnielectronico.es/descargas/PKCS11_para_Sistemas_Unix/1.4.6.Debian_Lenny_32/Debian_Lenny_opensc-dnie_1.4.6-2_i386.deb.tar"
+MD5SUM="99729a2ae39b808ec47fac74c6236e02"
+DOWNLOAD_x86_64="http://www.dnielectronico.es/descargas/PKCS11_para_Sistemas_Unix/1.4.6.Debian_Lenny_64/Debian_Lenny_opensc-dnie_1.4.6-2_amd64.deb.tar"
+MD5SUM_x86_64="b5124e7b3206f48b35e468f14f74b3ad"
+MAINTAINER="Daniel R."
+EMAIL="<danielrodriguez.es@gmail.com>"
+APPROVED="rworkman"
diff --git a/system/opensc-dnie/slack-desc b/system/opensc-dnie/slack-desc
new file mode 100644
index 0000000000..720b6fbefc
--- /dev/null
+++ b/system/opensc-dnie/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler--------------------------------------------------------|
+opensc-dnie: opensc-dnie (opensc support for Spanish ID cards)
+opensc-dnie:
+opensc-dnie: This package provides opensc support for Spanish ID cards.
+opensc-dnie:
+opensc-dnie: Homepage: http://www.dnielectronico.es
+opensc-dnie:
+opensc-dnie:
+opensc-dnie:
+opensc-dnie:
+opensc-dnie:
+opensc-dnie: