diff options
-rw-r--r-- | include/applets.h | 1 | ||||
-rw-r--r-- | include/usage.h | 23 | ||||
-rw-r--r-- | networking/Config.in | 13 | ||||
-rw-r--r-- | networking/Kbuild | 1 |
4 files changed, 38 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h index 830ff2842..a78ce1c77 100644 --- a/include/applets.h +++ b/include/applets.h | |||
@@ -299,6 +299,7 @@ USE_RUNSV(APPLET(runsv, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | |||
299 | USE_RUNSVDIR(APPLET(runsvdir, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 299 | USE_RUNSVDIR(APPLET(runsvdir, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
300 | USE_RX(APPLET(rx, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 300 | USE_RX(APPLET(rx, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
301 | USE_SED(APPLET(sed, _BB_DIR_BIN, _BB_SUID_NEVER)) | 301 | USE_SED(APPLET(sed, _BB_DIR_BIN, _BB_SUID_NEVER)) |
302 | USE_SENDMAIL(APPLET(sendmail, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | ||
302 | USE_SELINUXENABLED(APPLET(selinuxenabled, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) | 303 | USE_SELINUXENABLED(APPLET(selinuxenabled, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) |
303 | USE_SEQ(APPLET_NOFORK(seq, seq, _BB_DIR_USR_BIN, _BB_SUID_NEVER, seq)) | 304 | USE_SEQ(APPLET_NOFORK(seq, seq, _BB_DIR_USR_BIN, _BB_SUID_NEVER, seq)) |
304 | USE_SESTATUS(APPLET(sestatus, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) | 305 | USE_SESTATUS(APPLET(sestatus, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) |
diff --git a/include/usage.h b/include/usage.h index 2fa878061..0ef17b520 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -3134,6 +3134,29 @@ USE_FEATURE_RUN_PARTS_FANCY("\n -l Prints names of all matching files even when | |||
3134 | #define selinuxenabled_trivial_usage | 3134 | #define selinuxenabled_trivial_usage |
3135 | #define selinuxenabled_full_usage | 3135 | #define selinuxenabled_full_usage |
3136 | 3136 | ||
3137 | #define sendmail_trivial_usage \ | ||
3138 | "[-d] {-t to}+ [-f from] [-n[notify]] [-s subject] [-b file]*\n" \ | ||
3139 | "[-a attachment]* [-c charset] [-w timeout] [-h server] [-p port] [-U user] [-P password]" | ||
3140 | #define sendmail_full_usage \ | ||
3141 | "Send an email from to with subject and optional attachments.\n" \ | ||
3142 | "Body is read from stdin or from optional files" \ | ||
3143 | "\n\nArguments:\n" \ | ||
3144 | " -d Just dump composed message\n" \ | ||
3145 | " -t to Recipient email. May be multiple\n" \ | ||
3146 | " -f from Sender email\n" \ | ||
3147 | " -n[notify] Optional notification address. If just -n given then notifies the sender\n" \ | ||
3148 | " -s subject Optional subject\n" \ | ||
3149 | " -b filename Optional body content file. May be multiple\n" \ | ||
3150 | " -a filename Optional file attachment. May be multiple\n" \ | ||
3151 | " -c charset Assumed charset for body and subject [koi8-r]" \ | ||
3152 | USE_FEATURE_SENDMAIL_NETWORK("\n" \ | ||
3153 | " -w timeout Set timeout on network operations\n" \ | ||
3154 | " -h server Optional mail server name or IP [127.0.0.1]\n" \ | ||
3155 | " -p port Optional mail server port [25]\n" \ | ||
3156 | " -U username Authenticate using AUTH LOGIN with specified username\n" \ | ||
3157 | " -P password Authenticate using AUTH LOGIN with specified password"\ | ||
3158 | ) | ||
3159 | |||
3137 | #define seq_trivial_usage \ | 3160 | #define seq_trivial_usage \ |
3138 | "[first [increment]] last" | 3161 | "[first [increment]] last" |
3139 | #define seq_full_usage \ | 3162 | #define seq_full_usage \ |
diff --git a/networking/Config.in b/networking/Config.in index f1f7ae04b..cd986b862 100644 --- a/networking/Config.in +++ b/networking/Config.in | |||
@@ -665,6 +665,19 @@ config ROUTE | |||
665 | help | 665 | help |
666 | Route displays or manipulates the kernel's IP routing tables. | 666 | Route displays or manipulates the kernel's IP routing tables. |
667 | 667 | ||
668 | config SENDMAIL | ||
669 | bool "sendmail" | ||
670 | default n | ||
671 | help | ||
672 | Barebones sendmail. | ||
673 | |||
674 | config FEATURE_SENDMAIL_NETWORK | ||
675 | bool "Support network connectivity" | ||
676 | default y | ||
677 | depends on SENDMAIL | ||
678 | help | ||
679 | Add ability to send, not only compose messages. | ||
680 | |||
668 | config SLATTACH | 681 | config SLATTACH |
669 | bool "slattach" | 682 | bool "slattach" |
670 | default n | 683 | default n |
diff --git a/networking/Kbuild b/networking/Kbuild index 3bcbe0242..2819e8507 100644 --- a/networking/Kbuild +++ b/networking/Kbuild | |||
@@ -28,6 +28,7 @@ lib-$(CONFIG_PING) += ping.o | |||
28 | lib-$(CONFIG_PING6) += ping.o | 28 | lib-$(CONFIG_PING6) += ping.o |
29 | lib-$(CONFIG_PSCAN) += pscan.o | 29 | lib-$(CONFIG_PSCAN) += pscan.o |
30 | lib-$(CONFIG_ROUTE) += route.o | 30 | lib-$(CONFIG_ROUTE) += route.o |
31 | lib-$(CONFIG_SENDMAIL) += sendmail.o | ||
31 | lib-$(CONFIG_SLATTACH) += slattach.o | 32 | lib-$(CONFIG_SLATTACH) += slattach.o |
32 | lib-$(CONFIG_TELNET) += telnet.o | 33 | lib-$(CONFIG_TELNET) += telnet.o |
33 | lib-$(CONFIG_TELNETD) += telnetd.o | 34 | lib-$(CONFIG_TELNETD) += telnetd.o |