Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions ports/pe-parse/CONTROL

This file was deleted.

27 changes: 11 additions & 16 deletions ports/pe-parse/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,27 +1,22 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO trailofbits/pe-parse
REF v1.2.0
SHA512 916ec515585ba1e83e2c6ae29667fd25bd4cac90c39e587ae6847dc9d503186e8853bd80f4e2a99177a3214f5c51eceff85fa610cadbc2bc1d3a79251e8ce942
REF v1.3.0
SHA512 b723e90821e0ac67b4d6b15e5a46cf13544f21380a4d2add013eedcaa309e1be2cff6789247397c6fb4a938e4a240a835cbe21c8221bd558a4fccf8e93ce1548
HEAD_REF master
)

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS -DBUILD_COMMAND_LINE_TOOLS=OFF
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_COMMAND_LINE_TOOLS=OFF
)

vcpkg_install_cmake()
vcpkg_cmake_install()

vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/pe-parse TARGET_PATH share/pe-parse)
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/pe-parse)

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
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/pe-parse"
RENAME copyright
)
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
17 changes: 17 additions & 0 deletions ports/pe-parse/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "pe-parse",
"version": "1.3.0",
"description": "pe-parse is a principled, lightweight C/C++ PE parser",
"homepage": "https://github.com/trailofbits/pe-parse",
"supports": "!uwp",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
6 changes: 0 additions & 6 deletions ports/uthenticode/CONTROL

This file was deleted.

13 changes: 13 additions & 0 deletions ports/uthenticode/fix-include-path-notfind.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/src/include/uthenticode.h b/src/include/uthenticode.h
index 8422cc3..b104ddb 100644
--- a/src/include/uthenticode.h
+++ b/src/include/uthenticode.h
@@ -4,7 +4,7 @@
#include <openssl/asn1t.h>
#include <openssl/crypto.h>
#include <openssl/x509.h>
-#include <parser-library/parse.h>
+#include <pe-parse/parse.h>

#include <cstdint>
#include <exception>
23 changes: 10 additions & 13 deletions ports/uthenticode/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,23 @@ vcpkg_fail_port_install(ON_TARGET "uwp")
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO trailofbits/uthenticode
REF v1.0.4
SHA512 82d5ff61071adefec886a140d253b733cb2318ccf34e831087973b05f7e274b207031e606303f65269a5ed1b45c3c599d79e217cf6229d60c8cc2396e842f32e
REF fb9b05b5273af748f5075b7e82ac8be446570574 #v1.0.4
SHA512 2e8ff1c0c40359102a999952f820d6c7fbd653bc084901b6d42ba95f3d50498219f6afddd837faa11fb23e11cfa6ac39b18bf1fa0491de6a2fdc37759bb78a30
HEAD_REF master
PATCHES
fix-include-path-notfind.patch
)

vcpkg_configure_cmake(
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
)

vcpkg_install_cmake()
vcpkg_cmake_install()

vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/uthenticode TARGET_PATH share/uthenticode)
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/uthenticode)

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
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
)
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
19 changes: 19 additions & 0 deletions ports/uthenticode/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "uthenticode",
"version": "1.0.6",
"description": "A cross-platform library for verifying Authenticode signatures",
"homepage": "https://github.com/trailofbits/uthenticode",
"supports": "!uwp",
"dependencies": [
"openssl",
"pe-parse",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4789,7 +4789,7 @@
"port-version": 0
},
"pe-parse": {
"baseline": "1.2.0",
"baseline": "1.3.0",
"port-version": 0
},
"pegtl": {
Expand Down Expand Up @@ -6461,7 +6461,7 @@
"port-version": 0
},
"uthenticode": {
"baseline": "1.0.4",
"baseline": "1.0.6",
"port-version": 0
},
"uvatlas": {
Expand Down
5 changes: 5 additions & 0 deletions versions/p-/pe-parse.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "1f09076d11d60965390e9aa470a3d711bfc0d95d",
"version": "1.3.0",
"port-version": 0
},
{
"git-tree": "b26d3371c165c5888f2aca0c7c63107fa2ea1fdc",
"version-string": "1.2.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/u-/uthenticode.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "2d5d0734b7c095b71ff86cfbc26f7651730b6028",
"version": "1.0.6",
"port-version": 0
},
{
"git-tree": "be0c3da6f7d93aa3a5252b03adc09ffa8105eaf8",
"version-string": "1.0.4",
Expand Down