Most users probably aren't interested in locating 13000+ files named

[0-9a-f]{64}, so exclude portsnap's compressed snapshots from locate's
indexing.

Suggested by:	silby
MFC after:	3 days
This commit is contained in:
Colin Percival 2005-08-22 08:22:48 +00:00
parent 2c15852e1e
commit f46417c577
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@
#SEARCHPATHS="/"
# directories unwanted in output
#PRUNEPATHS="/tmp /usr/tmp /var/tmp"
#PRUNEPATHS="/tmp /usr/tmp /var/tmp /var/db/portsnap"
# filesystems allowed. Beware: a non-listed filesystem will be pruned
# and if the SEARCHPATHS starts in such a filesystem locate will build

View File

@ -51,7 +51,7 @@ PATH=$LIBEXECDIR:/bin:/usr/bin:$PATH; export PATH
: ${mklocatedb:=locate.mklocatedb} # make locate database program
: ${FCODES:=/var/db/locate.database} # the database
: ${SEARCHPATHS:="/"} # directories to be put in the database
: ${PRUNEPATHS:="/tmp /usr/tmp /var/tmp"} # unwanted directories
: ${PRUNEPATHS:="/tmp /usr/tmp /var/tmp /var/db/portsnap"} # unwanted directories
: ${FILESYSTEMS:="ufs"} # allowed filesystems
: ${find:=find}