--- /dev/null
+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
--- /dev/null
+# 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
+
+}