Juergen Daubert
09ec296f78
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.
25 lines
695 B
Plaintext
25 lines
695 B
Plaintext
# 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
|
|
}
|