summaryrefslogtreecommitdiffstats
path: root/internal_comp_deps.mk
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2005-03-25 19:05:37 +0000
committerRich Megginson <rmeggins@redhat.com>2005-03-25 19:05:37 +0000
commit103a9559a8eb01a9240490fdabd53002e0367eec (patch)
tree19613a16bd6c1fd37278b592c13f6d53ed066ae2 /internal_comp_deps.mk
parent362bedccdc6e27683e033798d8b0bbbba88d3228 (diff)
downloadds-103a9559a8eb01a9240490fdabd53002e0367eec.tar.gz
ds-103a9559a8eb01a9240490fdabd53002e0367eec.tar.xz
ds-103a9559a8eb01a9240490fdabd53002e0367eec.zip
1) remove fortezza stuff
2) make sure the .chk files are there 3) fix secmod.db on 64 bit platforms to have the 32 bit nssckbi in there
Diffstat (limited to 'internal_comp_deps.mk')
-rw-r--r--internal_comp_deps.mk51
1 files changed, 50 insertions, 1 deletions
diff --git a/internal_comp_deps.mk b/internal_comp_deps.mk
index f78d8db1..96c1655a 100644
--- a/internal_comp_deps.mk
+++ b/internal_comp_deps.mk
@@ -65,6 +65,41 @@ ifeq ($(ARCH), WINNT)
else
SECURITY_DEP = $(SECURITY_LIBPATH)/libssl3.$(DLL_SUFFIX)
endif
+# if building 64 bit version, also need the 32 bit version of nssckbi.so
+# rename it as nssckbi32.so
+ifeq ($(USE_64), 1)
+# assumes there is a 32 bit version
+ SHARED32_BUILD_DIR = $(NSCP_DISTDIR_FULL_RTL)/shared32
+ NSS32_IMPORT = $(subst $(NS64TAG),,$(SECURITY_IMPORT))
+ NSS32_BINNAMES = modutil
+ NSS32_LIBNAMES = $(SECURITY_LIBNAMES.pkg)
+ NSS32_NEED_CHK = $(SECURITY_NEED_CHK)
+ ifeq ($(ARCH), SOLARIS)
+ NSS32_LIBNAMES += freebl_hybrid_3 freebl_pure32_3
+# these libs have a corresponding .chk file
+ NSS32_NEED_CHK += freebl_hybrid_3 freebl_pure32_3
+ endif
+ ifeq ($(ARCH), HPUX)
+ NSS32_LIBNAMES += freebl_hybrid_3 freebl_pure32_3
+# these libs have a corresponding .chk file
+ NSS32_NEED_CHK += freebl_hybrid_3 freebl_pure32_3
+ endif
+ NSSCKBI_FILE = $(LIB_PREFIX)nssckbi.$(DLL_SUFFIX)
+ NSSCKBI32_FILE = $(LIB_PREFIX)nssckbi32.$(DLL_SUFFIX)
+ NSS32_PULLFILES = bin/modutil lib/$(NSSCKBI_FILE) $(addprefix lib/$(LIB_PREFIX),$(addsuffix .$(DLL_SUFFIX),$(NSS32_LIBNAMES))) $(addprefix lib/$(LIB_PREFIX),$(addsuffix .chk,$(NSS32_NEED_CHK)))
+
+ NSPR32_IMPORT = $(subst $(NS64TAG),,$(NSPR_IMPORT))
+ NSPR32_LIBNAMES = $(NSPR_LIBNAMES)
+ NSPR32_PULLFILES = lib/$(LIB_PREFIX)$(subst $(SPACE),$(COMMA)lib/$(LIB_PREFIX),$(addsuffix .$(DLL_SUFFIX),$(NSPR_LIBNAMES)))
+
+# we need to package the root cert file in the alias directory
+ PACKAGE_SRC_DEST += $(SHARED32_BUILD_DIR)/lib/$(NSSCKBI32_FILE) alias
+# all other files go under shared32/bin or /lib
+ PACKAGE_SRC_DEST += $(SHARED32_BUILD_DIR)/bin/modutil shared32/bin
+
+ NSS32_NSPR32_SRC_LIBS =$(wildcard $(SHARED32_BUILD_DIR)/lib/*)
+ PACKAGE_SRC_DEST += $(addsuffix $(SPACE)shared32/lib,$(NSS32_NSPR32_SRC_LIBS))
+endif # USE_64
ifdef VSFTPD_HACK
SECURITY_FILES=lib,bin/$(subst $(SPACE),$(COMMA)bin/,$(SECURITY_TOOLS))
@@ -88,7 +123,21 @@ ifdef VSFTPD_HACK
-objdir $(SECURITY_BUILD_DIR) -componentdir $(COMPONENTS_DIR)/nss/$(SECURITY_RELDATE) \
-files include
endif
-endif
+# if building 64 bit version, also need the 32 bit version of nssckbi.so
+# rename it as nssckbi32.so
+# also need the 32 bit modutil, other NSS shared libraries and NSPR shared libraries
+ifeq ($(USE_64), 1)
+ mkdir -p $(SHARED32_BUILD_DIR)/bin
+ mkdir -p $(SHARED32_BUILD_DIR)/lib
+ $(FTP_PULL) -method $(SECURITY_PULL_METHOD) \
+ -objdir $(SHARED32_BUILD_DIR) -componentdir $(NSPR32_IMPORT) \
+ -files $(NSPR32_PULLFILES)
+ $(FTP_PULL) -method $(SECURITY_PULL_METHOD) \
+ -objdir $(SHARED32_BUILD_DIR) -componentdir $(NSS32_IMPORT) \
+ -files $(subst $(SPACE),$(COMMA),$(NSS32_PULLFILES))
+ mv $(SHARED32_BUILD_DIR)/lib/$(NSSCKBI_FILE) $(SHARED32_BUILD_DIR)/lib/$(NSSCKBI32_FILE)
+endif # USE_64
+endif # COMPONENT_DEPS
-@if [ ! -f $@ ] ; \
then echo "Error: could not get component NSS file $@" ; \
fi