            SPELL=nss

if [ -z "$NSS_BRANCH" ] || [ "$NSS_BRANCH" == "DEFAULT" ]; then
  NSS_BRANCH=3.14
fi

case $NSS_BRANCH in
  3.11)
          VERSION=3.11.9
           SOURCE=$SPELL-$VERSION.tar.gz
    SOURCE_URL[0]=http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_${VERSION//./_}_RTM/src/$SOURCE
      SOURCE_HASH=sha512:2fe9eafe99c64c57503739cabcd58f8aac29c1f353379c4072c183c0bf0dee3fc7147120ad0fc8fef4dc6fdae542e5068ffca0a7e7d0bcf99d23500d49e9dc35
       PATCHLEVEL=2
  ;;
  3.12)
          VERSION=3.12.11
   SECURITY_PATCH=3
       PATCHLEVEL=1
#        FFVERSION=3.6.2
#           SOURCE=$SPELL-$VERSION.tar.gz
           SOURCE=nss-3.12.11.with.ckbi.1.88.tar.gz
#    SOURCE_URL[0]=http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_${VERSION//./_}_RTM/src/$SOURCE
    SOURCE_URL[0]=http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_12_11_WITH_CKBI_1_88_RTM/src/$SOURCE
      SOURCE_HASH=sha512:19601383313fe6457b1af03161a9902811a77715e8a9a04ec4e70fd8e9685b3883497b7a8c5f877728fea2144c3e14c0d811f13fe1cd39dccd95feb60d3eb57f
#          SOURCE=firefox-$FFVERSION.source.tar.bz2
#         SOURCE2=$SOURCE.asc
#  SOURCE2_IGNORE=signature
#      SOURCE_GPG=firefox.gpg:$SOURCE2:WORKS_FOR_ME
#   SOURCE_URL[0]=ftp://ftp.mozilla.org/pub/firefox/releases/$FFVERSION/source/$SOURCE
#  SOURCE2_URL[0]=$SOURCE_URL.asc
  ;;
  3.13)
          VERSION=3.13.6
       PATCHLEVEL=1
           SOURCE=$SPELL-$VERSION.tar.gz
    SOURCE_URL[0]=http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_${VERSION//./_}_RTM/src/$SOURCE
      SOURCE_HASH=sha512:45bc254eb238ea23fdd8d2c9128a22cebe15fda9ed5c9c1d112b5756d4d2b76e7f3a99d3600254bdcd6eeb18bda224d52e676e169207193798200f0d41baa29d
  ;;
  3.14)
          VERSION=3.14.3
           SOURCE=$SPELL-$VERSION.tar.gz
    SOURCE_URL[0]=http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_${VERSION//./_}_RTM/src/$SOURCE
      SOURCE_HASH=sha512:4e8d8517ffb6d03da274afe9a7c50e2f0a15ffdd83e63f29a445e7aee829a8b7e2fbc772695322bd6acee81c052811735b542978044996156cb52dd7e4c001ec
  ;;
esac

 SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION"
         WEB_SITE=http://www.mozilla.org/projects/security/pki/nss/
          ENTERED=20030919
       LICENSE[0]=MPL
       LICENSE[1]=GPL
       LICENSE[2]=LGPL
      GATHER_DOCS=off
         KEYWORDS="security crypto"
            SHORT='Network Security Services (NSS)'
cat << EOF
Network Security Services (NSS) is a set of libraries designed to support
cross-platform development of security-enabled client and server applications.
Applications built with NSS can support SSL v2 and v3, TLS, PKCS #5, PKCS #7,
PKCS #11, PKCS #12, S/MIME, X.509 v3 certificates, and other security
standards.
EOF
# Proper versions and CVS tag names can be found here:
# NSS -- http://bonsai.mozilla.org/cvsgraph.cgi?file=mozilla/security/coreconf/config.mk
# NSS's DBM part -- http://bonsai.mozilla.org/cvsgraph.cgi?file=mozilla/security/dbm/src/config.mk
# DBM -- http://bonsai.mozilla.org/cvsgraph.cgi?file=mozilla/dbm/src/Makefile.in
# Warning: DBM's tree is not always tagged with the same tag as NSS
