/usr/share/augeas/lenses/dist/updatedb.aug is in augeas-lenses 1.10.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | (*
Module: UpdateDB
Parses /etc/updatedb.conf
Author: Raphael Pinson <raphink@gmail.com>
About: Reference
This lens tries to keep as close as possible to `man 5 updatedb.conf` where possible.
About: License
This file is licenced under the LGPL v2+, like the rest of Augeas.
About: Lens Usage
To be documented
About: Configuration files
This lens applies to /etc/updatedb.conf. See <filter>.
About: Examples
The <Test_UpdateDB> file contains various examples and tests.
*)
module UpdateDB =
autoload xfm
(* View: list
A list entry *)
let list =
let entry = [ label "entry" . store Rx.no_spaces ]
in let entry_list = Build.opt_list entry Sep.space
in [ key /PRUNE(FS|NAMES|PATHS)/ . Sep.space_equal
. Quote.do_dquote entry_list . Util.doseol ]
(* View: bool
A boolean entry *)
let bool = [ key "PRUNE_BIND_MOUNTS" . Sep.space_equal
. Quote.do_dquote (store /[01]|no|yes/)
. Util.doseol ]
(* View: lns
The <UpdateDB> lens *)
let lns = (Util.empty|Util.comment|list|bool)*
(* Variable: filter
The filter *)
let filter = incl "/etc/updatedb.conf"
let xfm = transform lns filter
|