[audit] new port (#39587)

Co-authored-by: WangWeiLin-MV <156736127+WangWeiLin-MV@users.noreply.github.com>
Co-authored-by: Kai Pastor <dg0yt@darc.de>
Co-authored-by: Timur Chernykh <t.chernykh@facct.ru>
This commit is contained in:
Timur Chernykh 2024-07-05 20:20:51 +03:00 committed by GitHub
parent 49ac2134b3
commit 5a9def90b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,43 @@
vcpkg_download_distfile(PATCH_FIX_MISSING_HEADERS_IN_AUDISP_FILTER
URLS https://github.com/linux-audit/audit-userspace/commit/f8e9bc5914d715cdacb2edc938ab339d5094d017.patch?full_index=1
SHA512 b9606c711befe99ce9540b9885e943733ab06faa55d32bf029b23e1984adf2e914d46bd95b81a2517380c6b9e714b3b3d2181b86586c97dc09a0418ae40bd33f
FILENAME 0000-fix-missing-header-in-audisp-filter.patch
)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO linux-audit/audit-userspace
SHA512 297664a55ab44b40c9280202c19612cfbfdacc209c4d226461ea5faa638e35617cb516e53d1f0bc3748cdd038d9524f3e5ebe11c8de4a5511ab4f12b7d06478c
REF "v${VERSION}"
HEAD_REF master
PATCHES
"${PATCH_FIX_MISSING_HEADERS_IN_AUDISP_FILTER}"
)
message(STATUS "${PORT} currently requires the following libraries from the system package manager:\n"
"\t- <autoconf>\n"
"\t- <automake>\n"
"\t- <libtool>\n\n"
"It can be installed with your package manager"
)
file(TOUCH "${SOURCE_PATH}/README")
vcpkg_configure_make(
SOURCE_PATH "${SOURCE_PATH}"
AUTOCONFIG
OPTIONS
--with-python3=no
--with-golang=no
--with-io_uring=no
--with-warn=no
--disable-zos-remote
)
vcpkg_install_make()
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")

8
ports/audit/vcpkg.json Normal file
View File

@ -0,0 +1,8 @@
{
"name": "audit",
"version": "4.0.1",
"description": "Library for working with audit subsystem",
"homepage": "https://github.com/linux-audit/audit-userspace",
"license": "GPL-2.0-or-later OR LGPL-2.1-or-later",
"supports": "linux"
}

9
versions/a-/audit.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "926ccd42caae517216220ee699e30c86abdf7ed9",
"version": "4.0.1",
"port-version": 0
}
]
}

View File

@ -344,6 +344,10 @@
"baseline": "1.1.1",
"port-version": 0
},
"audit": {
"baseline": "4.0.1",
"port-version": 0
},
"aurora": {
"baseline": "2017-06-21-c75699d2a8caa726260c29b6d7a0fd35f8f28933",
"port-version": 2