Subversion Repository

Parent Directory Parent Directory | Revision Log Revision Log


Revision 625 - (show annotations)
Sun Oct 4 15:05:06 2009 UTC (3 years, 8 months ago) by cjg
File size: 1517 byte(s)
nss: fixed for 64bit
1 # Description: Mozilla Network Security Services (NSS)
2 # URL: http://www.mozilla.org/projects/security/pki/nss/
3 # Maintainer: Tilman Sauerbeck, tilman at crux dot nu
4 # Depends on: nspr sqlite3
5 # PPC!=:
6
7 name=nss
8 version=3.12.3
9 release=2
10 source=(ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_12_3_RTM/src/$name-3.12.3.tar.bz2 \
11 nss-config.in)
12
13 build() {
14 cd $name-$version
15
16 local file
17
18 export NSPR_INCLUDE_DIR=/usr/include/nspr
19 export NSPR_LIB_DIR=/usr/lib
20 export NSS_USE_SYSTEM_SQLITE=1
21 export BUILD_OPT=1
22 if [ "$HOSTTYPE" == "powerpc64" ]; then
23 export USE_64=1
24 fi
25 make -j1 -C mozilla/security/nss build_coreconf build_dbm all
26
27 install -d $PKG/usr/{bin,lib,include/nss}
28
29 for file in \
30 libnss3.so libssl3.so libsmime3.so libsoftokn3.so \
31 libsoftokn3.chk libnssckbi.so libfreebl3.so libfreebl3.chk \
32 libcrmf.a libnssb.a libnssckfw.a libnssutil3.so libnssdbm3.so
33 do
34 install -m 0644 mozilla/dist/*.OBJ/lib/$file $PKG/usr/lib
35 done
36
37 chmod +x $PKG/usr/lib/*.so
38
39 for file in \
40 certutil cmsutil crlutil modutil pk12util signtool signver ssltap
41 do
42 install -m 0755 mozilla/dist/*.OBJ/bin/$file $PKG/usr/bin
43 done
44
45 install -m 0644 mozilla/dist/public/nss/*.h $PKG/usr/include/nss
46
47 # we have to provide our own nss-config, because xulrunner needs it
48 install -m 0755 $SRC/nss-config.in $PKG/usr/bin/nss-config
49 sed -i "s/@VERSION@/$version/" $PKG/usr/bin/nss-config
50 }