summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Tse <liquidx@gentoo.org>2003-07-11 12:57:56 +0000
committerAlastair Tse <liquidx@gentoo.org>2003-07-11 12:57:56 +0000
commitcdb157b811ca21ab4b797a5e8ba08ea365b01284 (patch)
treee2d2beb0497222df17829033d64112612cb8528a /dev-libs
parentnew nss library from mozilla (diff)
downloadhistorical-cdb157b811ca21ab4b797a5e8ba08ea365b01284.tar.gz
historical-cdb157b811ca21ab4b797a5e8ba08ea365b01284.tar.bz2
historical-cdb157b811ca21ab4b797a5e8ba08ea365b01284.zip
new nss library from mozilla
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/nss/Manifest3
-rw-r--r--dev-libs/nss/files/digest-nss-3.81
-rw-r--r--dev-libs/nss/nss-3.8.ebuild63
3 files changed, 66 insertions, 1 deletions
diff --git a/dev-libs/nss/Manifest b/dev-libs/nss/Manifest
index 8aead83d1087..299758e8f48d 100644
--- a/dev-libs/nss/Manifest
+++ b/dev-libs/nss/Manifest
@@ -1,2 +1,3 @@
-MD5 019729ee6f6aa0eeaa742542be9d700f nss-3.8.ebuild 967
+MD5 bc28aa8c46ccd8afaf1bf80f1cf51b43 nss-3.8.ebuild 2029
+MD5 9c3522f6ecbd8ffbd52e5a1ee722de6c ChangeLog 387
MD5 80da1f67cfbd587017f411109c5ca57b files/digest-nss-3.8 60
diff --git a/dev-libs/nss/files/digest-nss-3.8 b/dev-libs/nss/files/digest-nss-3.8
new file mode 100644
index 000000000000..e728e0bb89b4
--- /dev/null
+++ b/dev-libs/nss/files/digest-nss-3.8
@@ -0,0 +1 @@
+MD5 6a186160159d51eebe636358f584d6b5 nss-3.8.tar.gz 4860543
diff --git a/dev-libs/nss/nss-3.8.ebuild b/dev-libs/nss/nss-3.8.ebuild
new file mode 100644
index 000000000000..3fad860c8aa8
--- /dev/null
+++ b/dev-libs/nss/nss-3.8.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.8.ebuild,v 1.1 2003/07/11 12:57:48 liquidx Exp $
+
+S=${WORKDIR}/${P}
+
+RTM_NAME="NSS_${PV/./_}_RTM"
+DESCRIPTION="Mozilla's Netscape Security Services Library that implements PKI support"
+SRC_URI="ftp://ftp.mozilla.org/pub/security/nss/releases/${RTM_NAME}/src/${P}.tar.gz"
+HOMEPAGE="http://www.mozilla.org/projects/nss/"
+
+SLOT="0"
+LICENSE="MPL-1.1"
+KEYWORDS="~x86"
+
+DEPEND="virtual/glibc
+ >=dev-libs/nspr-4.3"
+
+src_unpack() {
+ unpack ${A}
+
+ # hack nspr paths
+ echo 'INCLUDES += -I/usr/include/nspr -I$(DIST)/include/dbm' \
+ >> ${S}/mozilla/security/coreconf/headers.mk || die "failed to append include"
+
+ sed -e 's:$(DIST)/lib/$(LIB_PREFIX)plc4:/usr/lib/$(LIB_PREFIX)plc4:' \
+ -e 's:$(DIST)/lib/$(LIB_PREFIX)plds4:/usr/lib/$(LIB_PREFIX)plds4:' \
+ -i ${S}/mozilla/security/nss/lib/ckfw/builtins/Makefile
+ sed -e 's:$(DIST)/lib/$(LIB_PREFIX)plc4:/usr/lib/$(LIB_PREFIX)plc4:' \
+ -e 's:$(DIST)/lib/$(LIB_PREFIX)plds4:/usr/lib/$(LIB_PREFIX)plds4:' \
+ -i ${S}/mozilla/security/nss/lib/fortcrypt/swfort/pkcs11/Makefile
+
+ # modify install path
+ sed -e 's:SOURCE_PREFIX = $(CORE_DEPTH)/\.\./dist:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \
+ -i ${S}/mozilla/security/coreconf/source.mk
+}
+
+src_compile() {
+ cd ${S}/mozilla/security/coreconf
+ emake BUILD_OPT=1 || die "coreconf make failed"
+ cd ${S}/mozilla/security/dbm
+ emake BUILD_OPT=1 || die "dbm make failed"
+ cd ${S}/mozilla/security/nss
+ emake BUILD_OPT=1 || die "nss make failed"
+}
+
+src_install () {
+ cd ${S}/mozilla/security/dist
+
+ # put all *.a files in /usr/lib/nss (because some have conflicting names
+ # with existing libraries)
+ dodir /usr/lib/nss
+ cp -L Linux2.4_${ARCH}_glibc_PTH_DBG.OBJ/lib/*.a ${D}/usr/lib/nss
+ dolib Linux2.4_${ARCH}_glibc_PTH_DBG.OBJ/lib/*.so
+
+ # all the include files
+ insinto /usr/include/nss
+ doins private/nss/*.h
+ doins public/nss/*.h
+
+ # NOTE: we ignore the binary files
+
+}