avatar
Rosa has added 51a2954b4c
initial: add from SRPM
... ... --- /dev/null
... ... +++ b/.abf.yml
... ... @@ -0,0 +1,2 @@
1
sources:
2
  "mlocate-0.24.tar.xz": 7beb0572c9cfdef0db3e2f34cd71c616344e2d53
... ... --- /dev/null
... ... +++ b/mlocate.cron
... ... @@ -0,0 +1,3 @@
1
#!/bin/sh
2
nodevs=$(awk '$1 == "nodev" { print $2 }' </proc/filesystems)
3
nice --adjustment=+19 ionice -c3 /usr/bin/updatedb -f "$nodevs"
... ... --- /dev/null
... ... +++ b/mlocate.spec
... ... @@ -0,0 +1,234 @@
1
Summary:	An utility for finding files by name via a central database
2
Name:		mlocate
3
Version:	0.24
4
Release:	%mkrel 4
5
License:	GPLv2+
6
Group:		File tools
7
URL:		http://fedorahosted.org/mlocate/
8
Source0:	http://fedorahosted.org/releases/m/l/mlocate/%{name}-%{version}.tar.xz
9
Source1:	updatedb.conf
10
Source2:	mlocate.cron
11
Requires(pre):	shadow-utils
12
13
%description
14
Mlocate is a locate/updatedb implementation.  It keeps a database of
15
all existing files and allows you to lookup files by name.
16
17
The 'm' stands for "merging": updatedb reuses the existing database to avoid
18
rereading most of the file system, which makes updatedb faster and does not
19
trash the system caches as much as traditional locate implementations.
20
21
%prep
22
%setup -q
23
24
%build
25
%configure2_5x \
26
	--localstatedir=%{_localstatedir}/lib \
27
	--disable-rpath
28
29
%make
30
31
%install
32
rm -rf %{buildroot}
33
%makeinstall_std
34
35
# install config file:
36
install -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/updatedb.conf
37
38
# install daily cron entry:
39
install -D -m 755 %{SOURCE2} %{buildroot}%{_sysconfdir}/cron.daily/mlocate.cron
40
41
# for %ghost:
42
touch %{buildroot}%{_localstatedir}/lib/mlocate/mlocate.db
43
44
%find_lang %{name}
45
46
%clean
47
rm -rf %{buildroot}
48
49
%pre
50
if [ "$1" = "1" ]; then
51
	%{_sbindir}/groupadd -r -f mlocate
52
elif [ "$1" = "2" ]; then
53
	if grep	slocate	%{_sysconfdir}/group > /dev/null; then
54
		%{_sbindir}/groupmod -n mlocate slocate
55
	fi
56
fi
57
58
%post
59
# for %ghost:
60
touch %{_localstatedir}/lib/mlocate/mlocate.db
61
62
%check
63
make check
64
65
%files -f %{name}.lang
66
%defattr(-,root,root,-)
67
%doc AUTHORS NEWS README
68
%config(noreplace) %{_sysconfdir}/updatedb.conf
69
%{_sysconfdir}/cron.daily/mlocate.cron
70
%attr(2711,root,mlocate) %{_bindir}/locate
71
%{_bindir}/updatedb
72
%{_mandir}/man*/*
73
%dir %attr(0750,root,mlocate) /var/lib/mlocate
74
%ghost %{_localstatedir}/lib/mlocate/mlocate.db
75
76
77
%changelog
78
* Wed May 04 2011 Oden Eriksson <oeriksson@mandriva.com> 0.24-4mdv2011.0
79
+ Revision: 666467
80
- mass rebuild
81
82
* Fri Apr 01 2011 Jani Välimaa <wally@mandriva.org> 0.24-3
83
+ Revision: 649699
84
- fix group renaming (rename only when group slocate exists)
85
86
* Fri Apr 01 2011 Jani Välimaa <wally@mandriva.org> 0.24-2
87
+ Revision: 649689
88
- use mlocate group instead of slocate
89
- rename slocate group to mlocate when updating
90
- drop buildroot definition
91
92
* Fri Apr 01 2011 Jani Välimaa <wally@mandriva.org> 0.24-1
93
+ Revision: 649680
94
- new version 0.24
95
- enable build time check
96
97
* Sun Feb 27 2011 Funda Wang <fwang@mandriva.org> 0.23.1-4
98
+ Revision: 640331
99
- rebuild to obsolete old packages
100
101
* Tue Jan 18 2011 Jani Välimaa <wally@mandriva.org> 0.23.1-3
102
+ Revision: 631452
103
- properly fix (mdv#51740)
104
105
* Tue Jan 11 2011 Jani Välimaa <wally@mandriva.org> 0.23.1-2
106
+ Revision: 630950
107
- remove old obsoletes, provides and triggerpostun
108
- don't index cifs (mdv#51740)
109
- clean .spec a bit
110
111
* Sun Oct 03 2010 Tomasz Pawel Gajc <tpg@mandriva.org> 0.23.1-1mdv2011.0
112
+ Revision: 582712
113
- update to new version 0.23.1
114
115
* Sat Sep 04 2010 Tomasz Pawel Gajc <tpg@mandriva.org> 0.23-1mdv2011.0
116
+ Revision: 575980
117
- update to new version 0.23
118
119
* Sun Mar 28 2010 Sandro Cazzaniga <kharec@mandriva.org> 0.22.4-2mdv2010.1
120
+ Revision: 528473
121
- rebuild
122
- update to 0.22.4
123
124
* Sun Mar 21 2010 Tomasz Pawel Gajc <tpg@mandriva.org> 0.22.3-1mdv2010.1
125
+ Revision: 526116
126
- update to new version 0.22.3
127
128
* Mon Nov 09 2009 Thierry Vignaud <tv@mandriva.org> 0.22.2-1mdv2010.1
129
+ Revision: 463780
130
- new release
131
132
* Tue Sep 15 2009 Frederik Himpe <fhimpe@mandriva.org> 0.22.1-1mdv2010.0
133
+ Revision: 443300
134
- update to new version 0.22.1
135
136
* Sat May 09 2009 Guillaume Rousse <guillomovitch@mandriva.org> 0.22-1mdv2010.0
137
+ Revision: 373856
138
- update to new version 0.22
139
140
* Fri Feb 27 2009 Gustavo De Nardin <gustavodn@mandriva.com> 0.21.1-4mdv2009.1
141
+ Revision: 345688
142
- get rid of pointless and weird bashism
143
144
* Fri Nov 21 2008 Pascal Terjan <pterjan@mandriva.org> 0.21.1-3mdv2009.1
145
+ Revision: 305487
146
- Don't index tmpfs
147
148
* Tue Nov 18 2008 Pascal Terjan <pterjan@mandriva.org> 0.21.1-2mdv2009.1
149
+ Revision: 304249
150
- List /afs only once
151
- Don't index sysfs and debugfs
152
153
* Tue Oct 28 2008 Frederik Himpe <fhimpe@mandriva.org> 0.21.1-1mdv2009.1
154
+ Revision: 298017
155
- Update to new version 0.21.1
156
157
* Tue Sep 30 2008 Thierry Vignaud <tv@mandriva.org> 0.21-2mdv2009.0
158
+ Revision: 290112
159
- run with io priority set as idle (prevent mad access if anacron starts it in
160
  the middle of the day)
161
162
* Wed Jul 02 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 0.21-1mdv2009.0
163
+ Revision: 230771
164
- update to new version 0.21
165
- update url
166
- new license policy
167
- do not package COPYING file
168
- spec file clean
169
170
* Mon Jun 16 2008 Thierry Vignaud <tv@mandriva.org> 0.20-2mdv2009.0
171
+ Revision: 219507
172
- really update db with decreased I/O priority at night (#41458)
173
174
* Mon Apr 14 2008 Thierry Vignaud <tv@mandriva.org> 0.20-1mdv2009.0
175
+ Revision: 192895
176
- new release
177
178
* Mon Mar 03 2008 Guillaume Rousse <guillomovitch@mandriva.org> 0.19-1mdv2008.1
179
+ Revision: 177953
180
- update to new version 0.19
181
182
* Tue Jan 15 2008 Thierry Vignaud <tv@mandriva.org> 0.18-3mdv2008.1
183
+ Revision: 153142
184
- rebuild
185
- kill re-definition of %%buildroot on Pixel's request
186
187
  + Olivier Blin <oblin@mandriva.com>
188
    - restore BuildRoot
189
190
* Mon Sep 24 2007 Thierry Vignaud <tv@mandriva.org> 0.18-2mdv2008.0
191
+ Revision: 92526
192
- run updatedb with ionice -c0
193
194
* Sat Aug 25 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 0.18-1mdv2008.0
195
+ Revision: 71195
196
- spec file clean
197
- nuke rpath
198
- new version
199
200
* Thu May 03 2007 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 0.17-1mdv2008.0
201
+ Revision: 21309
202
- Updated to 0.17.
203
204
* Fri Apr 20 2007 Thierry Vignaud <tv@mandriva.org> 0.16-1mdv2008.0
205
+ Revision: 16118
206
- new release
207
208
209
* Fri Nov 24 2006 Thierry Vignaud <tvignaud@mandriva.com> 0.15-2mdv2007.0
210
+ Revision: 87061
211
- fix update (#27313)
212
213
* Thu Nov 23 2006 Thierry Vignaud <tvignaud@mandriva.com> 0.15-1mdv2007.1
214
+ Revision: 86827
215
- Import mlocate
216
217
* Thu Nov 23 2006 Thierry Vignaud <tvignaud@mandrakesoft.com> 0.15-1mdv2007.1
218
- new release
219
220
* Wed Sep 20 2006 Pixel <pixel@mandriva.com> 0.14-5mdv2007.0
221
- add explicit conflicts with slocate
222
223
* Sun Sep 17 2006 Thierry Vignaud <tvignaud@mandriva.com> 0.14-4mdv2007.0
224
- don't upgrade from slocate (#25338)
225
226
* Wed Aug 09 2006 Thierry Vignaud <tvignaud@mandriva.com> 0.14-3mdv2007.0
227
- revert 2mdk, readd trigger, needed for updates (#24220
228
229
* Sun Aug 06 2006 Thierry Vignaud <tvignaud@mandriva.com> 0.14-2mdv2007.0
230
- remove uneeded trigger
231
232
* Sat Aug 05 2006 Thierry Vignaud <tvignaud@mandriva.com> 0.14-1mdv2007.0
233
- initial release (with ideas from rh)
234
... ... --- /dev/null
... ... +++ b/updatedb.conf
... ... @@ -0,0 +1,17 @@
1
## Mandriva Linux configuration.
2
3
#
4
# Originally written by Chmouel Boudjnah <chmouel@mandrakesoft.com>
5
#
6
# Modified 20010109 by Francis Galiegue <fg@mandrakesoft.com>
7
#
8
# Fixes by mlord@pobox.com, 20010328
9
10
11
# Which directories to exclude. /home and /root are excluded for privacy, but
12
# YMMV
13
PRUNEPATHS="/proc /tmp /var/tmp /usr/tmp /net /afs /mnt /media /sfs /var/spool/cups /var/spool/squid"
14
15
16
# Which filesystems do we exclude from search?
17
PRUNEFS="cifs nfs smbfs ncpfs proc devpts supermount vfat iso9660 udf usbdevfs devfs auto afs sfs sysfs debugfs tmpfs"

Comments