From d56564f5e3d9ccefc9ac34c81dc8d061298301e7 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 16 Nov 2011 17:41:11 -0800 Subject: cmake: moved post/pre inst/uinst files --- cmake/Modules/GrPackage.cmake | 16 ++++++++-------- cmake/Packaging/post_install.in | 4 ++++ cmake/Packaging/post_uninstall.in | 3 +++ cmake/Packaging/postinst.in | 6 ++++++ cmake/Packaging/postrm.in | 5 +++++ cmake/Packaging/pre_install.in | 1 + cmake/Packaging/pre_uninstall.in | 3 +++ cmake/Packaging/preinst.in | 5 +++++ cmake/Packaging/prerm.in | 5 +++++ cmake/debian/postinst.in | 6 ------ cmake/debian/postrm.in | 5 ----- cmake/debian/preinst.in | 5 ----- cmake/debian/prerm.in | 5 ----- cmake/redhat/post_install.in | 4 ---- cmake/redhat/post_uninstall.in | 3 --- cmake/redhat/pre_install.in | 1 - cmake/redhat/pre_uninstall.in | 3 --- 17 files changed, 40 insertions(+), 40 deletions(-) create mode 100755 cmake/Packaging/post_install.in create mode 100755 cmake/Packaging/post_uninstall.in create mode 100755 cmake/Packaging/postinst.in create mode 100755 cmake/Packaging/postrm.in create mode 100755 cmake/Packaging/pre_install.in create mode 100755 cmake/Packaging/pre_uninstall.in create mode 100755 cmake/Packaging/preinst.in create mode 100755 cmake/Packaging/prerm.in delete mode 100755 cmake/debian/postinst.in delete mode 100755 cmake/debian/postrm.in delete mode 100755 cmake/debian/preinst.in delete mode 100755 cmake/debian/prerm.in delete mode 100755 cmake/redhat/post_install.in delete mode 100755 cmake/redhat/post_uninstall.in delete mode 100755 cmake/redhat/pre_install.in delete mode 100755 cmake/redhat/pre_uninstall.in (limited to 'cmake') diff --git a/cmake/Modules/GrPackage.cmake b/cmake/Modules/GrPackage.cmake index 8761a9290..a36ad9162 100644 --- a/cmake/Modules/GrPackage.cmake +++ b/cmake/Modules/GrPackage.cmake @@ -141,11 +141,11 @@ endif() # DEB package specific ######################################################################## foreach(filename preinst postinst prerm postrm) - list(APPEND CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA ${CMAKE_BINARY_DIR}/debian/${filename}) - file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/debian) + list(APPEND CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA ${CMAKE_BINARY_DIR}/Packaging/${filename}) + file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/Packaging) configure_file( - ${CMAKE_SOURCE_DIR}/cmake/debian/${filename}.in - ${CMAKE_BINARY_DIR}/debian/${filename} + ${CMAKE_SOURCE_DIR}/cmake/Packaging/${filename}.in + ${CMAKE_BINARY_DIR}/Packaging/${filename} @ONLY) endforeach(filename) @@ -154,11 +154,11 @@ endforeach(filename) ######################################################################## foreach(filename post_install post_uninstall pre_install pre_uninstall) string(TOUPPER ${filename} filename_upper) - list(APPEND CPACK_RPM_${filename_upper}_SCRIPT_FILE ${CMAKE_BINARY_DIR}/redhat/${filename}) - file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/redhat) + list(APPEND CPACK_RPM_${filename_upper}_SCRIPT_FILE ${CMAKE_BINARY_DIR}/Packaging/${filename}) + file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/Packaging) configure_file( - ${CMAKE_SOURCE_DIR}/cmake/redhat/${filename}.in - ${CMAKE_BINARY_DIR}/redhat/${filename} + ${CMAKE_SOURCE_DIR}/cmake/Packaging/${filename}.in + ${CMAKE_BINARY_DIR}/Packaging/${filename} @ONLY) endforeach(filename) diff --git a/cmake/Packaging/post_install.in b/cmake/Packaging/post_install.in new file mode 100755 index 000000000..e7245f032 --- /dev/null +++ b/cmake/Packaging/post_install.in @@ -0,0 +1,4 @@ +#!/bin/sh + +@CMAKE_INSTALL_PREFIX@/libexec/gnuradio/grc_setup_freedesktop install +ldconfig diff --git a/cmake/Packaging/post_uninstall.in b/cmake/Packaging/post_uninstall.in new file mode 100755 index 000000000..2d1871b1d --- /dev/null +++ b/cmake/Packaging/post_uninstall.in @@ -0,0 +1,3 @@ +#!/bin/sh + +ldconfig diff --git a/cmake/Packaging/postinst.in b/cmake/Packaging/postinst.in new file mode 100755 index 000000000..7fef2accf --- /dev/null +++ b/cmake/Packaging/postinst.in @@ -0,0 +1,6 @@ +#!/bin/sh + +if [ "$1" = "configure" ]; then + @CMAKE_INSTALL_PREFIX@/libexec/gnuradio/grc_setup_freedesktop install + ldconfig +fi diff --git a/cmake/Packaging/postrm.in b/cmake/Packaging/postrm.in new file mode 100755 index 000000000..b780602a7 --- /dev/null +++ b/cmake/Packaging/postrm.in @@ -0,0 +1,5 @@ +#!/bin/sh + +if [ "$1" = "remove" ]; then + ldconfig +fi diff --git a/cmake/Packaging/pre_install.in b/cmake/Packaging/pre_install.in new file mode 100755 index 000000000..1a2485251 --- /dev/null +++ b/cmake/Packaging/pre_install.in @@ -0,0 +1 @@ +#!/bin/sh diff --git a/cmake/Packaging/pre_uninstall.in b/cmake/Packaging/pre_uninstall.in new file mode 100755 index 000000000..c5e085e89 --- /dev/null +++ b/cmake/Packaging/pre_uninstall.in @@ -0,0 +1,3 @@ +#!/bin/sh + +@CMAKE_INSTALL_PREFIX@/libexec/gnuradio/grc_setup_freedesktop uninstall diff --git a/cmake/Packaging/preinst.in b/cmake/Packaging/preinst.in new file mode 100755 index 000000000..c60d46568 --- /dev/null +++ b/cmake/Packaging/preinst.in @@ -0,0 +1,5 @@ +#!/bin/sh + +if [ "$1" = "install" ]; then + ls +fi diff --git a/cmake/Packaging/prerm.in b/cmake/Packaging/prerm.in new file mode 100755 index 000000000..d09887850 --- /dev/null +++ b/cmake/Packaging/prerm.in @@ -0,0 +1,5 @@ +#!/bin/sh + +if [ "$1" = "remove" ]; then + @CMAKE_INSTALL_PREFIX@/libexec/gnuradio/grc_setup_freedesktop uninstall +fi diff --git a/cmake/debian/postinst.in b/cmake/debian/postinst.in deleted file mode 100755 index 7fef2accf..000000000 --- a/cmake/debian/postinst.in +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -if [ "$1" = "configure" ]; then - @CMAKE_INSTALL_PREFIX@/libexec/gnuradio/grc_setup_freedesktop install - ldconfig -fi diff --git a/cmake/debian/postrm.in b/cmake/debian/postrm.in deleted file mode 100755 index b780602a7..000000000 --- a/cmake/debian/postrm.in +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -if [ "$1" = "remove" ]; then - ldconfig -fi diff --git a/cmake/debian/preinst.in b/cmake/debian/preinst.in deleted file mode 100755 index c60d46568..000000000 --- a/cmake/debian/preinst.in +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -if [ "$1" = "install" ]; then - ls -fi diff --git a/cmake/debian/prerm.in b/cmake/debian/prerm.in deleted file mode 100755 index d09887850..000000000 --- a/cmake/debian/prerm.in +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -if [ "$1" = "remove" ]; then - @CMAKE_INSTALL_PREFIX@/libexec/gnuradio/grc_setup_freedesktop uninstall -fi diff --git a/cmake/redhat/post_install.in b/cmake/redhat/post_install.in deleted file mode 100755 index e7245f032..000000000 --- a/cmake/redhat/post_install.in +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -@CMAKE_INSTALL_PREFIX@/libexec/gnuradio/grc_setup_freedesktop install -ldconfig diff --git a/cmake/redhat/post_uninstall.in b/cmake/redhat/post_uninstall.in deleted file mode 100755 index 2d1871b1d..000000000 --- a/cmake/redhat/post_uninstall.in +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -ldconfig diff --git a/cmake/redhat/pre_install.in b/cmake/redhat/pre_install.in deleted file mode 100755 index 1a2485251..000000000 --- a/cmake/redhat/pre_install.in +++ /dev/null @@ -1 +0,0 @@ -#!/bin/sh diff --git a/cmake/redhat/pre_uninstall.in b/cmake/redhat/pre_uninstall.in deleted file mode 100755 index c5e085e89..000000000 --- a/cmake/redhat/pre_uninstall.in +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -@CMAKE_INSTALL_PREFIX@/libexec/gnuradio/grc_setup_freedesktop uninstall -- cgit