aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-11-23 09:58:03 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2016-11-23 09:58:03 +0100
commitc19f7584e14522043da141189711c8db72dfbc90 (patch)
tree5338df22283363d2ed79bf53605a325659482ab9
parent29e2c45a5b317556a890a86ca7780e589072151c (diff)
downloadbusybox-w32-c19f7584e14522043da141189711c8db72dfbc90.tar.gz
busybox-w32-c19f7584e14522043da141189711c8db72dfbc90.tar.bz2
busybox-w32-c19f7584e14522043da141189711c8db72dfbc90.zip
Convert all mailutils/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--include/applets.src.h4
-rw-r--r--mailutils/Config.src43
-rw-r--r--mailutils/makemime.c7
-rw-r--r--mailutils/popmaildir.c18
-rw-r--r--mailutils/reformime.c15
-rw-r--r--mailutils/sendmail.c7
6 files changed, 47 insertions, 47 deletions
diff --git a/include/applets.src.h b/include/applets.src.h
index 18baee155..83f6237b2 100644
--- a/include/applets.src.h
+++ b/include/applets.src.h
@@ -144,7 +144,6 @@ IF_LOSETUP(APPLET(losetup, BB_DIR_SBIN, BB_SUID_DROP))
144IF_LS(APPLET_NOEXEC(ls, ls, BB_DIR_BIN, BB_SUID_DROP, ls)) 144IF_LS(APPLET_NOEXEC(ls, ls, BB_DIR_BIN, BB_SUID_DROP, ls))
145IF_LSPCI(APPLET(lspci, BB_DIR_USR_BIN, BB_SUID_DROP)) 145IF_LSPCI(APPLET(lspci, BB_DIR_USR_BIN, BB_SUID_DROP))
146IF_LSUSB(APPLET(lsusb, BB_DIR_USR_BIN, BB_SUID_DROP)) 146IF_LSUSB(APPLET(lsusb, BB_DIR_USR_BIN, BB_SUID_DROP))
147IF_MAKEMIME(APPLET(makemime, BB_DIR_BIN, BB_SUID_DROP))
148IF_MATCHPATHCON(APPLET(matchpathcon, BB_DIR_USR_SBIN, BB_SUID_DROP)) 147IF_MATCHPATHCON(APPLET(matchpathcon, BB_DIR_USR_SBIN, BB_SUID_DROP))
149IF_MKDIR(APPLET_NOFORK(mkdir, mkdir, BB_DIR_BIN, BB_SUID_DROP, mkdir)) 148IF_MKDIR(APPLET_NOFORK(mkdir, mkdir, BB_DIR_BIN, BB_SUID_DROP, mkdir))
150IF_MKFIFO(APPLET_NOEXEC(mkfifo, mkfifo, BB_DIR_USR_BIN, BB_SUID_DROP, mkfifo)) 149IF_MKFIFO(APPLET_NOEXEC(mkfifo, mkfifo, BB_DIR_USR_BIN, BB_SUID_DROP, mkfifo))
@@ -165,7 +164,6 @@ IF_OD(APPLET(od, BB_DIR_USR_BIN, BB_SUID_DROP))
165IF_OPENVT(APPLET(openvt, BB_DIR_USR_BIN, BB_SUID_DROP)) 164IF_OPENVT(APPLET(openvt, BB_DIR_USR_BIN, BB_SUID_DROP))
166//IF_PARSE(APPLET(parse, BB_DIR_USR_BIN, BB_SUID_DROP)) 165//IF_PARSE(APPLET(parse, BB_DIR_USR_BIN, BB_SUID_DROP))
167IF_PIVOT_ROOT(APPLET(pivot_root, BB_DIR_SBIN, BB_SUID_DROP)) 166IF_PIVOT_ROOT(APPLET(pivot_root, BB_DIR_SBIN, BB_SUID_DROP))
168IF_POPMAILDIR(APPLET(popmaildir, BB_DIR_USR_SBIN, BB_SUID_DROP))
169IF_PRINTENV(APPLET_NOFORK(printenv, printenv, BB_DIR_BIN, BB_SUID_DROP, printenv)) 167IF_PRINTENV(APPLET_NOFORK(printenv, printenv, BB_DIR_BIN, BB_SUID_DROP, printenv))
170IF_PRINTF(APPLET_NOFORK(printf, printf, BB_DIR_USR_BIN, BB_SUID_DROP, printf)) 168IF_PRINTF(APPLET_NOFORK(printf, printf, BB_DIR_USR_BIN, BB_SUID_DROP, printf))
171IF_PWD(APPLET_NOFORK(pwd, pwd, BB_DIR_BIN, BB_SUID_DROP, pwd)) 169IF_PWD(APPLET_NOFORK(pwd, pwd, BB_DIR_BIN, BB_SUID_DROP, pwd))
@@ -174,7 +172,6 @@ IF_RDEV(APPLET(rdev, BB_DIR_USR_SBIN, BB_SUID_DROP))
174IF_READLINK(APPLET(readlink, BB_DIR_USR_BIN, BB_SUID_DROP)) 172IF_READLINK(APPLET(readlink, BB_DIR_USR_BIN, BB_SUID_DROP))
175IF_READPROFILE(APPLET(readprofile, BB_DIR_USR_SBIN, BB_SUID_DROP)) 173IF_READPROFILE(APPLET(readprofile, BB_DIR_USR_SBIN, BB_SUID_DROP))
176IF_REALPATH(APPLET(realpath, BB_DIR_USR_BIN, BB_SUID_DROP)) 174IF_REALPATH(APPLET(realpath, BB_DIR_USR_BIN, BB_SUID_DROP))
177IF_REFORMIME(APPLET(reformime, BB_DIR_BIN, BB_SUID_DROP))
178IF_RESET(APPLET(reset, BB_DIR_USR_BIN, BB_SUID_DROP)) 175IF_RESET(APPLET(reset, BB_DIR_USR_BIN, BB_SUID_DROP))
179IF_RESIZE(APPLET(resize, BB_DIR_USR_BIN, BB_SUID_DROP)) 176IF_RESIZE(APPLET(resize, BB_DIR_USR_BIN, BB_SUID_DROP))
180IF_RESTORECON(APPLET_ODDNAME(restorecon, setfiles, BB_DIR_SBIN, BB_SUID_DROP, restorecon)) 177IF_RESTORECON(APPLET_ODDNAME(restorecon, setfiles, BB_DIR_SBIN, BB_SUID_DROP, restorecon))
@@ -185,7 +182,6 @@ IF_RUNCON(APPLET(runcon, BB_DIR_USR_BIN, BB_SUID_DROP))
185IF_SCRIPT(APPLET(script, BB_DIR_USR_BIN, BB_SUID_DROP)) 182IF_SCRIPT(APPLET(script, BB_DIR_USR_BIN, BB_SUID_DROP))
186IF_SCRIPTREPLAY(APPLET(scriptreplay, BB_DIR_BIN, BB_SUID_DROP)) 183IF_SCRIPTREPLAY(APPLET(scriptreplay, BB_DIR_BIN, BB_SUID_DROP))
187IF_SELINUXENABLED(APPLET(selinuxenabled, BB_DIR_USR_SBIN, BB_SUID_DROP)) 184IF_SELINUXENABLED(APPLET(selinuxenabled, BB_DIR_USR_SBIN, BB_SUID_DROP))
188IF_SENDMAIL(APPLET(sendmail, BB_DIR_USR_SBIN, BB_SUID_DROP))
189IF_SEQ(APPLET_NOFORK(seq, seq, BB_DIR_USR_BIN, BB_SUID_DROP, seq)) 185IF_SEQ(APPLET_NOFORK(seq, seq, BB_DIR_USR_BIN, BB_SUID_DROP, seq))
190IF_SESTATUS(APPLET(sestatus, BB_DIR_USR_SBIN, BB_SUID_DROP)) 186IF_SESTATUS(APPLET(sestatus, BB_DIR_USR_SBIN, BB_SUID_DROP))
191IF_SETCONSOLE(APPLET(setconsole, BB_DIR_SBIN, BB_SUID_DROP)) 187IF_SETCONSOLE(APPLET(setconsole, BB_DIR_SBIN, BB_SUID_DROP))
diff --git a/mailutils/Config.src b/mailutils/Config.src
index 2a9c5c074..e45a0f8fb 100644
--- a/mailutils/Config.src
+++ b/mailutils/Config.src
@@ -2,12 +2,6 @@ menu "Mail Utilities"
2 2
3INSERT 3INSERT
4 4
5config MAKEMIME
6 bool "makemime"
7 default y
8 help
9 Create MIME-formatted messages.
10
11config FEATURE_MIME_CHARSET 5config FEATURE_MIME_CHARSET
12 string "Default charset" 6 string "Default charset"
13 default "us-ascii" 7 default "us-ascii"
@@ -15,41 +9,4 @@ config FEATURE_MIME_CHARSET
15 help 9 help
16 Default charset of the message. 10 Default charset of the message.
17 11
18config POPMAILDIR
19 bool "popmaildir"
20 default y
21 help
22 Simple yet powerful POP3 mail popper. Delivers content
23 of remote mailboxes to local Maildir.
24
25config FEATURE_POPMAILDIR_DELIVERY
26 bool "Allow message filters and custom delivery program"
27 default y
28 depends on POPMAILDIR
29 help
30 Allow to use a custom program to filter the content
31 of the message before actual delivery (-F "prog [args...]").
32 Allow to use a custom program for message actual delivery
33 (-M "prog [args...]").
34
35config REFORMIME
36 bool "reformime"
37 default y
38 help
39 Parse MIME-formatted messages.
40
41config FEATURE_REFORMIME_COMPAT
42 bool "Accept and ignore options other than -x and -X"
43 default y
44 depends on REFORMIME
45 help
46 Accept (for compatibility only) and ignore options
47 other than -x and -X.
48
49config SENDMAIL
50 bool "sendmail"
51 default y
52 help
53 Barebones sendmail.
54
55endmenu 12endmenu
diff --git a/mailutils/makemime.c b/mailutils/makemime.c
index 8e1bc664c..78f78bbcc 100644
--- a/mailutils/makemime.c
+++ b/mailutils/makemime.c
@@ -6,6 +6,13 @@
6 * 6 *
7 * Licensed under GPLv2, see file LICENSE in this source tree. 7 * Licensed under GPLv2, see file LICENSE in this source tree.
8 */ 8 */
9//config:config MAKEMIME
10//config: bool "makemime"
11//config: default y
12//config: help
13//config: Create MIME-formatted messages.
14
15//applet:IF_MAKEMIME(APPLET(makemime, BB_DIR_BIN, BB_SUID_DROP))
9 16
10//kbuild:lib-$(CONFIG_MAKEMIME) += makemime.o mail.o 17//kbuild:lib-$(CONFIG_MAKEMIME) += makemime.o mail.o
11 18
diff --git a/mailutils/popmaildir.c b/mailutils/popmaildir.c
index 69eca6164..ffe373865 100644
--- a/mailutils/popmaildir.c
+++ b/mailutils/popmaildir.c
@@ -9,6 +9,24 @@
9 * 9 *
10 * Licensed under GPLv2, see file LICENSE in this source tree. 10 * Licensed under GPLv2, see file LICENSE in this source tree.
11 */ 11 */
12//config:config POPMAILDIR
13//config: bool "popmaildir"
14//config: default y
15//config: help
16//config: Simple yet powerful POP3 mail popper. Delivers content
17//config: of remote mailboxes to local Maildir.
18//config:
19//config:config FEATURE_POPMAILDIR_DELIVERY
20//config: bool "Allow message filters and custom delivery program"
21//config: default y
22//config: depends on POPMAILDIR
23//config: help
24//config: Allow to use a custom program to filter the content
25//config: of the message before actual delivery (-F "prog [args...]").
26//config: Allow to use a custom program for message actual delivery
27//config: (-M "prog [args...]").
28
29//applet:IF_POPMAILDIR(APPLET(popmaildir, BB_DIR_USR_SBIN, BB_SUID_DROP))
12 30
13//kbuild:lib-$(CONFIG_POPMAILDIR) += popmaildir.o mail.o 31//kbuild:lib-$(CONFIG_POPMAILDIR) += popmaildir.o mail.o
14 32
diff --git a/mailutils/reformime.c b/mailutils/reformime.c
index b967dfbc7..e97bc0130 100644
--- a/mailutils/reformime.c
+++ b/mailutils/reformime.c
@@ -6,6 +6,21 @@
6 * 6 *
7 * Licensed under GPLv2, see file LICENSE in this source tree. 7 * Licensed under GPLv2, see file LICENSE in this source tree.
8 */ 8 */
9//config:config REFORMIME
10//config: bool "reformime"
11//config: default y
12//config: help
13//config: Parse MIME-formatted messages.
14//config:
15//config:config FEATURE_REFORMIME_COMPAT
16//config: bool "Accept and ignore options other than -x and -X"
17//config: default y
18//config: depends on REFORMIME
19//config: help
20//config: Accept (for compatibility only) and ignore options
21//config: other than -x and -X.
22
23//applet:IF_REFORMIME(APPLET(reformime, BB_DIR_BIN, BB_SUID_DROP))
9 24
10//kbuild:lib-$(CONFIG_REFORMIME) += reformime.o mail.o 25//kbuild:lib-$(CONFIG_REFORMIME) += reformime.o mail.o
11 26
diff --git a/mailutils/sendmail.c b/mailutils/sendmail.c
index 1242795b8..8ddb7826b 100644
--- a/mailutils/sendmail.c
+++ b/mailutils/sendmail.c
@@ -6,6 +6,13 @@
6 * 6 *
7 * Licensed under GPLv2, see file LICENSE in this source tree. 7 * Licensed under GPLv2, see file LICENSE in this source tree.
8 */ 8 */
9//config:config SENDMAIL
10//config: bool "sendmail"
11//config: default y
12//config: help
13//config: Barebones sendmail.
14
15//applet:IF_SENDMAIL(APPLET(sendmail, BB_DIR_USR_SBIN, BB_SUID_DROP))
9 16
10//kbuild:lib-$(CONFIG_SENDMAIL) += sendmail.o mail.o 17//kbuild:lib-$(CONFIG_SENDMAIL) += sendmail.o mail.o
11 18