diff options
author | Andreas Müller <schnitzeltony@gmail.com> | 2019-04-18 17:54:07 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-04-27 10:13:07 -0700 |
commit | f066c44859e15296b7a1019f1badfdfff073eb39 (patch) | |
tree | 1a385a77e3ace2d032b0d161e3af1fbf1a3fc433 /meta-networking/recipes-connectivity | |
parent | d9b57a7244bda29127dd8fc94f55daa0d7d66dd7 (diff) | |
download | meta-openembedded-f066c44859e15296b7a1019f1badfdfff073eb39.tar.gz |
samba: install bundled libs into seperate packages
Otherwise bundled libraries find their way into samba
-> that causes several packages to rdepend on samba package
-> samba package rdepends on samba-base (and others) installing daemons
smbd & nmbd autostarted by default. This is unwanted / not necessary:
* NetBIOS (nmbd) can cause a security problems
* slow boot: times reported by systemd-analyse reduced from ~16s -> ~8s
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-connectivity')
-rw-r--r-- | meta-networking/recipes-connectivity/samba/samba_4.8.4.bb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/samba/samba_4.8.4.bb b/meta-networking/recipes-connectivity/samba/samba_4.8.4.bb index e86ed96a5..aa8087131 100644 --- a/meta-networking/recipes-connectivity/samba/samba_4.8.4.bb +++ b/meta-networking/recipes-connectivity/samba/samba_4.8.4.bb | |||
@@ -107,6 +107,16 @@ SAMBA4_MODULES="${SAMBA4_IDMAP_MODULES},${SAMBA4_PDB_MODULES},${SAMBA4_AUTH_MODU | |||
107 | # | 107 | # |
108 | SAMBA4_LIBS="heimdal,cmocka,ldb,pyldb-util,NONE" | 108 | SAMBA4_LIBS="heimdal,cmocka,ldb,pyldb-util,NONE" |
109 | 109 | ||
110 | # interim packages: As long as ldb/pyldb-util are in SAMBA4_LIBS we need to pack | ||
111 | # bundled libraries in seperate packages. Otherwise they are auto-packed in | ||
112 | # package 'samba' which RDEPENDS on lots of packages not wanted e.g autostarting | ||
113 | # nmbd/smbd daemons | ||
114 | # Once 'ldb,pyldb-util' are removed from SAMBA4_LIBS the bundled packages can | ||
115 | # be removed again. | ||
116 | PACKAGES =+ "${PN}-bundled-ldb ${PN}-bundled-pyldb-util" | ||
117 | FILES_${PN}-bundled-ldb = "${libdir}/samba/libldb${SOLIBS}" | ||
118 | FILES_${PN}-bundled-pyldb-util = "${libdir}/samba/libpyldb-util${SOLIBS}" | ||
119 | |||
110 | EXTRA_OECONF += "--enable-fhs \ | 120 | EXTRA_OECONF += "--enable-fhs \ |
111 | --with-piddir=/run \ | 121 | --with-piddir=/run \ |
112 | --with-sockets-dir=/run/samba \ | 122 | --with-sockets-dir=/run/samba \ |