treewide: Run refresh on all packages
[feed/packages.git] / net / samba4 / patches / 001-samba-4.4.0-pam.patch
1 --- a/source3/wscript
2 +++ b/source3/wscript
3 @@ -907,7 +907,7 @@ msg.msg_accrightslen = sizeof(fd);
4 if conf.env.with_iconv:
5 conf.DEFINE('HAVE_ICONV', 1)
6
7 - if Options.options.with_pam:
8 + if Options.options.with_pam != False:
9 use_pam=True
10 conf.CHECK_HEADERS('security/pam_appl.h pam/pam_appl.h')
11 if not conf.CONFIG_SET('HAVE_SECURITY_PAM_APPL_H') and not conf.CONFIG_SET('HAVE_PAM_PAM_APPL_H'):
12 @@ -984,6 +984,17 @@ int i; i = PAM_RADIO_TYPE;
13 "or headers not found. Use --without-pam to disable "
14 "PAM support.");
15
16 + else:
17 + Logs.warn("PAM disabled")
18 + use_pam=False
19 + conf.undefine('WITH_PAM')
20 + conf.undefine('WITH_PAM_MODULES')
21 + conf.undefine('HAVE_SECURITY_PAM_APPL_H')
22 + conf.undefine('PAM_RHOST')
23 + conf.undefine('PAM_TTY')
24 + conf.undefine('HAVE_PAM_PAM_APPL_H')
25 +
26 +
27 seteuid = False
28
29 #