From 5af9f126bade70a8156af826747e8b2d18f51d1b Mon Sep 17 00:00:00 2001 From: Otto Modinos Date: Wed, 22 May 2024 10:22:00 +0300 Subject: [PATCH] New package: uid_wrapper-1.3.0. --- .../uid_wrapper-fix-for-cmocka-1.1.6.patch | 31 +++++++++++++++++++ srcpkgs/uid_wrapper/template | 22 +++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 srcpkgs/uid_wrapper/patches/uid_wrapper-fix-for-cmocka-1.1.6.patch create mode 100644 srcpkgs/uid_wrapper/template diff --git a/srcpkgs/uid_wrapper/patches/uid_wrapper-fix-for-cmocka-1.1.6.patch b/srcpkgs/uid_wrapper/patches/uid_wrapper-fix-for-cmocka-1.1.6.patch new file mode 100644 index 00000000000..c99c3ad6bce --- /dev/null +++ b/srcpkgs/uid_wrapper/patches/uid_wrapper-fix-for-cmocka-1.1.6.patch @@ -0,0 +1,31 @@ +From 850f24c6366abda30bfd77734b90330b8809d306 Mon Sep 17 00:00:00 2001 +From: Andreas Schneider +Date: Fri, 17 Feb 2023 17:51:27 +0100 +Subject: [PATCH] cmake: Fix cmocka >= 1.1.6 find_package() in CONFIG mode +MIME-Version: 1.0 +Content-Type: text/plain; charset=utf8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Andreas Schneider +Reviewed-by: Pavel Filipenský +--- + tests/CMakeLists.txt | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt +index 635e86e..68e050e 100644 +--- a/tests/CMakeLists.txt ++++ b/tests/CMakeLists.txt +@@ -1,5 +1,9 @@ + project(tests C) + ++if (TARGET cmocka::cmocka) ++ set(CMOCKA_LIBRARY cmocka::cmocka) ++endif() ++ + add_library(uwrap_fake_socket_wrapper SHARED uwrap_fake_socket_wrapper.c) + target_compile_options(uwrap_fake_socket_wrapper + PRIVATE +-- +2.34.1 + diff --git a/srcpkgs/uid_wrapper/template b/srcpkgs/uid_wrapper/template new file mode 100644 index 00000000000..24a90e93767 --- /dev/null +++ b/srcpkgs/uid_wrapper/template @@ -0,0 +1,22 @@ +# Template file for 'uid_wrapper' +pkgname=uid_wrapper +version=1.3.0 +revision=1 +build_style=cmake +hostmakedepends="pkg-config" +short_desc="Testing tool to fake privilege separation" +maintainer="Otto Modinos " +license="BSD-3-Clause" +homepage="https://cwrap.org/uid_wrapper.html" +distfiles="https://download.samba.org/pub/cwrap/${pkgname}-${version}.tar.gz" +checksum=f7e7c1bde533530051931414724453e14e02adbb614824b6fe27cbb98654b762 + +if [ "$XBPS_CHECK_PKGS" ]; then + configure_args+=" -DUNIT_TESTING=ON" + makedepends+=" cmocka-devel" + checkdepends+=" cmocka" +fi + +post_install() { + vlicense LICENSE +}