From 38a99f54e3232fdb00cd7ffdd675f9fd4f4a5af6 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 1 Apr 2008 17:51:18 -0400 Subject: [PATCH] ENH: add CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA variable --- Modules/CPackDeb.cmake | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Modules/CPackDeb.cmake b/Modules/CPackDeb.cmake index fa18966b9..190aa3438 100644 --- a/Modules/CPackDeb.cmake +++ b/Modules/CPackDeb.cmake @@ -88,6 +88,17 @@ ENDIF(NOT CPACK_DEBIAN_PACKAGE_PRIORITY ) # Suggests: # You should set: CPACK_DEBIAN_PACKAGE_SUGGESTS +# CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA +# This variable allow advanced user to add custom script to the control.tar.gz (inside the .deb archive) +# Typical examples are: +# - conffiles +# - postinst +# - postrm +# - prerm" +# Usage: +# SET(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA +# "${CMAKE_CURRENT_SOURCE_DIR/prerm;${CMAKE_CURRENT_SOURCE_DIR}/postrm") + # For debian source packages: # debian/control