DESCRIPTION = "Samaba-3.6.22 for storage sharing" HOMEPAGE = "https://security.appspot.com/samba.html" LICENSE = "GPLv3" LIC_FILES_CHKSUM = "file://../COPYING;md5=d32239bcb673463ab874e80d47fae504" SRC_URI = " \ https://security.appspot.com/downloads/samba-${PV}.tar.gz \ file://smb_anony_rw.conf \ file://smb_signed_rw.conf \ file://start_samba \ file://stop_samba \ file://armsel-linux.cache \ file://samba_3.6.22.patch \ file://remove_timestamp.patch \ file://samba_cve_2017_7494.patch \ " SRC_URI[md5sum] = "a3b3ebdece45543b41a129cd5a0b0431" SRC_URI[sha256sum] = "e3e537358aa06124856c3f13d0e120ba2a3351ea97ab584d71b0efa2c3ea373e" S = "${WORKDIR}/${PN}-${PV}/source3" inherit autotools DEPENDS =+ "attr acl avahi zlib" EXTRA_OECONF = " \ --enable-optimize \ --host=${HOST_SYS} \ --target=${TARGET_SYS} \ --with-ldap=no \ --with-ads=no \ --enable-cups=no \ --enable-swat=no \ --enable-static=yes \ --enable-shared=no \ --enable-debug=no \ --enable-developer=no \ --enable-krb5developer=no \ --enable-smbtorture4=no \ --enable-iprint=no \ --cache-file=armsel-linux.cache \ --with-libiconv=${STAGING_LIBDIR}/.. \ --disable-iprint \ --with-configdir=/data/config/samba \ --with-privatedir=/data/config/samba \ " do_configure () { ln -sf ${STAGING_BINDIR_NATIVE}/python-native/python ${STAGING_BINDIR_NATIVE}/python ln -sf ${STAGING_BINDIR_NATIVE}/python-native/python2.7 ${STAGING_BINDIR_NATIVE}/python2.7 ln -sf ${STAGING_BINDIR_NATIVE}/python-native/python-config ${STAGING_BINDIR_NATIVE}/python-config install -m 0755 ${WORKDIR}/armsel-linux.cache ${S}/armsel-linux.cache cd ${S} oe_runconf } do_compile () { cd ${S} oe_runmake } do_install () { install -d ${D}${sysconfdir}/default_config/samba ${D}${sysconfdir}/config/samba ${D}${bindir} #install -m 0644 ${WORKDIR}/smb_anony_rw.conf ${D}${sysconfdir}/config/samba #install -m 0644 ${WORKDIR}/smb_signed_rw.conf ${D}${sysconfdir}/config/samba install -m 0644 ${WORKDIR}/smb_anony_rw.conf ${D}${sysconfdir}/default_config/samba install -m 0644 ${WORKDIR}/smb_signed_rw.conf ${D}${sysconfdir}/default_config/samba install -m 0755 ${S}/bin/smbd ${D}${bindir}/smbd install -m 0755 ${S}/bin/nmbd ${D}${bindir}/nmbd install -m 0755 ${S}/bin/smbpasswd ${D}${bindir}/smbpasswd install -m 0755 ${WORKDIR}/start_samba ${D}${bindir}/start_samba install -m 0755 ${WORKDIR}/stop_samba ${D}${bindir}/stop_samba }