Add OPTIONS for WITH_DISABLE_ROOT_SUDO, WITH_DISABLE_AUTH, and
WITH_NOARGS_SHELL Submitted by: Scott Fultz
This commit is contained in:
parent
b1cf7a7880
commit
32058bb987
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=235610
@ -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 <bsd.port.pre.mk>
|
||||
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user