talimat 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # Tanım: Güvenlik özellikli istemci ve sunucu uygulamalarının çapraz platform geliştirmesi desteği
  2. # URL: http://www.mozilla.org
  3. # Paketçi: milisarge
  4. # Gerekler: nspr sqlite
  5. # Grup: geliştirme
  6. isim=nss
  7. surum=3.31
  8. devir=1
  9. kaynak=(http://ftp.mozilla.org/pub/security/nss/releases/NSS_${version//./_}_RTM/src/$isim-$surum.tar.gz \
  10. nss-config.in nss.pc.in nss-util.pc.in nss-softokn.pc.in)
  11. derle() {
  12. cd $isim-$surum/
  13. sed -i nss/coreconf/Linux.mk \
  14. -e 's|^CC.*=.*gcc$|#&|' \
  15. -e 's|^CCC.*=.*g++$|#&|'
  16. export NSPR_INCLUDE_DIR=/usr/include/nspr
  17. export NSPR_LIB_DIR=/usr/lib
  18. export NSS_USE_SYSTEM_SQLITE=1
  19. export NSS_ENABLE_ECC=1
  20. export NSS_ENABLE_TLS_1_3=1
  21. export BUILD_OPT=1
  22. export XCFLAGS="-Wno-error ${CFLAGS}"
  23. export NSS_DISABLE_GTESTS=1
  24. export USE_64=1
  25. make -j1 -C nss
  26. install -d $PKG/usr/{bin,lib/pkgconfig,include/nss/private}
  27. cd dist/*.OBJ/bin
  28. install -t "$PKG/usr/bin" *util shlibsign signtool signver ssltap
  29. cd ../lib
  30. install -t "$PKG/usr/lib" *.so
  31. install -t "$PKG/usr/lib" -m644 libcrmf.a libfreebl.a *.chk
  32. cd ../../public/nss
  33. install -t "$PKG/usr/include/nss" -m644 *.h
  34. cd ../../private/nss
  35. install -t "$PKG/usr/include/nss/private" -m644 blapi.h alghmac.h
  36. install -m 0755 $SRC/nss-config.in $PKG/usr/bin/nss-config
  37. _surum=$(printf "%i.%i.%i" ${version//./ })
  38. sed -i "s/@VERSION@/$_version/" $PKG/usr/bin/nss-config
  39. NSS_LIBS=`$PKG/usr/bin/nss-config --libs`
  40. NSS_CFLAGS=`$PKG/usr/bin/nss-config --cflags`
  41. NSPR_VERSION=`pkg-config --modversion nspr`
  42. for module in nss nss-util nss-softokn; do
  43. sed $SRC/$module.pc.in \
  44. -e "s,%libdir%,/usr/lib," \
  45. -e "s,%prefix%,/usr," \
  46. -e "s,%exec_prefix%,/usr/bin," \
  47. -e "s,%includedir%,/usr/include/nss," \
  48. -e "s,%NSS_VERSION%,$surum," \
  49. -e "s,%NSPR_VERSION%,$NSPR_VERSION," \
  50. -e "s,%FULL_NSS_LIBS%,$NSS_LIBS," \
  51. -e "s,%FULL_NSS_CFLAGS%,$NSS_CFLAGS," > \
  52. $PKG/usr/lib/pkgconfig/$module.pc
  53. done
  54. }