From 4c014770393b67b5925196af22aa2552bf6d6e2e Mon Sep 17 00:00:00 2001 From: tmclaugh Date: Fri, 12 Jun 2009 00:46:49 +0000 Subject: Add OPTIONS for WITH_DISABLE_ROOT_SUDO, WITH_DISABLE_AUTH, and WITH_NOARGS_SHELL Submitted by: Scott Fultz --- security/sudo/Makefile | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'security') diff --git a/security/sudo/Makefile b/security/sudo/Makefile index 77c2a28c26e8..114e6488d715 100644 --- a/security/sudo/Makefile +++ b/security/sudo/Makefile @@ -34,7 +34,10 @@ CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc \ OPTIONS= LDAP "With LDAP support" off \ INSULTS "With all insults" off \ - SHELL_SETS_HOME "Set HOME env to target user in shell mode" off + SHELL_SETS_HOME "Set HOME env to target user in shell mode" off \ + DISABLE_ROOT_SUDO "Disable root sudo" off \ + DISABLE_AUTH "Disable authentication" off \ + NOARGS_SHELL "Enable no arguments shell" off .include @@ -62,6 +65,18 @@ PLIST_SUB= LDAP="@comment " CONFIGURE_ARGS+=--enable-shell-sets-home .endif +.if defined(WITH_DISABLE_ROOT_SUDO) +CONFIGURE_ARGS+=--disable-root-sudo +.endif + +.if defined(WITH_DISABLE_AUTH) +CONFIGURE_ARGS+=--disable-authentication +.endif + +.if defined(WITH_NOARGS_SHELL) +CONFIGURE_ARGS+=--enable-noargs-shell +.endif + MAN5= sudoers.5 MAN8= sudo.8 visudo.8 MLINKS= sudo.8 sudoedit.8 -- cgit