8 Star 0 Fork 20

src-openEuler/certmonger

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
certmonger.spec 4.77 KB
一键复制 编辑 原始数据 按行查看 历史
sqfu 提交于 2024-11-04 17:48 . update to 0.79.20
Name: certmonger
Version: 0.79.20
Release: 1
Summary: Certificate status monitor and PKI enrollment client
License: GPLv3+
URL: http://pagure.io/certmonger/
Source0: https://pagure.io/certmonger/archive/certmonger-%{version}/certmonger-%{version}.tar.gz
BuildRequires: autoconf automake gettext-devel gcc openldap-devel krb5-devel
BuildRequires: libidn2-devel dbus-devel nspr-devel nss-devel openssl-devel
BuildRequires: libuuid-devel libtalloc-devel libtevent-devel libcurl-devel
BuildRequires: libxml2-devel xmlrpc-c-devel systemd-units diffutils expect
BuildRequires: nss-tools openssl /usr/bin/dbus-launch /usr/bin/dos2unix
BuildRequires: /usr/bin/unix2dos /usr/bin/which python3-dbus popt-devel
BuildRequires: jansson jansson-devel
Requires: dbus
Requires(post): %{_bindir}/dbus-send systemd-units
Requires(preun): systemd-units dbus sed
Requires(postun): systemd-units
Conflicts: libtevent < 0.9.13
%description
Certmonger is a service which is primarily concerned with getting your
system enrolled with a certificate authority (CA) and keeping it enrolled.
%package help
Summary: Documentation for help using certmonger
%description help
This package provides docs for user of certmonger.
%prep
%autosetup -n certmonger-%{version} -p1
%build
%if "%toolchain" == "clang"
CFLAGS="$CFLAGS -Wno-error=int-conversion"
%endif
autoreconf -i -f
%configure \
--enable-systemd --enable-tmpfiles --with-homedir=/var/run/certmonger \
--with-tmpdir=/var/run/certmonger --enable-pie --enable-now
%make_build XMLRPC_LIBS="-lxmlrpc_client -lxmlrpc_util -lxmlrpc"
%install
%make_install
install -d $RPM_BUILD_ROOT/%{_localstatedir}/lib/certmonger/{cas,requests}
install -m755 -d $RPM_BUILD_ROOT/var/run/certmonger
%{find_lang} %{name}
%check
make check
%post
if test $1 -eq 1 ; then
%{_bindir}/dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig 2>&1 || :
fi
if test $1 -eq 1 ; then
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi
%triggerin -- certmonger < 0.58
if test $1 -gt 1 ; then
objpath=`dbus-send --system --reply-timeout=10000 --dest=org.openeulerhosted.certmonger \
--print-reply=o /org/openeulerhosted/certmonger org.openeulerhosted.certmonger.find_ca_by_nickname \
string:dogtag-ipa-renew-agent 2> /dev/null | sed -r 's,^ +,,g' || true`
if test -n "$objpath" ; then
dbus-send --system --dest=org.openeulerhosted.certmonger --print-reply /org/openeulerhosted/certmonger \
org.openeulerhosted.certmonger.remove_known_ca objpath:"$objpath" >/dev/null 2> /dev/null
fi
for cafile in %{_localstatedir}/lib/certmonger/cas/* ; do
if grep -q '^id=dogtag-ipa-renew-agent$' "$cafile" ; then
rm -f "$cafile"
fi
done
fi
%postun
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -ge 1 ] ; then
/bin/systemctl try-restart certmonger.service >/dev/null 2>&1 || :
fi
%preun
if test $1 -eq 0 ; then
/bin/systemctl --no-reload disable certmonger.service > /dev/null 2>&1 || :
/bin/systemctl stop certmonger.service > /dev/null 2>&1 || :
fi
%triggerun -- certmonger < 0.43
/sbin/chkconfig --del certmonger >/dev/null 2>&1 || :
/bin/systemctl try-restart certmonger.service >/dev/null 2>&1 || :
%files -f %{name}.lang
%doc README.md LICENSE STATUS doc/*.txt
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/*
%{_datadir}/dbus-1/services/*
%dir %{_sysconfdir}/certmonger
%config(noreplace) %{_sysconfdir}/certmonger/certmonger.conf
%dir /var/run/certmonger
%{_bindir}/*
%{_sbindir}/certmonger
%{_libexecdir}/%{name}
%{_localstatedir}/lib/certmonger
%attr(0644,root,root) %config(noreplace) %{_tmpfilesdir}/certmonger.conf
%{_unitdir}/*
%{_datadir}/dbus-1/system-services/*
%files help
%doc LICENSE doc/*.txt
%{_mandir}/man*/*
%changelog
* Mon Nov 04 2024 fu-shanqing<dev01203@linx-info.com> - 0.79.20-1
- update to 0.79.20
* Fri Apr 21 2023 jammyjellyfish <jammyjellyfish255@outlook.com> - 0.79.15-2
- Fix clang build error
* Mon Feb 06 2023 Ge Wang<wangge20@h-partners.com> -0.79.15-1
- Update to 0.79.15 due to openssl update to version 3.0.7
* Sat Sep 11 2021 wutao <wutao61@huawei.com> - 0.79.11-4
- delete help package provides certmonger to solve conflicts
* Mon May 31 2021 baizhonggui <baizhonggui@huawei.com> - 0.79.11-3
- %prep no longer patch with git
* Tue Oct 27 2020 leiju <leiju4@huawei.com> - 0.79.11-2
- Modify BuildRequires from python2-dbus to python3-dbus
* Thu Aug 06 2020 lingsheng <lingsheng@huawei.com> - 0.79.11-1
- Update to 0.79.11
* Thu May 14 2020 Jeffery.Gao <gaojianxing@huawei.com> - 0.79.8-3
- Package init
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/certmonger.git
git@gitee.com:src-openeuler/certmonger.git
src-openeuler
certmonger
certmonger
master

搜索帮助