diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-01-05 04:01:56 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-01-05 04:01:56 +0000 |
commit | e06661d1addf4d8072bd68c56b9a4c17a5b77a7e (patch) | |
tree | f685aca3eb4a763dd0c58a291c766f018f8656c3 /include | |
parent | da8405d69c86202ad197a0e049aa0e9ca982d791 (diff) | |
download | busybox-w32-e06661d1addf4d8072bd68c56b9a4c17a5b77a7e.tar.gz busybox-w32-e06661d1addf4d8072bd68c56b9a4c17a5b77a7e.tar.bz2 busybox-w32-e06661d1addf4d8072bd68c56b9a4c17a5b77a7e.zip |
New applet: httpd, by Glenn Engel
git-svn-id: svn://busybox.net/trunk/busybox@6269 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 3 | ||||
-rw-r--r-- | include/usage.h | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/include/applets.h b/include/applets.h index 5d8e7bb68..177e82352 100644 --- a/include/applets.h +++ b/include/applets.h | |||
@@ -236,6 +236,9 @@ | |||
236 | #ifdef CONFIG_HOSTNAME | 236 | #ifdef CONFIG_HOSTNAME |
237 | APPLET(hostname, hostname_main, _BB_DIR_BIN, _BB_SUID_NEVER) | 237 | APPLET(hostname, hostname_main, _BB_DIR_BIN, _BB_SUID_NEVER) |
238 | #endif | 238 | #endif |
239 | #ifdef CONFIG_HTTPD | ||
240 | APPLET(httpd, httpd_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER) | ||
241 | #endif | ||
239 | #ifdef CONFIG_HUSH | 242 | #ifdef CONFIG_HUSH |
240 | APPLET_NOUSAGE("hush", hush_main, _BB_DIR_BIN, _BB_SUID_NEVER) | 243 | APPLET_NOUSAGE("hush", hush_main, _BB_DIR_BIN, _BB_SUID_NEVER) |
241 | #endif | 244 | #endif |
diff --git a/include/usage.h b/include/usage.h index b5687115d..dfcc89626 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -775,7 +775,20 @@ | |||
775 | #define hostname_example_usage \ | 775 | #define hostname_example_usage \ |
776 | "$ hostname\n" \ | 776 | "$ hostname\n" \ |
777 | "sage \n" | 777 | "sage \n" |
778 | 778 | #ifdef CONFIG_FEATURE_HTTPD_BASIC_AUTH | |
779 | #define USAGE_HTTPD_BASIC_AUTH(a) a | ||
780 | #else | ||
781 | #define USAGE_HTTPD_BASIC_AUTH(a) | ||
782 | #endif | ||
783 | #define httpd_trivial_usage \ | ||
784 | "[-p <port>] [-d/-e <string>]" USAGE_HTTPD_BASIC_AUTH(" [-c <conf file>] [-r <realm>]") | ||
785 | #define httpd_full_usage \ | ||
786 | "Listens for incoming http server requests.\n"\ | ||
787 | "Options:\n" \ | ||
788 | "\t-p PORT\tServer port (default 80).\n" \ | ||
789 | USAGE_HTTPD_BASIC_AUTH("\t-c FILE\tSpecifies configuration file. (default httpd.conf)\n\t-r REALM\tAuthentication Realm for Basic Authentication\n") \ | ||
790 | "\t-e STRING\tHtml encode STRING\n" \ | ||
791 | "\t-d STRING\tURL decode STRING\n" | ||
779 | #define hwclock_trivial_usage \ | 792 | #define hwclock_trivial_usage \ |
780 | "[-r|--show] [-s|--hctosys] [-w|--systohc] [-l|--localtime] [-u|--utc]" | 793 | "[-r|--show] [-s|--hctosys] [-w|--systohc] [-l|--localtime] [-u|--utc]" |
781 | #define hwclock_full_usage \ | 794 | #define hwclock_full_usage \ |