Skip to contentSkip to conversation

samba: fix the incorrect tmpfiles installed directory

PATCH Superseded [email protected] 2 participants 3 messages Nov 2, 2015 – Nov 9, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 samba: fix the incorrect tmpfiles installed directory

From: Jackie Huang <[email protected]>

- 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.

---
 meta-oe/recipes-connectivity/samba/samba_4.1.12.bb | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)
meta-oe/recipes-connectivity/samba/samba_4.1.12.bb +4 -7
index 22c2bb4..45fdaa7 100644
@@ -94,18 +94,16 @@ do_install_append() {
             -e 's,@SBINDIR@,${sbindir},g' \
             -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 -d ${D}${sysconfdir}/tmpfiles.d
+        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
     fi
 
     install -d ${D}${sysconfdir}/samba
     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
 }
@@ -114,7 +112,6 @@ PACKAGES += "${PN}-python ${PN}-python-dbg ${PN}-pidl libwinbind libwinbind-dbg
 
 FILES_${PN} += "/run \
                 ${libdir}/security/pam_smbpass.so \
-                ${libdir}/tmpfiles.d/* \
                "
 
 SMB_SERVICE="${systemd_unitdir}/system/nmb.service ${systemd_unitdir}/system/smb.service"
Signature · 1 line
1.9.1
#1 lore raw
Quoted 7 lines · On Mon, Nov 02, 2015 at 07:48:51PM +0800, [email protected] wrote:

From: Jackie Huang <[email protected]>

- 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.

Please rebase on latest master and resend.

Quoted 49 lines
---
 meta-oe/recipes-connectivity/samba/samba_4.1.12.bb | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)
meta-oe/recipes-connectivity/samba/samba_4.1.12.bb +4 -7
index 22c2bb4..45fdaa7 100644
@@ -94,18 +94,16 @@ do_install_append() {
             -e 's,@SBINDIR@,${sbindir},g' \
             -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 -d ${D}${sysconfdir}/tmpfiles.d
+        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
     fi
 
     install -d ${D}${sysconfdir}/samba
     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
 }
@@ -114,7 +112,6 @@ PACKAGES += "${PN}-python ${PN}-python-dbg ${PN}-pidl libwinbind libwinbind-dbg
 
 FILES_${PN} += "/run \
                 ${libdir}/security/pam_smbpass.so \
-                ${libdir}/tmpfiles.d/* \
                "
 
 SMB_SERVICE="${systemd_unitdir}/system/nmb.service ${systemd_unitdir}/system/smb.service"
Signature · 7 lines
1.9.1

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#2 lore raw
Quoted 12 lines

-----Original Message-----
From: [email protected] [mailto:openembedded-devel- [email protected]] On Behalf Of Martin Jansa
Sent: Saturday, November 07, 2015 1:06 AM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH] samba: fix the incorrect tmpfiles installed directory

Quoted 2 lines · On Mon, Nov 02, 2015 at 07:48:51PM +0800, [email protected] wrote:

From: Jackie Huang <[email protected]>

Quoted 7 lines
Quoted 5 lines

- 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.

Please rebase on latest master and resend.

Rebased and resent.

Thanks,
Jackie

Quoted 55 lines

meta-oe/recipes-

Quoted 8 lines
---
 meta-oe/recipes-connectivity/samba/samba_4.1.12.bb | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)
meta-oe/recipes- renamed from meta-oe/recipes-connectivity/samba/samba_4.1.12.bb +0 -0

connectivity/samba/samba_4.1.12.bb

meta-oe/recipes-connectivity/samba/samba_4.1.12.bb PACKAGES += "${PN}-python ${PN}-python-dbg ${PN}-pidl libwinbind

Quoted 27 lines

index 22c2bb4..45fdaa7 100644

meta-oe/recipes-connectivity/samba/samba_4.1.12.bb +4 -6
@@ -94,18 +94,16 @@ do_install_append() {
             -e 's,@SBINDIR@,${sbindir},g' \
             -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 -d ${D}${sysconfdir}/tmpfiles.d
+        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
     fi
 
     install -d ${D}${sysconfdir}/samba
     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
 }
@@ -114,7 +112,6 @@ PACKAGES += "${PN}-python ${PN}-python-dbg ${PN}-pidl libwinbind

libwinbind-dbg

Quoted 10 lines
meta-oe/recipes-connectivity/samba/samba_4.1.12.bb +0 -2
 FILES_${PN} += "/run \
                 ${libdir}/security/pam_smbpass.so \
-                ${libdir}/tmpfiles.d/* \
                "
 
 SMB_SERVICE="${systemd_unitdir}/system/nmb.service ${systemd_unitdir}/system/smb.service"
--

1.9.1

Quoted 5 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
Martin 'JaMa' Jansa jabber: [email protected]