diff --git a/development/cryptoki/README b/development/cryptoki/README new file mode 100644 index 0000000000..8a673dfa80 --- /dev/null +++ b/development/cryptoki/README @@ -0,0 +1,11 @@ +RSA Security Inc. PKCS #11 Cryptographic Token Interface (Cryptoki) +2.20 header files. + +This standard specifies an API, called Cryptoki, to devices which hold +cryptographic information and perform cryptographic functions. Cryptoki, +pronounced crypto-key and short for cryptographic token interface, +follows a simple object-based approach, addressing the goals of +technology independence (any kind of device) and resource sharing +(multiple applications accessing multiple devices), presenting to +applications a common, logical view of the device called a cryptographic +token. diff --git a/development/cryptoki/cryptoki.SlackBuild b/development/cryptoki/cryptoki.SlackBuild new file mode 100644 index 0000000000..6c48ae91dc --- /dev/null +++ b/development/cryptoki/cryptoki.SlackBuild @@ -0,0 +1,58 @@ +#!/bin/sh + +# Slackware build script for the RSA Security Inc. PKCS #11 Cryptographic +# Token Interface 2.20 headers, called Cryptoki. +# +# Copyright 2009 Pierre Cazenave +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=cryptoki +VERSION=${VERSION:-2.20} +ARCH=${ARCH:-noarch} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT + +# Put the headers in /usr/include +mkdir -p $PKG/usr/include +install -m 644 $CWD/*.h $PKG/usr/include + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $CWD/pkcs-11v2-20.pdf $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README$TAG + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +# Make sure ownership is sane +chown -R root:root $PKG + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/development/cryptoki/cryptoki.info b/development/cryptoki/cryptoki.info new file mode 100644 index 0000000000..4a1029a8e1 --- /dev/null +++ b/development/cryptoki/cryptoki.info @@ -0,0 +1,28 @@ +PRGNAM="cryptoki" +VERSION="2.20" +HOMEPAGE="http://www.rsa.com/rsalabs/node.asp?id=2133" +DOWNLOAD="ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/cryptoki.h \ + ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/ct-kip.h \ + ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/otp-pkcs11.h \ + ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs-11v2-20a3.h \ + ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs-11v2-20a3d3.h \ + ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11.h \ + ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11f.h \ + ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11t-consolidated-d1.h \ + ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11t.h \ + ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs-11v2-20.pdf" +MD5SUM="c3e33fe37f9d5411c9e2eaae272c0b0a \ + 568c783efb6afab39fa5d0c440df69d7 \ + aa2f98004d812fe946ceb4d3e640a5a5 \ + 2ae3887a96fc9d0414b18e2ea0813551 \ + c53982f55d9469e4623510def1f0a553 \ + 713ac88786b436a5df02bface7dfce45 \ + 652434a5793eb14aae7b5baa07f6cfc7 \ + e61d20509d3a4263d02e1b1d0bf74c2c \ + aeebc839b98e672982abf566e6a25525 \ + 43f1cb13936cccba55bee0dbc0926849" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Pierre Cazenave" +EMAIL="pwcazenave gmail {dot} com" +APPROVED="rworkman" diff --git a/development/cryptoki/slack-desc b/development/cryptoki/slack-desc new file mode 100644 index 0000000000..6f6ff07534 --- /dev/null +++ b/development/cryptoki/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--------------------------------------------------| +cryptoki: cryptoki (cryptographic API) +cryptoki: +cryptoki: This standard specifies an API, called Cryptoki, to devices which +cryptoki: hold cryptographic information and perform cryptographic functions. +cryptoki: Cryptoki, pronounced crypto-key and short for cryptographic token +cryptoki: interface, follows a simple object-based approach, addressing the +cryptoki: goals of technology independence (any kind of device) and resource +cryptoki: sharing (multiple applications accessing multiple devices), +cryptoki: presenting to applications a common, logical view of the device +cryptoki: called a cryptographic token. +cryptoki: http://www.rsa.com/rsalabs/node.asp?id=2133