Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
26a200bf41
!6 Fix compilation failure due to cmocka update to 1.1.7
From: @starlet-dx 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-06-21 13:44:58 +00:00
starlet-dx
c43c1e8717 Fix compilation failure due to cmocka update to 1.1.7 2023-06-21 16:39:17 +08:00
openeuler-ci-bot
4c6cdcf997
!5 Upgrade to 1.3.0
From: @li-long315 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-04-21 08:36:57 +00:00
li-long315
daac184e96 Upgrade to 1.3.0 2023-03-09 16:23:13 +08:00
openeuler-ci-bot
01f71107a9
!4 Update to 1.2.9
From: @zhangfan4ky 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
2022-09-21 02:39:41 +00:00
zhangfan
dbc77af227 update to 1.2.9 2022-07-14 17:05:51 +08:00
openeuler-ci-bot
6657850793 !3 Completing build dependencies to fix gcc compiler missing error
From: @hht8
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2021-06-07 20:25:09 +08:00
hht8
44996b3ae1 Completing build dependencies to fix gcc compiler missing error 2021-06-07 10:12:04 +08:00
openeuler-ci-bot
ea8d840850 !2 add yaml file
Merge pull request !2 from sigui/master
2020-05-19 15:33:47 +08:00
si-gui
b16b383122 add yaml file 2020-05-12 17:57:51 +08:00
7 changed files with 75 additions and 4 deletions

Binary file not shown.

BIN
uid_wrapper-1.3.0.tar.gz Normal file

Binary file not shown.

View File

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEjf9T4Y8qvI2PPJIjfuD8TcwBTj0FAmPGqIYACgkQfuD8TcwB
Tj1n2xAAugnfwNIyCHmy/rcb/c6y5IYCFOgdtOdh6mGJhiEvpoa46Zovt6L621DG
laCnfaRiutocHb9u2S+xLddNG8l1ZnUB5mp3QYhey0tNtcHZiU+QV6OkesLsrm6l
98qBgZqoxaatR28SbXus5ypH3bCZIgturj8nme44Prck+V/vQuOAggGok02GwvuG
7CyR9cYA9vg4RrL60ZDXhMB6jWCVnbgHHMjxp5iyeyTMphPKMzCcWDNC9O93RQFJ
pe5AAwSIH8xmOZSb1Z+uVu3J0WnjubcK8PcoEIW/303d4XRvY+w1T+z1Qu+RxXCH
tRTg2+ysRnWtxcKALzbHmbTaggJpsFZyRuu8Rf7E4H+6cCSvQv8qYiIY4wqcebBE
+Xxytb9BYUY24n4HwkpL/3OScNxV5H4S2o2lHd7QT190IW26CaOJx1WGm90EGQKC
LUh8lPNJqETEIu5Dke3PiUoZJ0x7zd235NbmM3rmJ0B2bhtL/L3yP1H2zslMuus3
5D3XU0IkUykd6wtgO1He+v1JRZl+mFzkeGPakS9IoIj4E4QVJ3jQAe9UeHL4h3Ac
JG5Yl8T6BTyL72xJUjS0C1DOPSj13pZiUD4FTqHr7mUi9xT6Fmg+IK4xfIYMaqWh
3Pf9q+SyHmaml58rxi5CFYvfkhAIa1Frr/VUHg4izuuA6Gc1IgI=
=SrQO
-----END PGP SIGNATURE-----

View File

@ -0,0 +1,31 @@
From 850f24c6366abda30bfd77734b90330b8809d306 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=UTF-8
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 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.39.2

BIN
uid_wrapper.keyring Normal file

Binary file not shown.

View File

@ -1,12 +1,16 @@
Name: uid_wrapper
Version: 1.2.4
Release: 4
Version: 1.3.0
Release: 2
Summary: A wrapper for privilege separation
License: GPLv3+
URL: http://cwrap.org/
Source0: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz
Source1: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz.asc
Source2: uid_wrapper.keyring
BuildRequires: cmake libcmocka-devel
Patch0: uid_wrapper-fix-cmocka-1.1.6+-support.patch
BuildRequires: cmake libcmocka-devel >= 1.1.0 gcc gnupg2 pkgconfig
%description
Some projects, such as a file server, need privilege separation to be able to switch
@ -29,6 +33,7 @@ Summary: Help package for %{name}
This package contains some man help files for %{name}.
%prep
gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
%autosetup -n %{name}-%{version} -p1
%build
@ -41,6 +46,7 @@ cd obj
cd obj
%make_install
%post
/sbin/ldconfig
@ -52,14 +58,28 @@ cd obj
make test || find Testing -name "*.log" | xargs cat
%files
%doc AUTHORS README ChangeLog COPYING
%doc AUTHORS README.md CHANGELOG
%{_libdir}/libuid_wrapper.so*
%dir %{_libdir}/cmake
%{_libdir}/cmake/uid_wrapper/*
%dir %{_libdir}/pkgconfig
%{_libdir}/pkgconfig/uid_wrapper.pc
%files help
%{_mandir}/man1/uid_wrapper.1*
%changelog
* Wed Jun 21 2023 yaoxin <yao_xin001@hoperun.com> - 1.3.0-2
- Fix compilation failure due to cmocka update to 1.1.7
* Tue Feb 14 2023 lilong <lilong@kylinos.cn> - 1.3.0-1
- Upgrade to 1.3.0
* Wed Jul 20 2022 zhangfan <zhangfan4@kylinos.cn> - 1.2.9-1
- Update to 1.2.9
* Mon May 31 2021 huanghaitao <huanghaitao8@huawei.com> - 1.2.4-5
- Completing build dependencies to fix gcc compiler missing error
* Wed Nov 20 2019 lingsheng <lingsheng@huawei.com> - 1.2.4-4
- Package init

4
uid_wrapper.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: git
src_repo: git://git.samba.org/uid_wrapper.git
tag_prefix: ^uid_wrapper-
seperator: .