summaryrefslogtreecommitdiff
path: root/debianutils
diff options
context:
space:
mode:
Diffstat (limited to 'debianutils')
-rw-r--r--debianutils/Config.src75
-rw-r--r--debianutils/Kbuild.src5
-rw-r--r--debianutils/mktemp.c9
-rw-r--r--debianutils/pipe_progress.c9
-rw-r--r--debianutils/run_parts.c34
-rw-r--r--debianutils/start_stop_daemon.c28
-rw-r--r--debianutils/which.c10
7 files changed, 90 insertions, 80 deletions
diff --git a/debianutils/Config.src b/debianutils/Config.src
index cbc09b5..61daeb0 100644
--- a/debianutils/Config.src
+++ b/debianutils/Config.src
@@ -7,79 +7,4 @@ menu "Debian Utilities"
INSERT
-config MKTEMP
- bool "mktemp"
- default y
- help
- mktemp is used to create unique temporary files
-
-config PIPE_PROGRESS
- bool "pipe_progress"
- default y
- help
- Display a dot to indicate pipe activity.
-
-config RUN_PARTS
- bool "run-parts"
- default y
- help
- run-parts is a utility designed to run all the scripts in a directory.
-
- It is useful to set up a directory like cron.daily, where you need to
- execute all the scripts in that directory.
-
- In this implementation of run-parts some features (such as report
- mode) are not implemented.
-
- Unless you know that run-parts is used in some of your scripts
- you can safely say N here.
-
-config FEATURE_RUN_PARTS_LONG_OPTIONS
- bool "Enable long options"
- default y
- depends on RUN_PARTS && LONG_OPTS
- help
- Support long options for the run-parts applet.
-
-config FEATURE_RUN_PARTS_FANCY
- bool "Support additional arguments"
- default y
- depends on RUN_PARTS
- help
- Support additional options:
- -l --list print the names of the all matching files (not
- limited to executables), but don't actually run them.
-
-config START_STOP_DAEMON
- bool "start-stop-daemon"
- default y
- help
- start-stop-daemon is used to control the creation and
- termination of system-level processes, usually the ones
- started during the startup of the system.
-
-config FEATURE_START_STOP_DAEMON_FANCY
- bool "Support additional arguments"
- default y
- depends on START_STOP_DAEMON
- help
- Support additional arguments.
- -o|--oknodo ignored since we exit with 0 anyway
- -v|--verbose
- -N|--nicelevel N
-
-config FEATURE_START_STOP_DAEMON_LONG_OPTIONS
- bool "Enable long options"
- default y
- depends on START_STOP_DAEMON && LONG_OPTS
- help
- Support long options for the start-stop-daemon applet.
-
-config WHICH
- bool "which"
- default y
- help
- which is used to find programs in your PATH and
- print out their pathnames.
-
endmenu
diff --git a/debianutils/Kbuild.src b/debianutils/Kbuild.src
index d41b5c8..6b4fb74 100644
--- a/debianutils/Kbuild.src
+++ b/debianutils/Kbuild.src
@@ -7,8 +7,3 @@
lib-y:=
INSERT
-lib-$(CONFIG_MKTEMP) += mktemp.o
-lib-$(CONFIG_PIPE_PROGRESS) += pipe_progress.o
-lib-$(CONFIG_RUN_PARTS) += run_parts.o
-lib-$(CONFIG_START_STOP_DAEMON) += start_stop_daemon.o
-lib-$(CONFIG_WHICH) += which.o
diff --git a/debianutils/mktemp.c b/debianutils/mktemp.c
index 983d7a2..6535369 100644
--- a/debianutils/mktemp.c
+++ b/debianutils/mktemp.c
@@ -30,6 +30,15 @@
* a directory: $TMPDIR, if set; else the directory specified via
* -p; else /tmp [deprecated]
*/
+//config:config MKTEMP
+//config: bool "mktemp"
+//config: default y
+//config: help
+//config: mktemp is used to create unique temporary files
+
+//applet:IF_MKTEMP(APPLET(mktemp, BB_DIR_BIN, BB_SUID_DROP))
+
+//kbuild:lib-$(CONFIG_MKTEMP) += mktemp.o
//usage:#define mktemp_trivial_usage
//usage: "[-dt] [-p DIR] [TEMPLATE]"
diff --git a/debianutils/pipe_progress.c b/debianutils/pipe_progress.c
index 2c7444f..21d330b 100644
--- a/debianutils/pipe_progress.c
+++ b/debianutils/pipe_progress.c
@@ -6,6 +6,15 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
+//config:config PIPE_PROGRESS
+//config: bool "pipe_progress"
+//config: default y
+//config: help
+//config: Display a dot to indicate pipe activity.
+
+//applet:IF_PIPE_PROGRESS(APPLET(pipe_progress, BB_DIR_BIN, BB_SUID_DROP))
+
+//kbuild:lib-$(CONFIG_PIPE_PROGRESS) += pipe_progress.o
//usage:#define pipe_progress_trivial_usage NOUSAGE_STR
//usage:#define pipe_progress_full_usage ""
diff --git a/debianutils/run_parts.c b/debianutils/run_parts.c
index dd6fe7d..13617c6 100644
--- a/debianutils/run_parts.c
+++ b/debianutils/run_parts.c
@@ -22,6 +22,40 @@
* report mode. As the original run-parts support only long options, I've
* broken compatibility because the BusyBox policy doesn't allow them.
*/
+//config:config RUN_PARTS
+//config: bool "run-parts"
+//config: default y
+//config: help
+//config: run-parts is a utility designed to run all the scripts in a directory.
+//config:
+//config: It is useful to set up a directory like cron.daily, where you need to
+//config: execute all the scripts in that directory.
+//config:
+//config: In this implementation of run-parts some features (such as report
+//config: mode) are not implemented.
+//config:
+//config: Unless you know that run-parts is used in some of your scripts
+//config: you can safely say N here.
+//config:
+//config:config FEATURE_RUN_PARTS_LONG_OPTIONS
+//config: bool "Enable long options"
+//config: default y
+//config: depends on RUN_PARTS && LONG_OPTS
+//config: help
+//config: Support long options for the run-parts applet.
+//config:
+//config:config FEATURE_RUN_PARTS_FANCY
+//config: bool "Support additional arguments"
+//config: default y
+//config: depends on RUN_PARTS
+//config: help
+//config: Support additional options:
+//config: -l --list print the names of the all matching files (not
+//config: limited to executables), but don't actually run them.
+
+//applet:IF_RUN_PARTS(APPLET_ODDNAME(run-parts, run_parts, BB_DIR_BIN, BB_SUID_DROP, run_parts))
+
+//kbuild:lib-$(CONFIG_RUN_PARTS) += run_parts.o
//usage:#define run_parts_trivial_usage
//usage: "[-a ARG]... [-u UMASK] "
diff --git a/debianutils/start_stop_daemon.c b/debianutils/start_stop_daemon.c
index 7dadc3c..42f1943 100644
--- a/debianutils/start_stop_daemon.c
+++ b/debianutils/start_stop_daemon.c
@@ -56,6 +56,34 @@ Misc options:
-q,--quiet Quiet
-v,--verbose Verbose
*/
+//config:config START_STOP_DAEMON
+//config: bool "start-stop-daemon"
+//config: default y
+//config: help
+//config: start-stop-daemon is used to control the creation and
+//config: termination of system-level processes, usually the ones
+//config: started during the startup of the system.
+//config:
+//config:config FEATURE_START_STOP_DAEMON_FANCY
+//config: bool "Support additional arguments"
+//config: default y
+//config: depends on START_STOP_DAEMON
+//config: help
+//config: Support additional arguments.
+//config: -o|--oknodo ignored since we exit with 0 anyway
+//config: -v|--verbose
+//config: -N|--nicelevel N
+//config:
+//config:config FEATURE_START_STOP_DAEMON_LONG_OPTIONS
+//config: bool "Enable long options"
+//config: default y
+//config: depends on START_STOP_DAEMON && LONG_OPTS
+//config: help
+//config: Support long options for the start-stop-daemon applet.
+
+//applet:IF_START_STOP_DAEMON(APPLET_ODDNAME(start-stop-daemon, start_stop_daemon, BB_DIR_SBIN, BB_SUID_DROP, start_stop_daemon))
+
+//kbuild:lib-$(CONFIG_START_STOP_DAEMON) += start_stop_daemon.o
//usage:#define start_stop_daemon_trivial_usage
//usage: "[OPTIONS] [-S|-K] ... [-- ARGS...]"
diff --git a/debianutils/which.c b/debianutils/which.c
index d50e7a0..c0f8978 100644
--- a/debianutils/which.c
+++ b/debianutils/which.c
@@ -5,6 +5,16 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
+//config:config WHICH
+//config: bool "which"
+//config: default y
+//config: help
+//config: which is used to find programs in your PATH and
+//config: print out their pathnames.
+
+//applet:IF_WHICH(APPLET(which, BB_DIR_USR_BIN, BB_SUID_DROP))
+
+//kbuild:lib-$(CONFIG_WHICH) += which.o
//usage:#define which_trivial_usage
//usage: "[COMMAND]..."