New package: resolv_wrapper-1.1.8
This commit is contained in:
parent
eed4966150
commit
a12ffd32d5
@ -0,0 +1,31 @@
|
||||
From f2e7f58025ecb4cf399494166abea01813b1d0f0 Mon Sep 17 00:00:00 2001
|
||||
From: Andreas Schneider <asn@samba.org>
|
||||
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 <asn@samba.org>
|
||||
Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
|
||||
---
|
||||
tests/CMakeLists.txt | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
|
||||
index 1262bed..7f2f4ee 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()
|
||||
+
|
||||
set(TORTURE_LIBRARY torture)
|
||||
|
||||
# A simple DNS server for testing
|
||||
--
|
||||
2.34.1
|
||||
|
23
srcpkgs/resolv_wrapper/template
Normal file
23
srcpkgs/resolv_wrapper/template
Normal file
@ -0,0 +1,23 @@
|
||||
# Template file for 'resolv_wrapper'
|
||||
pkgname=resolv_wrapper
|
||||
version=1.1.8
|
||||
revision=1
|
||||
archs="~*-musl" # missing res_ninit, res_nclose, etc
|
||||
build_style=cmake
|
||||
hostmakedepends="pkg-config"
|
||||
short_desc="Wrapper for DNS name resolving or DNS faking"
|
||||
maintainer="Otto Modinos <ottomodinos@gmail.com>"
|
||||
license="BSD-3-Clause"
|
||||
homepage="https://cwrap.org/resolv_wrapper.html"
|
||||
distfiles="https://download.samba.org/pub/cwrap/${pkgname}-${version}.tar.gz"
|
||||
checksum=fbc30f77da3e12ecd4ef66ccf5ab77e0b744930ccd89062404082f928a8ec2e0
|
||||
|
||||
if [ "$XBPS_CHECK_PKGS" ]; then
|
||||
configure_args+=" -DUNIT_TESTING=ON"
|
||||
makedepends+=" cmocka-devel socket_wrapper"
|
||||
checkdepends+=" cmocka"
|
||||
fi
|
||||
|
||||
post_install() {
|
||||
vlicense LICENSE
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user