blob: 2a0c63d746b58d7a8cb3368d01d4cfc77b16d736 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# 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
# Run on: nspr,sqlite3
name=nss
version=3.13.1
release=1
source=(ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_13_1_RTM/src/$name-$version.tar.gz \
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
[ "`uname -m`" == "x86_64" ] && export USE_64=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
mkdir -p $PKG/usr/lib/pkgconfig
cat > $PKG/usr/lib/pkgconfig/nss.pc << "EOF"
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib
includedir=/usr/include/nss
Name: NSS
Description: Mozilla Network Security Services
Version: VERSION
Requires: nspr >= 4.7.4
Libs: -L/usr/lib -lnss3 -lnssutil3 -lsmime3 -lssl3 -lsoftokn3
Cflags: -I/usr/include/nss
EOF
sed -i "s/VERSION/$version/" $PKG/usr/lib/pkgconfig/nss.pc
}
|