2023-10-16 10:46:13 -07:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2024-05-08 05:33:09 +02:00
|
|
|
URLS "https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-${VERSION}.tar.xz"
|
|
|
|
"https://www.mirrorservice.org/sites/ftp.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-${VERSION}.tar.xz"
|
|
|
|
FILENAME "libcap-${VERSION}.tar.xz"
|
2024-11-01 08:59:53 +01:00
|
|
|
SHA512 59bb6781d96776595ad3df890f4e5188380634eabbb6128f3a5307946b01cf3bd19dee8a29d3e501de1d9e1c6ed0092c4cd5adc91da227a1260c1f4356cc0bf3
|
2023-10-16 10:46:13 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_extract_source_archive(SOURCE_PATH
|
|
|
|
ARCHIVE "${ARCHIVE}"
|
[libsystemd] add new port (#31150)
* add libsystemd, libcap, libxcrypt
* baseline libsystemd, libcap, libxcrypt
* versions tree libsystemd, libcap, libxcrypt
* licenses for libsystemd, libcap, libxcrypt in vcpkg.json
* update tree for libsystemd, libcap, libxcrypt
* allow restricted header libxcrypt
* tree allow restricted header libxcrypt
* remove message Warning
* use targets exist during configure, instead of configure_file variable to search for zstd
* update git-tree
* add quotes to full paths and remove messages in portfiles
* update git-tree
* remove extra spaces
* update git-tree
* remove extra line
* update git tree
* do configure hack differently and remove cross compile patch and override compiler during build_make
* update git tree
* try either gcc or clang for libcap and specify log file root for each build command
* update git-tree
* libcap use host dependency of self
* libcap update git tree
* libsystemd is LGPL2.1
* update libsystemd git-tree
* change from find_package to find_dependency in unofficial cmake export
of libsystemd
* update libsystemd git-tree
* update libxcrypt
* update git tree libxcrypt
* patch pkgconfig file of libsystemd
* update libsystemd git-tree
* update libsystemd to 254
* update git-tree libsystemd
* * Copy of cap_names.h checked in for cross compilation
* Decouple cap_names.h from libcap.* make targets
* Use vcpkg_cmake_get_vars instead of ENV{CC} etc.
* Remove unnecessary self dependency of libcap
* Update libcap to 1.2.69
* Update git-tree
* cleanup old versions from version jsons
2023-09-20 16:56:16 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/configure" DESTINATION "${SOURCE_PATH}")
|
|
|
|
|
|
|
|
if(VCPKG_CROSSCOMPILING)
|
2023-09-24 07:06:01 +02:00
|
|
|
file(TOUCH "${SOURCE_PATH}/libcap/_makenames")
|
|
|
|
file(COPY "${CURRENT_HOST_INSTALLED_DIR}/include/sys/libcap-private/cap_names.list.h" DESTINATION "${SOURCE_PATH}/libcap/")
|
|
|
|
file(COPY "${CURRENT_HOST_INSTALLED_DIR}/include/sys/libcap-private/cap_names.h" DESTINATION "${SOURCE_PATH}/libcap/")
|
|
|
|
file(TOUCH "${SOURCE_PATH}/libcap/cap_names.h")
|
|
|
|
endif()
|
[libsystemd] add new port (#31150)
* add libsystemd, libcap, libxcrypt
* baseline libsystemd, libcap, libxcrypt
* versions tree libsystemd, libcap, libxcrypt
* licenses for libsystemd, libcap, libxcrypt in vcpkg.json
* update tree for libsystemd, libcap, libxcrypt
* allow restricted header libxcrypt
* tree allow restricted header libxcrypt
* remove message Warning
* use targets exist during configure, instead of configure_file variable to search for zstd
* update git-tree
* add quotes to full paths and remove messages in portfiles
* update git-tree
* remove extra spaces
* update git-tree
* remove extra line
* update git tree
* do configure hack differently and remove cross compile patch and override compiler during build_make
* update git tree
* try either gcc or clang for libcap and specify log file root for each build command
* update git-tree
* libcap use host dependency of self
* libcap update git tree
* libsystemd is LGPL2.1
* update libsystemd git-tree
* change from find_package to find_dependency in unofficial cmake export
of libsystemd
* update libsystemd git-tree
* update libxcrypt
* update git tree libxcrypt
* patch pkgconfig file of libsystemd
* update libsystemd git-tree
* update libsystemd to 254
* update git-tree libsystemd
* * Copy of cap_names.h checked in for cross compilation
* Decouple cap_names.h from libcap.* make targets
* Use vcpkg_cmake_get_vars instead of ENV{CC} etc.
* Remove unnecessary self dependency of libcap
* Update libcap to 1.2.69
* Update git-tree
* cleanup old versions from version jsons
2023-09-20 16:56:16 +00:00
|
|
|
|
2024-11-01 08:59:53 +01:00
|
|
|
block(SCOPE_FOR VARIABLES)
|
|
|
|
set(VCPKG_CMAKE_CONFIGURE_OPTIONS "-DVCPKG_VARS_TO_CHECK=CMAKE_OBJCOPY")
|
|
|
|
vcpkg_cmake_get_vars(cmake_vars_file)
|
|
|
|
include("${cmake_vars_file}")
|
|
|
|
set(ENV{OBJCOPY} "${VCPKG_DETECTED_CMAKE_OBJCOPY}")
|
|
|
|
endblock()
|
|
|
|
|
[libsystemd] add new port (#31150)
* add libsystemd, libcap, libxcrypt
* baseline libsystemd, libcap, libxcrypt
* versions tree libsystemd, libcap, libxcrypt
* licenses for libsystemd, libcap, libxcrypt in vcpkg.json
* update tree for libsystemd, libcap, libxcrypt
* allow restricted header libxcrypt
* tree allow restricted header libxcrypt
* remove message Warning
* use targets exist during configure, instead of configure_file variable to search for zstd
* update git-tree
* add quotes to full paths and remove messages in portfiles
* update git-tree
* remove extra spaces
* update git-tree
* remove extra line
* update git tree
* do configure hack differently and remove cross compile patch and override compiler during build_make
* update git tree
* try either gcc or clang for libcap and specify log file root for each build command
* update git-tree
* libcap use host dependency of self
* libcap update git tree
* libsystemd is LGPL2.1
* update libsystemd git-tree
* change from find_package to find_dependency in unofficial cmake export
of libsystemd
* update libsystemd git-tree
* update libxcrypt
* update git tree libxcrypt
* patch pkgconfig file of libsystemd
* update libsystemd git-tree
* update libsystemd to 254
* update git-tree libsystemd
* * Copy of cap_names.h checked in for cross compilation
* Decouple cap_names.h from libcap.* make targets
* Use vcpkg_cmake_get_vars instead of ENV{CC} etc.
* Remove unnecessary self dependency of libcap
* Update libcap to 1.2.69
* Update git-tree
* cleanup old versions from version jsons
2023-09-20 16:56:16 +00:00
|
|
|
vcpkg_configure_make(
|
2023-09-24 07:06:01 +02:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
COPY_SOURCE
|
|
|
|
DETERMINE_BUILD_TRIPLET
|
[libsystemd] add new port (#31150)
* add libsystemd, libcap, libxcrypt
* baseline libsystemd, libcap, libxcrypt
* versions tree libsystemd, libcap, libxcrypt
* licenses for libsystemd, libcap, libxcrypt in vcpkg.json
* update tree for libsystemd, libcap, libxcrypt
* allow restricted header libxcrypt
* tree allow restricted header libxcrypt
* remove message Warning
* use targets exist during configure, instead of configure_file variable to search for zstd
* update git-tree
* add quotes to full paths and remove messages in portfiles
* update git-tree
* remove extra spaces
* update git-tree
* remove extra line
* update git tree
* do configure hack differently and remove cross compile patch and override compiler during build_make
* update git tree
* try either gcc or clang for libcap and specify log file root for each build command
* update git-tree
* libcap use host dependency of self
* libcap update git tree
* libsystemd is LGPL2.1
* update libsystemd git-tree
* change from find_package to find_dependency in unofficial cmake export
of libsystemd
* update libsystemd git-tree
* update libxcrypt
* update git tree libxcrypt
* patch pkgconfig file of libsystemd
* update libsystemd git-tree
* update libsystemd to 254
* update git-tree libsystemd
* * Copy of cap_names.h checked in for cross compilation
* Decouple cap_names.h from libcap.* make targets
* Use vcpkg_cmake_get_vars instead of ENV{CC} etc.
* Remove unnecessary self dependency of libcap
* Update libcap to 1.2.69
* Update git-tree
* cleanup old versions from version jsons
2023-09-20 16:56:16 +00:00
|
|
|
)
|
2023-09-24 07:06:01 +02:00
|
|
|
vcpkg_install_make(
|
|
|
|
MAKEFILE "Makefile.vcpkg"
|
[libsystemd] add new port (#31150)
* add libsystemd, libcap, libxcrypt
* baseline libsystemd, libcap, libxcrypt
* versions tree libsystemd, libcap, libxcrypt
* licenses for libsystemd, libcap, libxcrypt in vcpkg.json
* update tree for libsystemd, libcap, libxcrypt
* allow restricted header libxcrypt
* tree allow restricted header libxcrypt
* remove message Warning
* use targets exist during configure, instead of configure_file variable to search for zstd
* update git-tree
* add quotes to full paths and remove messages in portfiles
* update git-tree
* remove extra spaces
* update git-tree
* remove extra line
* update git tree
* do configure hack differently and remove cross compile patch and override compiler during build_make
* update git tree
* try either gcc or clang for libcap and specify log file root for each build command
* update git-tree
* libcap use host dependency of self
* libcap update git tree
* libsystemd is LGPL2.1
* update libsystemd git-tree
* change from find_package to find_dependency in unofficial cmake export
of libsystemd
* update libsystemd git-tree
* update libxcrypt
* update git tree libxcrypt
* patch pkgconfig file of libsystemd
* update libsystemd git-tree
* update libsystemd to 254
* update git-tree libsystemd
* * Copy of cap_names.h checked in for cross compilation
* Decouple cap_names.h from libcap.* make targets
* Use vcpkg_cmake_get_vars instead of ENV{CC} etc.
* Remove unnecessary self dependency of libcap
* Update libcap to 1.2.69
* Update git-tree
* cleanup old versions from version jsons
2023-09-20 16:56:16 +00:00
|
|
|
)
|
2023-09-24 07:06:01 +02:00
|
|
|
vcpkg_fixup_pkgconfig()
|
[libsystemd] add new port (#31150)
* add libsystemd, libcap, libxcrypt
* baseline libsystemd, libcap, libxcrypt
* versions tree libsystemd, libcap, libxcrypt
* licenses for libsystemd, libcap, libxcrypt in vcpkg.json
* update tree for libsystemd, libcap, libxcrypt
* allow restricted header libxcrypt
* tree allow restricted header libxcrypt
* remove message Warning
* use targets exist during configure, instead of configure_file variable to search for zstd
* update git-tree
* add quotes to full paths and remove messages in portfiles
* update git-tree
* remove extra spaces
* update git-tree
* remove extra line
* update git tree
* do configure hack differently and remove cross compile patch and override compiler during build_make
* update git tree
* try either gcc or clang for libcap and specify log file root for each build command
* update git-tree
* libcap use host dependency of self
* libcap update git tree
* libsystemd is LGPL2.1
* update libsystemd git-tree
* change from find_package to find_dependency in unofficial cmake export
of libsystemd
* update libsystemd git-tree
* update libxcrypt
* update git tree libxcrypt
* patch pkgconfig file of libsystemd
* update libsystemd git-tree
* update libsystemd to 254
* update git-tree libsystemd
* * Copy of cap_names.h checked in for cross compilation
* Decouple cap_names.h from libcap.* make targets
* Use vcpkg_cmake_get_vars instead of ENV{CC} etc.
* Remove unnecessary self dependency of libcap
* Update libcap to 1.2.69
* Update git-tree
* cleanup old versions from version jsons
2023-09-20 16:56:16 +00:00
|
|
|
|
2023-09-24 07:06:01 +02:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
[libsystemd] add new port (#31150)
* add libsystemd, libcap, libxcrypt
* baseline libsystemd, libcap, libxcrypt
* versions tree libsystemd, libcap, libxcrypt
* licenses for libsystemd, libcap, libxcrypt in vcpkg.json
* update tree for libsystemd, libcap, libxcrypt
* allow restricted header libxcrypt
* tree allow restricted header libxcrypt
* remove message Warning
* use targets exist during configure, instead of configure_file variable to search for zstd
* update git-tree
* add quotes to full paths and remove messages in portfiles
* update git-tree
* remove extra spaces
* update git-tree
* remove extra line
* update git tree
* do configure hack differently and remove cross compile patch and override compiler during build_make
* update git tree
* try either gcc or clang for libcap and specify log file root for each build command
* update git-tree
* libcap use host dependency of self
* libcap update git tree
* libsystemd is LGPL2.1
* update libsystemd git-tree
* change from find_package to find_dependency in unofficial cmake export
of libsystemd
* update libsystemd git-tree
* update libxcrypt
* update git tree libxcrypt
* patch pkgconfig file of libsystemd
* update libsystemd git-tree
* update libsystemd to 254
* update git-tree libsystemd
* * Copy of cap_names.h checked in for cross compilation
* Decouple cap_names.h from libcap.* make targets
* Use vcpkg_cmake_get_vars instead of ENV{CC} etc.
* Remove unnecessary self dependency of libcap
* Update libcap to 1.2.69
* Update git-tree
* cleanup old versions from version jsons
2023-09-20 16:56:16 +00:00
|
|
|
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/License")
|