1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/sudo/sudo.conf
3 # Copyright (C) 2004 - 2024 The T2 SDE Project
4 # Copyright (C) 1998 - 2003 ROCK Linux Project
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 passprompt='[sudo] password for %p: '
14 var_append confopt ' ' "'--with-passprompt=\"\$passprompt\"'"
15 var_append confopt ' ' '--enable-log-host --with-tty-tickets'
16 var_append confopt ' ' "--runstatedir=$localstatedir/run"
18 pkginstalled pam && var_append extraconfopt ' ' '--with-pam'
19 pkginstalled pam || var_append extraconfopt ' ' '--disable-pam-session'
20 pkginstalled pam || hook_add premake 3 'sed -i -e "s/-lpam//" Makefile'