summaryrefslogtreecommitdiffstats
path: root/Modules/CPackDeb.cmake
Commit message (Collapse)AuthorAgeFilesLines
* CPackDeb: Fix typo in documentationTobias Svehagen2018-01-241-2/+2
|
* CPack: enable all CMake policies for generator scriptsDomen Vrankar2017-12-091-20/+8
|
* CPack/Deb: handle shlibs file generation when SOVERSION set to 0Domen Vrankar2017-10-281-1/+1
| | | | | | | | Setting CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS did not auto generate shlibs control file when .so version of the library was set to 0. Fixes #17318
* CPack/Deb: fix for regex passing even if invalid characters are presentDomen Vrankar2017-10-101-2/+2
| | | | | Regex [+-~] passes all characters between + and ~ and not only +, - and ~
* CPack/Deb: CPACK_DEBIAN_PACKAGE_VERSION regex testing exceptionDomen Vrankar2017-10-101-6/+33
| | | | | | | | | | | | | CPACK_DEBIAN_PACKAGE_VERSION variable could in the past also contain release and epoch version so regex test should expect the entire versioning if both CPACK_DEBIAN_PACKAGE_RELEASE and CPACK_DEBIAN_PACKAGE_EPOCH are not set. Also since the checks were not performed in the past the regex test of CPACK_DEBIAN_PACKAGE_VERSION variable content should only report author warnings instead of errors in case of the test fail. Fixes: #17339
* CPack RPM and DEB: improved package version handlingDomen Vrankar2017-09-211-8/+44
| | | | | | | | | Adds support for epoch version to CPackRPM and CPackDeb packagers. Also adds better version checking to CPackDeb that complies with Debian rules. Fixes: #17057
* CPackDeb: Loosen filename requirement to allow for .ipkNils Gladitz2017-08-121-3/+4
| | | | | The OPKG packaging system uses deb like package files with an .ipk extension. Allow the DEB generator to be used in that context.
* CPackDeb: Enable the DEB generator on WindowsNils Gladitz2017-06-281-4/+10
| | | | | | | | While some features require external Unix tools the generator is mostly portable. By enabling it on Windows it can be used for cross platform packaging.
* CPackDeb: use CPACK_DEBIAN_PACKAGE_VERSIONDaniel Pfeifer2016-12-201-2/+2
|
* CPack/DEB shlibdep options depend on file utilityHenning Meyer2016-12-071-1/+10
| | | | | | | | Missing or missconfigured file utility should not skip adding dependencies. Instead it should print out a fatal error message. Fixes #16486
* CPackDeb: Fix incorrect variable name in documentationAlex Turbov2016-11-021-1/+1
| | | | | | `CPACK_DEB_COMPONENT_INSTALL` is the correct variable to set to enable component packaging. `CPACK_DEB_PACKAGE_COMPONENT` is just set to a component name when CPack calls corresponding installer.
* CPackDeb: fix copy-n-paste typos in documentationAlex Turbov2016-11-011-3/+3
|
* Simplify CMake per-source license noticesBrad King2016-09-271-18/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Per-source copyright/license notice headers that spell out copyright holder names and years are hard to maintain and often out-of-date or plain wrong. Precise contributor information is already maintained automatically by the version control tool. Ultimately it is the receiver of a file who is responsible for determining its licensing status, and per-source notices are merely a convenience. Therefore it is simpler and more accurate for each source to have a generic notice of the license name and references to more detailed information on copyright holders and full license terms. Our `Copyright.txt` file now contains a list of Contributors whose names appeared source-level copyright notices. It also references version control history for more precise information. Therefore we no longer need to spell out the list of Contributors in each source file notice. Replace CMake per-source copyright/license notice headers with a short description of the license and links to `Copyright.txt` and online information available from "https://cmake.org/licensing". The online URL also handles cases of modules being copied out of our source into other projects, so we can drop our notices about replacing links with full license text. Run the `Utilities/Scripts/filter-notices.bash` script to perform the majority of the replacements mechanically. Manually fix up shebang lines and trailing newlines in a few files. Manually update the notices in a few files that the script does not handle.
* Revert "CPack/DEB: Make package description variable precedence match RPM"Domen Vrankar2016-09-241-22/+21
| | | | | This reverts commit 332b089ad213a1aa89658fffd8f68c9064c6d3db as multiline descriptions require special formatting.
* CPack/DEB: Make package description variable precedence match RPMDomen Vrankar2016-09-071-21/+22
| | | | | | | | | Make `CPACK_DEBIAN_PACKAGE_DESCRIPTION` fallback variable precedence match CPackRPM behavior as much as possible. This is technically a breaking change, but the new behavior is more consistent with expectation anyway. Closes: #16272
* CPack/DEB: Add option to select archive typeDomen Vrankar2016-09-051-1/+32
| | | | | | | Add a `CPACK_DEBIAN_ARCHIVE_TYPE` option that can be used to select an archive type that supports long file names. Closes: #14332
* CPackRPM and CPackDeb documentation improvementsDomen Vrankar2016-06-011-31/+40
|
* Merge topic 'cpack-deb-different-package-names'Brad King2016-05-241-7/+63
|\ | | | | | | | | adbd3985 CPack/Deb possibility to change package name
| * CPack/Deb possibility to change package nameDomen Vrankar2016-05-231-7/+63
| | | | | | | | | | | | | | | | This patch preserves backward compatibility of deb package names with previous CMake versions but similarly to CPack/RPM allows to change package name format and supports DEB-DEFAULT setting that produces proper Debian package names.
* | CPack/Deb prevent accidental component dependenciesDomen Vrankar2016-05-231-13/+23
|/ | | | | | | | | | Prevent accidental inter component dependency setting since this is a breaking feature in situations where another CPack module is already using the feature. It should be enabled if desired since it can cause issues when upgrading only one of the components for e.g. configuration instead of all the components at once.
* CPack/Deb package release number in file nameDomen Vrankar2016-05-131-1/+17
| | | | | | Debian packages file naming format must contain revision number - package release number (breaks compatibility with previous versions)
* CPack/Deb proper package file namingDomen Vrankar2016-05-131-9/+8
| | | | | Proper Debian packages file naming for single package setup (breaks compatibility with previous versions)
* CPack/Deb per-component package architectureAlexander Smorkalov2016-05-131-1/+4
| | | | | | Allowed to set per-compoment Debian package architecture. Useful, if you distribute documentation (should have "all architecture").
* CPack/Deb inter package dependenciesAlexander Smorkalov2016-05-131-1/+17
| | | | | In multi-component setup dependencies between packages are set (breaking change)
* CPack/Deb proper component packages file namingAlexander Smorkalov2016-05-131-6/+23
| | | | | Proper Debian packages file naming for multi-component setup (breaks compatibility with previous versions)
* CPack/Deb generation of postinst and postrm ldconfig filesAlexander Smorkalov2016-05-131-0/+29
| | | | | | DEBIAN/postinst and DEBAIN/postrm files generation if the package installs libraries in ldconfig controlled location (/lib/, /usr/lib/)
* CPack/Deb generation of DEBIAN/shlibs control fileAlexander Smorkalov2016-05-131-27/+112
| | | | | DEBIAN/shlibs control file generation if the package contains libraries
* CPack/Deb Create DEBIAN directory for dpkg-shlibdepsFlorian Apolloner and John Knottenbelt2016-02-191-0/+6
| | | | | | | If CMAKE_INSTALL_RPATH is set and contains $ORIGIN then dpkg-shlibdeps searches for the DEBIAN directory in order to resolve $ORIGIN in the rpath to a directory. We need to create the DEBIAN directory for this to work.
* CPackDeb: CPACK_DEBIAN_PACKAGE_NAME documentation improvementDomen Vrankar2015-11-091-2/+10
|
* CPackDeb: set package control field per componentMarkus Rickert2015-11-091-5/+7
|
* CPackDeb: set priority control field per componentDomen Vrankar2015-11-091-2/+6
|
* CPackDeb: additional CPACK_DEBIAN_PACKAGE_SECTION documentationDomen Vrankar2015-11-081-0/+5
|
* CPackDeb: set section control field per componentMarkus Rickert2015-11-081-7/+8
|
* CPackDEB: added config file optional Source fieldRaffi Enficiaud2015-11-041-2/+35
|
* CPackDEB: minor documentation and debug logging fixesRaffi Enficiaud2015-11-041-13/+13
|
* Replace http://www.cmake.org URLs with https://cmake.orgBrad King2015-09-251-3/+3
| | | | | | | The latter is now the preferred URL for visiting cmake.org with a browser. Convert using the shell code: git ls-files -z | xargs -0 sed -i 's|http://www\.cmake|https://cmake|g'
* CPackDeb: use of libarchive and removal of fakerootRaffi Enficiaud2015-09-171-7/+32
|
* CPack/Deb: enable per component setting of dependenciesDomen Vrankar2015-09-091-16/+60
|
* CPack/DEB: component version of PACKAGE_CONTROL_EXTRADomen Vrankar2015-07-151-1/+9
| | | | | Component version of CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA variable.
* CPack/DEB: Remove duplicate string(TOUPPER) callsDomen Vrankar2015-07-151-2/+0
| | | | | We compute _local_component_name the first time we check for CPACK_DEB_PACKAGE_COMPONENT so we can just re-use it later.
* CPackDeb: Check dpkg-shlibdeps --ignore-missing-info flagBrad King2015-06-031-3/+6
| | | | | | Check for this flag explicitly in the --help output before using it. It turns out there are some versions of the tool that support --version but not --ignore-missing-info.
* CPackDeb: Check dpkg-shlibdeps version more robustlyBrad King2015-06-031-4/+5
| | | | | Use if(MATCHES) to verify that a match exists before using the match group variable.
* CPack/DEB: reworked documentationRaffi Enficiaud2015-05-151-47/+100
|
* CPack/DEB per component dependenciesRaffi Enficiaud2015-05-081-15/+53
| | | | Dependencies may now be set per component
* CPack/DEB component dependency auto-discoveryRaffi Enficiaud2015-05-071-63/+111
| | | | Dependency auto-discovery can now be set per component
* CPackDEB component descriptionRaffi Enficiaud2015-04-291-8/+33
| | | | | Support for setting different description for each component.
* CPackDeb: Refactor package variable lookup by generatorDomen Vrankar2015-04-211-196/+223
| | | | | | | | Preparation for per component variables. Patch makes sure we know which variables will be set for per component generator and also prevents accidental overflows of variable values between components.
* CPackDeb: Invoke "dpkg-shlibdeps --version" with C localeNils Gladitz2014-05-281-1/+1
| | | | The version message is localized and may not match when a non-english locale is in use.
* Replace string(REGEX REPLACE) with string(REPLACE) where possibleRolf Eike Beer2014-04-141-1/+1
| | | | The simple replacement is much faster.
* CPackDeb: Add option to set compression typeSean D'Epagnier2014-03-141-1/+12
| | | | | | Add a CPACK_DEBIAN_COMPRESSION_TYPE option to set the compression type. Default to 'gzip' to preserve existing behavior. Use "cmake -E tar" for 'gzip', 'bzip2', and 'none'. Use system "tar" for 'lzma' and 'xz'.