aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorAudrius Kažukauskas <neobug@tornado.ktu.lt>2010-05-11 14:56:18 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 14:56:18 +0200
commit2b691f8b9a5388d3972694767964d1c3581806f9 (patch)
treeff30f2c1360c9288e7c97835224d5ae2ce338110 /libraries
parente2818d807b7d3442610eb70fd3386208011af20d (diff)
libraries/libgcrypt: Initial import
Diffstat (limited to 'libraries')
-rw-r--r--libraries/libgcrypt/README9
-rw-r--r--libraries/libgcrypt/libgcrypt.SlackBuild57
-rw-r--r--libraries/libgcrypt/libgcrypt.info8
-rw-r--r--libraries/libgcrypt/slack-desc11
4 files changed, 85 insertions, 0 deletions
diff --git a/libraries/libgcrypt/README b/libraries/libgcrypt/README
new file mode 100644
index 0000000000000..156d75232cfe3
--- /dev/null
+++ b/libraries/libgcrypt/README
@@ -0,0 +1,9 @@
+libgcrypt is a general purpose cryptographic library based on code from GnuPG.
+It provides functions for all cryptograhic building blocks: symmetric ciphers
+(AES, DES, Blowfish, CAST5, Twofish, Arcfour), hash algorithms (MD4, MD5,
+RIPE-MD160, SHA-1, TIGER-192), MACs (HMAC for all hash algorithms), public key
+algorithms (RSA, ElGamal, DSA), large integer functions, random numbers, and a
+lot of supporting functions.
+
+This requires libgpg-error (available at SlackBuilds.org)
+
diff --git a/libraries/libgcrypt/libgcrypt.SlackBuild b/libraries/libgcrypt/libgcrypt.SlackBuild
new file mode 100644
index 0000000000000..84ae0e0833ff6
--- /dev/null
+++ b/libraries/libgcrypt/libgcrypt.SlackBuild
@@ -0,0 +1,57 @@
+#!/bin/sh
+
+# Slackware build script for libgcrypt
+
+# Copyright (c) 2007 Audrius Kažukauskas <neobug@tornado.ktu.lt>
+
+# Modified by the SlackBuilds.org project
+
+set -e
+
+PRGNAM=libgcrypt
+VERSION=1.2.4
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=${PKG:-$TMP/package-$PRGNAM}
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+fi
+
+rm -rf $PKG $TMP/$PRGNAM-$VERSION
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+tar -jxvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM-$VERSION
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --infodir=/usr/info \
+ --enable-static=no
+
+make
+make install-strip DESTDIR=$PKG
+
+rm -f $PKG/usr/info/dir
+find $PKG/usr/info -type f -exec gzip -9 {} \;
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING* ChangeLog INSTALL NEWS README* THANKS TODO VERSION \
+ $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
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/libraries/libgcrypt/libgcrypt.info b/libraries/libgcrypt/libgcrypt.info
new file mode 100644
index 0000000000000..47aef444d5c17
--- /dev/null
+++ b/libraries/libgcrypt/libgcrypt.info
@@ -0,0 +1,8 @@
+PRGNAM="libgcrypt"
+VERSION="1.2.4"
+HOMEPAGE="http://directory.fsf.org/security/libgcrypt.html"
+DOWNLOAD="ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.2.4.tar.bz2"
+MD5SUM="3675d3e74c3a44aed629d9b12a30bb51"
+MAINTAINER="Audrius Kazukauskas"
+EMAIL="neobug@tornado.ktu.lt"
+APPROVED="robw810"
diff --git a/libraries/libgcrypt/slack-desc b/libraries/libgcrypt/slack-desc
new file mode 100644
index 0000000000000..61140b870cc8e
--- /dev/null
+++ b/libraries/libgcrypt/slack-desc
@@ -0,0 +1,11 @@
+libgcrypt: Libgcrypt (cryptographic library)
+libgcrypt:
+libgcrypt: This is a general purpose cryptographic library based on the code
+libgcrypt: from GnuPG. It provides functions for all cryptograhic building
+libgcrypt: blocks: symmetric ciphers (AES, DES, Blowfish, CAST5, Twofish,
+libgcrypt: Arcfour), hash algorithms (MD4, MD5, RIPE-MD160, SHA-1, TIGER-192),
+libgcrypt: MACs (HMAC for all hash algorithms), public key algorithms (RSA,
+libgcrypt: ElGamal, DSA), large integer functions, random numbers and a lot of
+libgcrypt: supporting functions.
+libgcrypt:
+libgcrypt: