summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/samba/samba-ads.inc18
-rw-r--r--packages/samba/samba-ads_3.2.7.bb31
2 files changed, 49 insertions, 0 deletions
diff --git a/packages/samba/samba-ads.inc b/packages/samba/samba-ads.inc
new file mode 100644
index 0000000000..78e7a9d770
--- /dev/null
+++ b/packages/samba/samba-ads.inc
@@ -0,0 +1,18 @@
+PACKAGES =+ "libsmbclient-ads libsmbclient-ads-dev cifs-ads cifs-ads-doc smbfs-ads smbfs-ads-doc swat-ads"
+
+RCONFLICTS_${PN} = "samba"
+RCONFLICTS_libsmbclient-ads = "libsmbclient"
+RCONFLICTS_libsmbclient-ads-dev = "libsmbclient-dev"
+RCONFLICTS_cifs-ads = "cifs"
+RCONFLICTS_cifs-ads-doc = "cifs-doc"
+RCONFLICTS_smbfs-ads = "smbfs"
+RCONFLICTS_smbfs-ads-doc = "smbfs-doc"
+RCONFLICTS_swat-ads = "swat"
+
+FILES_cifs-ads= "${base_sbindir}/mount.cifs ${base_sbindir}/umount.cifs"
+FILES_cifs-ads-doc = "${mandir}/man8/mount.cifs.8 ${mandir}/man8/umount.cifs.8"
+FILES_libsmbclient-ads = "${libdir}/libsmbclient.so.*"
+FILES_libsmbclient-ads-dev = "${libdir}/libsmbclient.so ${includedir}"
+FILES_smbfs-ads = "${bindir}/smbmount ${bindir}/smbumount ${bindir}/smbmnt ${base_sbindir}/mount.smbfs ${base_sbindir}/mount.smb"
+FILES_smbfs-ads-doc = "${mandir}/man8/smbmount.8 ${mandir}/man8/smbumount.8 ${mandir}/man8/smbmnt.8"
+FILES_swat-ads = "${sbindir}/swat ${datadir}/swat ${libdir}/*.msg"
diff --git a/packages/samba/samba-ads_3.2.7.bb b/packages/samba/samba-ads_3.2.7.bb
new file mode 100644
index 0000000000..8311c35046
--- /dev/null
+++ b/packages/samba/samba-ads_3.2.7.bb
@@ -0,0 +1,31 @@
+require samba.inc
+require samba-ads.inc
+
+PR = "r0"
+DEPENDS += " openldap krb5"
+SRC_URI += "file://config-lfs.patch;patch=1 \
+ file://quota.patch;patch=1;pnum=0 \
+ file://configure-3.2.7.patch;patch=1 \
+ file://config-h.patch;patch=1 \
+ file://mtab.patch;patch=1 \
+ "
+
+EXTRA_OECONF += "\
+ SMB_BUILD_CC_NEGATIVE_ENUM_VALUES=yes \
+ samba_cv_CC_NEGATIVE_ENUM_VALUES=yes \
+ linux_getgrouplist_ok=no \
+ samba_cv_HAVE_BROKEN_GETGROUPS=no \
+ samba_cv_HAVE_FTRUNCATE_EXTEND=yes \
+ ac_cv_path_KRB5CONFIG=${STAGING_BINDIR_CROSS}/krb5-config \
+ samba_cv_have_setresuid=yes \
+ samba_cv_have_setresgid=yes \
+ samba_cv_HAVE_WRFILE_KEYTAB=yes \
+ smb_krb5_cv_enctype_to_string_takes_krb5_context_arg=yes \
+ smb_krb5_cv_enctype_to_string_takes_size_t_arg=yes \
+ --with-krb5=${STAGING_LIBDIR} \
+ --with-ads \
+ "
+
+do_configure() {
+ oe_runconf
+}