80de398cd51b5fc52d3deba08a29dde61288dd30
[openwrt/staging/yousong.git] / package / busybox / config / findutils / Config.in
1 #
2 # For a description of the syntax of this configuration file,
3 # see scripts/kbuild/config-language.txt.
4 #
5
6 menu "Finding Utilities"
7
8 config BUSYBOX_CONFIG_FIND
9 bool "find"
10 default y
11 help
12 find is used to search your system to find specified files.
13
14 config BUSYBOX_CONFIG_FEATURE_FIND_PRINT0
15 bool "Enable -print0: NUL-terminated output"
16 default y
17 depends on BUSYBOX_CONFIG_FIND
18 help
19 Causes output names to be separated by a NUL character
20 rather than a newline. This allows names that contain
21 newlines and other whitespace to be more easily
22 interpreted by other programs.
23
24 config BUSYBOX_CONFIG_FEATURE_FIND_MTIME
25 bool "Enable -mtime: modified time matching"
26 default n
27 depends on BUSYBOX_CONFIG_FIND
28 help
29 Allow searching based on the modification time of
30 files, in days.
31
32 config BUSYBOX_CONFIG_FEATURE_FIND_MMIN
33 bool "Enable -mmin: modified time matching by minutes"
34 default n
35 depends on BUSYBOX_CONFIG_FIND
36 help
37 Allow searching based on the modification time of
38 files, in minutes.
39
40 config BUSYBOX_CONFIG_FEATURE_FIND_PERM
41 bool "Enable -perm: permissions matching"
42 default y
43 depends on BUSYBOX_CONFIG_FIND
44 help
45 Enable searching based on file permissions.
46
47 config BUSYBOX_CONFIG_FEATURE_FIND_TYPE
48 bool "Enable -type: file type matching (file/dir/link/...)"
49 default y
50 depends on BUSYBOX_CONFIG_FIND
51 help
52 Enable searching based on file type (file,
53 directory, socket, device, etc.).
54
55 config BUSYBOX_CONFIG_FEATURE_FIND_XDEV
56 bool "Enable -xdev: 'stay in filesystem'"
57 default y
58 depends on BUSYBOX_CONFIG_FIND
59 help
60 This option allows find to restrict searches to a single filesystem.
61
62 config BUSYBOX_CONFIG_FEATURE_FIND_MAXDEPTH
63 bool "Enable -maxdepth N"
64 default y
65 depends on BUSYBOX_CONFIG_FIND
66 help
67 This option enables -maxdepth N option.
68
69 config BUSYBOX_CONFIG_FEATURE_FIND_NEWER
70 bool "Enable -newer: compare file modification times"
71 default n
72 depends on BUSYBOX_CONFIG_FIND
73 help
74 Support the 'find -newer' option for finding any files which have
75 a modified time that is more recent than the specified FILE.
76
77 config BUSYBOX_CONFIG_FEATURE_FIND_INUM
78 bool "Enable -inum: inode number matching"
79 default n
80 depends on BUSYBOX_CONFIG_FIND
81 help
82 Support the 'find -inum' option for searching by inode number.
83
84 config BUSYBOX_CONFIG_FEATURE_FIND_EXEC
85 bool "Enable -exec: execute commands"
86 default y
87 depends on BUSYBOX_CONFIG_FIND
88 help
89 Support the 'find -exec' option for executing commands based upon
90 the files matched.
91
92 config BUSYBOX_CONFIG_FEATURE_FIND_USER
93 bool "Enable -user: username/uid matching"
94 default y
95 depends on BUSYBOX_CONFIG_FIND
96 help
97 Support the 'find -user' option for searching by username or uid.
98
99 config BUSYBOX_CONFIG_FEATURE_FIND_GROUP
100 bool "Enable -group: group/gid matching"
101 default y
102 depends on BUSYBOX_CONFIG_FIND
103 help
104 Support the 'find -group' option for searching by group name or gid.
105
106 config BUSYBOX_CONFIG_FEATURE_FIND_NOT
107 bool "Enable the 'not' (!) operator"
108 default y
109 depends on BUSYBOX_CONFIG_FIND
110 help
111 Support the '!' operator to invert the test results.
112 If 'Enable full-blown desktop' is enabled, then will also support
113 the non-POSIX notation '-not'.
114
115 config BUSYBOX_CONFIG_FEATURE_FIND_DEPTH
116 bool "Enable -depth"
117 default y
118 depends on BUSYBOX_CONFIG_FIND
119 help
120 Process each directory's contents before the directory itself.
121
122 config BUSYBOX_CONFIG_FEATURE_FIND_PAREN
123 bool "Enable parens in options"
124 default y
125 depends on BUSYBOX_CONFIG_FIND
126 help
127 Enable usage of parens '(' to specify logical order of arguments.
128
129 config BUSYBOX_CONFIG_FEATURE_FIND_SIZE
130 bool "Enable -size: file size matching"
131 default y
132 depends on BUSYBOX_CONFIG_FIND
133 help
134 Support the 'find -size' option for searching by file size.
135
136 config BUSYBOX_CONFIG_FEATURE_FIND_PRUNE
137 bool "Enable -prune: exclude subdirectories"
138 default y
139 depends on BUSYBOX_CONFIG_FIND
140 help
141 If the file is a directory, dont descend into it. Useful for
142 exclusion .svn and CVS directories.
143
144 config BUSYBOX_CONFIG_FEATURE_FIND_DELETE
145 bool "Enable -delete: delete files/dirs"
146 default n
147 depends on BUSYBOX_CONFIG_FIND && BUSYBOX_CONFIG_FEATURE_FIND_DEPTH
148 help
149 Support the 'find -delete' option for deleting files and directories.
150 WARNING: This option can do much harm if used wrong. Busybox will not
151 try to protect the user from doing stupid things. Use with care.
152
153 config BUSYBOX_CONFIG_FEATURE_FIND_PATH
154 bool "Enable -path: match pathname with shell pattern"
155 default y
156 depends on BUSYBOX_CONFIG_FIND
157 help
158 The -path option matches whole pathname instead of just filename.
159
160 config BUSYBOX_CONFIG_FEATURE_FIND_REGEX
161 bool "Enable -regex: match pathname with regex"
162 default y
163 depends on BUSYBOX_CONFIG_FIND
164 help
165 The -regex option matches whole pathname against regular expression.
166
167 config BUSYBOX_CONFIG_FEATURE_FIND_CONTEXT
168 bool "Enable -context: security context matching"
169 default n
170 depends on BUSYBOX_CONFIG_FIND && BUSYBOX_CONFIG_SELINUX
171 help
172 Support the 'find -context' option for matching security context.
173
174 config BUSYBOX_CONFIG_FEATURE_FIND_LINKS
175 bool "Enable -links: link count matching"
176 default n
177 depends on BUSYBOX_CONFIG_FIND
178 help
179 Support the 'find -links' option for matching number of links.
180
181 config BUSYBOX_CONFIG_GREP
182 bool "grep"
183 default y
184 help
185 grep is used to search files for a specified pattern.
186
187 config BUSYBOX_CONFIG_FEATURE_GREP_EGREP_ALIAS
188 bool "Enable extended regular expressions (egrep & grep -E)"
189 default y
190 depends on BUSYBOX_CONFIG_GREP
191 help
192 Enabled support for extended regular expressions. Extended
193 regular expressions allow for alternation (foo|bar), grouping,
194 and various repetition operators.
195
196 config BUSYBOX_CONFIG_FEATURE_GREP_FGREP_ALIAS
197 bool "Alias fgrep to grep -F"
198 default y
199 depends on BUSYBOX_CONFIG_GREP
200 help
201 fgrep sees the search pattern as a normal string rather than
202 regular expressions.
203 grep -F always works, this just creates the fgrep alias.
204
205 config BUSYBOX_CONFIG_FEATURE_GREP_CONTEXT
206 bool "Enable before and after context flags (-A, -B and -C)"
207 default y
208 depends on BUSYBOX_CONFIG_GREP
209 help
210 Print the specified number of leading (-B) and/or trailing (-A)
211 context surrounding our matching lines.
212 Print the specified number of context lines (-C).
213
214 config BUSYBOX_CONFIG_XARGS
215 bool "xargs"
216 default y
217 help
218 xargs is used to execute a specified command for
219 every item from standard input.
220
221 config BUSYBOX_CONFIG_FEATURE_XARGS_SUPPORT_CONFIRMATION
222 bool "Enable -p: prompt and confirmation"
223 default y
224 depends on BUSYBOX_CONFIG_XARGS
225 help
226 Support -p: prompt the user whether to run each command
227 line and read a line from the terminal.
228
229 config BUSYBOX_CONFIG_FEATURE_XARGS_SUPPORT_QUOTES
230 bool "Enable single and double quotes and backslash"
231 default y
232 depends on BUSYBOX_CONFIG_XARGS
233 help
234 Support quoting in the input.
235
236 config BUSYBOX_CONFIG_FEATURE_XARGS_SUPPORT_TERMOPT
237 bool "Enable -x: exit if -s or -n is exceeded"
238 default y
239 depends on BUSYBOX_CONFIG_XARGS
240 help
241 Support -x: exit if the command size (see the -s or -n option)
242 is exceeded.
243
244 config BUSYBOX_CONFIG_FEATURE_XARGS_SUPPORT_ZERO_TERM
245 bool "Enable -0: NUL-terminated input"
246 default y
247 depends on BUSYBOX_CONFIG_XARGS
248 help
249 Support -0: input items are terminated by a NUL character
250 instead of whitespace, and the quotes and backslash
251 are not special.
252
253 endmenu