misc/openssl-certs: Added.

Openssl Certificates to provide authentication for SSL
  based programs. Thanks to David Woodall.
This commit is contained in:
David Woodfall 2010-04-09 16:57:35 +01:00 committed by Michiel van Wessem
parent 430f16c851
commit eaa0cbc7c1
5 changed files with 102 additions and 0 deletions

View file

@ -0,0 +1,7 @@
OpenSSL Certificates from OpenSuse
These are the openssl certificates as included by OpenSuse,
to allow SSL-based applications to check for the authenticity
of SSL connections.

View file

@ -0,0 +1 @@
c_rehash etc/ssl/certs 1> /dev/null

View file

@ -0,0 +1,65 @@
#!/bin/sh
# Slackware build script for OpenSSL certificates
# Copyright David Woodfall
#
# 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.
# Modified by the SlackBuilds.org project --michiel
PRGNAM=openssl-certs
VERSION=0.9.8h_28.1
ARCH=noarch
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
SOURCEDIR=certs
SRCVER=$(echo $VERSION | tr _ -)
# Stop on most errors.
set -e
rm -rf $PKG $TMP/$SOURCEDIR
mkdir -p $PKG $OUTPUT $TMP/$SOURCEDIR
cd $TMP/$SOURCEDIR
rpm2cpio < $CWD/$PRGNAM-$SRCVER.$ARCH.rpm | cpio -imdv
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
# Copy over the certificates to /etc/ssl/certs
mv $TMP/$SOURCEDIR/etc $PKG/
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $TMP/$SOURCEDIR/usr/share/doc/packages/$PRGNAM/COPYING > $PKG/usr/doc/$PRGNAM-$VERSION/COPYING
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 -c n -l y $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -0,0 +1,10 @@
PRGNAM="openssl-certs"
VERSION="0.9.8h_28.1"
HOMEPAGE="http://www.opensuse.org"
DOWNLOAD="http://download.opensuse.org/distribution/11.2/repo/oss/suse/noarch/openssl-certs-0.9.8h-28.1.noarch.rpm"
MD5SUM="663b547cc15a653e0d945d9b16e4eb1f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="David Woodfall"
EMAIL="info@davidwoodfall.co.uk"
APPROVED="michiel"

View file

@ -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------------------------------------------------------|
openssl-certs: openssl-certs (OpenSSL Certificates from OpenSuse)
openssl-certs:
openssl-certs: These are the openssl certificates as included by OpenSuse,
oepnssl-certs: to allow SSL-based applications to check for the authenticity
openssl-certs: of SSL connections.
openssl-certs:
openssl-certs:
openssl-certs:
openssl-certs: Homepage http://www.opensuse.org
openssl-certs:
openssl-certs: