1 (* Darkice module for Augeas
2 Author: Free Ekanayaka <free@64studio.com>
4 Reference: man 5 darkice.cfg
12 (************************************************************************
14 *************************************************************************)
15 let comment = IniFile.comment IniFile.comment_re IniFile.comment_default
17 let sep = IniFile.sep IniFile.sep_re IniFile.sep_default
19 let entry_re = ( /[A-Za-z0-9][A-Za-z0-9._-]*/ )
20 let entry = IniFile.entry entry_re sep comment
22 let title = IniFile.title_label "target" IniFile.record_label_re
23 let record = IniFile.record title entry
25 let lns = IniFile.lns record comment
27 let filter = (incl "/etc/darkice.cfg")
30 let xfm = transform lns filter