summaryrefslogtreecommitdiffstats
path: root/extra/nss
diff options
context:
space:
mode:
Diffstat (limited to 'extra/nss')
-rw-r--r--extra/nss/.footprint117
-rw-r--r--extra/nss/.md5sum2
-rw-r--r--extra/nss/Pkgfile49
-rw-r--r--extra/nss/nss-config.in142
-rw-r--r--extra/nss/nss.pc10
5 files changed, 320 insertions, 0 deletions
diff --git a/extra/nss/.footprint b/extra/nss/.footprint
new file mode 100644
index 000000000..e0819048f
--- /dev/null
+++ b/extra/nss/.footprint
@@ -0,0 +1,117 @@
+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/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/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
diff --git a/extra/nss/.md5sum b/extra/nss/.md5sum
new file mode 100644
index 000000000..7a7b8ebfb
--- /dev/null
+++ b/extra/nss/.md5sum
@@ -0,0 +1,2 @@
+ecb7079ba4ebcf29b7716775384f1f18 nss-3.12.3.tar.bz2
+17226659298a9d9bb3f323186d220f6f nss-config.in
diff --git a/extra/nss/Pkgfile b/extra/nss/Pkgfile
new file mode 100644
index 000000000..7c892bdbd
--- /dev/null
+++ b/extra/nss/Pkgfile
@@ -0,0 +1,49 @@
+# Description: Service de sécurité de réseaux de Mozilla
+# URL: http://www.mozilla.org
+# Maintainer: NuTyX core team
+# Packager: thierryn1 at hispeed dot ch
+# Depends on: nspr, sqlite3
+
+name=nss
+version=3.12.3
+release=1
+source=(ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_12_3_RTM/src/$name-$version.tar.bz2
+\
+ nss-config.in)
+
+build() {
+ cd $name-$version
+
+ local file
+
+ export NSPR_INCLUDE_DIR=/usr/include/nspr
+ export NSPR_LIB_DIR=/usr/lib
+ export NSS_USE_SYSTEM_SQLITE=1
+ export BUILD_OPT=1
+
+ make -j1 -C mozilla/security/nss build_coreconf build_dbm all
+
+ install -d $PKG/usr/{bin,lib,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
+ install -m 0644 mozilla/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
+ install -m 0755 mozilla/dist/*.OBJ/bin/$file $PKG/usr/bin
+ done
+
+ install -m 0644 mozilla/dist/public/nss/*.h $PKG/usr/include/nss
+
+ # we have to provide our own nss-config, because xulrunner needs it
+ install -m 0755 $SRC/nss-config.in $PKG/usr/bin/nss-config
+ sed -i "s/@VERSION@/$version/" $PKG/usr/bin/nss-config
+}
diff --git a/extra/nss/nss-config.in b/extra/nss/nss-config.in
new file mode 100644
index 000000000..1a5aec4cb
--- /dev/null
+++ b/extra/nss/nss-config.in
@@ -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/extra/nss/nss.pc b/extra/nss/nss.pc
new file mode 100644
index 000000000..61fe82aea
--- /dev/null
+++ b/extra/nss/nss.pc
@@ -0,0 +1,10 @@
+prefix=/usr
+exec_prefix=/usr/bin
+libdir=/usr/lib
+includedir=/usr/include/nss
+
+Name: NSS
+Description: The Network Security Service
+Version: 3.12.1.1
+Libs: -lssl3 -lsmime3 -lnss3 -lnssutil3
+Cflags: -I/usr/include/nss