mlocate: initial release

thought long about creating an empty /var/lib/mlocate/mlocate.db within
the port or not. Decided to do not, because its boring if with every new
update of the port, the database is rubbed out and the user has to run
updatedb to get back a functional locate.
This commit is contained in:
Juergen Daubert 2008-10-31 10:37:40 +01:00
parent 056b91c21d
commit 09ec296f78
5 changed files with 66 additions and 0 deletions

20
mlocate/.footprint Normal file
View File

@ -0,0 +1,20 @@
drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/cron/
drwxr-xr-x root/root etc/cron/daily/
-rwxr-xr-x root/root etc/cron/daily/mlocate
-rw-r--r-- root/root etc/updatedb.conf
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-sr-x root/mlocate usr/bin/locate
-rwxr-xr-x root/root usr/bin/updatedb
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/locate.1.gz
drwxr-xr-x root/root usr/man/man5/
-rw-r--r-- root/root usr/man/man5/mlocate.db.5.gz
-rw-r--r-- root/root usr/man/man5/updatedb.conf.5.gz
drwxr-xr-x root/root usr/man/man8/
-rw-r--r-- root/root usr/man/man8/updatedb.8.gz
drwxr-xr-x root/root var/
drwxr-xr-x root/root var/lib/
drwxr-x--- root/mlocate var/lib/mlocate/

3
mlocate/.md5sum Normal file
View File

@ -0,0 +1,3 @@
7d67badc004a8ade29648c8449b479e4 mlocate
81ddfc3b798fde5d198dbfcc22602431 mlocate-0.21.1.tar.bz2
47c5a6128ab24e9adaed650e255dfac7 updatedb.conf

24
mlocate/Pkgfile Normal file
View File

@ -0,0 +1,24 @@
# Description: Fast merging drop-in replacement for slocate
# URL: http://carolina.mff.cuni.cz/~trmac/blog/mlocate/
# Maintainer: CRUX System Team, core-ports at crux dot nu
name=mlocate
version=0.21.1
release=1
source=(https://fedorahosted.org/releases/m/l/$name/$name-$version.tar.bz2 \
mlocate updatedb.conf)
build() {
cd $name-$version
./configure --prefix=/usr \
--mandir=/usr/man \
--sysconfdir=/etc \
--localstatedir=/var/lib \
--disable-nls
make
make DESTDIR=$PKG install
install -D -m 0755 $SRC/mlocate $PKG/etc/cron/daily/mlocate
install -m 0644 $SRC/updatedb.conf $PKG/etc
}

8
mlocate/mlocate Normal file
View File

@ -0,0 +1,8 @@
#!/bin/sh
#
# /etc/cron/daily/mlocate: update the mlocate database
#
/usr/bin/updatedb
# End of file

11
mlocate/updatedb.conf Normal file
View File

@ -0,0 +1,11 @@
#
# /etc/updatedb.conf
#
# configuration file for updatedb(8) used by
# updatedb, see updatedb.conf(5)
PRUNEFS="nfs afs proc smbfs autofs auto iso9660"
PRUNENAMES=".git .svn .cvs"
PRUNEPATHS="/tmp /var/tmp /var/spool /mnt"
# End of file