mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-05 02:50:46 +00:00
samba: simplify LSB handling
Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
This commit is contained in:
committed by
Joe MacDonald
parent
cb9e340867
commit
380f0cef36
@@ -38,8 +38,8 @@ DEPENDS_append_libc-musl = " libtirpc"
|
||||
CFLAGS_append_libc-musl = " -I${STAGING_INCDIR}/tirpc"
|
||||
LDFLAGS_append_libc-musl = " -ltirpc"
|
||||
|
||||
SYSVINITTYPE_linuxstdbase = "lsb"
|
||||
SYSVINITTYPE = "sysv"
|
||||
LSB = ""
|
||||
LSB_linuxstdbase = "lsb"
|
||||
|
||||
INITSCRIPT_NAME = "samba"
|
||||
INITSCRIPT_PARAMS = "start 20 3 5 . stop 20 0 1 6 ."
|
||||
@@ -48,19 +48,16 @@ SYSTEMD_PACKAGES = "${PN}-base winbind"
|
||||
SYSTEMD_SERVICE_${PN}-base = "nmb.service smb.service"
|
||||
SYSTEMD_SERVICE_winbind = "winbind.service"
|
||||
|
||||
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', '${SYSVINITTYPE}', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \
|
||||
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'zeroconf', '', d)} \
|
||||
acl cups ldap \
|
||||
"
|
||||
|
||||
RDEPENDS_${PN}-base += "${@bb.utils.contains('PACKAGECONFIG', 'lsb', 'lsb', '', d)}"
|
||||
RDEPENDS_${PN}-base += "${LSB}"
|
||||
RDEPENDS_${PN}-ctdb-tests += "bash util-linux-getopt"
|
||||
|
||||
PACKAGECONFIG[acl] = "--with-acl-support,--without-acl-support,acl"
|
||||
PACKAGECONFIG[fam] = "--with-fam,--without-fam,gamin"
|
||||
PACKAGECONFIG[lsb] = ",,lsb"
|
||||
PACKAGECONFIG[sysv] = ",,sysvinit"
|
||||
PACKAGECONFIG[cups] = "--enable-cups,--disable-cups,cups"
|
||||
PACKAGECONFIG[ldap] = "--with-ldap,--without-ldap,openldap"
|
||||
PACKAGECONFIG[sasl] = ",,cyrus-sasl"
|
||||
@@ -121,7 +118,7 @@ do_install_append() {
|
||||
install -m644 packaging/systemd/samba.conf.tmp ${D}${sysconfdir}/tmpfiles.d/samba.conf
|
||||
echo "d ${localstatedir}/log/samba 0755 root root -" \
|
||||
>> ${D}${sysconfdir}/tmpfiles.d/samba.conf
|
||||
if ${@bb.utils.contains('PACKAGECONFIG', 'lsb', 'true', 'false', d)}; then
|
||||
if [ "${LSB}" = "lsb" ]; then
|
||||
install -d ${D}${sysconfdir}/init.d
|
||||
install -m 0755 packaging/LSB/samba.sh ${D}${sysconfdir}/init.d/samba
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user