aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Woodruff <william@trailofbits.com>2020-05-08 17:35:16 -0400
committerGitHub <noreply@github.com>2020-05-08 14:35:16 -0700
commita1c887936f556e0128e1c3e3f5e5b9a875b6fc63 (patch)
tree7a4c3d81753bfa3d40c6ec23df6616f3ef1acb59
parent1ad4220e5b2f3e0f4af1a63f7304c7df14754ab1 (diff)
downloadvcpkg-a1c887936f556e0128e1c3e3f5e5b9a875b6fc63.tar.gz
vcpkg-a1c887936f556e0128e1c3e3f5e5b9a875b6fc63.zip
[uthenticode] Add new port (#11199)
* [uthenticode] Add new port * ports/uthenticode: Add openssl as a dependency * ports/uthenticode: 1.0.1 * ports/uthenticode: 1.0.2 * ports/uthenticode: Drop quotes * treewide: Mark uthenticode as failing on UWP * ports/uthenticode: Use ${PORT}
-rw-r--r--ports/uthenticode/CONTROL6
-rw-r--r--ports/uthenticode/portfile.cmake28
-rw-r--r--scripts/ci.baseline.txt2
3 files changed, 36 insertions, 0 deletions
diff --git a/ports/uthenticode/CONTROL b/ports/uthenticode/CONTROL
new file mode 100644
index 000000000..73b706cc6
--- /dev/null
+++ b/ports/uthenticode/CONTROL
@@ -0,0 +1,6 @@
+Source: uthenticode
+Version: 1.0.2
+Description: A cross-platform library for verifying Authenticode signatures
+Homepage: https://github.com/trailofbits/uthenticode
+Supports: !uwp
+Build-Depends: pe-parse, openssl
diff --git a/ports/uthenticode/portfile.cmake b/ports/uthenticode/portfile.cmake
new file mode 100644
index 000000000..762cb913f
--- /dev/null
+++ b/ports/uthenticode/portfile.cmake
@@ -0,0 +1,28 @@
+vcpkg_fail_port_install(ON_TARGET "uwp")
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO trailofbits/uthenticode
+ REF v1.0.2
+ SHA512 0e92be1a1b918c03074a4c083c4bffeb318f348c76ba34c3244c2594f244f887819040e91b2e7d8bb5ac573007c7b3a2a72d4f71abeee0e252d7bfe60c68cb11
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/uthenticode TARGET_PATH share/uthenticode)
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
+
+file(
+ INSTALL
+ ${SOURCE_PATH}/LICENSE
+ DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}
+ RENAME copyright
+)
diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt
index fb2c31fba..192325a80 100644
--- a/scripts/ci.baseline.txt
+++ b/scripts/ci.baseline.txt
@@ -1868,6 +1868,8 @@ usd:x64-linux=ignore
usd:x86-windows=fail
usrsctp:arm-uwp=fail
usrsctp:x64-uwp=fail
+uthenticode:arm-uwp=fail
+uthenticode:x64-uwp=fail
uvatlas:arm64-windows=fail
uvatlas:arm-uwp=fail
uvatlas:x64-linux=fail