mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

174 lines
3.8 KiB

  1. Copied from fedora with changes.
  2. Submitted By: Randy McMurchy <randy_at_linuxfromscratch_dot_org>
  3. Date: 2006-01-19
  4. Initial Package Version: 3.11
  5. Upstream Status: Unknown
  6. Origin: Fedora CVS (nspr-config changes by Randy McMurchy)
  7. Description: Adds pkgconfig files for NSS and NSPR, adds a
  8. nss-config program, and corrects the nspr-config
  9. program
  10. diff -Naur nss-3.11-orig/mozilla/security/nss/cmd/config/nss-config nss-3.11/mozilla/security/nss/cmd/config/nss-config
  11. --- nss-3.11-orig/mozilla/security/nss/cmd/config/nss-config 1970-01-01 00:00:00.000000000 \
  12. +0000
  13. +++ nss-3.11/mozilla/security/nss/cmd/config/nss-config 2006-01-20 03:27:43.000000000 \
  14. +0000
  15. @@ -0,0 +1,137 @@
  16. +#!/bin/sh
  17. +
  18. +prefix=/usr
  19. +
  20. +major_version=3
  21. +minor_version=11
  22. +patch_version=7
  23. +
  24. +usage()
  25. +{
  26. + cat <<EOF
  27. +Usage: nss-config [OPTIONS] [LIBRARIES]
  28. +Options:
  29. + [--prefix[=DIR]]
  30. + [--exec-prefix[=DIR]]
  31. + [--includedir[=DIR]]
  32. + [--libdir[=DIR]]
  33. + [--version]
  34. + [--libs]
  35. + [--cflags]
  36. +Dynamic Libraries:
  37. + nss
  38. + ssl
  39. + smime
  40. +EOF
  41. + exit $1
  42. +}
  43. +
  44. +if test $# -eq 0; then
  45. + usage 1 1>&2
  46. +fi
  47. +
  48. +lib_ssl=yes
  49. +lib_smime=yes
  50. +lib_nss=yes
  51. +
  52. +while test $# -gt 0; do
  53. + case "$1" in
  54. + -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  55. + *) optarg= ;;
  56. + esac
  57. +
  58. + case $1 in
  59. + --prefix=*)
  60. + prefix=$optarg
  61. + ;;
  62. + --prefix)
  63. + echo_prefix=yes
  64. + ;;
  65. + --exec-prefix=*)
  66. + exec_prefix=$optarg
  67. + ;;
  68. + --exec-prefix)
  69. + echo_exec_prefix=yes
  70. + ;;
  71. + --includedir=*)
  72. + includedir=$optarg
  73. + ;;
  74. + --includedir)
  75. + echo_includedir=yes
  76. + ;;
  77. + --libdir=*)
  78. + libdir=$optarg
  79. + ;;
  80. + --libdir)
  81. + echo_libdir=yes
  82. + ;;
  83. + --version)
  84. + echo ${major_version}.${minor_version}.${patch_version}
  85. + ;;
  86. + --cflags)
  87. + echo_cflags=yes
  88. + ;;
  89. + --libs)
  90. + echo_libs=yes
  91. + ;;
  92. + ssl)
  93. + lib_ssl=yes
  94. + ;;
  95. + smime)
  96. + lib_smime=yes
  97. + ;;
  98. + nss)
  99. + lib_nss=yes
  100. + ;;
  101. + *)
  102. + usage 1 1>&2
  103. + ;;
  104. + esac
  105. + shift
  106. +done
  107. +
  108. +# Set variables that may be dependent upon other variables
  109. +if test -z "$exec_prefix"; then
  110. + exec_prefix=${prefix}
  111. +fi
  112. +if test -z "$includedir"; then
  113. + includedir=${prefix}/include/nss
  114. +fi
  115. +if test -z "$libdir"; then
  116. + libdir=${prefix}/lib
  117. +fi
  118. +
  119. +if test "$echo_prefix" = "yes"; then
  120. + echo $prefix
  121. +fi
  122. +
  123. +if test "$echo_exec_prefix" = "yes"; then
  124. + echo $exec_prefix
  125. +fi
  126. +
  127. +if test "$echo_includedir" = "yes"; then
  128. + echo $includedir
  129. +fi
  130. +
  131. +if test "$echo_libdir" = "yes"; then
  132. + echo $libdir
  133. +fi
  134. +
  135. +if test "$echo_cflags" = "yes"; then
  136. + echo -I$includedir
  137. +fi
  138. +
  139. +if test "$echo_libs" = "yes"; then
  140. + libdirs="-Wl,-rpath-link,$libdir -L$libdir"
  141. + if test -n "$lib_ssl"; then
  142. + libdirs="$libdirs -lssl${major_version}"
  143. + fi
  144. + if test -n "$lib_smime"; then
  145. + libdirs="$libdirs -lsmime${major_version}"
  146. + fi
  147. + if test -n "$lib_nss"; then
  148. + libdirs="$libdirs -lnss${major_version}"
  149. + fi
  150. + echo $libdirs
  151. +fi
  152. +
  153. diff -Naur nss-3.11-orig/mozilla/security/nss/lib/pkgconfig/nss.pc nss-3.11/mozilla/security/nss/lib/pkgconfig/nss.pc
  154. --- nss-3.11-orig/mozilla/security/nss/lib/pkgconfig/nss.pc 1970-01-01 00:00:00.000000000 \
  155. +0000
  156. +++ nss-3.11/mozilla/security/nss/lib/pkgconfig/nss.pc 2006-01-20 03:27:43.000000000 \
  157. +0000
  158. @@ -0,0 +1,12 @@
  159. +prefix=/usr
  160. +exec_prefix=$(prefix)
  161. +libdir=$(prefix)/lib
  162. +includedir=$(prefix)/include
  163. +
  164. +Name: NSS
  165. +Description: Mozilla Network Security Services
  166. +Version: 3.11.7
  167. +Requires: nspr >= 4.6.1
  168. +Libs: -L${libdir} -lnss3 -lsmime3 -lssl3 -lsoftokn3
  169. +Cflags: -I${includedir}/nss
  170. +