1 # Description: Mozilla Network Security Services (NSS)
2 # URL: http://www.mozilla.org/projects/security/pki/nss/
3 # Maintainer: Fredrik Rinnestam, fredrik at rinnestam dot se
4 # Arch Maintainer: CRUX-ARM System Team. devel at crux-arm dot nu
5 # Depends on: nspr sqlite3
10 source=(http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_27_1_RTM/src/$name-$version.tar.gz \
11 nss-config.in nss.pc.in)
18 sed -i nss/coreconf/Linux.mk \
19 -e 's|^CC.*=.*gcc$|#&|' \
20 -e 's|^CCC.*=.*g++$|#&|'
22 export NSPR_INCLUDE_DIR=/usr/include/nspr
23 export NSPR_LIB_DIR=/usr/lib
24 export NSS_USE_SYSTEM_SQLITE=1
25 export NSS_ENABLE_ECC=1
27 export XCFLAGS="-Wno-error ${CFLAGS}"
28 export NSS_DISABLE_GTESTS=1
32 install -d $PKG/usr/{bin,lib/pkgconfig,include/nss}
35 libnss3.so libssl3.so libsmime3.so libsoftokn3.so \
36 libsoftokn3.chk libnssckbi.so libfreebl3.so libfreebl3.chk \
37 libcrmf.a libnssb.a libnssckfw.a libnssutil3.so libnssdbm3.so
39 cp -L dist/*.OBJ/lib/$file $PKG/usr/lib
42 chmod +x $PKG/usr/lib/*.so
45 certutil cmsutil crlutil modutil pk12util signtool signver ssltap
47 cp -L dist/*.OBJ/bin/$file $PKG/usr/bin
50 cp -L dist/public/nss/*.h $PKG/usr/include/nss
52 install -m 0755 $SRC/nss-config.in $PKG/usr/bin/nss-config
54 _version=$(printf "%i.%i.%i" ${version//./ })
55 sed -i "s/@VERSION@/$_version/" $PKG/usr/bin/nss-config
57 NSS_LIBS=`$PKG/usr/bin/nss-config --libs`
58 NSS_CFLAGS=`$PKG/usr/bin/nss-config --cflags`
59 NSPR_VERSION=`pkg-config --modversion nspr`
61 -e "s,%libdir%,/usr/lib," \
62 -e "s,%prefix%,/usr," \
63 -e "s,%exec_prefix%,/usr/bin," \
64 -e "s,%includedir%,/usr/include/nss," \
65 -e "s,%NSS_VERSION%,$version," \
66 -e "s,%NSPR_VERSION%,$NSPR_VERSION," \
67 -e "s,%FULL_NSS_LIBS%,$NSS_LIBS," \
68 -e "s,%FULL_NSS_CFLAGS%,$NSS_CFLAGS," > \
69 $PKG/usr/lib/pkgconfig/nss.pc