wok view nss/receipt @ rev 5961

ewl: fix depends
author Antoine Bodin <gokhlayeh@mailoo.org>
date Thu Aug 05 22:58:12 2010 +0200 (2010-08-05)
parents df9c1d7b3f02
children 0ba128f4fff0
line source
1 # SliTaz package receipt.
3 PACKAGE="nss"
4 VERSION="3.12.4"
5 CATEGORY="utilities"
6 SHORT_DESC="Mozilla Network Security Services (NSS)."
7 MAINTAINER="rocky@slitaz.org"
8 DEPENDS="libfirefox"
9 BUILD_DEPENDS="firefox-dev sqlite-dev zlib-dev perl"
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 export NSPR_INCLUDE_DIR=$(ls -d /usr/include/firefox-*)
19 export NSPR_LIB_DIR=$(ls -d /usr/lib/firefox-*/lib)
20 export NSS_USE_SYSTEM_SQLITE=1
21 export BUILD_OPT=1
23 make -j1 -C mozilla/security/nss build_coreconf build_dbm all
25 mkdir -p $PWD/_pkg/usr/bin
26 mkdir -p $PWD/_pkg/usr/lib/pkgconfig
27 mkdir -p $PWD/_pkg/usr/include/nss
29 NSS_VMAJOR=`grep "#define.*NSS_VMAJOR" mozilla/security/nss/lib/nss/nss.h | awk '{print $3}'`
30 NSS_VMINOR=`grep "#define.*NSS_VMINOR" mozilla/security/nss/lib/nss/nss.h | awk '{print $3}'`
31 NSS_VPATCH=`grep "#define.*NSS_VPATCH" mozilla/security/nss/lib/nss/nss.h | awk '{print $3}'`
33 sed ../stuff/nss.pc.in -e "s,%libdir%,/usr/lib,g" \
34 -e "s,%prefix%,/usr,g" \
35 -e "s,%exec_prefix%,/usr/bin,g" \
36 -e "s,%includedir%,/usr/include/nss,g" \
37 -e "s,%NSPR_VERSION%,${VERSION},g" \
38 -e "s,%NSS_VERSION%,${VERSION},g" \
39 > $PWD/_pkg/usr/lib/pkgconfig/nss.pc || return 1
41 sed ../stuff/nss-config.in -e "s,@libdir@,/usr/lib,g" \
42 -e "s,@prefix@,/usr/bin,g" \
43 -e "s,@exec_prefix@,/usr/bin,g" \
44 -e "s,@includedir@,/usr/include/nss,g" \
45 -e "s,@MOD_MAJOR_VERSION@,${NSS_VMAJOR},g" \
46 -e "s,@MOD_MINOR_VERSION@,${NSS_VMINOR},g" \
47 -e "s,@MOD_PATCH_VERSION@,${NSS_VPATCH},g" \
48 > $PWD/_pkg/usr/bin/nss-config || return 1
49 chmod 755 $PWD/_pkg/usr/bin/nss-config || return 1
51 for file in libsoftokn3.so libfreebl3.so libnss3.so libnssutil3.so \
52 libssl3.so libsmime3.so libnssckbi.so libnssdbm3.so
53 do
54 cp mozilla/dist/*.OBJ/lib/${file} $PWD/_pkg/usr/lib/ || return 1
55 done
56 for file in libcrmf.a libnssb.a libnssckfw.a; do
57 cp mozilla/dist/*.OBJ/lib/${file} $PWD/_pkg/usr/lib/ || return 1
58 done
60 for file in certutil cmsutil crlutil modutil pk12util signtool signver ssltap; do
61 cp mozilla/dist/*.OBJ/bin/${file} $PWD/_pkg/usr/bin/ || return 1
62 done
64 cp mozilla/dist/public/nss/*.h $PWD/_pkg/usr/include/nss || return 1
65 }
67 # Rules to gen a SliTaz package suitable for Tazpkg.
68 genpkg_rules()
69 {
70 mkdir -p $fs/usr
71 cp -a $_pkg/usr/bin $fs/usr
72 rm $fs/usr/bin/nss-config
73 }