summaryrefslogtreecommitdiff
path: root/nss/Pkgfile
blob: c7febcc1174e7f4b6090845fd07b49d94b2951c6 (plain)
    1 # Description: Mozilla Network Security Services (NSS)
    2 # URL:         http://www.mozilla.org/projects/security/pki/nss/
    3 # Maintainer:  Tilman Sauerbeck, tilman at crux dot nu
    4 # Depends on:  nspr sqlite3
    5 
    6 name=nss
    7 version=3.12.0
    8 release=1
    9 source=(ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_12_RTM/src/$name-3.12.tar.gz \
   10         nss-config.in)
   11 
   12 build() {
   13     cd $name-${version%.*}
   14 
   15     local file
   16 
   17     export NSPR_INCLUDE_DIR=/usr/include/nspr
   18     export NSPR_LIB_DIR=/usr/lib
   19     export NSS_USE_SYSTEM_SQLITE=1
   20     export BUILD_OPT=1
   21 
   22     make -j1 -C mozilla/security/nss build_coreconf build_dbm all
   23 
   24     install -d $PKG/usr/{bin,lib,include/nss}
   25 
   26     for file in \
   27         libnss3.so libssl3.so libsmime3.so libsoftokn3.so \
   28         libsoftokn3.chk libnssckbi.so libfreebl3.so libfreebl3.chk \
   29         libcrmf.a libnssb.a libnssckfw.a libnssutil3.so libnssdbm3.so
   30     do
   31         install -m 0644 mozilla/dist/*.OBJ/lib/$file $PKG/usr/lib
   32     done
   33 
   34     chmod +x $PKG/usr/lib/*.so
   35 
   36     for file in \
   37         certutil cmsutil crlutil modutil pk12util signtool signver ssltap
   38     do
   39         install -m 0755 mozilla/dist/*.OBJ/bin/$file $PKG/usr/bin
   40     done
   41 
   42     install -m 0644 mozilla/dist/public/nss/*.h $PKG/usr/include/nss
   43 
   44     # we have to provide our own nss-config, because xulrunner needs it
   45     install -m 0755 $SRC/nss-config.in $PKG/usr/bin/nss-config
   46     sed -i "s/@VERSION@/$version/" $PKG/usr/bin/nss-config
   47 }

Generated by cgit