           SPELL=gnutls

###
# 2006-05-19
# GNUTLS_OLD -> GNUTLS_BRANCH

if [ "$GNUTLS_OLD" == "y" ]; then
  GNUTLS_BRANCH="1.0"
fi

if [ "$GNUTLS_OLD" == "n" ]; then
  GNUTLS_BRANCH="DEFAULT"
fi
###


if [ -z "$GNUTLS_BRANCH" ] || [ "$GNUTLS_BRANCH" == "DEFAULT" ]; then
  GNUTLS_BRANCH="1.4"
fi

case $GNUTLS_BRANCH in
  1.0)
         VERSION=1.0.25
          SOURCE=$SPELL-$VERSION.tar.gz
          MD5[0]=f4959398d22ade4bf6ec54752e18ba86
  ;;
  1.2)
         VERSION=1.2.11
          SOURCE=$SPELL-$VERSION.tar.bz2
     SOURCE_HASH=sha512:d2cd6b1e3b15206a37d3db3bc9a7489dc951fef0d290c3244caa490839cf7be1e3f0197dcc1e634562d0d3449f21aa32a276d256eaa473e3c0e87905e54921bd
  ;;
  1.4)
         VERSION=1.4.4
          SOURCE=$SPELL-$VERSION.tar.bz2
     SOURCE_HASH=sha512:5b30a3f01c3805aba822817d35b865dd5f994d50a3d8142abd4c59fd2218bdaf708898be155324fb1e6b157095d5a6742b49d0274c8251b58265e7df1809c957
  ;;
esac


  SECURITY_PATCH=3
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION
   SOURCE_URL[0]=http://josefsson.org/gnutls/releases/$SOURCE
        WEB_SITE=http://www.gnu.org/software/gnutls/
      LICENSE[0]=LGPL
      LICENSE[1]=GPL
         ENTERED=20030829
        KEYWORDS="security crypto"
           SHORT="GNU Transport Layer Security Library"
cat << EOF
GnuTLS (GNU Transport Layer Security Library) is a library which implements a secure
layer over a reliable transport layer. Currently the GnuTLS library implements
the proposed standards by the IETF's TLS working group.

Quoting from RFC2246 - the TLS 1.0 protocol specification:

"The TLS protocol provides communications privacy over the Internet.
 The protocol allows client/server applications to communicate in a way that
 is designed to prevent eavesdropping, tampering, or message forgery."
EOF
