From 62169075001bd01bac19abd319cdb946af3cb3bd Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Fri, 14 Oct 2016 01:02:18 +0200 Subject: [PATCH] Fix postinst script for cpack generated .deb package for Ubuntu 16.10 --- cpack/CMakeLists.txt | 3 ++- cpack/debfiles/postinst | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cpack/CMakeLists.txt b/cpack/CMakeLists.txt index 175edc07..f3af855f 100644 --- a/cpack/CMakeLists.txt +++ b/cpack/CMakeLists.txt @@ -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") diff --git a/cpack/debfiles/postinst b/cpack/debfiles/postinst index 501ad312..371eca36 100755 --- a/cpack/debfiles/postinst +++ b/cpack/debfiles/postinst @@ -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 () {