parent
8776310d46
commit
6d59231ebe
@ -1,17 +1,17 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQJNBAABCgA3FiEEm8dazQnvu0U1Gdmc9s+lqZ57WVcFAmCNy94ZHGd6YW11ZGlv
|
||||
QGxpYnJlbWV4Lm9yZy5teAAKCRD2z6WpnntZVzCLD/9cUrK9xoXSYt4mnUjYCr5y
|
||||
tTiE1tlFtLkRiYGpEzYSMrvDnEcYF4XmLyPJigHNcxDM/wymo+GLBtKfG7k9qjk1
|
||||
QvggVwFwZc852B9BVMKWWku00PxA87dHjOTUC97JvJ/1NlU55HsleMc/SAZkSa1b
|
||||
R8EG67MpgB67W0lTk9LxqvcOdWhHlarYz93m69cuPRU1MptW3ZxI9I6MO1iuTZuv
|
||||
Y3K8ASe24y5h+V26YoIc2TBuzssMuPptviZPxZV6KnjPkUeiitsQhjbidvc1Brwj
|
||||
qnqEZBJeAxGmYGJQH3e+uU9CLuFSqag7wuVMerUxzEKIMLEdmdrto3NZ3Es9xFuo
|
||||
8iYgGFz1u09ngZHHw/UzHR2yDcUa0zLj56g6v5z6F9IyGrHCkdZhyETJ6TjsGtZV
|
||||
mPi3LZM0FgbY7ztfGKTPCWHX8UTzwCAAs9u4rEsdZHh/qqWZVlp1zIzqRWamZYEg
|
||||
Vstj+/KgotfOu6lV5PglxTaAbszvKSQGt/sHwFBW+ysvtmdpqXtrbWQVebSe6KkH
|
||||
vksL9F//j75GTE9OFN8Tl3X39xiXILotKEnuYzYYC7WTc1R7tCnKxOXgqoeab6tC
|
||||
F47EOH8hV/9dfaaohpzCMMwdI3VYa2KvZRib2xsKTRzRfsfqHcpu0q47moNtapUG
|
||||
NjNhAF44xuyLb9eDwmVcdQ==
|
||||
=ZRmR
|
||||
iQJNBAABCgA3FiEEm8dazQnvu0U1Gdmc9s+lqZ57WVcFAmCNzYsZHGd6YW11ZGlv
|
||||
QGxpYnJlbWV4Lm9yZy5teAAKCRD2z6WpnntZV55TEACB0BOxJByg3CVNW+zREsm0
|
||||
FWGez5M/kemWAOOtH1ryQzQUTxuXSbLhMVMlE0bA0mfbVjk8zRAgKl9KyGOv0aaC
|
||||
LVL4JTAXb96ZQhRhlsuJ/+OlBE0/7LU/jmaAuI5J0/znJvz2StuKcNd1ZMpD6grt
|
||||
ESNNwUS3qGCItCRVusnMNg3cVPRSAXCZdr6iqf8bNHJyKGAU43UpcW8VzchAl59x
|
||||
3QBtpp1q5ABqps5nPa0jCWdCdBvvrDskRPAUYE9P4TCvQJaawgifzLakOtPJ0GBX
|
||||
5TDoUwzwKK7R+88cbER8fvzHQFYTswsOBbA1VNCedNPJ6I75S9A48OC/O81kcjZ2
|
||||
TSglInHYSTbCMVwQZzL3fb5y10IMvP/nG0ClaZ+4439ITiS6MLhpQSBtw6Yn/3zQ
|
||||
AwifRBorqbSl3xJCrI/QLJMb1GxwA0bstGTA8l7ZOYv0EF7ym5HyW2J9nwhKPr7H
|
||||
N4KB6jUOfGLwDkDXfrjY2FyL/TinySc0WFTRDcm3nGkqVWbaCHlol5AzaiFSRmHi
|
||||
umtLAhl0a/Snywr+Po/meWOEBbCIhkmDylE2ueojwkw6TAoEUG7lJk6zh+a87Zbm
|
||||
ierjpKaRjhXZzY0I57w8GMUeAq3sJE5uqmfYvRLcVxShJ9kAY218c+SZu8o9eeTa
|
||||
APneSfFNBLbrb2TFyeCxkQ==
|
||||
=yV5Q
|
||||
-----END PGP SIGNATURE-----
|
||||
|
Binary file not shown.
@ -1,17 +1,17 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQJNBAABCgA3FiEEm8dazQnvu0U1Gdmc9s+lqZ57WVcFAmCNy94ZHGd6YW11ZGlv
|
||||
QGxpYnJlbWV4Lm9yZy5teAAKCRD2z6WpnntZV52rD/4vDbuSd9wfP9nYN+y1sd47
|
||||
DR9xjH9biDe1JcIR5n0utAJjGNRctdB0rrsU13iJDuYidw6qLA99fGJRGiEnVi5G
|
||||
9L/8Yst4BeonOa9GYro6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euHEgKKTWg7It2AQyMHtpz1FMMbD0PMtVzj95/3tQRW/MeAEZDOl81vrRU/ve
|
||||
jtrI0JclKpA69bwE0gY4NBgpWyDsxL8HSCia9E15/dk0nGGQCjlm92rWaKhmgBng
|
||||
w4fdbDuu4OSQQY2olnh4ns8nJPANmnkusuZnZAtW4TB//enoX7ysZRB0v0k1ESlw
|
||||
24Gd6MTyYnUrejL0enoUKnNPmof854CoMd1pFdETLpf/bGkIoeZ9Di+hVkdQ06dF
|
||||
ZxIeFRXKB2zPdpMQ3X+Aef45P5IKdGpOWprDN84xVK19LVPaGfnHlqbMtGE7eogB
|
||||
8ykweIWB9YZvBxBziKjPrXTXS8CdK6pCRYRW4A9KZCtm6kJVh8N7dUfTq9n8mRix
|
||||
upt/6qV73mg2NLMQomLOXw==
|
||||
=80Eg
|
||||
-----END PGP SIGNATURE-----
|
||||
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,5 @@
|
||||
softhsm (Software Hardware Security Module)
|
||||
|
||||
SoftHSM is an implementation of a cryptographic store accessible through a
|
||||
PKCS #11 interface. You can use it to explore PKCS #11 without having a
|
||||
Hardware Security Module.
|
@ -0,0 +1,14 @@
|
||||
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/softhsm2.conf.new
|
@ -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 ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
softhsm: softhsm (Software Hardware Security Module)
|
||||
softhsm:
|
||||
softhsm: SoftHSM is an implementation of a cryptographic store accessible
|
||||
softhsm: through a PKCS #11 interface. You can use it to explore PKCS #11
|
||||
softhsm: without having a Hardware Security Module.
|
||||
softhsm:
|
||||
softhsm:
|
||||
softhsm:
|
||||
softhsm:
|
||||
softhsm: Home-Page: https://www.opendnssec.org
|
||||
softhsm:
|
@ -0,0 +1,105 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Slackware build script for softhsm
|
||||
|
||||
# Copyright 2016-2021 Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
|
||||
# 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=softhsm
|
||||
VERSION=${VERSION:-2.6.1}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i586 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||
--disable-static \
|
||||
--disable-gost \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
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 {} \;
|
||||
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||
|
||||
mv $PKG/etc/softhsm2.conf $PKG/etc/softhsm2.conf.new
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a *.md NEWS LICENSE $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
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
@ -0,0 +1,10 @@
|
||||
PRGNAM="softhsm"
|
||||
VERSION="2.6.1"
|
||||
HOMEPAGE="https://www.opendnssec.org"
|
||||
DOWNLOAD="https://dist.opendnssec.org/source/softhsm-2.6.1.tar.gz"
|
||||
MD5SUM="040b93ca327cbe0a3a8661e7c371ab16"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
MAINTAINER="Giuseppe Di Terlizzi"
|
||||
EMAIL="giuseppe.diterlizzi@gmail.com"
|
Loading…
Reference in new issue