wok-4.x diff nss/receipt @ rev 5107
Added nss
author | Liu Peng <rocky@slitaz.org> |
---|---|
date | Thu Mar 18 02:19:04 2010 +0000 (2010-03-18) |
parents | |
children | f581472fff1b |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/nss/receipt Thu Mar 18 02:19:04 2010 +0000 1.3 @@ -0,0 +1,73 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="nss" 1.7 +VERSION="3.12.4" 1.8 +CATEGORY="utilities" 1.9 +SHORT_DESC="Mozilla Network Security Services (NSS)." 1.10 +MAINTAINER="rocky@slitaz.org" 1.11 +DEPENDS="libfirefox" 1.12 +BUILD_DEPENDS="firefox-dev sqlite-dev zlib-dev perl" 1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.14 +WEB_SITE="http://www.mozilla.org/projects/security/pki/nss/" 1.15 +WGET_URL="ftp://ftp.mozilla.org/pub/security/nss/releases/NSS_${VERSION//./_}_RTM/src/${TARBALL}" 1.16 + 1.17 +# Rules to configure and make the package. 1.18 +compile_rules() 1.19 +{ 1.20 + cd $src 1.21 + export NSPR_INCLUDE_DIR=$(ls -d /usr/include/firefox-*/stable) 1.22 + export NSPR_LIB_DIR=$(ls -d /usr/lib/firefox-*/lib) 1.23 + export NSS_USE_SYSTEM_SQLITE=1 1.24 + export BUILD_OPT=1 1.25 + 1.26 + make -j1 -C mozilla/security/nss build_coreconf build_dbm all 1.27 + 1.28 + mkdir -p $PWD/_pkg/usr/bin 1.29 + mkdir -p $PWD/_pkg/usr/lib/pkgconfig 1.30 + mkdir -p $PWD/_pkg/usr/include/nss 1.31 + 1.32 + NSS_VMAJOR=`grep "#define.*NSS_VMAJOR" mozilla/security/nss/lib/nss/nss.h | awk '{print $3}'` 1.33 + NSS_VMINOR=`grep "#define.*NSS_VMINOR" mozilla/security/nss/lib/nss/nss.h | awk '{print $3}'` 1.34 + NSS_VPATCH=`grep "#define.*NSS_VPATCH" mozilla/security/nss/lib/nss/nss.h | awk '{print $3}'` 1.35 + 1.36 + sed ../stuff/nss.pc.in -e "s,%libdir%,/usr/lib,g" \ 1.37 + -e "s,%prefix%,/usr,g" \ 1.38 + -e "s,%exec_prefix%,/usr/bin,g" \ 1.39 + -e "s,%includedir%,/usr/include/nss,g" \ 1.40 + -e "s,%NSPR_VERSION%,${VERSION},g" \ 1.41 + -e "s,%NSS_VERSION%,${VERSION},g" \ 1.42 + > $PWD/_pkg/usr/lib/pkgconfig/nss.pc || return 1 1.43 + 1.44 + sed ../stuff/nss-config.in -e "s,@libdir@,/usr/lib,g" \ 1.45 + -e "s,@prefix@,/usr/bin,g" \ 1.46 + -e "s,@exec_prefix@,/usr/bin,g" \ 1.47 + -e "s,@includedir@,/usr/include/nss,g" \ 1.48 + -e "s,@MOD_MAJOR_VERSION@,${NSS_VMAJOR},g" \ 1.49 + -e "s,@MOD_MINOR_VERSION@,${NSS_VMINOR},g" \ 1.50 + -e "s,@MOD_PATCH_VERSION@,${NSS_VPATCH},g" \ 1.51 + > $PWD/_pkg/usr/bin/nss-config || return 1 1.52 + chmod 755 $PWD/_pkg/usr/bin/nss-config || return 1 1.53 + 1.54 + for file in libsoftokn3.so libfreebl3.so libnss3.so libnssutil3.so \ 1.55 + libssl3.so libsmime3.so libnssckbi.so libnssdbm3.so 1.56 + do 1.57 + cp mozilla/dist/*.OBJ/lib/${file} $PWD/_pkg/usr/lib/ || return 1 1.58 + done 1.59 + for file in libcrmf.a libnssb.a libnssckfw.a; do 1.60 + cp mozilla/dist/*.OBJ/lib/${file} $PWD/_pkg/usr/lib/ || return 1 1.61 + done 1.62 + 1.63 + for file in certutil cmsutil crlutil modutil pk12util signtool signver ssltap; do 1.64 + cp mozilla/dist/*.OBJ/bin/${file} $PWD/_pkg/usr/bin/ || return 1 1.65 + done 1.66 + 1.67 + cp mozilla/dist/public/nss/*.h $PWD/_pkg/usr/include/nss || return 1 1.68 +} 1.69 + 1.70 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.71 +genpkg_rules() 1.72 +{ 1.73 + mkdir -p $fs/usr 1.74 + cp -a $_pkg/usr/bin $fs/usr 1.75 + rm $fs/usr/bin/nss-config 1.76 +}