fix opendmarc service start failed
This commit is contained in:
parent
4ac94a6253
commit
d2411b8dc1
@ -4,7 +4,7 @@
|
||||
Summary: A Domain-based Message Authentication, Reporting & Conformance (DMARC) milter and library
|
||||
Name: opendmarc
|
||||
Version: 1.4.2
|
||||
Release: 1
|
||||
Release: 2
|
||||
License: BSD and Sendmail
|
||||
URL: http://www.trusteddomain.org/%{name}.html
|
||||
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}
|
||||
BuildRequires: make
|
||||
BuildRequires: openssl-devel, libtool, pkgconfig, libbsd, libbsd-devel
|
||||
BuildRequires: openssl-devel, libtool, pkgconfig, libbsd, libbsd-devel libspf2-devel
|
||||
Requires(pre): shadow-utils
|
||||
BuildRequires: libmilter
|
||||
BuildRequires: libmilter-devel
|
||||
@ -58,7 +58,7 @@ required for developing applications against libopendmarc.
|
||||
|
||||
%build
|
||||
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}
|
||||
|
||||
%install
|
||||
@ -81,9 +81,11 @@ After=network.target nss-lookup.target syslog.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
RuntimeDirectory=opendmarc
|
||||
RuntimeDirectoryMode=0750
|
||||
EnvironmentFile=-/etc/sysconfig/%{name}
|
||||
ExecStart=/usr/sbin/%{name} -f $OPTIONS
|
||||
ExecReload=/bin/kill -USR1 $MAINPID
|
||||
ExecStart=/usr/sbin/%{name} -f \$OPTIONS
|
||||
ExecReload=/bin/kill -USR1 \$MAINPID
|
||||
Restart=on-failure
|
||||
User=%{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|/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 %{buildroot}%{_libdir}/*.{la,a}
|
||||
@ -151,6 +157,7 @@ exit 0
|
||||
%license LICENSE LICENSE.Sendmail
|
||||
%doc README RELEASE_NOTES
|
||||
%config(noreplace) %{_sysconfdir}/%{name}.conf
|
||||
%config(noreplace) %{_sysconfdir}/tmpfiles.d/%{name}.conf
|
||||
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
|
||||
%{_datadir}/%{name}
|
||||
%{_sbindir}/*
|
||||
@ -169,6 +176,9 @@ exit 0
|
||||
%{_libdir}/*.so
|
||||
|
||||
%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
|
||||
- DESC:Package init
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user