!4 解决opendmarc 服务启动失败问题
From: @licihua Reviewed-by: @zhujianwei001 Signed-off-by: @zhujianwei001
This commit is contained in:
commit
405434b2f3
@ -4,7 +4,7 @@
|
|||||||
Summary: A Domain-based Message Authentication, Reporting & Conformance (DMARC) milter and library
|
Summary: A Domain-based Message Authentication, Reporting & Conformance (DMARC) milter and library
|
||||||
Name: opendmarc
|
Name: opendmarc
|
||||||
Version: 1.4.2
|
Version: 1.4.2
|
||||||
Release: 1
|
Release: 2
|
||||||
License: BSD and Sendmail
|
License: BSD and Sendmail
|
||||||
URL: http://www.trusteddomain.org/%{name}.html
|
URL: http://www.trusteddomain.org/%{name}.html
|
||||||
Source0: https://github.com/trusteddomainproject/OpenDMARC/archive/refs/tags/rel-opendmarc-1-4-2.tar.gz
|
Source0: https://github.com/trusteddomainproject/OpenDMARC/archive/refs/tags/rel-opendmarc-1-4-2.tar.gz
|
||||||
@ -13,7 +13,7 @@ Patch01: opendmarc-1.4.0-ticket159-179.patch
|
|||||||
|
|
||||||
Requires: lib%{name}%{?_isa} = %{version}-%{release}
|
Requires: lib%{name}%{?_isa} = %{version}-%{release}
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: openssl-devel, libtool, pkgconfig, libbsd, libbsd-devel
|
BuildRequires: openssl-devel, libtool, pkgconfig, libbsd, libbsd-devel libspf2-devel
|
||||||
Requires(pre): shadow-utils
|
Requires(pre): shadow-utils
|
||||||
BuildRequires: libmilter
|
BuildRequires: libmilter
|
||||||
BuildRequires: libmilter-devel
|
BuildRequires: libmilter-devel
|
||||||
@ -58,7 +58,7 @@ required for developing applications against libopendmarc.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -v -i
|
autoreconf -v -i
|
||||||
%configure --with-sql-backend --with-spf -with-spf2-include=%{_prefix}/include/spf2
|
%configure --with-sql-backend --with-spf -with-spf2-include=%{_prefix}/include/spf2 --with-spf2-lib=%{_libdir}/libspf2.so
|
||||||
make DESTDIR=%{buildroot} %{?_smp_mflags}
|
make DESTDIR=%{buildroot} %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -81,9 +81,11 @@ After=network.target nss-lookup.target syslog.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
|
RuntimeDirectory=opendmarc
|
||||||
|
RuntimeDirectoryMode=0750
|
||||||
EnvironmentFile=-/etc/sysconfig/%{name}
|
EnvironmentFile=-/etc/sysconfig/%{name}
|
||||||
ExecStart=/usr/sbin/%{name} -f $OPTIONS
|
ExecStart=/usr/sbin/%{name} -f \$OPTIONS
|
||||||
ExecReload=/bin/kill -USR1 $MAINPID
|
ExecReload=/bin/kill -USR1 \$MAINPID
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
User=%{name}
|
User=%{name}
|
||||||
Group=%{name}
|
Group=%{name}
|
||||||
@ -110,6 +112,10 @@ sed -i 's|^# UMask 077|UMask 007|' %{buildroot}%{_sysconfdir}/%{name}.conf
|
|||||||
sed -i 's|^# UserID %{name}|UserID %{name}:mail|' %{buildroot}%{_sysconfdir}/%{name}.conf
|
sed -i 's|^# UserID %{name}|UserID %{name}:mail|' %{buildroot}%{_sysconfdir}/%{name}.conf
|
||||||
sed -i 's|/usr/local||' %{buildroot}%{_sysconfdir}/%{name}.conf
|
sed -i 's|/usr/local||' %{buildroot}%{_sysconfdir}/%{name}.conf
|
||||||
|
|
||||||
|
install -p -d %{buildroot}%{_sysconfdir}/tmpfiles.d
|
||||||
|
cat > %{buildroot}%{_sysconfdir}/tmpfiles.d/%{name}.conf <<EOF
|
||||||
|
D %{_rundir}/%{name} 0750 %{name} %{name} -
|
||||||
|
EOF
|
||||||
|
|
||||||
rm -rf %{buildroot}%{_prefix}/share/doc/%{name}
|
rm -rf %{buildroot}%{_prefix}/share/doc/%{name}
|
||||||
rm %{buildroot}%{_libdir}/*.{la,a}
|
rm %{buildroot}%{_libdir}/*.{la,a}
|
||||||
@ -151,6 +157,7 @@ exit 0
|
|||||||
%license LICENSE LICENSE.Sendmail
|
%license LICENSE LICENSE.Sendmail
|
||||||
%doc README RELEASE_NOTES
|
%doc README RELEASE_NOTES
|
||||||
%config(noreplace) %{_sysconfdir}/%{name}.conf
|
%config(noreplace) %{_sysconfdir}/%{name}.conf
|
||||||
|
%config(noreplace) %{_sysconfdir}/tmpfiles.d/%{name}.conf
|
||||||
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
|
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
|
||||||
%{_datadir}/%{name}
|
%{_datadir}/%{name}
|
||||||
%{_sbindir}/*
|
%{_sbindir}/*
|
||||||
@ -169,6 +176,9 @@ exit 0
|
|||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 1 2023 licihua <licihua@huawei.com> - 1.4.2-2
|
||||||
|
- DESC:https://gitee.com/src-openeuler/opendmarc/issues/I6IQJM
|
||||||
|
|
||||||
* Tue Oct 18 2022 openEuler Application <dev@openeuler.org> - 1.4.2-1
|
* Tue Oct 18 2022 openEuler Application <dev@openeuler.org> - 1.4.2-1
|
||||||
- DESC:Package init
|
- DESC:Package init
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user