- Comment out DAILY_UPDATE from updatedb.conf (#174693)
This commit is contained in:
parent
15b6f6e611
commit
4836bec714
11
mlocate.spec
11
mlocate.spec
@ -1,7 +1,7 @@
|
|||||||
Summary: An utility for finding files by name
|
Summary: An utility for finding files by name
|
||||||
Name: mlocate
|
Name: mlocate
|
||||||
Version: 0.11
|
Version: 0.11
|
||||||
Release: 1
|
Release: 2
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
@ -9,6 +9,7 @@ Source1: updatedb.conf
|
|||||||
Source2: mlocate.cron
|
Source2: mlocate.cron
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||||
Requires(pre,triggerpostun): shadow-utils
|
Requires(pre,triggerpostun): shadow-utils
|
||||||
|
Requires(post): grep, sed
|
||||||
Obsoletes: slocate <= 2.7-30
|
Obsoletes: slocate <= 2.7-30
|
||||||
Provides: slocate
|
Provides: slocate
|
||||||
|
|
||||||
@ -45,6 +46,11 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%pre
|
%pre
|
||||||
%{_sbindir}/groupadd -g 21 -r -f slocate
|
%{_sbindir}/groupadd -g 21 -r -f slocate
|
||||||
|
|
||||||
|
%post
|
||||||
|
if /bin/grep -q '^[^#]*DAILY_UPDATE' %{_sysconfdir}/updatedb.conf; then
|
||||||
|
/bin/sed -i.rpmsave -e '/DAILY_UPDATE/s/^/#/' %{_sysconfdir}/updatedb.conf
|
||||||
|
fi
|
||||||
|
|
||||||
%triggerpostun -- slocate <= 2.7-30
|
%triggerpostun -- slocate <= 2.7-30
|
||||||
%{_sbindir}/groupadd -g 21 -r -f slocate
|
%{_sbindir}/groupadd -g 21 -r -f slocate
|
||||||
|
|
||||||
@ -60,6 +66,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%ghost /var/lib/mlocate/mlocate.db
|
%ghost /var/lib/mlocate/mlocate.db
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Dec 2 2005 Miloslav Trmac <mitr@redhat.com> - 0.11-2
|
||||||
|
- Comment out DAILY_UPDATE from updatedb.conf (#174693)
|
||||||
|
|
||||||
* Thu Nov 10 2005 Miloslav Trmac <mitr@redhat.com> - 0.11-1
|
* Thu Nov 10 2005 Miloslav Trmac <mitr@redhat.com> - 0.11-1
|
||||||
- Update to mlocate-0.11
|
- Update to mlocate-0.11
|
||||||
- Add scriptlets to create group slocate
|
- Add scriptlets to create group slocate
|
||||||
|
Loading…
Reference in New Issue
Block a user