wok-6.x diff nss/stuff/nss-3.17.4-standalone-1.patch @ rev 19721

Up vice (3.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 16 12:40:44 2017 +0100 (2017-02-16)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/nss/stuff/nss-3.17.4-standalone-1.patch	Thu Feb 16 12:40:44 2017 +0100
     1.3 @@ -0,0 +1,245 @@
     1.4 +Submitted By:            Armin K. <krejzi at email dot com>
     1.5 +Date:                    2014-09-26
     1.6 +Initial Package Version: 3.15
     1.7 +Comment:                 Modified manifest.mn diff (Fernando)
     1.8 +Upstream Status:         Not applicable
     1.9 +Origin:                  Based on dj's original patch, rediffed and modified for 3.15
    1.10 +Description:             Adds auto-generated nss.pc and nss-config script, and allows
    1.11 +                         building without nspr in the source tree.
    1.12 +
    1.13 +--- a/nss/config/Makefile	1970-01-01 01:00:00.000000000 +0100
    1.14 ++++ b/nss/config/Makefile	2013-07-02 14:53:56.684750636 +0200
    1.15 +@@ -0,0 +1,40 @@
    1.16 ++CORE_DEPTH = ..
    1.17 ++DEPTH      = ..
    1.18 ++
    1.19 ++include $(CORE_DEPTH)/coreconf/config.mk
    1.20 ++
    1.21 ++NSS_MAJOR_VERSION = `grep "NSS_VMAJOR" ../lib/nss/nss.h | awk '{print $$3}'`
    1.22 ++NSS_MINOR_VERSION = `grep "NSS_VMINOR" ../lib/nss/nss.h | awk '{print $$3}'`
    1.23 ++NSS_PATCH_VERSION = `grep "NSS_VPATCH" ../lib/nss/nss.h | awk '{print $$3}'`
    1.24 ++PREFIX = /usr
    1.25 ++
    1.26 ++all: export libs
    1.27 ++
    1.28 ++export:
    1.29 ++	# Create the nss.pc file
    1.30 ++	mkdir -p $(DIST)/lib/pkgconfig
    1.31 ++	sed -e "s,@prefix@,$(PREFIX)," \
    1.32 ++	    -e "s,@exec_prefix@,\$${prefix}," \
    1.33 ++	    -e "s,@libdir@,\$${prefix}/lib," \
    1.34 ++	    -e "s,@includedir@,\$${prefix}/include/nss," \
    1.35 ++	    -e "s,@NSS_MAJOR_VERSION@,$(NSS_MAJOR_VERSION),g" \
    1.36 ++	    -e "s,@NSS_MINOR_VERSION@,$(NSS_MINOR_VERSION)," \
    1.37 ++	    -e "s,@NSS_PATCH_VERSION@,$(NSS_PATCH_VERSION)," \
    1.38 ++	    nss.pc.in > nss.pc
    1.39 ++	chmod 0644 nss.pc
    1.40 ++	ln -sf ../../../../nss/config/nss.pc $(DIST)/lib/pkgconfig
    1.41 ++
    1.42 ++	# Create the nss-config script
    1.43 ++	mkdir -p $(DIST)/bin
    1.44 ++	sed -e "s,@prefix@,$(PREFIX)," \
    1.45 ++	    -e "s,@NSS_MAJOR_VERSION@,$(NSS_MAJOR_VERSION)," \
    1.46 ++	    -e "s,@NSS_MINOR_VERSION@,$(NSS_MINOR_VERSION)," \
    1.47 ++	    -e "s,@NSS_PATCH_VERSION@,$(NSS_PATCH_VERSION)," \
    1.48 ++	    nss-config.in > nss-config
    1.49 ++	chmod 0755 nss-config
    1.50 ++	ln -sf ../../../nss/config/nss-config $(DIST)/bin
    1.51 ++
    1.52 ++libs:
    1.53 ++
    1.54 ++dummy: all export libs
    1.55 ++
    1.56 +--- a/nss/config/nss-config.in	1970-01-01 01:00:00.000000000 +0100
    1.57 ++++ b/nss/config/nss-config.in	2013-07-02 14:52:58.328084334 +0200
    1.58 +@@ -0,0 +1,153 @@
    1.59 ++#!/bin/sh
    1.60 ++
    1.61 ++prefix=@prefix@
    1.62 ++
    1.63 ++major_version=@NSS_MAJOR_VERSION@
    1.64 ++minor_version=@NSS_MINOR_VERSION@
    1.65 ++patch_version=@NSS_PATCH_VERSION@
    1.66 ++
    1.67 ++usage()
    1.68 ++{
    1.69 ++	cat <<EOF
    1.70 ++Usage: nss-config [OPTIONS] [LIBRARIES]
    1.71 ++Options:
    1.72 ++	[--prefix[=DIR]]
    1.73 ++	[--exec-prefix[=DIR]]
    1.74 ++	[--includedir[=DIR]]
    1.75 ++	[--libdir[=DIR]]
    1.76 ++	[--version]
    1.77 ++	[--libs]
    1.78 ++	[--cflags]
    1.79 ++Dynamic Libraries:
    1.80 ++	nss
    1.81 ++	nssutil
    1.82 ++	smime
    1.83 ++	ssl
    1.84 ++	softokn
    1.85 ++EOF
    1.86 ++	exit $1
    1.87 ++}
    1.88 ++
    1.89 ++if test $# -eq 0; then
    1.90 ++	usage 1 1>&2
    1.91 ++fi
    1.92 ++
    1.93 ++lib_nss=yes
    1.94 ++lib_nssutil=yes
    1.95 ++lib_smime=yes
    1.96 ++lib_ssl=yes
    1.97 ++lib_softokn=yes
    1.98 ++
    1.99 ++while test $# -gt 0; do
   1.100 ++  case "$1" in
   1.101 ++  -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
   1.102 ++  *) optarg= ;;
   1.103 ++  esac
   1.104 ++
   1.105 ++  case $1 in
   1.106 ++    --prefix=*)
   1.107 ++      prefix=$optarg
   1.108 ++      ;;
   1.109 ++    --prefix)
   1.110 ++      echo_prefix=yes
   1.111 ++      ;;
   1.112 ++    --exec-prefix=*)
   1.113 ++      exec_prefix=$optarg
   1.114 ++      ;;
   1.115 ++    --exec-prefix)
   1.116 ++      echo_exec_prefix=yes
   1.117 ++      ;;
   1.118 ++    --includedir=*)
   1.119 ++      includedir=$optarg
   1.120 ++      ;;
   1.121 ++    --includedir)
   1.122 ++      echo_includedir=yes
   1.123 ++      ;;
   1.124 ++    --libdir=*)
   1.125 ++      libdir=$optarg
   1.126 ++      ;;
   1.127 ++    --libdir)
   1.128 ++      echo_libdir=yes
   1.129 ++      ;;
   1.130 ++    --version)
   1.131 ++      echo ${major_version}.${minor_version}.${patch_version}
   1.132 ++      ;;
   1.133 ++    --cflags)
   1.134 ++      echo_cflags=yes
   1.135 ++      ;;
   1.136 ++    --libs)
   1.137 ++      echo_libs=yes
   1.138 ++      ;;
   1.139 ++    nss)
   1.140 ++      lib_nss=yes
   1.141 ++      ;;
   1.142 ++    nssutil)
   1.143 ++      lib_nssutil=yes
   1.144 ++      ;;
   1.145 ++    smime)
   1.146 ++      lib_smime=yes
   1.147 ++      ;;
   1.148 ++    ssl)
   1.149 ++      lib_ssl=yes
   1.150 ++      ;;
   1.151 ++    softokn)
   1.152 ++      lib_softokn=yes
   1.153 ++      ;;
   1.154 ++    *)
   1.155 ++      usage 1 1>&2
   1.156 ++      ;;
   1.157 ++  esac
   1.158 ++  shift
   1.159 ++done
   1.160 ++
   1.161 ++# Set variables that may be dependent upon other variables
   1.162 ++if test -z "$exec_prefix"; then
   1.163 ++    exec_prefix=`pkg-config --variable=exec_prefix nss`
   1.164 ++fi
   1.165 ++if test -z "$includedir"; then
   1.166 ++    includedir=`pkg-config --variable=includedir nss`
   1.167 ++fi
   1.168 ++if test -z "$libdir"; then
   1.169 ++    libdir=`pkg-config --variable=libdir nss`
   1.170 ++fi
   1.171 ++
   1.172 ++if test "$echo_prefix" = "yes"; then
   1.173 ++    echo $prefix
   1.174 ++fi
   1.175 ++
   1.176 ++if test "$echo_exec_prefix" = "yes"; then
   1.177 ++    echo $exec_prefix
   1.178 ++fi
   1.179 ++
   1.180 ++if test "$echo_includedir" = "yes"; then
   1.181 ++    echo $includedir
   1.182 ++fi
   1.183 ++
   1.184 ++if test "$echo_libdir" = "yes"; then
   1.185 ++    echo $libdir
   1.186 ++fi
   1.187 ++
   1.188 ++if test "$echo_cflags" = "yes"; then
   1.189 ++    echo -I$includedir
   1.190 ++fi
   1.191 ++
   1.192 ++if test "$echo_libs" = "yes"; then
   1.193 ++      libdirs="-L$libdir"
   1.194 ++      if test -n "$lib_nss"; then
   1.195 ++	libdirs="$libdirs -lnss${major_version}"
   1.196 ++      fi
   1.197 ++      if test -n "$lib_nssutil"; then
   1.198 ++        libdirs="$libdirs -lnssutil${major_version}"
   1.199 ++      fi
   1.200 ++      if test -n "$lib_smime"; then
   1.201 ++	libdirs="$libdirs -lsmime${major_version}"
   1.202 ++      fi
   1.203 ++      if test -n "$lib_ssl"; then
   1.204 ++	libdirs="$libdirs -lssl${major_version}"
   1.205 ++      fi
   1.206 ++      if test -n "$lib_softokn"; then
   1.207 ++        libdirs="$libdirs -lsoftokn${major_version}"
   1.208 ++      fi
   1.209 ++      echo $libdirs
   1.210 ++fi      
   1.211 ++
   1.212 +--- a/nss/config/nss.pc.in	1970-01-01 01:00:00.000000000 +0100
   1.213 ++++ b/nss/config/nss.pc.in	2013-07-02 14:52:58.328084334 +0200
   1.214 +@@ -0,0 +1,12 @@
   1.215 ++prefix=@prefix@
   1.216 ++exec_prefix=@exec_prefix@
   1.217 ++libdir=@libdir@
   1.218 ++includedir=@includedir@
   1.219 ++
   1.220 ++Name: NSS
   1.221 ++Description: Network Security Services
   1.222 ++Version: @NSS_MAJOR_VERSION@.@NSS_MINOR_VERSION@.@NSS_PATCH_VERSION@
   1.223 ++Requires: nspr >= 4.8
   1.224 ++Libs: -L@libdir@ -lnss@NSS_MAJOR_VERSION@ -lnssutil@NSS_MAJOR_VERSION@ -lsmime@NSS_MAJOR_VERSION@ -lssl@NSS_MAJOR_VERSION@ -lsoftokn@NSS_MAJOR_VERSION@
   1.225 ++Cflags: -I${includedir}
   1.226 ++
   1.227 +--- a/nss/Makefile	2013-05-28 23:43:24.000000000 +0200
   1.228 ++++ b/nss/Makefile	2013-07-02 14:52:58.328084334 +0200
   1.229 +@@ -44,7 +44,7 @@
   1.230 + # (7) Execute "local" rules. (OPTIONAL).                              #
   1.231 + #######################################################################
   1.232 + 
   1.233 +-nss_build_all: build_nspr all
   1.234 ++nss_build_all: all
   1.235 + 
   1.236 + nss_clean_all: clobber_nspr clobber
   1.237 + 
   1.238 +--- a/nss/manifest.mn.orig	2014-09-26 16:46:44.201965538 -0300
   1.239 ++++ b/nss/manifest.mn	2014-09-26 16:51:11.386336520 -0300
   1.240 +@@ -10,7 +10,7 @@
   1.241 + 
   1.242 + RELEASE = nss
   1.243 + 
   1.244 +-DIRS = coreconf lib cmd
   1.245 ++DIRS = coreconf lib cmd config
   1.246 + 
   1.247 + ifdef NSS_BUILD_GTESTS
   1.248 + DIRS += external_tests