mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-03 14:19:52 +00:00
samba: fix the incorrect tmpfiles installed directory
- The tmpfiles are always installed in /usr/lib even for multilib. - It makes no sense to have two tmpfiles in both /usr/lib/tmpfiles.d and /etc/tmpfiles.d, install it as one in /etc/tmpfiles.d. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
This commit is contained in:
committed by
Joe MacDonald
parent
952b92e4b8
commit
51c35fca0f
@@ -117,8 +117,9 @@ do_install_append() {
|
||||
-i ${D}${systemd_unitdir}/system/*.service
|
||||
|
||||
install -d ${D}${sysconfdir}/tmpfiles.d
|
||||
echo "d ${localstatedir}/log/samba 0755 root root -" \
|
||||
> ${D}${sysconfdir}/tmpfiles.d/99-${BPN}.conf
|
||||
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
|
||||
elif ${@bb.utils.contains('PACKAGECONFIG', 'lsb', 'true', 'false', d)}; then
|
||||
install -d ${D}${sysconfdir}/init.d
|
||||
install -m 0755 packaging/LSB/samba.sh ${D}${sysconfdir}/init.d
|
||||
@@ -135,9 +136,6 @@ do_install_append() {
|
||||
echo "127.0.0.1 localhost" > ${D}${sysconfdir}/samba/lmhosts
|
||||
install -m644 packaging/LSB/smb.conf ${D}${sysconfdir}/samba/smb.conf
|
||||
|
||||
install -d ${D}${libdir}/tmpfiles.d
|
||||
install -m644 packaging/systemd/samba.conf.tmp ${D}${libdir}/tmpfiles.d/samba.conf
|
||||
|
||||
install -d ${D}${sysconfdir}/sysconfig/
|
||||
install -m644 packaging/systemd/samba.sysconfig ${D}${sysconfdir}/sysconfig/samba
|
||||
}
|
||||
@@ -281,7 +279,6 @@ FILES_libnss-winbind = "${libdir}/libnss_*${SOLIBS} \
|
||||
"
|
||||
|
||||
FILES_${PN} += "${base_libdir}/security/pam_smbpass.so \
|
||||
${libdir}/tmpfiles.d/* \
|
||||
"
|
||||
|
||||
SMB_SERVICE="${systemd_unitdir}/system/nmb.service ${systemd_unitdir}/system/smb.service"
|
||||
|
||||
Reference in New Issue
Block a user