Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fineftp] add new port fineftp-v1.3.4 #31435

Merged
merged 14 commits into from
May 16, 2023
13 changes: 13 additions & 0 deletions ports/fineftp/asio.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/fineftp-server/CMakeLists.txt b/fineftp-server/CMakeLists.txt
index e4e3152..9e609d9 100644
--- a/fineftp-server/CMakeLists.txt
+++ b/fineftp-server/CMakeLists.txt
@@ -10,7 +10,7 @@ set(CMAKE_CXX_VISIBILITY_PRESET hidden)
set(CMAKE_VISIBILITY_INLINES_HIDDEN 1)

find_package(Threads REQUIRED)
-find_package(asio REQUIRED)
+find_package(asio CONFIG REQUIRED)

# Include GenerateExportHeader that will create export macros for us
include(GenerateExportHeader)
26 changes: 26 additions & 0 deletions ports/fineftp/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#Get release from GitHub
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO eclipse-ecal/fineftp-server
REF "v${VERSION}"
SHA512 dcced2cf743434a55314ad661ca729efc1c4883ae0c0883335f43a12ed47568ebcb50d233dab8a1410bb526587b24f1cf19938241bf649cfe54b11ffe264124b
HEAD_REF master
PATCHES
asio.patch
)

# Configure
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)

vcpkg_cmake_install()

vcpkg_cmake_config_fixup(
PACKAGE_NAME fineftp
CONFIG_PATH lib/cmake/fineftp
)

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
20 changes: 20 additions & 0 deletions ports/fineftp/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"name": "fineftp",
"version": "1.3.4",
"description": "FineFTP is a minimal FTP server library for Windows and Unix flavors.",
"homepage": "https://github.com/eclipse-ecal/fineftp-server",
"license": "MIT",
"supports": "!uwp & !android",
"dependencies": [
"asio",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2480,6 +2480,10 @@
"baseline": "2019-12-19",
"port-version": 2
},
"fineftp": {
"baseline": "1.3.4",
"port-version": 0
},
"fixed-string": {
"baseline": "0.1.1",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/f-/fineftp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "379dd5cfe0c3cad96197e14aa9782daf51daca3d",
"version": "1.3.4",
"port-version": 0
}
]
}