aboutsummaryrefslogtreecommitdiffstats
path: root/security/nss
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2009-09-09 05:33:43 +0800
committermarcus <marcus@FreeBSD.org>2009-09-09 05:33:43 +0800
commitb9df3e5b490bdae8bcff912f69b067d234bc6491 (patch)
tree3b257ef22013e1b8efd50a4ea851eaae100b0417 /security/nss
parent7d388cb761cc7cb699aff6d5309729458d8372bc (diff)
downloadfreebsd-ports-gnome-b9df3e5b490bdae8bcff912f69b067d234bc6491.tar.gz
freebsd-ports-gnome-b9df3e5b490bdae8bcff912f69b067d234bc6491.tar.zst
freebsd-ports-gnome-b9df3e5b490bdae8bcff912f69b067d234bc6491.zip
Update to 3.12.4.
PR: 138419 Submitted by: Aragon Gouveia <aragon@phat.za.net>
Diffstat (limited to 'security/nss')
-rw-r--r--security/nss/Makefile23
-rw-r--r--security/nss/distinfo6
-rw-r--r--security/nss/files/nss-config.in8
-rw-r--r--security/nss/files/nss.pc.in2
-rw-r--r--security/nss/files/patch-..::coreconf::FreeBSD.mk17
-rw-r--r--security/nss/files/patch-cmd::platlibs.mk14
-rw-r--r--security/nss/files/patch-sysdb211
-rw-r--r--security/nss/files/sqlite3-builtin.patch63
-rw-r--r--security/nss/files/sqlite3-system.patch13
-rw-r--r--security/nss/pkg-plist9
10 files changed, 213 insertions, 153 deletions
diff --git a/security/nss/Makefile b/security/nss/Makefile
index ad17d5d4dcf8..81c93e63dead 100644
--- a/security/nss/Makefile
+++ b/security/nss/Makefile
@@ -7,7 +7,6 @@
PORTNAME= nss
PORTVERSION= ${_MAJOR}.${_MINOR}.${_PATCH}
-PORTREVISION= 3
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_MOZILLA}
MASTER_SITE_SUBDIR= security/nss/releases/NSS_${PORTVERSION:S/./_/g}_RTM/src
@@ -19,8 +18,10 @@ BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip
LIB_DEPENDS= nspr4.1:${PORTSDIR}/devel/nspr
_MAJOR= 3
-_MINOR= 11
-_PATCH= 9
+_MINOR= 12
+_PATCH= 4
+
+OPTIONS= SYSSQLITE3 "Use system SQLite3 (slower)" Off
WRKSRC= ${WRKDIR}/${DISTNAME}/mozilla/security/nss
@@ -37,6 +38,16 @@ DIST= ${WRKSRC:H:H}/dist
.include <bsd.port.pre.mk>
+.if defined(WITH_SYSSQLITE3)
+LIB_DEPENDS+= sqlite3:${PORTSDIR}/databases/sqlite3
+EXTRA_PATCHES+= ${FILESDIR}/sqlite3-system.patch
+MAKE_ENV+= NSS_USE_SYSTEM_SQLITE=1
+PLIST_SUB+= SYSSQLITE3="@comment "
+.else
+EXTRA_PATCHES+= ${FILESDIR}/sqlite3-builtin.patch
+PLIST_SUB+= SYSSQLITE3=""
+.endif
+
EXTERNALS= CVS dbm security/nss/cmd/zlib nsprpub security/dbm
EXTRACT_AFTER_ARGS=| ${TAR} -xf - \
${EXTERNALS:C,^,--exclude ${DISTNAME}/mozilla/,}
@@ -74,6 +85,12 @@ post-patch:
.for i in MAJOR MINOR PATCH
@${SED} -i.${i} -e 's|@${i}@|${_${i}}|' ${WRKDIR}/nss-config
.endfor
+ @cd ${WRKSRC} && \
+ ${FIND} . -name "*.c" -o -name "*.h" | \
+ ${XARGS} ${REINPLACE_CMD} -e 's|"nspr.h"|<nspr.h>|'
+.if !defined(WITH_SYSSQLITE3)
+ @${MV} ${WRKSRC}/lib/sqlite/sqlite.def ${WRKSRC}/lib/sqlite/nsssqlite.def
+.endif
do-install:
${MKDIR} ${PREFIX}/include/nss ${PREFIX}/lib/nss
diff --git a/security/nss/distinfo b/security/nss/distinfo
index 274df27a30ff..bd220903864c 100644
--- a/security/nss/distinfo
+++ b/security/nss/distinfo
@@ -1,3 +1,3 @@
-MD5 (nss-3.11.9.tar.gz) = 5df54e8522bebf0f8c8c22e8f0df18fa
-SHA256 (nss-3.11.9.tar.gz) = fa55182f675d5c180eb928a17a9eec94cd317172ba4b070b628c52230b9a5028
-SIZE (nss-3.11.9.tar.gz) = 3760535
+MD5 (nss-3.12.4.tar.gz) = 1ee3ed9c1900079319bd1de51388d856
+SHA256 (nss-3.12.4.tar.gz) = 8202546524c69ce03e1c3ef5e2956b71b8fa0a5bffdf06568597e7c0d1f83bf0
+SIZE (nss-3.12.4.tar.gz) = 5412877
diff --git a/security/nss/files/nss-config.in b/security/nss/files/nss-config.in
index d2605fec9d02..18f27d26d02f 100644
--- a/security/nss/files/nss-config.in
+++ b/security/nss/files/nss-config.in
@@ -20,6 +20,7 @@ Options:
[--cflags]
Dynamic Libraries:
nss
+ nssutil
ssl
smime
EOF
@@ -33,6 +34,7 @@ fi
lib_ssl=yes
lib_smime=yes
lib_nss=yes
+lib_nssutil=yes
while test $# -gt 0; do
case "$1" in
@@ -83,6 +85,9 @@ while test $# -gt 0; do
nss)
lib_nss=yes
;;
+ nssutil)
+ lib_nssutil=yes
+ ;;
*)
usage 1 1>&2
;;
@@ -132,6 +137,9 @@ if test "$echo_libs" = "yes"; then
if test -n "$lib_nss"; then
libdirs="$libdirs -lnss${major_version}"
fi
+ if test -n "$lib_nssutil"; then
+ libdirs="$libdirs -lnssutil${major_version}"
+ fi
echo $libdirs
fi
diff --git a/security/nss/files/nss.pc.in b/security/nss/files/nss.pc.in
index 7b17143747d4..3aca32ee3208 100644
--- a/security/nss/files/nss.pc.in
+++ b/security/nss/files/nss.pc.in
@@ -7,5 +7,5 @@ Name: NSS
Description: Mozilla Network Security Services
Version: @PORTVERSION@
Requires: nspr
-Libs: -L${libdir} -lnss3 -lsmime3 -lssl3
+Libs: -L${libdir} -lnss3 -lsmime3 -lssl3 -lnssutil3
Cflags: -I${includedir}/nss -I${includedir}/nss/nss
diff --git a/security/nss/files/patch-..::coreconf::FreeBSD.mk b/security/nss/files/patch-..::coreconf::FreeBSD.mk
index 9e195ff6eb97..f559bad3d143 100644
--- a/security/nss/files/patch-..::coreconf::FreeBSD.mk
+++ b/security/nss/files/patch-..::coreconf::FreeBSD.mk
@@ -1,6 +1,6 @@
---- ../coreconf/FreeBSD.mk.orig 2006-01-21 02:36:11.000000000 +0000
-+++ ../coreconf/FreeBSD.mk 2009-08-17 17:17:41.235006000 +0000
-@@ -37,16 +37,20 @@
+--- ../coreconf/FreeBSD.mk.orig 2008-07-12 16:28:59.000000000 +0200
++++ ../coreconf/FreeBSD.mk 2009-08-31 10:20:16.000000000 +0200
+@@ -37,16 +37,23 @@
include $(CORE_DEPTH)/coreconf/UNIX.mk
@@ -18,13 +18,16 @@
+ifeq ($(OS_TEST),powerpc)
+CPU_ARCH = powerpc
+else
++ifeq ($(OS_TEST),amd64)
++USE_64 = 1
++endif
CPU_ARCH = x86
endif
+endif
- OS_CFLAGS = $(DSO_CFLAGS) -ansi -Wall -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
+ OS_CFLAGS = $(DSO_CFLAGS) -ansi -Wall -Wno-switch -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
-@@ -60,20 +64,18 @@ ifndef CLASSIC_NSPR
+@@ -60,20 +67,18 @@
USE_PTHREADS = 1
DEFINES += -D_THREAD_SAFE -D_REENTRANT
OS_LIBS += -pthread
@@ -34,7 +37,7 @@
ARCH = freebsd
--MOZ_OBJFORMAT := $(shell test -x /usr/bin/objformat && /usr/bin/objformat || echo aout)
+-MOZ_OBJFORMAT := $(shell test -x /usr/bin/objformat && /usr/bin/objformat || echo elf)
+DLL_SUFFIX = so.1
-ifeq ($(MOZ_OBJFORMAT),elf)
@@ -50,7 +53,7 @@
ifdef MAPFILE
MKSHLIB += -Wl,--version-script,$(MAPFILE)
endif
-@@ -82,4 +84,5 @@ PROCESS_MAP_FILE = grep -v ';-' $< | \
+@@ -82,4 +87,5 @@
G++INCLUDES = -I/usr/include/g++
diff --git a/security/nss/files/patch-cmd::platlibs.mk b/security/nss/files/patch-cmd::platlibs.mk
deleted file mode 100644
index 4ac01e3e47e0..000000000000
--- a/security/nss/files/patch-cmd::platlibs.mk
+++ /dev/null
@@ -1,14 +0,0 @@
---- cmd/platlibs.mk Wed Apr 6 17:35:41 2005
-+++ cmd/platlibs.mk Wed Jul 27 22:22:59 2005
-@@ -72,5 +72,4 @@
- $(DIST)/lib/$(LIB_PREFIX)nssdev.$(LIB_SUFFIX) \
- $(DIST)/lib/$(LIB_PREFIX)nssb.$(LIB_SUFFIX) \
-- $(DIST)/lib/$(LIB_PREFIX)dbm.$(LIB_SUFFIX) \
- $(DIST)/lib/$(NSPR31_LIB_PREFIX)plc4.$(LIB_SUFFIX) \
- $(DIST)/lib/$(NSPR31_LIB_PREFIX)plds4.$(LIB_SUFFIX) \
-@@ -120,5 +118,4 @@
- $(CRYPTOLIB) \
- $(DIST)/lib/$(LIB_PREFIX)secutil.$(LIB_SUFFIX) \
-- $(DIST)/lib/$(LIB_PREFIX)dbm.$(LIB_SUFFIX) \
- $(NULL)
-
diff --git a/security/nss/files/patch-sysdb b/security/nss/files/patch-sysdb
index 7cb3cbf1ffa9..cfd68e7d52f5 100644
--- a/security/nss/files/patch-sysdb
+++ b/security/nss/files/patch-sysdb
@@ -1,36 +1,53 @@
---- lib/softoken/cdbhdl.h Sun Apr 25 11:03:16 2004
-+++ lib/softoken/cdbhdl.h Fri Jul 22 00:25:16 2005
-@@ -43,6 +43,6 @@
+--- lib/softoken/legacydb/cdbhdl.h.orig 2009-08-31 12:33:12.000000000 +0200
++++ lib/softoken/legacydb/cdbhdl.h 2009-08-31 12:33:36.000000000 +0200
+@@ -43,7 +43,8 @@
#define _CDBHDL_H_
--#include "nspr.h"
+ #include "nspr.h"
-#include "mcom_db.h"
-+#include <nspr.h>
+#include <db.h>
++#include <fcntl.h>
#include "pcertt.h"
- --- lib/softoken/dbmshim.c Tue Mar 29 13:21:18 2005
-+++ lib/softoken/dbmshim.c Fri Jul 22 00:35:33 2005
-@@ -40,5 +40,6 @@
- * $Id: dbmshim.c,v 1.11 2005/03/29 18:21:18 nelsonb%netscape.com Exp $
+ #include "prtypes.h"
+
+
+--- lib/softoken/legacydb/dbmshim.c.orig 2009-08-31 10:40:23.000000000 +0200
++++ lib/softoken/legacydb/dbmshim.c 2009-08-31 10:40:35.000000000 +0200
+@@ -39,7 +39,8 @@
+ *
+ * $Id: dbmshim.c,v 1.2 2007/06/13 00:24:57 rrelyea%redhat.com Exp $
*/
-#include "mcom_db.h"
+#include <db.h>
+#include <fcntl.h>
#include "secitem.h"
- #include "secder.h"
---- lib/softoken/keydb.c Fri Jun 4 20:50:32 2004
-+++ lib/softoken/keydb.c Fri Jul 22 00:37:01 2005
-@@ -46,5 +46,6 @@
+ #include "nssb64.h"
+ #include "blapi.h"
+--- lib/softoken/legacydb/keydb.c.orig 2009-08-31 10:40:04.000000000 +0200
++++ lib/softoken/legacydb/keydb.c 2009-08-31 10:40:08.000000000 +0200
+@@ -43,7 +43,6 @@
+ #include "blapi.h"
#include "secitem.h"
#include "pcert.h"
-#include "mcom_db.h"
-+#include <db.h>
-+#include <fcntl.h>
- #include "lowpbe.h"
#include "secerr.h"
---- lib/softoken/pcertdb.c Tue Mar 29 13:21:18 2005
-+++ lib/softoken/pcertdb.c Fri Jul 22 00:40:00 2005
-@@ -44,5 +44,6 @@
+
+ #include "keydbi.h"
+--- lib/softoken/legacydb/keydbi.h.orig 2009-08-31 12:33:17.000000000 +0200
++++ lib/softoken/legacydb/keydbi.h 2009-08-31 12:34:13.000000000 +0200
+@@ -43,5 +43,5 @@
+
+ #include "nspr.h"
+ #include "seccomon.h"
+-#include "mcom_db.h"
++#include <db.h>
+
+ /*
+ * Handle structure for open key databases
+--- lib/softoken/legacydb/pcertdb.c.orig 2009-08-31 10:40:52.000000000 +0200
++++ lib/softoken/legacydb/pcertdb.c 2009-08-31 10:41:26.000000000 +0200
+@@ -41,7 +41,8 @@
+ */
#include "lowkeyti.h"
#include "pcert.h"
-#include "mcom_db.h"
@@ -38,138 +55,84 @@
+#include <fcntl.h>
#include "pcert.h"
#include "secitem.h"
---- lib/softoken/pk11db.c Fri Apr 1 19:46:13 2005
-+++ lib/softoken/pk11db.c Fri Jul 22 00:42:01 2005
-@@ -42,5 +42,6 @@
+ #include "secder.h"
+--- lib/softoken/legacydb/pk11db.c.orig 2009-08-31 10:40:57.000000000 +0200
++++ lib/softoken/legacydb/pk11db.c 2009-08-31 10:41:55.000000000 +0200
+@@ -41,7 +41,8 @@
+
#include "pk11pars.h"
- #include "pkcs11i.h"
+ #include "lgdb.h"
-#include "mcom_db.h"
+#include <db.h>
+#include <fcntl.h>
- #include "cdbhdl.h"
#include "secerr.h"
---- lib/softoken/keydbi.h Tue Apr 27 19:04:38 2004
-+++ lib/softoken/keydbi.h Fri Jul 22 00:43:24 2005
-@@ -42,7 +42,7 @@
- #define _KEYDBI_H_
--#include "nspr.h"
-+#include <nspr.h>
- #include "seccomon.h"
+ #define FREE_CLEAR(p) if (p) { PORT_Free(p); p = NULL; }
+--- lib/ckfw/dbm/ckdbm.h.orig 2009-08-31 10:46:00.000000000 +0200
++++ lib/ckfw/dbm/ckdbm.h 2009-08-31 10:46:22.000000000 +0200
+@@ -59,7 +59,7 @@
+ #include "ckt.h"
+ #endif /* CKT_H */
+
-#include "mcom_db.h"
+#include <db.h>
- /*
---- lib/softoken/config.mk Mon May 24 20:13:11 2004
-+++ lib/softoken/config.mk Fri Jul 22 00:55:20 2005
-@@ -47,5 +47,4 @@
- $(CRYPTOLIB) \
- $(DIST)/lib/$(LIB_PREFIX)secutil.$(LIB_SUFFIX) \
-- $(DIST)/lib/$(LIB_PREFIX)dbm.$(LIB_SUFFIX) \
- $(NULL)
-
---- lib/certdb/certdb.c Sat Mar 5 03:03:03 2005
-+++ lib/certdb/certdb.c Fri Jul 22 01:02:11 2005
-@@ -53,5 +53,4 @@
- #include "keyhi.h"
- #include "secitem.h"
--#include "mcom_db.h"
- #include "certdb.h"
- #include "prprf.h"
---- lib/certdb/genname.c Sun Apr 25 11:03:03 2004
-+++ lib/certdb/genname.c Fri Jul 22 01:02:59 2005
-@@ -39,5 +39,4 @@
- #include "secitem.h"
- #include "secoidt.h"
--#include "mcom_db.h"
- #include "secasn1.h"
- #include "secder.h"
---- lib/certdb/stanpcertdb.c Thu Dec 2 16:34:15 2004
-+++ lib/certdb/stanpcertdb.c Fri Jul 22 01:03:19 2005
-@@ -38,5 +38,4 @@
+ NSS_EXTERN_DATA NSSCKMDInstance nss_dbm_mdInstance;
- #include "cert.h"
--#include "mcom_db.h"
- #include "certdb.h"
- #include "secitem.h"
---- lib/certdb/xauthkid.c Sun Apr 25 11:03:03 2004
-+++ lib/certdb/xauthkid.c Fri Jul 22 01:03:54 2005
-@@ -40,6 +40,5 @@
+--- lib/softoken/legacydb/config.mk.orig 2009-08-31 12:39:49.000000000 +0200
++++ lib/softoken/legacydb/config.mk 2009-08-31 12:40:03.000000000 +0200
+@@ -40,10 +40,6 @@
+
+ EXTRA_LIBS += $(CRYPTOLIB)
+
+-ifndef NSS_DISABLE_DBM
+-EXTRA_LIBS += $(DIST)/lib/$(LIB_PREFIX)dbm.$(LIB_SUFFIX)
+-endif
+-
+ # can't do this in manifest.mn because OS_TARGET isn't defined there.
+ ifeq (,$(filter-out WIN%,$(OS_TARGET)))
+
+--- lib/certdb/xauthkid.c.orig 2009-08-31 12:43:13.000000000 +0200
++++ lib/certdb/xauthkid.c 2009-08-31 12:44:21.000000000 +0200
+@@ -39,7 +39,7 @@
+ *
*/
-#include "prtypes.h"
--#include "mcom_db.h"
+#include <prtypes.h>
#include "seccomon.h"
#include "secdert.h"
---- lib/certdb/xbsconst.c Sun Apr 25 11:03:03 2004
-+++ lib/certdb/xbsconst.c Fri Jul 22 01:05:41 2005
-@@ -39,6 +39,6 @@
+ #include "secoidt.h"
+--- lib/certdb/xbsconst.c.orig 2009-08-31 12:43:22.000000000 +0200
++++ lib/certdb/xbsconst.c 2009-08-31 12:44:41.000000000 +0200
+@@ -38,7 +38,7 @@
+ * X.509 v3 Basic Constraints Extension
*/
-#include "prtypes.h"
--#include "mcom_db.h"
-+#include <limits.h> /* LONG_MAX */
+#include <prtypes.h>
+ #include <limits.h> /* for LONG_MAX */
#include "seccomon.h"
#include "secdert.h"
-@@ -48,5 +48,5 @@
- #include "certt.h"
- #include "secder.h"
--#include "prprf.h"
-+#include <prprf.h>
- #include "secerr.h"
-
---- lib/certdb/xconst.c Tue Nov 9 01:13:32 2004
-+++ lib/certdb/xconst.c Fri Jul 22 01:06:20 2005
-@@ -39,6 +39,5 @@
+--- lib/certdb/xconst.c.orig 2009-08-31 12:43:46.000000000 +0200
++++ lib/certdb/xconst.c 2009-08-31 12:44:50.000000000 +0200
+@@ -38,7 +38,7 @@
+ * X.509 Extension Encoding
*/
-#include "prtypes.h"
--#include "mcom_db.h"
+#include <prtypes.h>
#include "seccomon.h"
#include "secdert.h"
-@@ -48,5 +47,5 @@
- #include "cert.h"
- #include "secder.h"
--#include "prprf.h"
-+#include <prprf.h>
- #include "xconst.h"
- #include "genname.h"
---- lib/ckfw/dbm/ckdbm.h Wed Jan 19 21:25:47 2005
-+++ lib/ckfw/dbm/ckdbm.h Fri Jul 22 01:06:58 2005
-@@ -57,5 +57,5 @@
- #endif /* CKT_H */
-
--#include "mcom_db.h"
-+#include <db.h>
-
- NSS_EXTERN_DATA NSSCKMDInstance nss_dbm_mdInstance;
---- lib/freebl/mac_rand.c Sun Apr 25 11:03:08 2004
-+++ lib/freebl/mac_rand.c Fri Jul 22 01:08:19 2005
-@@ -40,5 +40,4 @@
- #endif
- #include "secrng.h"
--#include "mcom_db.h"
- #ifdef XP_MAC
- #include <Events.h>
---- lib/pk11wrap/secmodi.h Mon Mar 28 15:45:37 2005
-+++ lib/pk11wrap/secmodi.h Fri Jul 22 01:08:47 2005
-@@ -42,5 +42,5 @@
- #include "pkcs11.h"
- #include "nssilock.h"
--#include "mcom_db.h"
-+#include <db.h>
#include "secoidt.h"
- #include "secdert.h"
---- lib/softoken/dbinit.c.orig 2008-03-12 08:43:36.000000000 -0400
-+++ lib/softoken/dbinit.c 2008-03-12 08:44:10.000000000 -0400
-@@ -39,6 +39,7 @@
- /* $Id: dbinit.c,v 1.28.2.1 2006/09/22 00:21:03 julien.pierre.bugs%sun.com Exp $ */
+--- cmd/platlibs.mk.orig 2009-08-31 12:57:13.000000000 +0200
++++ cmd/platlibs.mk 2009-08-31 12:57:29.000000000 +0200
+@@ -85,7 +85,7 @@
+ ifdef NSS_DISABLE_DBM
+ DBMLIB = $(NULL)
+ else
+-DBMLIB = $(DIST)/lib/$(LIB_PREFIX)dbm.$(LIB_SUFFIX)
++DBMLIB = $(NULL)
+ endif
- #include <ctype.h>
-+#include <fcntl.h>
- #include "seccomon.h"
- #include "prinit.h"
- #include "prprf.h"
+ ifdef USE_STATIC_LIBS
diff --git a/security/nss/files/sqlite3-builtin.patch b/security/nss/files/sqlite3-builtin.patch
new file mode 100644
index 000000000000..29bd152dfa6e
--- /dev/null
+++ b/security/nss/files/sqlite3-builtin.patch
@@ -0,0 +1,63 @@
+--- cmd/platlibs.mk.orig 2009-08-31 17:56:52.000000000 +0200
++++ cmd/platlibs.mk 2009-08-31 17:53:35.000000000 +0200
+@@ -80,7 +80,7 @@
+ endif
+ endif
+
+-SQLITE=-lsqlite3
++SQLITE=-lnsssqlite3
+
+ ifdef NSS_DISABLE_DBM
+ DBMLIB = $(NULL)
+@@ -129,7 +129,7 @@
+ $(DIST)/lib/$(LIB_PREFIX)nssb.$(LIB_SUFFIX) \
+ $(PKIXLIB) \
+ $(DBMLIB) \
+- $(DIST)/lib/$(LIB_PREFIX)sqlite3.$(LIB_SUFFIX) \
++ $(DIST)/lib/$(LIB_PREFIX)nsssqlite3.$(LIB_SUFFIX) \
+ $(DIST)/lib/$(LIB_PREFIX)nssutil3.$(LIB_SUFFIX) \
+ $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plc4.$(LIB_SUFFIX) \
+ $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plds4.$(LIB_SUFFIX) \
+--- lib/sqlite/manifest.mn.orig 2009-08-31 17:54:32.000000000 +0200
++++ lib/sqlite/manifest.mn 2009-08-31 17:54:44.000000000 +0200
+@@ -38,9 +38,9 @@
+
+ MODULE = nss
+
+-LIBRARY_NAME = sqlite
++LIBRARY_NAME = nsssqlite
+ LIBRARY_VERSION = 3
+-MAPFILE = $(OBJDIR)/sqlite.def
++MAPFILE = $(OBJDIR)/nsssqlite.def
+ DEFINES += -DTHREADSAFE=1
+
+ EXPORTS = \
+--- lib/softoken/config.mk.orig 2009-08-31 17:55:03.000000000 +0200
++++ lib/softoken/config.mk 2009-08-31 17:55:15.000000000 +0200
+@@ -57,7 +57,7 @@
+ -L$(DIST)/lib \
+ -L$(NSSUTIL_LIB_DIR) \
+ -lnssutil3 \
+- -lsqlite3 \
++ -lnsssqlite3 \
+ -L$(NSPR_LIB_DIR) \
+ -lplc4 \
+ -lplds4 \
+@@ -66,7 +66,7 @@
+ else # ! NS_USE_GCC
+
+ EXTRA_SHARED_LIBS += \
+- $(DIST)/lib/sqlite3.lib \
++ $(DIST)/lib/nsssqlite3.lib \
+ $(DIST)/lib/nssutil3.lib \
+ $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plc4.lib \
+ $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plds4.lib \
+@@ -83,7 +83,7 @@
+ -L$(DIST)/lib \
+ -L$(NSSUTIL_LIB_DIR) \
+ -lnssutil3 \
+- -lsqlite3 \
++ -lnsssqlite3 \
+ -L$(NSPR_LIB_DIR) \
+ -lplc4 \
+ -lplds4 \
diff --git a/security/nss/files/sqlite3-system.patch b/security/nss/files/sqlite3-system.patch
new file mode 100644
index 000000000000..b1e95c2ab887
--- /dev/null
+++ b/security/nss/files/sqlite3-system.patch
@@ -0,0 +1,13 @@
+--- lib/softoken/manifest.mn.orig 2009-08-31 18:15:14.000000000 +0200
++++ lib/softoken/manifest.mn 2009-08-31 18:15:30.000000000 +0200
+@@ -47,9 +47,7 @@
+
+ DEFINES += -DSHLIB_SUFFIX=\"$(DLL_SUFFIX)\" -DSHLIB_PREFIX=\"$(DLL_PREFIX)\" -DSOFTOKEN_LIB_NAME=\"$(notdir $(SHARED_LIBRARY))\" -DSHLIB_VERSION=\"$(LIBRARY_VERSION)\"
+
+-ifdef MOZILLA_CLIENT
+-INCLUDES += -I$(DIST)/include/sqlite3
+-endif
++INCLUDES += -I/usr/local/include
+
+ EXPORTS = \
+ secmodt.h \
diff --git a/security/nss/pkg-plist b/security/nss/pkg-plist
index cc12145c7be2..421bb8b45ac8 100644
--- a/security/nss/pkg-plist
+++ b/security/nss/pkg-plist
@@ -68,6 +68,7 @@ include/nss/nss/nssilock.h
include/nss/nss/nsslocks.h
include/nss/nss/nssrwlk.h
include/nss/nss/nssrwlkt.h
+include/nss/nss/nssutil.h
include/nss/nss/ocsp.h
include/nss/nss/ocspt.h
include/nss/nss/p12.h
@@ -113,7 +114,7 @@ include/nss/nss/ssl.h
include/nss/nss/sslerr.h
include/nss/nss/sslproto.h
include/nss/nss/sslt.h
-include/nss/nss/watcomfx.h
+include/nss/nss/utilrename.h
lib/nss/libcrmf.a
lib/nss/libfreebl3.so
lib/nss/libfreebl3.so.1
@@ -121,10 +122,16 @@ lib/nss/libnss3.so
lib/nss/libnss3.so.1
lib/nss/libnssckbi.so
lib/nss/libnssckbi.so.1
+lib/nss/libnssdbm3.so
+lib/nss/libnssdbm3.so.1
+lib/nss/libnssutil3.so
+lib/nss/libnssutil3.so.1
lib/nss/libsmime3.so
lib/nss/libsmime3.so.1
lib/nss/libsoftokn3.so
lib/nss/libsoftokn3.so.1
+%%SYSSQLITE3%%lib/nss/libnsssqlite3.so
+%%SYSSQLITE3%%lib/nss/libnsssqlite3.so.1
lib/nss/libssl3.so
lib/nss/libssl3.so.1
libdata/pkgconfig/nss.pc