[CMake] CPack deb generator

Bruno Antunes sardaukar.siet at gmail.com
Fri Feb 20 06:21:03 EST 2009


Will try, thanks!

On Thu, Feb 19, 2009 at 21:53, Eric Noulard <eric.noulard at gmail.com> wrote:

> From CPackDeb.cmake I think you may include extra scripts in the
> control.tar.gz
> generated by CPack  DEB generator.
>
> # 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")
>
>
> Thus I would try to
> SET(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA
>       "/path/to/your/postinst")
>
> where:
> /path/to/your/postinst
>
> is your custom post-installation script.
>



-- 
Bruno
http://iruel.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090220/d542da96/attachment.htm>


More information about the CMake mailing list