From 5942cf3adb48c32a506204e6336cff47908bcd8a Mon Sep 17 00:00:00 2001 From: matusita Date: Sat, 1 Jun 2002 14:50:14 +0000 Subject: Add 'Sendmail' menu to set sendmail_enable variable. Reviewed by: bmah (description only) --- usr.sbin/sysinstall/menus.c | 22 +++++++++++++++++++++- usr.sbin/sysinstall/sysinstall.h | 1 + 2 files changed, 22 insertions(+), 1 deletion(-) (limited to 'usr.sbin/sysinstall') diff --git a/usr.sbin/sysinstall/menus.c b/usr.sbin/sysinstall/menus.c index 3b2fd10..ea0e2bd 100644 --- a/usr.sbin/sysinstall/menus.c +++ b/usr.sbin/sysinstall/menus.c @@ -1372,7 +1372,7 @@ DMenu MenuNetworking = { { " Rwhod", "This machine wants to run the rwho daemon", dmenuVarCheck, dmenuToggleVariable, NULL, "rwhod_enable=YES" }, { " Sendmail", "This machine wants to run the sendmail daemon", - dmenuVarCheck, dmenuToggleVariable, NULL, "sendmail_enable=YES" }, + NULL, dmenuSubmenu, NULL, &MenuSendmail }, { " Sshd", "This machine wants to run the ssh daemon", dmenuVarCheck, dmenuToggleVariable, NULL, "sshd_enable=YES" }, { " TCP Extensions", "Allow RFC1323 and RFC1644 TCP extensions?", @@ -1380,6 +1380,26 @@ DMenu MenuNetworking = { { NULL } }, }; +DMenu MenuSendmail = { + DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS, + "Sendmail Invocation Selection", + "There are three options for invoking sendmail at startup.\n" + "Please select Yes if you want to use sendmail as your mail transfer\n" + "agent. Selecting No disables sendmail's network socket for incoming\n" + "email, but still enables sendmail for outbound mail. None disables\n" + "sendmail completely at startup.", + NULL, + NULL, + { + { " Yes", "Start sendmail", + dmenuVarCheck, dmenuSetVariable, NULL, "sendmail_enable=YES" }, + { " No", "Start sendmail, but don't listen from network", + dmenuVarCheck, dmenuSetVariable, NULL, "sendmail_enable=NO" }, + { " None", "Don't start any sendmail processes", + dmenuVarCheck, dmenuSetVariable, NULL, "sendmail_enable=NONE" }, + { NULL } }, +}; + DMenu MenuNTP = { DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS, "NTPDATE Server Selection", diff --git a/usr.sbin/sysinstall/sysinstall.h b/usr.sbin/sysinstall/sysinstall.h index a137b52..438a28e 100644 --- a/usr.sbin/sysinstall/sysinstall.h +++ b/usr.sbin/sysinstall/sysinstall.h @@ -407,6 +407,7 @@ extern DMenu MenuSysconsSaver; /* System console saver configuration menu */ extern DMenu MenuSysconsScrnmap; /* System console screenmap configuration menu */ extern DMenu MenuSysconsTtys; /* System console terminal type menu */ extern DMenu MenuNetworking; /* Network configuration menu */ +extern DMenu MenuSendmail; /* Sendmail configuration menu */ extern DMenu MenuInstallCustom; /* Custom Installation menu */ extern DMenu MenuDistributions; /* Distribution menu */ extern DMenu MenuDiskDevices; /* Disk type devices */ -- cgit v1.1