78 lines
2.7 KiB
BlitzBasic
Executable File
78 lines
2.7 KiB
BlitzBasic
Executable File
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_ro.conf \
|
|
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 \
|
|
"
|
|
SRC_URI[md5sum] = "a3b3ebdece45543b41a129cd5a0b0431"
|
|
SRC_URI[sha256sum] = "e3e537358aa06124856c3f13d0e120ba2a3351ea97ab584d71b0efa2c3ea373e"
|
|
S = "${WORKDIR}/${PN}-${PV}/source3"
|
|
inherit autotools
|
|
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=/etc/config/samba \
|
|
--with-privatedir=/etc/config/samba/private \
|
|
"
|
|
|
|
# This list indicate with which size of DDR the smbd needs to be moved to system partition
|
|
SMALL_MEMORY_LIST = "1G"
|
|
#PRODUCT_MEMORY = "${@base_contains("SMALL_MEMORY_LIST", "${DDR_SIZE}", "_SMALL_MEMORY", "", d)}"
|
|
|
|
do_configure () {
|
|
install -m 0755 ${WORKDIR}/armsel-linux.cache ${S}/armsel-linux.cache
|
|
oe_runconf
|
|
}
|
|
|
|
do_complie () {
|
|
oe_runmake
|
|
}
|
|
|
|
do_install_append () {
|
|
install -d ${D}${sysconfdir}/default_config/samba ${D}/sbin
|
|
|
|
install -m 0755 ${WORKDIR}/smb_anony_ro.conf ${D}${sysconfdir}/config/samba
|
|
install -m 0755 ${WORKDIR}/smb_anony_rw.conf ${D}${sysconfdir}/config/samba
|
|
install -m 0755 ${WORKDIR}/smb_signed_rw.conf ${D}${sysconfdir}/config/samba
|
|
|
|
install -m 0755 ${WORKDIR}/smb_anony_ro.conf ${D}${sysconfdir}/default_config/samba
|
|
install -m 0755 ${WORKDIR}/smb_anony_rw.conf ${D}${sysconfdir}/default_config/samba
|
|
install -m 0755 ${WORKDIR}/smb_signed_rw.conf ${D}${sysconfdir}/default_config/samba
|
|
|
|
install -m 0755 ${D}${bindir}/smbpasswd ${D}${sbindir}/smbpasswd
|
|
|
|
if [ "${PRODUCT_MEMORY}" = "_SMALL_MEMORY" ]
|
|
then mv ${D}${sbindir}/smbd ${D}/sbin/smbd
|
|
fi
|
|
|
|
rm -rf ${D}${sbindir}/winbindd
|
|
rm -rf ${D}${bindir}/*
|
|
|
|
install -m 0755 ${WORKDIR}/start_samba ${D}${bindir}/start_samba
|
|
install -m 0755 ${WORKDIR}/stop_samba ${D}${bindir}/stop_samba
|
|
}
|