M7350/oe-core/meta-tp/recipes/samba/samba_3.6.22.bb

75 lines
2.6 KiB
BlitzBasic
Raw Normal View History

2024-09-09 08:52:07 +00:00
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 \
2024-09-09 08:57:42 +00:00
file://samba_cve_2017_7494.patch \
2024-09-09 08:52:07 +00:00
"
SRC_URI[md5sum] = "a3b3ebdece45543b41a129cd5a0b0431"
SRC_URI[sha256sum] = "e3e537358aa06124856c3f13d0e120ba2a3351ea97ab584d71b0efa2c3ea373e"
S = "${WORKDIR}/${PN}-${PV}/source3"
inherit autotools
2024-09-09 08:57:42 +00:00
DEPENDS =+ "attr acl avahi zlib"
2024-09-09 08:52:07 +00:00
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 \
2024-09-09 08:57:42 +00:00
--with-configdir=/data/config/samba \
--with-privatedir=/data/config/samba \
2024-09-09 08:52:07 +00:00
"
do_configure () {
2024-09-09 08:57:42 +00:00
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
2024-09-09 08:52:07 +00:00
install -m 0755 ${WORKDIR}/armsel-linux.cache ${S}/armsel-linux.cache
2024-09-09 08:57:42 +00:00
cd ${S}
2024-09-09 08:52:07 +00:00
oe_runconf
}
2024-09-09 08:57:42 +00:00
do_compile () {
cd ${S}
2024-09-09 08:52:07 +00:00
oe_runmake
}
2024-09-09 08:57:42 +00:00
do_install () {
install -d ${D}${sysconfdir}/default_config/samba ${D}${sysconfdir}/config/samba ${D}${bindir}
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
#install -m 0644 ${WORKDIR}/smb_anony_rw.conf ${D}${sysconfdir}/config/samba
#install -m 0644 ${WORKDIR}/smb_signed_rw.conf ${D}${sysconfdir}/config/samba
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
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
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
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
2024-09-09 08:52:07 +00:00
install -m 0755 ${WORKDIR}/start_samba ${D}${bindir}/start_samba
install -m 0755 ${WORKDIR}/stop_samba ${D}${bindir}/stop_samba
}