Update CMakeLists.txt (#168)
* Update CMakeLists.txt This just reuses the default package description for RPM package as well (one would expect this to be the default, but doesn't seem to be the case with cmake 3.9.1 at least). * Update CMakeLists.txt This prevents cryfs RPM for owning filesystem directories which was causing installation error. * Update README.md Same instructions apply for building .rpm package.
This commit is contained in:
parent
7abed14d63
commit
bdc7d27998
@ -133,12 +133,12 @@ On most systems, CMake should find the libraries automatically. However, that do
|
||||
cmake .. -DCMAKE_C_FLAGS="-I/path/to/openssl/include"
|
||||
|
||||
|
||||
Creating .deb packages
|
||||
----------------------
|
||||
Creating .deb and .rpm packages
|
||||
-------------------------------
|
||||
|
||||
There are additional requirements if you want to create .deb packages. They are:
|
||||
There are additional requirements if you want to create packages. They are:
|
||||
- CMake version >= 3.3
|
||||
- (optional) rpmbuild
|
||||
- rpmbuild for creating .rpm package
|
||||
|
||||
1. Clone repository
|
||||
|
||||
|
@ -44,6 +44,8 @@ if(BUILDTYPE MATCHES RELEASE AND NOT BUILD_TESTING)
|
||||
|
||||
set(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://www.cryfs.org")
|
||||
set(CPACK_RPM_PACKAGE_LICENSE "LGPLv3")
|
||||
set(CPACK_RPM_PACKAGE_DESCRIPTION ${CPACK_PACKAGE_DESCRIPTION})
|
||||
set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "/usr/bin;/usr/share/man;/usr/share/man/man1")
|
||||
set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_CURRENT_SOURCE_DIR}/debfiles/postinst;${CMAKE_CURRENT_SOURCE_DIR}/debfiles/postrm")
|
||||
|
||||
include(CPack)
|
||||
|
Loading…
Reference in New Issue
Block a user