summaryrefslogtreecommitdiffstats
path: root/Makefile.Release
diff options
context:
space:
mode:
authors.kodali <s.kodali>2010-07-01 12:03:18 +0000
committers.kodali <s.kodali>2010-07-01 12:03:18 +0000
commit5042bcd5f9345ab1aae880533f0558bcebab99a6 (patch)
tree3003ccbde7affd8a127f3dc264ad9181fc90b29a /Makefile.Release
parent7e90bda3776d54fcb40ce435ffabcf673d2853d4 (diff)
downloadtog-pegasus-5042bcd5f9345ab1aae880533f0558bcebab99a6.zip
tog-pegasus-5042bcd5f9345ab1aae880533f0558bcebab99a6.tar.gz
tog-pegasus-5042bcd5f9345ab1aae880533f0558bcebab99a6.tar.xz
BUG#: 8787
TITLE: Add External SLP support to release builds
Diffstat (limited to 'Makefile.Release')
-rw-r--r--Makefile.Release50
1 files changed, 50 insertions, 0 deletions
diff --git a/Makefile.Release b/Makefile.Release
index 9e2fea9..763d016 100644
--- a/Makefile.Release
+++ b/Makefile.Release
@@ -150,6 +150,12 @@ PEGASUS_LIBRARIES += \
libpegwsmserver
endif
+ifeq ($(PEGASUS_ENABLE_SLP), true)
+PEGASUS_LIBRARIES += \
+ libpegslp \
+ libpegslp_client
+endif
+
ifeq ($(OS),HPUX)
PEGASUS_LIBRARIES += \
libNTPProviderSecurity
@@ -272,6 +278,11 @@ MANAGEDSYSTEM_MOF_FILES = \
PG_UnixProcess20.mof \
PG_UnixProcess20R.mof
+ifeq ($(PEGASUS_ENABLE_SLP), true)
+ MANAGEDSYSTEM_MOF_FILES += \
+ PG_SLPProvider20R.mof
+endif
+
prestage_verifyInstallEnabled: FORCE
ifndef PEGASUS_ENABLE_MAKE_INSTALL
@$(ECHO) "Makefile.Release is not enabled."
@@ -327,15 +338,27 @@ setpermissions_PegasusJarFiles: FORCE
stage_PegasusLibraryDirectoryFiles: FORCE
$(foreach i, $(PEGASUS_LIBRARIES), $(COPY) $(PEGASUS_HOME)/lib/$(i)$(LIB_SUFFIX) $(PEGASUS_STAGING_DIR)$(PEGASUS_DEST_LIB_DIR)/$(i)$(LIB_SUFFIX);)
$(foreach i, $(PEGASUS_LIBRARY_LINKS), $(MAKE) --directory=$(ROOT) -f Makefile.Release createlink OBJECT=$(i)$(LIB_SUFFIX) LINKNAME=$(PEGASUS_STAGING_DIR)$(PEGASUS_DEST_LIB_DIR)/$(i)$(LIB_LINK_SUFFIX);)
+ifeq ($(PEGASUS_ENABLE_SLP), true)
+ $(COPY) $(PEGASUS_HOME)/lib/libpegslp_client$(LIB_SUFFIX) $(PEGASUS_STAGING_DIR)$(PEGASUS_DEST_LIB_DIR)/libpegslp_client$(LIB_SUFFIX)
+ $(MAKE) --directory=$(ROOT) -f Makefile.Release createlink OBJECT=libpegslp_client$(LIB_SUFFIX) LINKNAME=$(PEGASUS_STAGING_DIR)$(PEGASUS_DEST_LIB_DIR)/libpegslp_client$(LIB_LINK_SUFFIX)
+endif
setpermissions_PegasusLibraryDirectoryFiles: FORCE
$(foreach i, $(PEGASUS_LIBRARIES), $(MAKE) --directory=$(ROOT) -f Makefile.Release setpermissions PERMISSIONS="$(Prwxr_xr_x)" OWNER="$(INSTALL_USR)" GROUP="$(INSTALL_GRP)" OBJECT=$(PEGASUS_STAGING_DIR)$(PEGASUS_DEST_LIB_DIR)/$(i)$(LIB_SUFFIX);)
+
stage_PegasusProviderLibraryDirectoryFiles: FORCE
$(foreach i, $(PEGASUS_PROVIDERS), $(COPY) $(PEGASUS_HOME)/lib/$(i)$(LIB_SUFFIX) $(PEGASUS_STAGING_DIR)$(PEGASUS_PROVIDER_LIB_DIR)/$(i)$(LIB_SUFFIX);)
$(foreach i, $(PEGASUS_PROVIDERS), $(MAKE) --directory=$(ROOT) -f Makefile.Release createlink OBJECT=$(i)$(LIB_SUFFIX) LINKNAME=$(PEGASUS_STAGING_DIR)$(PEGASUS_PROVIDER_LIB_DIR)/$(i)$(LIB_LINK_SUFFIX);)
+ifeq ($(PEGASUS_ENABLE_SLP), true)
+ $(COPY) $(PEGASUS_HOME)/lib/libSLPProvider$(LIB_SUFFIX) $(PEGASUS_STAGING_DIR)$(PEGASUS_PROVIDER_LIB_DIR)/libSLPProvider$(LIB_SUFFIX)
+ $(MAKE) --directory=$(ROOT) -f Makefile.Release createlink OBJECT=libSLPProvider$(LIB_SUFFIX) LINKNAME=$(PEGASUS_STAGING_DIR)$(PEGASUS_PROVIDER_LIB_DIR)/libSLPProvider$(LIB_LINK_SUFFIX)
+endif
setpermissions_PegasusProviderLibraryDirectoryFiles: FORCE
$(foreach i, $(PEGASUS_PROVIDERS), $(MAKE) --directory=$(ROOT) -f Makefile.Release setpermissions PERMISSIONS="$(Prwxr_xr_x)" OWNER="$(INSTALL_USR)" GROUP="$(INSTALL_GRP)" OBJECT=$(PEGASUS_STAGING_DIR)$(PEGASUS_PROVIDER_LIB_DIR)/$(i)$(LIB_SUFFIX);)
+ifeq ($(PEGASUS_ENABLE_SLP), true)
+ $(MAKE) --directory=$(ROOT) -f Makefile.Release setpermissions PERMISSIONS="$(Prwxr_xr_x)" OWNER="$(INSTALL_USR)" GROUP="$(INSTALL_GRP)" OBJECT=$(PEGASUS_STAGING_DIR)$(PEGASUS_PROVIDER_LIB_DIR)/libSLPProvider$(LIB_SUFFIX)
+endif
stage_PegasusProviderManagerLibraryDirectoryFiles: FORCE
$(foreach i, $(PEGASUS_PROVIDER_MANAGERS), $(COPY) $(PEGASUS_HOME)/lib/$(i)$(LIB_SUFFIX) $(PEGASUS_STAGING_DIR)$(PEGASUS_PROVIDER_MANAGER_LIB_DIR)/$(i)$(LIB_SUFFIX);)
@@ -647,6 +670,10 @@ create_ProductInstallationVerificationScript: FORCE
@$(foreach i, $(PEGASUS_LIBRARY_LINKS), $(ECHO-E) \
"ls -l $(PEGASUS_DEST_LIB_DIR)/$(i)$(LIB_LINK_SUFFIX)" \
>> $(PEGASUS_HOME)/PegasusVerifyInstall;)
+ifeq ($(PEGASUS_ENABLE_SLP), true)
+ @(ECHO-E) "ls -l $(PEGASUS_DEST_LIB_DIR)/libpegslp_client$(LIB_LINK_SUFFIX)" \
+ >> $(PEGASUS_HOME)/PegasusVerifyInstall
+endif
@$(ECHO-E) "$(ECHO-E) \"\nPEGASUS PACKAGED PROVIDER MANAGER FILES\"" \
>> $(PEGASUS_HOME)/PegasusVerifyInstall
@$(foreach i, $(PEGASUS_PROVIDER_MANAGERS), $(ECHO-E) \
@@ -663,6 +690,12 @@ create_ProductInstallationVerificationScript: FORCE
@$(foreach i, $(PEGASUS_PROVIDERS), $(ECHO-E) \
"ls -l $(PEGASUS_PROVIDER_LIB_DIR)/$(i)$(LIB_LINK_SUFFIX)" \
>> $(PEGASUS_HOME)/PegasusVerifyInstall;)
+ifeq ($(PEGASUS_ENABLE_SLP), true)
+ @(ECHO-E) "ls -l $(PEGASUS_PROVIDER_LIB_DIR)/libSLPProvider$(LIB_SUFFIX)" \
+ >> $(PEGASUS_HOME)/PegasusVerifyInstall
+ @(ECHO-E) "ls -l $(PEGASUS_PROVIDER_LIB_DIR)/libSLPProvider$(LIB_LINK_SUFFIX)" \
+ >> $(PEGASUS_HOME)/PegasusVerifyInstall
+endif
@$(ECHO-E) "$(ECHO-E) \"\nPEGASUS ADMIN CMD FILES\"" \
>> $(PEGASUS_HOME)/PegasusVerifyInstall
@$(foreach i, $(PEGASUS_ADMIN_CMDS), $(ECHO-E) \
@@ -997,6 +1030,17 @@ _append_postSectionToSpecFile_createSymbolicLinks: FORCE
" ln -sf $(i)$(LIB_SUFFIX)\
$(PEGASUS_PROVIDER_MANAGER_LIB_DIR_2)/$(i)$(LIB_LINK_SUFFIX)" \
>> $(PEGASUS_RPM_SPEC_FILE_PATH);)
+ @$(ECHO-E) " # Create Symbolic Links for SLP library and SLP Provider" \
+ >> $(PEGASUS_RPM_SPEC_FILE_PATH)
+ @$(ECHO-E) " #" >> $(PEGASUS_RPM_SPEC_FILE_PATH)
+ @$(ECHO-E) " %if %{EXTERNAL_SLP_REQUESTED}" >> $(PEGASUS_RPM_SPEC_FILE_PATH)
+ @$(ECHO-E) " ln -sf libpegslp_client$(LIB_SUFFIX)\
+ $(PEGASUS_DEST_LIB_DIR_2)/libpegslp_client$(LIB_LINK_SUFFIX)" \
+ >> $(PEGASUS_RPM_SPEC_FILE_PATH)
+ @$(ECHO-E) " ln -sf libSLPProvider$(LIB_SUFFIX)\
+ $(PEGASUS_PROVIDER_LIB_DIR_2)/libSLPProvider$(LIB_LINK_SUFFIX)" \
+ >> $(PEGASUS_RPM_SPEC_FILE_PATH)
+ @$(ECHO-E) " %endif " >> $(PEGASUS_RPM_SPEC_FILE_PATH)
@$(ECHO-E) "" >> $(PEGASUS_RPM_SPEC_FILE_PATH)
_append_postSectionToSpecFile_createLog: FORCE
@@ -1156,6 +1200,12 @@ _append_filesSectionToSpecFile: FORCE
@$(foreach i, $(PEGASUS_PROVIDERS), \
$(ECHO-E) "$(PEGASUS_PROVIDER_LIB_DIR_2)/$(i)$(LIB_LINK_SUFFIX)" \
>> $(PEGASUS_RPM_SPEC_FILE_PATH);)
+ @$(ECHO-E) " %if %{EXTERNAL_SLP_REQUESTED}" >> $(PEGASUS_RPM_SPEC_FILE_PATH)
+ @$(ECHO-E) "$(PEGASUS_DEST_LIB_DIR_2)/libpegslp_client$(LIB_LINK_SUFFIX)" \
+ >> $(PEGASUS_RPM_SPEC_FILE_PATH)
+ @$(ECHO-E) "$(PEGASUS_PROVIDER_LIB_DIR_2)/libSLPProvider$(LIB_LINK_SUFFIX)" \
+ >> $(PEGASUS_RPM_SPEC_FILE_PATH)
+ @$(ECHO-E) "%endif" >> $(PEGASUS_RPM_SPEC_FILE_PATH)
@$(foreach i, $(PEGASUS_PROVIDER_MANAGERS), \
$(ECHO-E) "$(PEGASUS_PROVIDER_MANAGER_LIB_DIR_2)/$(i)$(LIB_LINK_SUFFIX)" \
>> $(PEGASUS_RPM_SPEC_FILE_PATH);)