change run directory from /var/run to /run to fix
(cherry picked from commit f0d36000052d481f09ee7252a88b743ef123c6c8)
This commit is contained in:
parent
22cfd5f215
commit
f940b468a2
@ -1 +1 @@
|
|||||||
D /var/run/unbound 0755 unbound unbound -
|
D /run/unbound 0755 unbound unbound -
|
||||||
|
|||||||
13
unbound.spec
13
unbound.spec
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: unbound
|
Name: unbound
|
||||||
Version: 1.13.2
|
Version: 1.13.2
|
||||||
Release: 7
|
Release: 8
|
||||||
Summary: Unbound is a validating, recursive, caching DNS resolver
|
Summary: Unbound is a validating, recursive, caching DNS resolver
|
||||||
License: BSD
|
License: BSD
|
||||||
Url: https://nlnetlabs.nl/projects/unbound/about/
|
Url: https://nlnetlabs.nl/projects/unbound/about/
|
||||||
@ -88,7 +88,7 @@ popd
|
|||||||
--enable-relro-now --enable-pie \\\
|
--enable-relro-now --enable-pie \\\
|
||||||
--enable-subnet --enable-ipsecmod \\\
|
--enable-subnet --enable-ipsecmod \\\
|
||||||
--with-conf-file=%{_sysconfdir}/%{name}/unbound.conf \\\
|
--with-conf-file=%{_sysconfdir}/%{name}/unbound.conf \\\
|
||||||
--with-pidfile=%{_localstatedir}/run/%{name}/%{name}.pid \\\
|
--with-pidfile=%{_rundir}/%{name}/%{name}.pid \\\
|
||||||
--enable-sha2 --disable-gost --enable-ecdsa \\\
|
--enable-sha2 --disable-gost --enable-ecdsa \\\
|
||||||
--with-rootkey-file=%{_sharedstatedir}/unbound/root.key \\\
|
--with-rootkey-file=%{_sharedstatedir}/unbound/root.key \\\
|
||||||
--enable-linux-ip-local-port-range
|
--enable-linux-ip-local-port-range
|
||||||
@ -133,7 +133,7 @@ do
|
|||||||
echo ".so man3/libunbound.3" > $RPM_BUILD_ROOT%{_mandir}/man3/$mpage ;
|
echo ".so man3/libunbound.3" > $RPM_BUILD_ROOT%{_mandir}/man3/$mpage ;
|
||||||
done
|
done
|
||||||
|
|
||||||
install -d $RPM_BUILD_ROOT%{_localstatedir}/run/unbound
|
install -d $RPM_BUILD_ROOT%{_rundir}/unbound
|
||||||
|
|
||||||
install -d $RPM_BUILD_ROOT%{_sysconfdir}/unbound/{keys.d,conf.d,local.d}
|
install -d $RPM_BUILD_ROOT%{_sysconfdir}/unbound/{keys.d,conf.d,local.d}
|
||||||
install -p %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/unbound/keys.d/
|
install -p %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/unbound/keys.d/
|
||||||
@ -190,6 +190,7 @@ popd
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc doc/CREDITS doc/FEATURES doc/README doc/LICENSE
|
%doc doc/CREDITS doc/FEATURES doc/README doc/LICENSE
|
||||||
%attr(0644,root,root) %{_tmpfilesdir}/unbound.conf
|
%attr(0644,root,root) %{_tmpfilesdir}/unbound.conf
|
||||||
|
%attr(0755,unbound,unbound) %dir %{_rundir}/%{name}
|
||||||
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/unbound.conf
|
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/unbound.conf
|
||||||
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
|
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
|
||||||
%dir %attr(0755,root,unbound) %{_sysconfdir}/%{name}/keys.d
|
%dir %attr(0755,root,unbound) %{_sysconfdir}/%{name}/keys.d
|
||||||
@ -242,6 +243,12 @@ popd
|
|||||||
%{_mandir}/man*
|
%{_mandir}/man*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Mar 03 2023 gaihuiying <eaglegai@163.com> - 1.13.2-8
|
||||||
|
- Type:bugfix
|
||||||
|
- CVE:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:change run directory from /var/run to /run to fix "/usr/lib/tmpfiles.d/unbound.conf:1: xxxx"
|
||||||
|
|
||||||
* Wed Feb 22 2023 gaihuiying <eaglegai@163.com> - 1.13.2-7
|
* Wed Feb 22 2023 gaihuiying <eaglegai@163.com> - 1.13.2-7
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- CVE:NA
|
- CVE:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user