diff --git a/CMakeLists.txt b/CMakeLists.txt index 7afbacd0be..dc0c6b83f6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -164,10 +164,6 @@ else() endif() message ( "Using CPACK_DEBIAN_PACKAGE_RELEASE ${CPACK_DEBIAN_PACKAGE_RELEASE}" ) set ( CPACK_DEBIAN_FILE_NAME "DEB-DEFAULT" ) -## Process the Debian install/remove scripts to update the CPACK variables -configure_file ( ${CMAKE_CURRENT_SOURCE_DIR}/DEBIAN/postinst.in DEBIAN/postinst @ONLY ) -configure_file ( ${CMAKE_CURRENT_SOURCE_DIR}/DEBIAN/prerm.in DEBIAN/prerm @ONLY ) -set ( CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "DEBIAN/postinst;DEBIAN/prerm" ) ## RPM package specific variables if ( DEFINED ENV{CPACK_RPM_PACKAGE_RELEASE} ) @@ -191,12 +187,6 @@ if ( PROC_RESULT EQUAL "0" AND NOT EVAL_RESULT STREQUAL "" ) endif() set ( CPACK_RPM_FILE_NAME "RPM-DEFAULT" ) message("CPACK_RPM_PACKAGE_RELEASE: ${CPACK_RPM_PACKAGE_RELEASE}") -## Process the Rpm install/remove scripts to update the CPACK variables -configure_file ( "${CMAKE_CURRENT_SOURCE_DIR}/RPM/post.in" RPM/post @ONLY ) -configure_file ( "${CMAKE_CURRENT_SOURCE_DIR}/RPM/postun.in" RPM/postun @ONLY ) - -set ( CPACK_RPM_POST_INSTALL_SCRIPT_FILE "${CMAKE_CURRENT_BINARY_DIR}/RPM/post" ) -set ( CPACK_RPM_POST_UNINSTALL_SCRIPT_FILE "${CMAKE_CURRENT_BINARY_DIR}/RPM/postun" ) include ( CPack ) diff --git a/DEBIAN/postinst.in b/DEBIAN/postinst.in deleted file mode 100644 index c0d1f6f271..0000000000 --- a/DEBIAN/postinst.in +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash - -set -e - -do_ldconfig() { - # left-hand term originates from ENABLE_LDCONFIG = ON/OFF at package build - if [ "@ENABLE_LDCONFIG@" == "ON" ]; then - echo @CPACK_PACKAGING_INSTALL_PREFIX@/lib > /etc/ld.so.conf.d/libroctracer64.conf - ldconfig - fi -} - -case "$1" in - ( configure ) - do_ldconfig - ;; - ( abort-upgrade | abort-remove | abort-deconfigure ) - echo "$1" - ;; - ( * ) - exit 0 - ;; -esac diff --git a/DEBIAN/prerm.in b/DEBIAN/prerm.in deleted file mode 100644 index 9c76ec0e65..0000000000 --- a/DEBIAN/prerm.in +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - -set -e - -rm_ldconfig() { - # left-hand term originates from ENABLE_LDCONFIG = ON/OFF at package build - if [ "@ENABLE_LDCONFIG@" == "ON" ]; then - rm -f /etc/ld.so.conf.d/libroctracer64.conf - ldconfig - fi -} - -case "$1" in - ( remove | upgrade ) - rm_ldconfig - ;; - ( purge ) - ;; - ( * ) - exit 0 - ;; -esac diff --git a/RPM/post.in b/RPM/post.in deleted file mode 100644 index eea513f48a..0000000000 --- a/RPM/post.in +++ /dev/null @@ -1,5 +0,0 @@ -# left-hand term originates from ENABLE_LDCONFIG = ON/OFF at package build -if [ "@ENABLE_LDCONFIG@" == "ON" ]; then - echo @CPACK_PACKAGING_INSTALL_PREFIX@/lib > /etc/ld.so.conf.d/libroctracer64.conf - ldconfig -fi diff --git a/RPM/postun.in b/RPM/postun.in deleted file mode 100644 index 8ee50096a7..0000000000 --- a/RPM/postun.in +++ /dev/null @@ -1,5 +0,0 @@ -# left-hand term originates from ENABLE_LDCONFIG = ON/OFF at package build -if [ "@ENABLE_LDCONFIG@" == "ON" ]; then - rm -f /etc/ld.so.conf.d/libroctracer64.conf - ldconfig -fi