Skip to contentSkip to conversation

new package: mlocate

PATCH New Stefan Fröberg 1 participant 1 message Feb 15, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 new package: mlocate

mlocate

Merging locate is an utility to index and quickly search for files.

---
 package/Config.in                 |    1 +
 package/mlocate/Config.in         |   14 ++++++++++
 package/mlocate/mlocate-cron.conf |    9 +++++++
 package/mlocate/mlocate.cron-r2   |   48 +++++++++++++++++++++++++++++++++++++
 package/mlocate/mlocate.mk        |   42 ++++++++++++++++++++++++++++++++
 package/mlocate/updatedb.conf     |   17 +++++++++++++
 6 files changed, 131 insertions(+), 0 deletions(-)
 create mode 100644 package/mlocate/Config.in
 create mode 100644 package/mlocate/mlocate-cron.conf
 create mode 100644 package/mlocate/mlocate.cron-r2
 create mode 100644 package/mlocate/mlocate.mk
 create mode 100644 package/mlocate/updatedb.conf
package/Config.in +1 -0
index ec282b9..b242318 100644
@@ -782,6 +782,7 @@ source "package/cpuload/Config.in"
 source "package/htop/Config.in"
 source "package/keyutils/Config.in"
 source "package/kmod/Config.in"
+source "package/mlocate/Config.in"
 if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 source "package/module-init-tools/Config.in"
 endif
package/mlocate/Config.in new file +14 -0
new file mode 100644
index 0000000..6ec8162
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_MLOCATE
+	bool "mlocate"
+	help
+	  mlocate is a locate/updatedb implementation. The 'm' stands for
+	  'merging': updatedb reuses the existing database to avoid
+	  rereading most of the file system, which makes updatedb
+	  faster and does not trash the system caches as much.
+
+	  The mlocate utility is intended to be completely compatible to
+	  slocate (Security Enhanced version of the GNU locate). 
+	  It also attempts to be compatible to GNU locate, when it does 
+	  not conflict with slocate compatibility.
+
+	  https://fedorahosted.org/mlocate
package/mlocate/mlocate-cron.conf new file +9 -0
new file mode 100644
index 0000000..f207344
@@ -0,0 +1,9 @@
+# nice value to run at: see -n in nice(1)
+NICE="19"
+
+# ionice class to run at: see -c in ionice(1)
+# you have to install sys-apps/util-linux manually
+IONICE_CLASS="2"
+
+# ionice priority to run at: see -n in ionice(1)
+IONICE_PRIORITY="7"
package/mlocate/mlocate.cron-r2 new file +48 -0

48 lines not on this page · raw message

package/mlocate/mlocate.mk new file +42 -0

42 lines not on this page · raw message

package/mlocate/updatedb.conf new file +17 -0
new file mode 100644
index 0000000..09f5db4
@@ -0,0 +1,17 @@
+# /etc/updatedb.conf: config file for slocate
+# $Id: updatedb.conf,v 1.5 2011/01/24 12:39:33 scarabeus Exp $
+
+# This file sets variables that are used by updatedb.
+# For more info, see the updatedb.conf(5) manpage.
+
+# Filesystems that are pruned from updatedb database
+PRUNEFS="afs anon_inodefs auto autofs bdev binfmt binfmt_misc cgroup cifs coda configfs cramfs cpuset debugfs devpts devtmps devfs devpts ecryptfs eventpollfs exofs futexfs ftpfs fuse fusectl gfs gfs2 hostfs hugetlbfs inotifyfs iso9660 jffs2 lustre misc mqueue ncpfs nfs NFS nfs4 nfsd nnpfs ocfs ocfs2 pipefs proc ramfs rpc_pipefs securityfs selinuxfs sfs shfs smbfs sockfs spufs sshfs subfs supermount sysfs tmpfs ubifs udf usbfs vboxsf vperfctrfs"
+
+# Paths which are pruned from updatedb database
+PRUNEPATHS="/tmp /var/tmp /var/cache /var/lock /var/run /var/spool"
+
+# Folder names that are pruned from updatedb database
+PRUNENAMES=".git .hg .svn CVS"
+
+# Skip bind mounts.
+PRUNE_BIND_MOUNTS="yes"
Signature · 1 line
1.7.7.6