Skip to content

Commit

Permalink
[libsmb2] update to version v6.2 and add krb5/gssapi features
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-doubez committed Dec 23, 2024
1 parent f06267d commit 9d6716e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
19 changes: 13 additions & 6 deletions ports/libsmb2/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO sahlberg/libsmb2
REF 99125c96750e192e2c50176548bf461e4a28f135
SHA512 30cdc9bbcdcd384868e5865706b41f683b977ece4056040a29bb3b81ffdf83788ba8a39426132810b8cbbb778ae7db8e5e1be0b7c0a82d8beed75040de708240
REF libsmb2-6.2
SHA512 db3675d5b6d9242a23b2b259fd3140143edcf5aa8e203b5a4781ce8279046f7f9044a506d1323e9aa6a5ff52eaed4db93dc7a03954af735971ba933bccba6a3e
HEAD_REF master
)

vcpkg_check_features(
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
gssapi ENABLE_GSSAPI
krb5 ENABLE_LIBKRB5
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
# TODO: Add a feature to enable gssapi/krb5 support
-DCMAKE_DISABLE_FIND_PACKAGE_GSSAPI=ON
${FEATURE_OPTIONS}
MAYBE_UNUSED_VARIABLES
ENABLE_GSSAPI
ENABLE_LIBKRB5
)

vcpkg_cmake_install()
Expand Down
12 changes: 10 additions & 2 deletions ports/libsmb2/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "libsmb2",
"version-date": "2023-08-11",
"version-date": "2024-12-16",
"description": "SMB2/3 Userspace Client",
"homepage": "https://github.com/sahlberg/libsmb2",
"license": "LGPL-2.1-or-later",
Expand All @@ -13,5 +13,13 @@
"name": "vcpkg-cmake-config",
"host": true
}
]
],
"features": {
"gssapi": {
"description": "Compile with GSSAPI"
},
"krb5": {
"description": "Compile with LibKRB5"
}
}
}

0 comments on commit 9d6716e

Please sign in to comment.