Fix postinst script for cpack generated .deb package for Ubuntu 16.10

This commit is contained in:
Sebastian Messmer 2016-10-14 01:02:18 +02:00
parent 6ad8a203b5
commit 6216907500
2 changed files with 3 additions and 2 deletions

View File

@ -39,7 +39,8 @@ if(BUILDTYPE MATCHES RELEASE AND NOT BUILD_TESTING)
set(CPACK_PACKAGE_EXECUTABLES "cryfs" "CryFS")
set(CPACK_DEBIAN_PACKAGE_SECTION "utils")
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
set(CPACK_DEBIAN_PACKAGE_DEPENDS "fuse")
# Needs gnupg2 for postinst script
set(CPACK_DEBIAN_PACKAGE_DEPENDS "fuse gnupg2")
set(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://www.cryfs.org")
set(CPACK_RPM_PACKAGE_LICENSE "LGPLv3")

View File

@ -37,7 +37,7 @@ sources_list_dir () {
root=$(get_apt_config "Dir")
etc=$(get_apt_config "Dir::Etc")
sourceparts=$(get_apt_config "Dir::Etc::sourceparts")
echo $root$etc$sourceparts
echo "$root/$etc/$sourceparts"
}
add_repository () {