2023-10-17 01:46:13 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2024-05-08 11:33:09 +08: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"
|
|
|
|
SHA512 647c307dc451517da9d089495ab959b4a6fbbe41c79f4e1e9bb663569dad630ead0c2e413dfb393319e3ea14dc9848c81b392107fe3382ce1813d278c3394a7f
|
2023-10-17 01:46:13 +08: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-21 00:56:16 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/configure" DESTINATION "${SOURCE_PATH}")
|
|
|
|
|
|
|
|
if(VCPKG_CROSSCOMPILING)
|
2023-09-24 13:06:01 +08: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-21 00:56:16 +08:00
|
|
|
|
|
|
|
vcpkg_configure_make(
|
2023-09-24 13:06:01 +08: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-21 00:56:16 +08:00
|
|
|
)
|
2023-09-24 13:06:01 +08: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-21 00:56:16 +08:00
|
|
|
)
|
2023-09-24 13:06:01 +08: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-21 00:56:16 +08:00
|
|
|
|
2023-09-24 13:06:01 +08: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-21 00:56:16 +08:00
|
|
|
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/License")
|