summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-connectivity
diff options
context:
space:
mode:
authorJens Rehsack <rehsack@gmail.com>2015-11-19 20:46:55 +0100
committerJoe MacDonald <joe_macdonald@mentor.com>2016-01-04 12:58:10 -0500
commit6b17037edf4288daa22291e61064970ca5619f60 (patch)
tree5bbb9f36c8f91aa2fb1103681062faf7175f7433 /meta-networking/recipes-connectivity
parent418d59459148621d593054dc397335d24165a655 (diff)
downloadmeta-openembedded-6b17037edf4288daa22291e61064970ca5619f60.tar.gz
samba: make cyrus-sasl optional
Since waf doesn't allow override check results via environment, a patch is needed to remove the bad check when an optional feature is unwanted. Signed-off-by: Jens Rehsack <sno@netbsd.org> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking/recipes-connectivity')
-rw-r--r--meta-networking/recipes-connectivity/samba/samba-4.1.12/21-avoid-sasl-unless-wanted.patch10
-rw-r--r--meta-networking/recipes-connectivity/samba/samba_4.1.12.bb6
2 files changed, 14 insertions, 2 deletions
diff --git a/meta-networking/recipes-connectivity/samba/samba-4.1.12/21-avoid-sasl-unless-wanted.patch b/meta-networking/recipes-connectivity/samba/samba-4.1.12/21-avoid-sasl-unless-wanted.patch
new file mode 100644
index 000000000..4254e1158
--- /dev/null
+++ b/meta-networking/recipes-connectivity/samba/samba-4.1.12/21-avoid-sasl-unless-wanted.patch
@@ -0,0 +1,10 @@
1--- ./source4/auth/wscript_configure.orig 2015-11-19 19:53:11.022212181 +0100
2+++ ./source4/auth/wscript_configure 2015-11-19 19:53:17.466212205 +0100
3@@ -2,7 +2,3 @@
4
5 conf.CHECK_HEADERS('security/pam_appl.h')
6 conf.CHECK_FUNCS_IN('pam_start', 'pam', checklibc=True)
7-
8-if (conf.CHECK_HEADERS('sasl/sasl.h') and
9- conf.CHECK_FUNCS_IN('sasl_client_init', 'sasl2')):
10- conf.DEFINE('HAVE_SASL', 1)
diff --git a/meta-networking/recipes-connectivity/samba/samba_4.1.12.bb b/meta-networking/recipes-connectivity/samba/samba_4.1.12.bb
index a2d3a2c49..75cf5d228 100644
--- a/meta-networking/recipes-connectivity/samba/samba_4.1.12.bb
+++ b/meta-networking/recipes-connectivity/samba/samba_4.1.12.bb
@@ -40,8 +40,7 @@ SRC_URI[sha256sum] = "033604674936bf5c77d7df299b0626052b84a41505a6a6afe902f6274f
40 40
41inherit systemd waf-samba cpan-base perlnative 41inherit systemd waf-samba cpan-base perlnative
42 42
43DEPENDS += "readline virtual/libiconv zlib popt libtalloc libtdb libtevent libldb krb5 ctdb libbsd cyrus-sasl" 43DEPENDS += "readline virtual/libiconv zlib popt libtalloc libtdb libtevent libldb krb5 ctdb libbsd"
44
45 44
46SYSVINITTYPE_linuxstdbase = "lsb" 45SYSVINITTYPE_linuxstdbase = "lsb"
47SYSVINITTYPE = "sysv" 46SYSVINITTYPE = "sysv"
@@ -62,10 +61,13 @@ PACKAGECONFIG[pam] = "--with-pam --with-pam_smbpass --with-pammodulesdir=${base_
62PACKAGECONFIG[lsb] = ",,lsb" 61PACKAGECONFIG[lsb] = ",,lsb"
63PACKAGECONFIG[cups] = "--enable-cups,--disable-cups,cups" 62PACKAGECONFIG[cups] = "--enable-cups,--disable-cups,cups"
64PACKAGECONFIG[ldap] = "--with-ldap,--without-ldap,openldap" 63PACKAGECONFIG[ldap] = "--with-ldap,--without-ldap,openldap"
64PACKAGECONFIG[sasl] = ",,cyrus-sasl"
65PACKAGECONFIG[systemd] = "--with-systemd,--without-systemd,systemd" 65PACKAGECONFIG[systemd] = "--with-systemd,--without-systemd,systemd"
66PACKAGECONFIG[dmapi] = "--with-dmapi,--without-dmapi,dmapi" 66PACKAGECONFIG[dmapi] = "--with-dmapi,--without-dmapi,dmapi"
67PACKAGECONFIG[zeroconf] = "--enable-avahi,--disable-avahi,avahi" 67PACKAGECONFIG[zeroconf] = "--enable-avahi,--disable-avahi,avahi"
68 68
69SRC_URI += "${@bb.utils.contains('PACKAGECONFIG', 'sasl', '', 'file://21-avoid-sasl-unless-wanted.patch', d)}"
70
69SAMBA4_IDMAP_MODULES="idmap_ad,idmap_rid,idmap_adex,idmap_hash,idmap_tdb2" 71SAMBA4_IDMAP_MODULES="idmap_ad,idmap_rid,idmap_adex,idmap_hash,idmap_tdb2"
70SAMBA4_PDB_MODULES="pdb_tdbsam,${@bb.utils.contains('PACKAGECONFIG', 'ldap', 'pdb_ldap,', '', d)}pdb_ads,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4" 72SAMBA4_PDB_MODULES="pdb_tdbsam,${@bb.utils.contains('PACKAGECONFIG', 'ldap', 'pdb_ldap,', '', d)}pdb_ads,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4"
71SAMBA4_AUTH_MODULES="auth_unix,auth_wbc,auth_server,auth_netlogond,auth_script,auth_samba4" 73SAMBA4_AUTH_MODULES="auth_unix,auth_wbc,auth_server,auth_netlogond,auth_script,auth_samba4"