Add %ghost for /etc/updatedb.conf

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2021-11-24 09:36:30 +01:00
parent 4fc219b6d8
commit c76efa13c5
1 changed files with 3 additions and 0 deletions

View File

@ -44,6 +44,8 @@ EOF
install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/plocate.conf
ln -s plocate %{buildroot}%{_bindir}/locate
install -p -D -m 0644 -t %{buildroot}%{_mandir}/man1/ locate.1
mkdir %{buildroot}%{_sysconfdir}/
touch %{buildroot}%{_sysconfdir}/updatedb.conf
# A state file to carry information from %%post to %%posttrans. See
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_saving_state_between_scriptlets.
@ -92,6 +94,7 @@ fi
%_mandir/man8/plocate-build.8*
%_mandir/man8/updatedb.8*
%_sysusersdir/plocate.conf
%ghost %{_sysconfdir}/updatedb.conf
%dir %{_sharedstatedir}/plocate
%{_sharedstatedir}/plocate/CACHEDIR.TAG
%ghost %attr(0620,-,plocate) %verify(not md5 mtime) %{_sharedstatedir}/plocate/plocate.db