diff options
author | Andreas Oberritter <obi@opendreambox.org> | 2016-11-30 13:04:04 +0100 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2016-12-17 10:57:42 -0500 |
commit | 380f0cef364c1a3749b574ee29f44cca004088b0 (patch) | |
tree | e775df9921c037911a8abe4505c6c19c7c178c56 /meta-networking/recipes-connectivity | |
parent | cb9e340867bc12b440a9ac25363b412168ad8f13 (diff) | |
download | meta-openembedded-380f0cef364c1a3749b574ee29f44cca004088b0.tar.gz |
samba: simplify LSB handling
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking/recipes-connectivity')
-rw-r--r-- | meta-networking/recipes-connectivity/samba/samba_4.4.5.bb | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/meta-networking/recipes-connectivity/samba/samba_4.4.5.bb b/meta-networking/recipes-connectivity/samba/samba_4.4.5.bb index 804a4d2dd..c2436af4e 100644 --- a/meta-networking/recipes-connectivity/samba/samba_4.4.5.bb +++ b/meta-networking/recipes-connectivity/samba/samba_4.4.5.bb | |||
@@ -38,8 +38,8 @@ DEPENDS_append_libc-musl = " libtirpc" | |||
38 | CFLAGS_append_libc-musl = " -I${STAGING_INCDIR}/tirpc" | 38 | CFLAGS_append_libc-musl = " -I${STAGING_INCDIR}/tirpc" |
39 | LDFLAGS_append_libc-musl = " -ltirpc" | 39 | LDFLAGS_append_libc-musl = " -ltirpc" |
40 | 40 | ||
41 | SYSVINITTYPE_linuxstdbase = "lsb" | 41 | LSB = "" |
42 | SYSVINITTYPE = "sysv" | 42 | LSB_linuxstdbase = "lsb" |
43 | 43 | ||
44 | INITSCRIPT_NAME = "samba" | 44 | INITSCRIPT_NAME = "samba" |
45 | INITSCRIPT_PARAMS = "start 20 3 5 . stop 20 0 1 6 ." | 45 | INITSCRIPT_PARAMS = "start 20 3 5 . stop 20 0 1 6 ." |
@@ -48,19 +48,16 @@ SYSTEMD_PACKAGES = "${PN}-base winbind" | |||
48 | SYSTEMD_SERVICE_${PN}-base = "nmb.service smb.service" | 48 | SYSTEMD_SERVICE_${PN}-base = "nmb.service smb.service" |
49 | SYSTEMD_SERVICE_winbind = "winbind.service" | 49 | SYSTEMD_SERVICE_winbind = "winbind.service" |
50 | 50 | ||
51 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', '${SYSVINITTYPE}', '', d)} \ | 51 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \ |
52 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \ | ||
53 | ${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'zeroconf', '', d)} \ | 52 | ${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'zeroconf', '', d)} \ |
54 | acl cups ldap \ | 53 | acl cups ldap \ |
55 | " | 54 | " |
56 | 55 | ||
57 | RDEPENDS_${PN}-base += "${@bb.utils.contains('PACKAGECONFIG', 'lsb', 'lsb', '', d)}" | 56 | RDEPENDS_${PN}-base += "${LSB}" |
58 | RDEPENDS_${PN}-ctdb-tests += "bash util-linux-getopt" | 57 | RDEPENDS_${PN}-ctdb-tests += "bash util-linux-getopt" |
59 | 58 | ||
60 | PACKAGECONFIG[acl] = "--with-acl-support,--without-acl-support,acl" | 59 | PACKAGECONFIG[acl] = "--with-acl-support,--without-acl-support,acl" |
61 | PACKAGECONFIG[fam] = "--with-fam,--without-fam,gamin" | 60 | PACKAGECONFIG[fam] = "--with-fam,--without-fam,gamin" |
62 | PACKAGECONFIG[lsb] = ",,lsb" | ||
63 | PACKAGECONFIG[sysv] = ",,sysvinit" | ||
64 | PACKAGECONFIG[cups] = "--enable-cups,--disable-cups,cups" | 61 | PACKAGECONFIG[cups] = "--enable-cups,--disable-cups,cups" |
65 | PACKAGECONFIG[ldap] = "--with-ldap,--without-ldap,openldap" | 62 | PACKAGECONFIG[ldap] = "--with-ldap,--without-ldap,openldap" |
66 | PACKAGECONFIG[sasl] = ",,cyrus-sasl" | 63 | PACKAGECONFIG[sasl] = ",,cyrus-sasl" |
@@ -121,7 +118,7 @@ do_install_append() { | |||
121 | install -m644 packaging/systemd/samba.conf.tmp ${D}${sysconfdir}/tmpfiles.d/samba.conf | 118 | install -m644 packaging/systemd/samba.conf.tmp ${D}${sysconfdir}/tmpfiles.d/samba.conf |
122 | echo "d ${localstatedir}/log/samba 0755 root root -" \ | 119 | echo "d ${localstatedir}/log/samba 0755 root root -" \ |
123 | >> ${D}${sysconfdir}/tmpfiles.d/samba.conf | 120 | >> ${D}${sysconfdir}/tmpfiles.d/samba.conf |
124 | if ${@bb.utils.contains('PACKAGECONFIG', 'lsb', 'true', 'false', d)}; then | 121 | if [ "${LSB}" = "lsb" ]; then |
125 | install -d ${D}${sysconfdir}/init.d | 122 | install -d ${D}${sysconfdir}/init.d |
126 | install -m 0755 packaging/LSB/samba.sh ${D}${sysconfdir}/init.d/samba | 123 | install -m 0755 packaging/LSB/samba.sh ${D}${sysconfdir}/init.d/samba |
127 | else | 124 | else |