homepage http://slocate.trakker.ca/
description Secure Locate is a replacement for locate.
long_description Secure locate provides a secure way to index and quickly search \
for files on your system. It uses incremental encoding just like \
GNU locate to compress its database to make searching faster, \
but it will also check file permissions and ownership so that \
users will not see files they do not have access to. \
The big advantage is that slocate will find files in your ~, even \
if you made it unreadable by "nobody" (who traditionally performs \
the locate database update), without letting another user find \
master_sites http://slackware.mirrors.tds.net/pub/slackware/slackware_source/a/slocate/ \
http://slackware.mirrors.pair.com/slackware_source/a/slocate/
checksums md5 908e6949d959ae7b686c10bb76b35bf3 \
sha1 e427552664385b86931b7626c26bd95ae5f9f085 \
rmd160 d3b1e818cc35ce8e87ec1b0764f6b2145a319e13
patchfiles patch-Makefile \
reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/src/slocate.h \
${worksrcpath}/doc/slocate.1 \
${worksrcpath}/src/Makefile \
reinplace "s|__DESTROOT__|${destroot}|g" ${worksrcpath}/src/Makefile \
reinplace "s|__USER__|${install.user}|g" ${worksrcpath}/Makefile
reinplace "s|__GROUP__|${install.group}|g" ${worksrcpath}/Makefile
build.args CC="${configure.cc}"
destroot.keepdirs ${destroot}${prefix}/var/db/slocate
xinstall -d -g slocate -o root ${destroot}${prefix}/var/db/slocate
xinstall ${filespath}/daily.slocate ${destroot}${prefix}/etc/
reinplace "s|__PREFIX__|${prefix}|g" ${destroot}${prefix}/etc/daily.slocate
build.args-append LDFLAGS="${configure.universal_ldflags}"