Skip to content
Snippets Groups Projects
Commit 9035f00d authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Fixing postinst script

parent 9ca08caa
No related branches found
No related tags found
No related merge requests found
Pipeline #3508 passed
......@@ -294,6 +294,12 @@ list(GET VERSION_LIST 2 OPENFPM_VERSION_PATCH)
if (CPACK_RUN_INSTALL_DEPENDENCIES)
###### Fix post inst script ######
###### ######
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "OpenFPM distributed data-structures")
set(CPACK_PACKAGE_VENDOR "IBirdSoft")
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.txt")
......@@ -310,7 +316,7 @@ if (CPACK_RUN_INSTALL_DEPENDENCIES)
set(CPACK_DEBIAN_PACKAGE_MAINTAINER Pietro Incardona)
set(CPACK_RPM_POST_INSTALL_SCRIPT_FILE ${CMAKE_CURRENT_SOURCE_DIR}/src/scripts/postinst)
set(CPACK_POSTFLIGHT_OPENFPM_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/src/scripts/postflight)
set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_CURRENT_SOURCE_DIR}/src/script/postinst")
set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA ${CMAKE_CURRENT_SOURCE_DIR}/src/scripts/postinst)
set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.txt")
install(FILES $ENV{DEP_PACKING}/openfpm_vars
......
#! /bin/bash
/projects\/ppm\/rundeck\/openfpm_super_bundles\/$1\/openfpm_dep_$1
echo "Fixing folders for CPACK_LINUX_VERSION"
sed -i -e 's/projects\/ppm\/rundeck\/openfpm_super_bundles\/$1\/openfpm_dep_$1/usr\/local\/openfpm\/dependencies/g' /usr/local/openfpm/source/openfpm_vars
sed -i -e 's/projects\/ppm\/rundeck\/openfpm_super_bundles\/$1\/openfpm_dep_$1/usr\/local\/openfpm\/dependencies/g' /usr/local/openfpm/openfpm_pdata/include/example.mk
sed -i -e 's/projects\/ppm\/rundeck\/openfpm_super_bundles\/CPACK_LINUX_VERSION\/openfpm_dep_CPACK_LINUX_VERSION/usr\/local\/openfpm\/dependencies/g' /usr/local/openfpm/source/openfpm_vars
sed -i -e 's/projects\/ppm\/rundeck\/openfpm_super_bundles\/CPACK_LINUX_VERSION\/openfpm_dep_CPACK_LINUX_VERSION/usr\/local\/openfpm\/dependencies/g' /usr/local/openfpm/openfpm_pdata/include/example.mk
echo "export OPAL_PREFIX=/usr/local/openfpm/dependencies/MPI" >> /usr/local/openfpm/source/openfpm_vars
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment