wok-6.x view nss/receipt @ rev 11060

pcmciautils: Fixed WGET_URL.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Oct 17 00:27:48 2011 +0000 (2011-10-17)
parents e7e61bddeb21
children da2a09ed23b3
line source
1 # SliTaz package receipt.
3 PACKAGE="nss"
4 VERSION="3.12.9"
5 CATEGORY="utilities"
6 SHORT_DESC="Mozilla Network Security Services (NSS)."
7 MAINTAINER="rocky@slitaz.org"
8 DEPENDS="nspr sqlite zlib"
9 BUILD_DEPENDS="nspr-dev sqlite-dev zlib-dev perl pkg-config"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.mozilla.org/projects/security/pki/nss/"
12 WGET_URL="ftp://ftp.mozilla.org/pub/security/nss/releases/NSS_${VERSION//./_}_RTM/src/${TARBALL}"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 # Adds the SPI Inc. and CAcert.org CA certificates - patch from Debian
19 patch -Np1 -i $stuff/add_spi+cacert_ca_certs.patch
20 # Adds transitional SSL renegotiate support - patch from Debian
21 patch -Np1 -i $stuff/ssl-renegotiate-transitional.patch
22 # Builds against system sqlite - patch from Fedora
23 patch -Np0 -i $stuff/nss-nolocalsql.patch
24 # Removes rpath
25 patch -Np0 -i $stuff/nss-no-rpath.patch
27 cd $src/mozilla/security/nss/lib/ckfw/builtins
28 make generate
30 cd $src
31 unset CFLAGS
32 unset CXXFLAGS
33 export NSS_USE_SYSTEM_SQLITE=1
34 export BUILD_OPT=1
35 export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
36 export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
37 export NSPR_INCLUDE_DIR=`pkg-config --cflags-only-I nspr | sed 's/-I//'`
38 export NSPR_LIB_DIR=`pkg-config --libs-only-L nspr | sed 's/-L.//'`
40 make -j 1 -C mozilla/security/coreconf
41 make -j 1 -C mozilla/security/dbm
42 make -j 1 -C mozilla/security/nss
44 mkdir -p $PWD/_pkg/usr/bin
45 mkdir -p $PWD/_pkg/usr/lib/pkgconfig
46 mkdir -p $PWD/_pkg/usr/include/nss
48 NSS_VMAJOR=`grep "#define.*NSS_VMAJOR" mozilla/security/nss/lib/nss/nss.h | awk '{print $3}'`
49 NSS_VMINOR=`grep "#define.*NSS_VMINOR" mozilla/security/nss/lib/nss/nss.h | awk '{print $3}'`
50 NSS_VPATCH=`grep "#define.*NSS_VPATCH" mozilla/security/nss/lib/nss/nss.h | awk '{print $3}'`
52 sed $stuff/nss.pc.in -e "s,%libdir%,/usr/lib,g" \
53 -e "s,%prefix%,/usr,g" \
54 -e "s,%exec_prefix%,/usr/bin,g" \
55 -e "s,%includedir%,/usr/include/nss,g" \
56 -e "s,%NSPR_VERSION%,${VERSION},g" \
57 -e "s,%NSS_VERSION%,${VERSION},g" \
58 > $PWD/_pkg/usr/lib/pkgconfig/nss.pc || return 1
60 sed $stuff/nss-config.in -e "s,@libdir@,/usr/lib,g" \
61 -e "s,@prefix@,/usr/bin,g" \
62 -e "s,@exec_prefix@,/usr/bin,g" \
63 -e "s,@includedir@,/usr/include/nss,g" \
64 -e "s,@MOD_MAJOR_VERSION@,${NSS_VMAJOR},g" \
65 -e "s,@MOD_MINOR_VERSION@,${NSS_VMINOR},g" \
66 -e "s,@MOD_PATCH_VERSION@,${NSS_VPATCH},g" \
67 > $PWD/_pkg/usr/bin/nss-config || return 1
68 chmod 755 $PWD/_pkg/usr/bin/nss-config || return 1
70 for file in libsoftokn3.so libfreebl3.so libnss3.so libnssutil3.so \
71 libssl3.so libsmime3.so libnssckbi.so libnssdbm3.so
72 do
73 cp mozilla/dist/*.OBJ/lib/${file} $PWD/_pkg/usr/lib/ || return 1
74 done
75 for file in libcrmf.a libnssb.a libnssckfw.a; do
76 cp mozilla/dist/*.OBJ/lib/${file} $PWD/_pkg/usr/lib/ || return 1
77 done
79 for file in certutil cmsutil crlutil modutil pk12util signtool signver ssltap; do
80 cp mozilla/dist/*.OBJ/bin/${file} $PWD/_pkg/usr/bin/ || return 1
81 done
83 cp mozilla/dist/public/nss/*.h $PWD/_pkg/usr/include/nss || return 1
84 }
86 # Rules to gen a SliTaz package suitable for Tazpkg.
87 genpkg_rules()
88 {
89 mkdir -p $fs/usr/lib
90 cp -a $_pkg/usr/bin $fs/usr
91 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
92 rm $fs/usr/bin/nss-config
93 }