CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
nss: initial import (removed USE_64=1 from upstream)
authorJose V Beneyto <sepen@crux.nu>
Sat, 5 Oct 2013 09:47:29 +0000 (11:47 +0200)
committerJose V Beneyto <sepen@crux.nu>
Sat, 5 Oct 2013 09:47:41 +0000 (11:47 +0200)
nss/.footprint [new file with mode: 0644]
nss/.md5sum [new file with mode: 0644]
nss/Pkgfile [new file with mode: 0644]
nss/nss-config.in [new file with mode: 0644]
nss/nss.pc.in [new file with mode: 0644]

diff --git a/nss/.footprint b/nss/.footprint
new file mode 100644 (file)
index 0000000..94872b2
--- /dev/null
@@ -0,0 +1,123 @@
+drwxr-xr-x     root/root       usr/
+drwxr-xr-x     root/root       usr/bin/
+-rwxr-xr-x     root/root       usr/bin/certutil
+-rwxr-xr-x     root/root       usr/bin/cmsutil
+-rwxr-xr-x     root/root       usr/bin/crlutil
+-rwxr-xr-x     root/root       usr/bin/modutil
+-rwxr-xr-x     root/root       usr/bin/nss-config
+-rwxr-xr-x     root/root       usr/bin/pk12util
+-rwxr-xr-x     root/root       usr/bin/signtool
+-rwxr-xr-x     root/root       usr/bin/signver
+-rwxr-xr-x     root/root       usr/bin/ssltap
+drwxr-xr-x     root/root       usr/include/
+drwxr-xr-x     root/root       usr/include/nss/
+-rw-r--r--     root/root       usr/include/nss/base64.h
+-rw-r--r--     root/root       usr/include/nss/blapit.h
+-rw-r--r--     root/root       usr/include/nss/cert.h
+-rw-r--r--     root/root       usr/include/nss/certdb.h
+-rw-r--r--     root/root       usr/include/nss/certt.h
+-rw-r--r--     root/root       usr/include/nss/ciferfam.h
+-rw-r--r--     root/root       usr/include/nss/cmmf.h
+-rw-r--r--     root/root       usr/include/nss/cmmft.h
+-rw-r--r--     root/root       usr/include/nss/cms.h
+-rw-r--r--     root/root       usr/include/nss/cmsreclist.h
+-rw-r--r--     root/root       usr/include/nss/cmst.h
+-rw-r--r--     root/root       usr/include/nss/crmf.h
+-rw-r--r--     root/root       usr/include/nss/crmft.h
+-rw-r--r--     root/root       usr/include/nss/cryptohi.h
+-rw-r--r--     root/root       usr/include/nss/cryptoht.h
+-rw-r--r--     root/root       usr/include/nss/ecl-exp.h
+-rw-r--r--     root/root       usr/include/nss/hasht.h
+-rw-r--r--     root/root       usr/include/nss/jar-ds.h
+-rw-r--r--     root/root       usr/include/nss/jar.h
+-rw-r--r--     root/root       usr/include/nss/jarfile.h
+-rw-r--r--     root/root       usr/include/nss/key.h
+-rw-r--r--     root/root       usr/include/nss/keyhi.h
+-rw-r--r--     root/root       usr/include/nss/keyt.h
+-rw-r--r--     root/root       usr/include/nss/keythi.h
+-rw-r--r--     root/root       usr/include/nss/nss.h
+-rw-r--r--     root/root       usr/include/nss/nssb64.h
+-rw-r--r--     root/root       usr/include/nss/nssb64t.h
+-rw-r--r--     root/root       usr/include/nss/nssbase.h
+-rw-r--r--     root/root       usr/include/nss/nssbaset.h
+-rw-r--r--     root/root       usr/include/nss/nssckbi.h
+-rw-r--r--     root/root       usr/include/nss/nssckepv.h
+-rw-r--r--     root/root       usr/include/nss/nssckft.h
+-rw-r--r--     root/root       usr/include/nss/nssckfw.h
+-rw-r--r--     root/root       usr/include/nss/nssckfwc.h
+-rw-r--r--     root/root       usr/include/nss/nssckfwt.h
+-rw-r--r--     root/root       usr/include/nss/nssckg.h
+-rw-r--r--     root/root       usr/include/nss/nssckmdt.h
+-rw-r--r--     root/root       usr/include/nss/nssckt.h
+-rw-r--r--     root/root       usr/include/nss/nssilckt.h
+-rw-r--r--     root/root       usr/include/nss/nssilock.h
+-rw-r--r--     root/root       usr/include/nss/nsslocks.h
+-rw-r--r--     root/root       usr/include/nss/nsslowhash.h
+-rw-r--r--     root/root       usr/include/nss/nssrwlk.h
+-rw-r--r--     root/root       usr/include/nss/nssrwlkt.h
+-rw-r--r--     root/root       usr/include/nss/nssutil.h
+-rw-r--r--     root/root       usr/include/nss/ocsp.h
+-rw-r--r--     root/root       usr/include/nss/ocspt.h
+-rw-r--r--     root/root       usr/include/nss/p12.h
+-rw-r--r--     root/root       usr/include/nss/p12plcy.h
+-rw-r--r--     root/root       usr/include/nss/p12t.h
+-rw-r--r--     root/root       usr/include/nss/pk11func.h
+-rw-r--r--     root/root       usr/include/nss/pk11pqg.h
+-rw-r--r--     root/root       usr/include/nss/pk11priv.h
+-rw-r--r--     root/root       usr/include/nss/pk11pub.h
+-rw-r--r--     root/root       usr/include/nss/pk11sdr.h
+-rw-r--r--     root/root       usr/include/nss/pkcs11.h
+-rw-r--r--     root/root       usr/include/nss/pkcs11f.h
+-rw-r--r--     root/root       usr/include/nss/pkcs11n.h
+-rw-r--r--     root/root       usr/include/nss/pkcs11p.h
+-rw-r--r--     root/root       usr/include/nss/pkcs11t.h
+-rw-r--r--     root/root       usr/include/nss/pkcs11u.h
+-rw-r--r--     root/root       usr/include/nss/pkcs12.h
+-rw-r--r--     root/root       usr/include/nss/pkcs12t.h
+-rw-r--r--     root/root       usr/include/nss/pkcs7t.h
+-rw-r--r--     root/root       usr/include/nss/portreg.h
+-rw-r--r--     root/root       usr/include/nss/preenc.h
+-rw-r--r--     root/root       usr/include/nss/secasn1.h
+-rw-r--r--     root/root       usr/include/nss/secasn1t.h
+-rw-r--r--     root/root       usr/include/nss/seccomon.h
+-rw-r--r--     root/root       usr/include/nss/secder.h
+-rw-r--r--     root/root       usr/include/nss/secdert.h
+-rw-r--r--     root/root       usr/include/nss/secdig.h
+-rw-r--r--     root/root       usr/include/nss/secdigt.h
+-rw-r--r--     root/root       usr/include/nss/secerr.h
+-rw-r--r--     root/root       usr/include/nss/sechash.h
+-rw-r--r--     root/root       usr/include/nss/secitem.h
+-rw-r--r--     root/root       usr/include/nss/secmime.h
+-rw-r--r--     root/root       usr/include/nss/secmod.h
+-rw-r--r--     root/root       usr/include/nss/secmodt.h
+-rw-r--r--     root/root       usr/include/nss/secoid.h
+-rw-r--r--     root/root       usr/include/nss/secoidt.h
+-rw-r--r--     root/root       usr/include/nss/secpkcs5.h
+-rw-r--r--     root/root       usr/include/nss/secpkcs7.h
+-rw-r--r--     root/root       usr/include/nss/secport.h
+-rw-r--r--     root/root       usr/include/nss/shsign.h
+-rw-r--r--     root/root       usr/include/nss/smime.h
+-rw-r--r--     root/root       usr/include/nss/ssl.h
+-rw-r--r--     root/root       usr/include/nss/sslerr.h
+-rw-r--r--     root/root       usr/include/nss/sslproto.h
+-rw-r--r--     root/root       usr/include/nss/sslt.h
+-rw-r--r--     root/root       usr/include/nss/utilmodt.h
+-rw-r--r--     root/root       usr/include/nss/utilpars.h
+-rw-r--r--     root/root       usr/include/nss/utilparst.h
+-rw-r--r--     root/root       usr/include/nss/utilrename.h
+drwxr-xr-x     root/root       usr/lib/
+-rw-r--r--     root/root       usr/lib/libcrmf.a
+-rw-r--r--     root/root       usr/lib/libfreebl3.chk
+-rwxr-xr-x     root/root       usr/lib/libfreebl3.so
+-rwxr-xr-x     root/root       usr/lib/libnss3.so
+-rw-r--r--     root/root       usr/lib/libnssb.a
+-rwxr-xr-x     root/root       usr/lib/libnssckbi.so
+-rw-r--r--     root/root       usr/lib/libnssckfw.a
+-rwxr-xr-x     root/root       usr/lib/libnssdbm3.so
+-rwxr-xr-x     root/root       usr/lib/libnssutil3.so
+-rwxr-xr-x     root/root       usr/lib/libsmime3.so
+-rw-r--r--     root/root       usr/lib/libsoftokn3.chk
+-rwxr-xr-x     root/root       usr/lib/libsoftokn3.so
+-rwxr-xr-x     root/root       usr/lib/libssl3.so
+drwxr-xr-x     root/root       usr/lib/pkgconfig/
+-rw-r--r--     root/root       usr/lib/pkgconfig/nss.pc
diff --git a/nss/.md5sum b/nss/.md5sum
new file mode 100644 (file)
index 0000000..e640f83
--- /dev/null
@@ -0,0 +1,3 @@
+154223568f9734c76c164b46c774450c  nss-3.15.2.tar.gz
+17226659298a9d9bb3f323186d220f6f  nss-config.in
+4bb2893f773bb168271521e654861e29  nss.pc.in
diff --git a/nss/Pkgfile b/nss/Pkgfile
new file mode 100644 (file)
index 0000000..774b242
--- /dev/null
@@ -0,0 +1,67 @@
+# Description: Mozilla Network Security Services (NSS)
+# URL: http://www.mozilla.org/projects/security/pki/nss/
+# Maintainer: Fredrik Rinnestam, fredrik at rinnestam dot se
+# Arch Maintainer: CRUX-ARM System Team. devel at crux-arm dot nu
+# Depends on: nspr sqlite3
+
+name=nss
+version=3.15.2
+release=2
+source=(ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_15_2_RTM/src/$name-$version.tar.gz \
+        nss-config.in nss.pc.in)
+
+build() {
+    cd $name-$version/
+
+    local file
+
+    sed -i nss/coreconf/Linux.mk \
+        -e 's|^CC.*=.*gcc$|#&|' \
+        -e 's|^CCC.*=.*g++$|#&|'
+
+    export NSPR_INCLUDE_DIR=/usr/include/nspr
+    export NSPR_LIB_DIR=/usr/lib
+    export NSS_USE_SYSTEM_SQLITE=1
+    export NSS_ENABLE_ECC=1
+    export BUILD_OPT=1
+    export XCFLAGS="${CFLAGS}"
+
+    make -j1 -C nss all
+
+    install -d $PKG/usr/{bin,lib/pkgconfig,include/nss}
+
+    for file in \
+        libnss3.so libssl3.so libsmime3.so libsoftokn3.so \
+        libsoftokn3.chk libnssckbi.so libfreebl3.so libfreebl3.chk \
+        libcrmf.a libnssb.a libnssckfw.a libnssutil3.so libnssdbm3.so
+    do
+        cp -L dist/*.OBJ/lib/$file $PKG/usr/lib
+    done
+
+    chmod +x $PKG/usr/lib/*.so
+
+    for file in \
+        certutil cmsutil crlutil modutil pk12util signtool signver ssltap
+    do
+        cp -L dist/*.OBJ/bin/$file $PKG/usr/bin
+    done
+
+    cp -L dist/public/nss/*.h $PKG/usr/include/nss
+
+    install -m 0755 $SRC/nss-config.in $PKG/usr/bin/nss-config
+
+    sed -i "s/@VERSION@/$version/" $PKG/usr/bin/nss-config
+
+    NSS_LIBS=`$PKG/usr/bin/nss-config --libs`
+    NSS_CFLAGS=`$PKG/usr/bin/nss-config --cflags`
+    sed $SRC/nss.pc.in \
+        -e "s,%libdir%,/usr/lib," \
+        -e "s,%prefix%,/usr," \
+        -e "s,%exec_prefix%,/usr/bin," \
+        -e "s,%includedir%,/usr/include/nss," \
+        -e "s,%NSS_VERSION%,$version," \
+        -e "s,%FULL_NSS_LIBS%,$NSS_LIBS," \
+        -e "s,%FULL_NSS_CFLAGS%,$NSS_CFLAGS," > \
+            $PKG/usr/lib/pkgconfig/nss.pc
+
+}
diff --git a/nss/nss-config.in b/nss/nss-config.in
new file mode 100644 (file)
index 0000000..1a5aec4
--- /dev/null
@@ -0,0 +1,142 @@
+#!/bin/sh
+
+prefix=/usr
+version=@VERSION@
+
+usage()
+{
+       cat <<EOF
+Usage: nss-config [OPTIONS] [LIBRARIES]
+Options:
+       [--prefix[=DIR]]
+       [--exec-prefix[=DIR]]
+       [--includedir[=DIR]]
+       [--libdir[=DIR]]
+       [--version]
+       [--libs]
+       [--cflags]
+Dynamic Libraries:
+       nss
+       nssutil
+       ssl
+       smime
+EOF
+       exit $1
+}
+
+if test $# -eq 0; then
+       usage 1 1>&2
+fi
+
+lib_ssl=yes
+lib_smime=yes
+lib_nss=yes
+lib_nssutil=yes
+
+while test $# -gt 0; do
+  case "$1" in
+  -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
+  *) optarg= ;;
+  esac
+
+  case $1 in
+    --prefix=*)
+      prefix=$optarg
+      ;;
+    --prefix)
+      echo_prefix=yes
+      ;;
+    --exec-prefix=*)
+      exec_prefix=$optarg
+      ;;
+    --exec-prefix)
+      echo_exec_prefix=yes
+      ;;
+    --includedir=*)
+      includedir=$optarg
+      ;;
+    --includedir)
+      echo_includedir=yes
+      ;;
+    --libdir=*)
+      libdir=$optarg
+      ;;
+    --libdir)
+      echo_libdir=yes
+      ;;
+    --version)
+      echo $version
+      ;;
+    --cflags)
+      echo_cflags=yes
+      ;;
+    --libs)
+      echo_libs=yes
+      ;;
+    ssl)
+      lib_ssl=yes
+      ;;
+    smime)
+      lib_smime=yes
+      ;;
+    nss)
+      lib_nss=yes
+      ;;
+    nssutil)
+      lib_nssutil=yes
+      ;;
+    *)
+      usage 1 1>&2
+      ;;
+  esac
+  shift
+done
+
+# Set variables that may be dependent upon other variables
+if test -z "$exec_prefix"; then
+    exec_prefix=${prefix}
+fi
+if test -z "$includedir"; then
+    includedir=${prefix}/include/nss
+fi
+if test -z "$libdir"; then
+    libdir=${exec_prefix}/lib
+fi
+
+if test "$echo_prefix" = "yes"; then
+    echo $prefix
+fi
+
+if test "$echo_exec_prefix" = "yes"; then
+    echo $exec_prefix
+fi
+
+if test "$echo_includedir" = "yes"; then
+    echo $includedir
+fi
+
+if test "$echo_libdir" = "yes"; then
+    echo $libdir
+fi
+
+if test "$echo_cflags" = "yes"; then
+    echo -I$includedir
+fi
+
+if test "$echo_libs" = "yes"; then
+      libdirs="-L$libdir"
+      if test -n "$lib_ssl"; then
+       libdirs="$libdirs -lssl3"
+      fi
+      if test -n "$lib_smime"; then
+       libdirs="$libdirs -lsmime3"
+      fi
+      if test -n "$lib_nss"; then
+       libdirs="$libdirs -lnss3"
+      fi
+      if test -n "$lib_nssutil"; then
+       libdirs="$libdirs -lnssutil3"
+      fi
+      echo $libdirs
+fi
+
diff --git a/nss/nss.pc.in b/nss/nss.pc.in
new file mode 100644 (file)
index 0000000..ba2f43f
--- /dev/null
@@ -0,0 +1,10 @@
+prefix=%prefix%
+exec_prefix=%exec_prefix%
+libdir=%libdir%
+includedir=%includedir%
+
+Name: NSS
+Description: Network Security Services
+Version: %NSS_VERSION%
+Libs: %FULL_NSS_LIBS%
+Cflags: %FULL_NSS_CFLAGS%