mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-10 05:03:33 +01:00
Linux/FreeBSD: Make pcsclite a dependency of the packages and the generic installer
This commit is contained in:
parent
b750c67810
commit
417ff5564e
@ -247,27 +247,27 @@ if ( ( PLATFORM STREQUAL "Debian" ) OR ( PLATFORM STREQUAL "Ubuntu" ) )
|
||||
|
||||
if (NOGUI)
|
||||
# Link against statically built wxWidgets so that we don't depend on any GTK library
|
||||
set( CPACK_DEBIAN_PACKAGE_DEPENDS "libfuse2, dmsetup, sudo" )
|
||||
set( CPACK_DEBIAN_PACKAGE_DEPENDS "libfuse2, dmsetup, sudo, libpcsclite1, pcscd" )
|
||||
else ()
|
||||
# Link against gtk3 version of wxWidgets if >= Debian 10 or >= Ubuntu 18.04
|
||||
# Otherwise, link against gtk2 version of wxWidgets
|
||||
if ( ( ( PLATFORM STREQUAL "Debian" ) AND ( PLATFORM_VERSION VERSION_GREATER_EQUAL "12" ) )
|
||||
OR ( ( PLATFORM STREQUAL "Ubuntu" ) AND ( PLATFORM_VERSION VERSION_GREATER_EQUAL "23.04" ) ) )
|
||||
|
||||
set( CPACK_DEBIAN_PACKAGE_DEPENDS "libwxgtk3.2-1, libayatana-appindicator3-1, libfuse2, dmsetup, sudo" )
|
||||
set( CPACK_DEBIAN_PACKAGE_DEPENDS "libwxgtk3.2-1, libayatana-appindicator3-1, libfuse2, dmsetup, sudo, libpcsclite1, pcscd" )
|
||||
|
||||
elseif ( ( ( PLATFORM STREQUAL "Debian" ) AND ( PLATFORM_VERSION VERSION_GREATER_EQUAL "10" ) )
|
||||
OR ( ( PLATFORM STREQUAL "Ubuntu" ) AND ( PLATFORM_VERSION VERSION_GREATER_EQUAL "18.04" ) ) )
|
||||
|
||||
set( CPACK_DEBIAN_PACKAGE_DEPENDS "libwxgtk3.0-gtk3-0v5, libayatana-appindicator3-1, libfuse2, dmsetup, sudo" )
|
||||
set( CPACK_DEBIAN_PACKAGE_DEPENDS "libwxgtk3.0-gtk3-0v5, libayatana-appindicator3-1, libfuse2, dmsetup, sudo, libpcsclite1, pcscd" )
|
||||
|
||||
else ()
|
||||
# Link against statically built wxWidgets on Ubuntu 14.04 and older, and Debian 8 and older
|
||||
if ( ( ( PLATFORM STREQUAL "Debian" ) AND ( PLATFORM_VERSION VERSION_LESS_EQUAL "8" ) )
|
||||
OR ( ( PLATFORM STREQUAL "Ubuntu" ) AND ( PLATFORM_VERSION VERSION_LESS_EQUAL "14.04" ) ) )
|
||||
set( CPACK_DEBIAN_PACKAGE_DEPENDS "libgtk2.0-0, libfuse2, dmsetup, sudo" )
|
||||
set( CPACK_DEBIAN_PACKAGE_DEPENDS "libgtk2.0-0, libfuse2, dmsetup, sudo, libpcsclite1, pcscd" )
|
||||
else ()
|
||||
set( CPACK_DEBIAN_PACKAGE_DEPENDS "libwxgtk3.0-0v5, libfuse2, dmsetup, sudo" )
|
||||
set( CPACK_DEBIAN_PACKAGE_DEPENDS "libwxgtk3.0-0v5, libfuse2, dmsetup, sudo, libpcsclite1, pcscd" )
|
||||
endif ()
|
||||
|
||||
endif()
|
||||
@ -308,14 +308,14 @@ elseif ( ( PLATFORM STREQUAL "CentOS" ) OR ( PLATFORM STREQUAL "openSUSE" ) )
|
||||
if ( PLATFORM STREQUAL "CentOS" )
|
||||
|
||||
if ( DEFINED WITHGTK3 AND WITHGTK3 )
|
||||
set( CPACK_RPM_PACKAGE_REQUIRES "fuse, device-mapper, gtk3, sudo" )
|
||||
set( CPACK_RPM_PACKAGE_REQUIRES "fuse, device-mapper, gtk3, sudo, pcsc-lite" )
|
||||
else ()
|
||||
set( CPACK_RPM_PACKAGE_REQUIRES "fuse, device-mapper, gtk2, sudo" )
|
||||
set( CPACK_RPM_PACKAGE_REQUIRES "fuse, device-mapper, gtk2, sudo, pcsc-lite" )
|
||||
endif()
|
||||
|
||||
elseif ( PLATFORM STREQUAL "openSUSE" )
|
||||
|
||||
set( CPACK_RPM_PACKAGE_REQUIRES "fuse, device-mapper, gtk2, sudo" )
|
||||
set( CPACK_RPM_PACKAGE_REQUIRES "fuse, device-mapper, gtk2, sudo, pcsc-lite" )
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
@ -284,7 +284,7 @@ package: prepare
|
||||
@echo "VERSION=$(TC_VERSION)" >> $(INTERNAL_INSTALLER_NAME)
|
||||
@echo "PACKAGE_TYPE=tar" >> $(INTERNAL_INSTALLER_NAME)
|
||||
@echo "PACKAGE_NAME=$(PACKAGE_NAME)" >> $(INTERNAL_INSTALLER_NAME)
|
||||
@echo "PACKAGE_START=1111" >> $(INTERNAL_INSTALLER_NAME)
|
||||
@echo "PACKAGE_START=1112" >> $(INTERNAL_INSTALLER_NAME)
|
||||
@echo "INSTALLER_TYPE=$(INSTALLER_TYPE)" >> $(INTERNAL_INSTALLER_NAME)
|
||||
|
||||
@cat $(BASE_DIR)/Setup/Linux/veracrypt_install_template.sh >> $(INTERNAL_INSTALLER_NAME)
|
||||
@ -338,7 +338,7 @@ package: prepare
|
||||
@echo "VERSION=$(TC_VERSION)" >> $(INTERNAL_INSTALLER_NAME)
|
||||
@echo "PACKAGE_TYPE=tar" >> $(INTERNAL_INSTALLER_NAME)
|
||||
@echo "PACKAGE_NAME=$(PACKAGE_NAME)" >> $(INTERNAL_INSTALLER_NAME)
|
||||
@echo "PACKAGE_START=1107" >> $(INTERNAL_INSTALLER_NAME)
|
||||
@echo "PACKAGE_START=1108" >> $(INTERNAL_INSTALLER_NAME)
|
||||
@echo "INSTALLER_TYPE=$(INSTALLER_TYPE)" >> $(INTERNAL_INSTALLER_NAME)
|
||||
|
||||
@cat $(BASE_DIR)/Setup/FreeBSD/veracrypt_install_template.sh >> $(INTERNAL_INSTALLER_NAME)
|
||||
|
@ -1031,14 +1031,15 @@ fi
|
||||
|
||||
if [ "$PACKAGE_TYPE" = "tar" ]
|
||||
then
|
||||
if ! which fusermount >/dev/null 2>/dev/null || ! which dmsetup >/dev/null 2>/dev/null
|
||||
if ! which fusermount >/dev/null 2>/dev/null || ! which dmsetup >/dev/null 2>/dev/null || ! service pcscd status >/dev/null 2>/dev/null
|
||||
then
|
||||
show_message "$(cat <<_INFO
|
||||
Requirements for Running VeraCrypt:
|
||||
-----------------------------------
|
||||
|
||||
- FUSE library and tools
|
||||
- device mapper tools
|
||||
- device mapper tool
|
||||
- PC/SC Lite (optional)
|
||||
|
||||
_INFO
|
||||
)"
|
||||
|
@ -1035,7 +1035,7 @@ fi
|
||||
|
||||
if [ "$PACKAGE_TYPE" = "tar" ]
|
||||
then
|
||||
if ! which fusermount >/dev/null 2>/dev/null || ! which dmsetup >/dev/null 2>/dev/null
|
||||
if ! which fusermount >/dev/null 2>/dev/null || ! which dmsetup >/dev/null 2>/dev/null || ! service pcscd status >/dev/null 2>/dev/null
|
||||
then
|
||||
show_message "$(cat <<_INFO
|
||||
Requirements for Running VeraCrypt:
|
||||
@ -1043,6 +1043,7 @@ Requirements for Running VeraCrypt:
|
||||
|
||||
- FUSE library and tools
|
||||
- device mapper tools
|
||||
- PC/SC Lite (optional)
|
||||
|
||||
_INFO
|
||||
)"
|
||||
|
Loading…
Reference in New Issue
Block a user