wok-current diff nss/receipt @ rev 14189

conky: up 1.9.0
author Samuel Trassare <samuel_trassare@yahoo.com>
date Tue Mar 12 14:21:32 2013 -0700 (2013-03-12)
parents da2a09ed23b3
children 6d11967fcb51
line diff
     1.1 --- a/nss/receipt	Mon Feb 27 08:34:30 2012 -0800
     1.2 +++ b/nss/receipt	Tue Mar 12 14:21:32 2013 -0700
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="nss"
     1.7 -VERSION="3.13.3"
     1.8 +VERSION="3.14.1"
     1.9  CATEGORY="utilities"
    1.10  SHORT_DESC="Mozilla Network Security Services (NSS)."
    1.11  MAINTAINER="rocky@slitaz.org"
    1.12 @@ -15,79 +15,36 @@
    1.13  compile_rules()
    1.14  {
    1.15      cd $src
    1.16 -    # Adds the SPI Inc. and CAcert.org CA certificates - patch from Debian
    1.17 -    patch -Np1 -i $stuff/add_spi+cacert_ca_certs.patch
    1.18 -    # Adds transitional SSL renegotiate support - patch from Debian
    1.19 -    patch -Np1 -i  $stuff/ssl-renegotiate-transitional.patch
    1.20 -    # Builds against system sqlite - patch from Fedora
    1.21 -    patch -Np0 -i $stuff/nss-nolocalsql.patch
    1.22 -    # Removes rpath
    1.23 -    patch -Np0 -i $stuff/nss-no-rpath.patch
    1.24 +	patch -Np1 -i $stuff/nss-3.14.1-standalone-1.patch &&
    1.25 +	cd mozilla/security/nss &&
    1.26 +	make -j1 nss_build_all BUILD_OPT=1 \
    1.27 +		NSPR_INCLUDE_DIR=/usr/include/nspr \
    1.28 +		USE_SYSTEM_ZLIB=1 \
    1.29 +		ZLIB_LIBS=-lz \
    1.30 +		$([ $(uname -m) = x86_64 ] && echo USE_64=1) \
    1.31 +		$([ -f /usr/include/sqlite3.h ] && echo NSS_USE_SYSTEM_SQLITE=1) &&
    1.32  
    1.33 -    cd $src/mozilla/security/nss/lib/ckfw/builtins
    1.34 -    make generate
    1.35 -
    1.36 -    cd $src
    1.37 -    unset CFLAGS
    1.38 -    unset CXXFLAGS
    1.39 -    export NSS_USE_SYSTEM_SQLITE=1
    1.40 -    export BUILD_OPT=1
    1.41 -    export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
    1.42 -    export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
    1.43 -    export NSPR_INCLUDE_DIR=`pkg-config --cflags-only-I nspr | sed 's/-I//'`
    1.44 -    export NSPR_LIB_DIR=`pkg-config --libs-only-L nspr | sed 's/-L.//'`
    1.45 -
    1.46 -    make -j 1 -C mozilla/security/coreconf
    1.47 -    make -j 1 -C mozilla/security/dbm
    1.48 -    make -j 1 -C mozilla/security/nss
    1.49 -
    1.50 -    mkdir -p $PWD/_pkg/usr/bin
    1.51 -    mkdir -p $PWD/_pkg/usr/lib/pkgconfig
    1.52 -    mkdir -p $PWD/_pkg/usr/include/nss
    1.53 -
    1.54 -    NSS_VMAJOR=`grep "#define.*NSS_VMAJOR" mozilla/security/nss/lib/nss/nss.h | awk '{print $3}'`
    1.55 -    NSS_VMINOR=`grep "#define.*NSS_VMINOR" mozilla/security/nss/lib/nss/nss.h | awk '{print $3}'`
    1.56 -    NSS_VPATCH=`grep "#define.*NSS_VPATCH" mozilla/security/nss/lib/nss/nss.h | awk '{print $3}'`
    1.57 -
    1.58 -    sed $stuff/nss.pc.in -e "s,%libdir%,/usr/lib,g" \
    1.59 -                             -e "s,%prefix%,/usr,g" \
    1.60 -                             -e "s,%exec_prefix%,/usr/bin,g" \
    1.61 -                             -e "s,%includedir%,/usr/include/nss,g" \
    1.62 -                             -e "s,%NSPR_VERSION%,${VERSION},g" \
    1.63 -                             -e "s,%NSS_VERSION%,${VERSION},g" \
    1.64 -                    > $PWD/_pkg/usr/lib/pkgconfig/nss.pc || return 1
    1.65 -
    1.66 -    sed $stuff/nss-config.in -e "s,@libdir@,/usr/lib,g" \
    1.67 -                                 -e "s,@prefix@,/usr/bin,g" \
    1.68 -                                 -e "s,@exec_prefix@,/usr/bin,g" \
    1.69 -                                 -e "s,@includedir@,/usr/include/nss,g" \
    1.70 -                                 -e "s,@MOD_MAJOR_VERSION@,${NSS_VMAJOR},g" \
    1.71 -                                 -e "s,@MOD_MINOR_VERSION@,${NSS_VMINOR},g" \
    1.72 -                                 -e "s,@MOD_PATCH_VERSION@,${NSS_VPATCH},g" \
    1.73 -                            > $PWD/_pkg/usr/bin/nss-config || return 1
    1.74 -    chmod 755 $PWD/_pkg/usr/bin/nss-config || return 1
    1.75 -
    1.76 -    for file in libsoftokn3.so libfreebl3.so libnss3.so libnssutil3.so \
    1.77 -              libssl3.so libsmime3.so libnssckbi.so libnssdbm3.so
    1.78 -    do
    1.79 -      cp mozilla/dist/*.OBJ/lib/${file} $PWD/_pkg/usr/lib/ || return 1
    1.80 -    done
    1.81 -    for file in libcrmf.a libnssb.a libnssckfw.a; do
    1.82 -      cp mozilla/dist/*.OBJ/lib/${file} $PWD/_pkg/usr/lib/ || return 1
    1.83 -    done
    1.84 -
    1.85 -    for file in certutil cmsutil crlutil modutil pk12util signtool signver ssltap; do
    1.86 -      cp mozilla/dist/*.OBJ/bin/${file} $PWD/_pkg/usr/bin/ || return 1
    1.87 -    done
    1.88 -
    1.89 -    cp mozilla/dist/public/nss/*.h $PWD/_pkg/usr/include/nss || return 1
    1.90 +	mkdir -p $install/usr/lib $install/usr/include/nss
    1.91 +	mkdir -p $install/usr/bin $install/usr/lib/pkgconfig &&
    1.92 +	cd ../../dist &&
    1.93 +	install -v -m755 Linux*/lib/*.so $install/usr/lib			&&
    1.94 +	install -v -m644 Linux*/lib/*.chk $install/usr/lib			&&
    1.95 +	install -v -m644 Linux*/lib/libcrmf.a $install/usr/lib		&&
    1.96 +	install -v -m755 -d $install/usr/include/nss				&&
    1.97 +	cp -v -RL public/nss/* $install/usr/include/nss				&&
    1.98 +	cp -v -RL private/nss/* $install/usr/include/nss			&&
    1.99 +	chmod 644 $install/usr/include/nss/*						&&
   1.100 +	install -v -m755 Linux*/bin/certutil $install/usr/bin		&&
   1.101 +	install -v -m755 Linux*/bin/nss-config $install/usr/bin		&&
   1.102 +	install -v -m755 Linux*/bin/pk12util $install/usr/bin		&&
   1.103 +	install -v -m644 Linux*/lib/pkgconfig/nss.pc $install/usr/lib/pkgconfig
   1.104  }
   1.105  
   1.106  # Rules to gen a SliTaz package suitable for Tazpkg.
   1.107  genpkg_rules()
   1.108  {
   1.109      mkdir -p $fs/usr/lib
   1.110 -    cp -a $_pkg/usr/bin $fs/usr
   1.111 -    cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
   1.112 +    cp -a $install/usr/bin $fs/usr
   1.113 +    cp -a $install/usr/lib/*.so* $fs/usr/lib
   1.114      rm $fs/usr/bin/nss-config
   1.115  }